unknown
commited on
Commit
·
e9af125
1
Parent(s):
df55b07
add files
Browse files- Script/Exp_Script/ChatGPT/run_chatgpt.sh +5 -0
- Script/Exp_Script/Code-LLaMA/run_codellama.sh +5 -0
- Script/Exp_Script/ForkFlow/run_forkflow.sh +1 -0
- Script/Model/CodeBert/code-completion/run_fine_tuning.sh +28 -0
- Script/Model/CodeBert/code-completion/run_test.sh +22 -0
- Script/Model/CodeBert/code-generation/run_fine_tuning.sh +13 -0
- Script/Model/CodeBert/code-generation/run_test.sh +8 -0
- Script/Model/CodeT5+/code-completion/run_fine_tuning.sh +28 -0
- Script/Model/CodeT5+/code-completion/run_test.sh +22 -0
- Script/Model/CodeT5+/code-generation/run_fine_tuning.sh +13 -0
- Script/Model/CodeT5+/code-generation/run_test.sh +8 -0
- Script/Model/CodeT5+/new-target-completion/run_fine_tuning_existing_type.sh +28 -0
- Script/Model/CodeT5+/new-target-completion/run_fine_tuning_itr_exp.sh +30 -0
- Script/Model/CodeT5+/new-target-completion/run_fine_tuning_new_type.sh +30 -0
- Script/Model/CodeT5+/new-target-completion/run_test_existing_type.sh +22 -0
- Script/Model/CodeT5+/new-target-completion/run_test_itr_exp.sh +49 -0
- Script/Model/CodeT5+/new-target-completion/run_test_new_type.sh +24 -0
- Script/Model/CodeT5+/new-target-generation/run_fine_tuning_existing_type.sh +11 -0
- Script/Model/CodeT5+/new-target-generation/run_fine_tuning_itr_exp.sh +12 -0
- Script/Model/CodeT5+/new-target-generation/run_fine_tuning_new_type.sh +12 -0
- Script/Model/CodeT5+/new-target-generation/run_test_existing_type.sh +8 -0
- Script/Model/CodeT5+/new-target-generation/run_test_itr_exp.sh +24 -0
- Script/Model/CodeT5+/new-target-generation/run_test_new_type.sh +9 -0
- Script/Model/CodeT5/code-completion/run_fine_tuning.sh +28 -0
- Script/Model/CodeT5/code-completion/run_test.sh +22 -0
- Script/Model/CodeT5/code-generation/run_fine_tuning.sh +13 -0
- Script/Model/CodeT5/code-generation/run_test.sh +8 -0
- Script/Model/GraphCodeBert/code-completion/run_fine_tuning.sh +28 -0
- Script/Model/GraphCodeBert/code-completion/run_test.sh +22 -0
- Script/Model/GraphCodeBert/code-generation/run_fine_tuning.sh +13 -0
- Script/Model/GraphCodeBert/code-generation/run_test.sh +8 -0
- Script/Model/NatGen/code-completion/run_fine_tuning.sh +28 -0
- Script/Model/NatGen/code-completion/run_test.sh +22 -0
- Script/Model/NatGen/code-generation/run_fine_tuning.sh +13 -0
- Script/Model/NatGen/code-generation/run_test.sh +8 -0
- Script/Model/UnixCoder/code-completion/run_fine_tuning.sh +28 -0
- Script/Model/UnixCoder/code-completion/run_test.sh +22 -0
- Script/Model/UnixCoder/code-generation/run_fine_tuning.sh +13 -0
- Script/Model/UnixCoder/code-generation/run_test.sh +8 -0
Script/Exp_Script/ChatGPT/run_chatgpt.sh
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python calculate_chatgpt_completion.py --task "statement_level"
|
| 2 |
+
python calculate_chatgpt_completion.py --task "next_statement"
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
python calculate_chatgpt_gen.py
|
Script/Exp_Script/Code-LLaMA/run_codellama.sh
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python calculate_codellama_completion.py --task "statement_level"
|
| 2 |
+
python calculate_codellama_completion.py --task "next_statement"
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
python calculate_codellama_gen.py
|
Script/Exp_Script/ForkFlow/run_forkflow.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
python calculate_forkflow.py
|
Script/Model/CodeBert/code-completion/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path MickyMike/codebert-c \
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/CodeBert/Code_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path MickyMike/codebert-c \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/CodeBert/Code_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/CodeBert/code-completion/run_test.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path MickyMike/codebert-c \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/CodeBert/Code_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/CodeBert/Code_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path MickyMike/codebert-c \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/CodeBert/Code_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/CodeBert/Code_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/CodeBert/code-generation/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path MickyMike/codebert-c \
|
| 5 |
+
--train_filename ../../../../Dataset/Code_Generation/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/Code_Generation/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/CodeBert/Code_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
| 12 |
+
|
| 13 |
+
|
Script/Model/CodeBert/code-generation/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path MickyMike/codebert-c \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/CodeBert/Code_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/Code_Generation/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/CodeBert/Code_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/code-completion/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Code_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Code_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/code-completion/run_test.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Code_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Code_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Code_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Code_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/code-generation/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 5 |
+
--train_filename ../../../../Dataset/Code_Generation/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/Code_Generation/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Code_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
| 12 |
+
|
| 13 |
+
|
Script/Model/CodeT5+/code-generation/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Code_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/Code_Generation/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Code_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/new-target-completion/run_fine_tuning_existing_type.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/new-target-completion/run_fine_tuning_itr_exp.sh
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--do_itr \
|
| 6 |
+
--task statement_level \
|
| 7 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 8 |
+
--train_filename ../../../../Dataset \
|
| 9 |
+
--dev_filename ../../../../Dataset \
|
| 10 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 11 |
+
--beam_size 4 \
|
| 12 |
+
--train_batch_size 32 \
|
| 13 |
+
--eval_batch_size 16 \
|
| 14 |
+
--num_train_epochs 50
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# next statement suggestion
|
| 18 |
+
python run_completion.py \
|
| 19 |
+
--do_train \
|
| 20 |
+
--do_eval \
|
| 21 |
+
--do_itr \
|
| 22 |
+
--task next_statement \
|
| 23 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 24 |
+
--train_filename ../../../../Dataset \
|
| 25 |
+
--dev_filename ../../../../Dataset \
|
| 26 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 27 |
+
--beam_size 4 \
|
| 28 |
+
--train_batch_size 32 \
|
| 29 |
+
--eval_batch_size 16 \
|
| 30 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/new-target-completion/run_fine_tuning_new_type.sh
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--do_cpuonly \
|
| 6 |
+
--task statement_level \
|
| 7 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 8 |
+
--train_filename ../../../../Dataset \
|
| 9 |
+
--dev_filename ../../../../Dataset \
|
| 10 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 11 |
+
--beam_size 4 \
|
| 12 |
+
--train_batch_size 32 \
|
| 13 |
+
--eval_batch_size 16 \
|
| 14 |
+
--num_train_epochs 50
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
# next statement suggestion
|
| 18 |
+
python run_completion.py \
|
| 19 |
+
--do_train \
|
| 20 |
+
--do_eval \
|
| 21 |
+
--do_cpuonly \
|
| 22 |
+
--task next_statement \
|
| 23 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 24 |
+
--train_filename ../../../../Dataset \
|
| 25 |
+
--dev_filename ../../../../Dataset \
|
| 26 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 27 |
+
--beam_size 4 \
|
| 28 |
+
--train_batch_size 32 \
|
| 29 |
+
--eval_batch_size 16 \
|
| 30 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/new-target-completion/run_test_existing_type.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/new-target-completion/run_test_itr_exp.sh
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--do_itr \
|
| 6 |
+
--do_cpuonly \
|
| 7 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 8 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 9 |
+
--test_filename ../../../../Dataset \
|
| 10 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 11 |
+
--beam_size 4 \
|
| 12 |
+
--eval_batch_size 16
|
| 13 |
+
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task statement_level \
|
| 17 |
+
--do_itr \
|
| 18 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 19 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 20 |
+
--test_filename ../../../../Dataset \
|
| 21 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 22 |
+
--beam_size 4 \
|
| 23 |
+
--eval_batch_size 16
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
# next statement suggestion
|
| 27 |
+
python run_completion.py \
|
| 28 |
+
--do_test \
|
| 29 |
+
--task next_statement \
|
| 30 |
+
--do_itr \
|
| 31 |
+
--do_cpuonly \
|
| 32 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 33 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 34 |
+
--test_filename ../../../../Dataset \
|
| 35 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 36 |
+
--beam_size 4 \
|
| 37 |
+
--eval_batch_size 16
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
python run_completion.py \
|
| 41 |
+
--do_test \
|
| 42 |
+
--task next_statement \
|
| 43 |
+
--do_itr \
|
| 44 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 45 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 46 |
+
--test_filename ../../../../Dataset \
|
| 47 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Completion \
|
| 48 |
+
--beam_size 4 \
|
| 49 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/new-target-completion/run_test_new_type.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--do_cpuonly \
|
| 6 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 7 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 8 |
+
--test_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--eval_batch_size 16
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# next statement suggestion
|
| 15 |
+
python run_completion.py \
|
| 16 |
+
--do_test \
|
| 17 |
+
--task next_statement \
|
| 18 |
+
--do_cpuonly \
|
| 19 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 20 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 21 |
+
--test_filename ../../../../Dataset \
|
| 22 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Completion \
|
| 23 |
+
--beam_size 4 \
|
| 24 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/new-target-generation/run_fine_tuning_existing_type.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 5 |
+
--train_filename ../../../../Dataset/New_Target_Generation/Existing_Types/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/New_Target_Generation/Existing_Types/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/new-target-generation/run_fine_tuning_itr_exp.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--do_itr \
|
| 5 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 6 |
+
--train_filename ../../../../Dataset/Iterative_Expansion_Generation/train.jsonl \
|
| 7 |
+
--dev_filename ../../../../Dataset/Iterative_Expansion_Generation/valid.jsonl \
|
| 8 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Generation \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--train_batch_size 32 \
|
| 11 |
+
--eval_batch_size 16 \
|
| 12 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/new-target-generation/run_fine_tuning_new_type.sh
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--do_cpuonly \
|
| 5 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 6 |
+
--train_filename ../../../../Dataset/New_Target_Generation/New_Types/train.jsonl \
|
| 7 |
+
--dev_filename ../../../../Dataset/New_Target_Generation/New_Types/valid.jsonl \
|
| 8 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--train_batch_size 32 \
|
| 11 |
+
--eval_batch_size 16 \
|
| 12 |
+
--num_train_epochs 50
|
Script/Model/CodeT5+/new-target-generation/run_test_existing_type.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/New_Target_Generation/Existing_Types/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|
Script/Model/CodeT5+/new-target-generation/run_test_itr_exp.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#Excluding RISC-V
|
| 2 |
+
python -u run_generation.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--do_cpuonly \
|
| 5 |
+
--do_itr \
|
| 6 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 7 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 8 |
+
--test_filename ../../../../Dataset/Iterative_Expansion_Generation/test.jsonl \
|
| 9 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--eval_batch_size 16
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
# Including RISC-V
|
| 15 |
+
python -u run_generation.py \
|
| 16 |
+
--do_test \
|
| 17 |
+
--do_itr \
|
| 18 |
+
--model_name_or_path /home/ljq/Code_llms/codet5p-220m \
|
| 19 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Generation \
|
| 20 |
+
--test_filename ../../../../Dataset/Iterative_Expansion_Generation/test.jsonl \
|
| 21 |
+
--output_dir ../../../../Saved_Models/CodeT5+/Iterative_Expansion_Generation \
|
| 22 |
+
--beam_size 4 \
|
| 23 |
+
--eval_batch_size 16 \
|
| 24 |
+
2>&1 | tee output_gen_test_220_itr_w_riscv.txt
|
Script/Model/CodeT5+/new-target-generation/run_test_new_type.sh
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--do_cpuonly \
|
| 4 |
+
--model_name_or_path Salesforce/codet5p-220m \
|
| 5 |
+
--load_model_path ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 6 |
+
--test_filename ../../../../Dataset/New_Target_Generation/New_Types/test.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/CodeT5+/New_Target_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--eval_batch_size 16
|
Script/Model/CodeT5/code-completion/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path Salesforce/codet5-base \
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/CodeT5/Code_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path Salesforce/codet5-base \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/CodeT5/Code_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/CodeT5/code-completion/run_test.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path Salesforce/codet5-base \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/CodeT5/Code_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/CodeT5/Code_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path Salesforce/codet5-base \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/CodeT5/Code_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/CodeT5/Code_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/CodeT5/code-generation/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path Salesforce/codet5-base \
|
| 5 |
+
--train_filename ../../../../Dataset/Code_Generation/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/Code_Generation/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/CodeT5/Code_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
| 12 |
+
|
| 13 |
+
|
Script/Model/CodeT5/code-generation/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path Salesforce/codet5-base \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/CodeT5/Code_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/Code_Generation/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/CodeT5/Code_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|
Script/Model/GraphCodeBert/code-completion/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path MickyMike/graphcodebert-c\
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/GraphCodeBert/Code_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path MickyMike/graphcodebert-c \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/GraphCodeBert/Code_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/GraphCodeBert/code-completion/run_test.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path MickyMike/graphcodebert-c \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/GraphCodeBert/Code_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/GraphCodeBert/Code_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path MickyMike/graphcodebert-c \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/GraphCodeBert/Code_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/GraphCodeBert/Code_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/GraphCodeBert/code-generation/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path MickyMike/graphcodebert-c \
|
| 5 |
+
--train_filename ../../../../Dataset/Code_Generation/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/Code_Generation/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/GraphCodeBert/Code_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
| 12 |
+
|
| 13 |
+
|
Script/Model/GraphCodeBert/code-generation/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path MickyMike/graphcodebert-c \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/GraphCodeBert/Code_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/Code_Generation/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/GraphCodeBert/Code_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|
Script/Model/NatGen/code-completion/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path saikatc/NatGen \
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/NatGen/Code_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path saikatc/NatGen \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/NatGen/Code_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/NatGen/code-completion/run_test.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path saikatc/NatGen \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/NatGen/Code_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/NatGen/Code_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path saikatc/NatGen \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/NatGen/Code_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/NatGen/Code_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/NatGen/code-generation/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path saikatc/NatGen \
|
| 5 |
+
--train_filename ../../../../Dataset/Code_Generation/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/Code_Generation/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/NatGen/Code_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
| 12 |
+
|
| 13 |
+
|
Script/Model/NatGen/code-generation/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path saikatc/NatGen \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/NatGen/Code_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/Code_Generation/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/NatGen/Code_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|
Script/Model/UnixCoder/code-completion/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_train \
|
| 4 |
+
--do_eval \
|
| 5 |
+
--task statement_level \
|
| 6 |
+
--model_name_or_path microsoft/unixcoder-base-nine \
|
| 7 |
+
--train_filename ../../../../Dataset \
|
| 8 |
+
--dev_filename ../../../../Dataset \
|
| 9 |
+
--output_dir ../../../../Saved_Models/UnixCoder/Code_Completion \
|
| 10 |
+
--beam_size 4 \
|
| 11 |
+
--train_batch_size 32 \
|
| 12 |
+
--eval_batch_size 16 \
|
| 13 |
+
--num_train_epochs 50
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
# next statement suggestion
|
| 17 |
+
python run_completion.py \
|
| 18 |
+
--do_train \
|
| 19 |
+
--do_eval \
|
| 20 |
+
--task next_statement \
|
| 21 |
+
--model_name_or_path microsoft/unixcoder-base-nine \
|
| 22 |
+
--train_filename ../../../../Dataset \
|
| 23 |
+
--dev_filename ../../../../Dataset \
|
| 24 |
+
--output_dir ../../../../Saved_Models/UnixCoder/Code_Completion \
|
| 25 |
+
--beam_size 4 \
|
| 26 |
+
--train_batch_size 32 \
|
| 27 |
+
--eval_batch_size 16 \
|
| 28 |
+
--num_train_epochs 50
|
Script/Model/UnixCoder/code-completion/run_test.sh
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# statement level completion
|
| 2 |
+
python run_completion.py \
|
| 3 |
+
--do_test \
|
| 4 |
+
--task statement_level \
|
| 5 |
+
--model_name_or_path microsoft/unixcoder-base-nine \
|
| 6 |
+
--load_model_path ../../../../Saved_Models/UnixCoder/Code_Completion \
|
| 7 |
+
--test_filename ../../../../Dataset \
|
| 8 |
+
--output_dir ../../../../Saved_Models/UnixCoder/Code_Completion \
|
| 9 |
+
--beam_size 4 \
|
| 10 |
+
--eval_batch_size 16
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
# next statement suggestion
|
| 14 |
+
python run_completion.py \
|
| 15 |
+
--do_test \
|
| 16 |
+
--task next_statement \
|
| 17 |
+
--model_name_or_path microsoft/unixcoder-base-nine \
|
| 18 |
+
--load_model_path ../../../../Saved_Models/UnixCoder/Code_Completion \
|
| 19 |
+
--test_filename ../../../../Dataset \
|
| 20 |
+
--output_dir ../../../../Saved_Models/UnixCoder/Code_Completion \
|
| 21 |
+
--beam_size 4 \
|
| 22 |
+
--eval_batch_size 16
|
Script/Model/UnixCoder/code-generation/run_fine_tuning.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python run_generation.py \
|
| 2 |
+
--do_train \
|
| 3 |
+
--do_eval \
|
| 4 |
+
--model_name_or_path microsoft/unixcoder-base-nine \
|
| 5 |
+
--train_filename ../../../../Dataset/Code_Generation/train.jsonl \
|
| 6 |
+
--dev_filename ../../../../Dataset/Code_Generation/valid.jsonl \
|
| 7 |
+
--output_dir ../../../../Saved_Models/UnixCoder/Code_Generation \
|
| 8 |
+
--beam_size 4 \
|
| 9 |
+
--train_batch_size 32 \
|
| 10 |
+
--eval_batch_size 16 \
|
| 11 |
+
--num_train_epochs 50
|
| 12 |
+
|
| 13 |
+
|
Script/Model/UnixCoder/code-generation/run_test.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
python -u run_generation.py \
|
| 2 |
+
--do_test \
|
| 3 |
+
--model_name_or_path microsoft/unixcoder-base-nine \
|
| 4 |
+
--load_model_path ../../../../Saved_Models/UnixCoder/Code_Generation \
|
| 5 |
+
--test_filename ../../../../Dataset/Code_Generation/test.jsonl \
|
| 6 |
+
--output_dir ../../../../Saved_Models/UnixCoder/Code_Generation \
|
| 7 |
+
--beam_size 4 \
|
| 8 |
+
--eval_batch_size 16
|