The Artifacts of OOPSLA-2023 Submission #197
Description
This is the online repository of the OOPSLA-2023 Submission #197. We have released the source code and dataset.
- Dataset: Our evaluation is based on the large-scale CodeSearchNet dataset. Use the following command to download and preprocess the data:
cd dataset
bash run.sh
cd ..
-
Dependencies
pip install -r requirements.txt
[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:
cd evaluator/CodeBLEU/parser
bash build.sh
-
Training
bash sh/train.sh [python/java] [CodeT5/Natgen] [CodeBERT/GraphCodeBERT]
-
Evaluation
Evaluate generator:
bash sh/evaluate.sh [python/java] [CodeT5/Natgen]
Evaluate discriminator:
We evaluate the discriminator by reusing the code from CodeBERT and GraphCodeBERT. According to the Evaluate section in the corresponding model's Readme, replace `model_name_or_path` with the discriminator that you want to evaluate.
Files
Code.zip
Files
(1.0 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:f58a4529ba7d5953c99d46d55c514b05
|
1.0 MB | Preview Download |
|
md5:818fb6a3a762555cdf865d46c35fb4a3
|
781 Bytes | Preview Download |