-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathartifact_cpgnn.py
executable file
·23 lines (17 loc) · 1.09 KB
/
artifact_cpgnn.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import subprocess
# Copy this file to `cpgnn` directory and run it
# Please ensure you have oj_clone_encoding, oj_classification_encoding, and bcb_clone_encoding under Tailor/cpgnn/data
args = [
# code clone detection on the OJ dataset
'python main_oj.py --clone_test_supervised --epoch 30 --classification_num 15 --clone_threshold 0.5 --dataset oj_clone_encoding --type_dim 16 --layer_size [32,32,32,32,32] --batch_size_clone 512 --report clone_oj',
# code clone detection on the BCB dataset
'python main_bcb.py --clone_test_supervised --epoch 30 --clone_threshold 0.5 --dataset bcb_clone_encoding --type_dim 16 --layer_size [32,32,32,32] --batch_size_clone 384 --report clone_bcb',
# code classification on the OJ dataset
'python main_oj.py --classification_test --epoch 251 --classification_num 104 --dataset oj_classification_encoding --type_dim 16 --layer_size [32,32,32,32,32] --batch_size_classification 384 --report classification_oj',
]
def main():
for arg in args:
p = subprocess.Popen(arg, shell=True)
p.wait()
if __name__ == '__main__':
main()