The Artifacts of OOPSLA-2023 Submission #197
<p>This is the online repository of the OOPSLA-2023 Submission #197. We have released the source code and dataset.</p> <ul> <li><strong>Dataset</strong>: Our evaluation is based on the large-scale CodeSearchNet dataset. Use the following command to download and preprocess the data:</li> </ul> <pre><code class="language-bash">cd dataset bash run.sh cd ..</code></pre> <ul> <li> <p><strong>Dependencies</strong></p> </li> </ul> <pre><code class="language-bash">pip install -r requirements.txt</code></pre> <p> [Optional] We have built the tree-sitter parser stored at `evaluator/CodeBLEU/parser/languages.so`. If it doesn't work for you, it can be rebuilt with the following command:</p> <pre><code class="language-bash">cd evaluator/CodeBLEU/parser bash build.sh</code></pre> <ul> <li> <p><strong>Training</strong></p> </li> </ul> <pre><code class="language-bash">bash sh/train.sh [python/java] [CodeT5/Natgen] [CodeBERT/GraphCodeBERT]</code></pre> <ul> <li> <p><strong>Evaluation</strong></p> </li> </ul> <p> Evaluate generator:</p> <pre><code class="language-bash">bash sh/evaluate.sh [python/java] [CodeT5/Natgen]</code></pre> <p> Evaluate discriminator:</p> <p> We evaluate the discriminator by reusing the code from <a href="https://github.com/microsoft/CodeBERT/tree/master/CodeBERT/codesearch">CodeBERT</a> and <a href="https://github.com/microsoft/CodeBERT/tree/master/GraphCodeBERT/codesearch">GraphCodeBERT</a>. According to the Evaluate section in the corresponding model's Readme, replace `model_name_or_path` with the discriminator that you want to evaluate.</p> <p> </p>
ShareScore
32/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
- 16
- Reuse readiness
- 8
- Engagement
- 0