Skip to main content
zenodorestricted

Artifacts of the paper under review by ESEC/FSE

<p><strong>This repository has been deprecated. Please refer to this <a href="https://github.com/Ringbo/CCT5">link</a> for the latest version.</strong></p> <p>--------------------------------------------------------------------</p> <p>This is the online repository of <strong>CCT5: A Code-Change-Oriented Pre-Trained Model</strong>, a research paper under review by ESEC/FSE. We release the source code and relevant data of CCT5, the data used in our evaluation, as well as the experiment results.</p> <ul> <li>Getting Started</li> </ul> <pre><code>pytorch==1.8.0 cudatoolkit=11.1 datasets==1.18.3 transformers==4.16.2 tensorboard==2.8.0 tree-sitter==0.19.1</code></pre> <ul> <li> <p>Dataset</p> </li> </ul> <p>We provide the datasets of pretraining and three downstream tasks. The datasets should be downloaded and uncompressed in the <strong>data&nbsp;</strong>directory.</p> <p><code>pretraining/CodeChangeNet.tar.lrz</code> contains the dataset used in pretraining, i.e., CodeChangeNet. CodeChangeNet is a collection of over 1000 star projects written in six popular programming languages: Go, Java, JavaScript, PHP, Python, and Ruby.</p> <p><code>finetune/MessageGeneration</code> contains the download and process script of task1 - Commit Message Generation;</p> <p><code>finetune/CommentUpdate</code> contains the dataset of downstream task2 - Just-in-Time Comment Update;</p> <p><code>finetune/JITDefectPrediction</code> contains the dataset of downstream task3 - Just-in-Time Defect Prediction;</p> <ul> <li> <p>Pretrain the model</p> </li> </ul> <pre><code class="language-bash">cd sh bash pretrain.sh</code></pre> <ul> <li> <p>Finetune and evaluate the downstream task</p> </li> </ul> <p>Commit Message Generation</p> <pre><code class="language-bash">cd sh bash finetune_msggen.sh</code></pre> <p>Just-in-Time Comment Update</p> <pre><code class="language-bash">cd sh bash finetune_cup.sh</code></pre> <p>Just-in-Time Defect Prediction</p> <pre><code class="language-bash">cd sh bash finetune_jit.sh</code></pre> <ul> <li>Results</li> </ul> <p>The experiment results of two generation tasks and the ablation study are stored in <strong>results</strong> with the directory <strong>MessageGeneration</strong>, <strong>CommentUpdate</strong>, and <strong>Ablation</strong>, respectively.</p>

ShareScore

8/100

Overall dataset sharing score

Score breakdown

These five areas show where the dataset supports — or may limit — practical reuse.

Stewardship
4
Harmonization
4
Access
0
Reuse readiness
0
Engagement
0