-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathinit.py
More file actions
29 lines (24 loc) · 1.28 KB
/
init.py
File metadata and controls
29 lines (24 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import platform
import os
if (platform.system() == 'Windows'):
LOCAL_DATA_PATH = 'C:\\Users\\annik\\Documents\\REUSE\\INTRUDE\\PR_data' # backslashes are escape characters, so doubles are needed
experiment_param_filePath = '.\\data\\test_repo_list.txt'
PR_pairList_filePath_prefix = '.\\data\\consecutive_PR_pairs_'
repos = [line.rstrip('\n') for line in open(".\\data\\test_repo_list.txt")]
dupPR_result_filePath_prefix = '.\\data\\dupPR_'
else:
if (platform.system() == 'Linux'):
LOCAL_DATA_PATH = '/DATA/luyao'
else:
LOCAL_DATA_PATH = '/Users/shuruiz/Work/researchProjects'
# monitored_repoList_filePath = 'data/test_repo_list.txt'
PR_pairList_filePath_prefix = 'data/consecutive_PR_pairs_'
# PR_candidate_List_filePath_prefix = 'data/candidate_PR_'
PR_candidate_List_filePath_prefix = LOCAL_DATA_PATH +'/PRCandidate/candidate_PR_'
dupPR_result_filePath_prefix = LOCAL_DATA_PATH + '/dupPR/'
local_pr_data_dir = LOCAL_DATA_PATH + '/pr_data/'
currentDIR = os.path.dirname(os.path.realpath(__file__))
mysqlParam = "./input/mysqlParams.txt"
# print('monitored_repoList_filePath:' + monitored_repoList_filePath)
# print('LOCAL_DATA_PATH:' + LOCAL_DATA_PATH)
# print('PR_candidate_List_filePath_prefix:' + PR_candidate_List_filePath_prefix)