-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathSettings.py
63 lines (48 loc) · 4.16 KB
/
Settings.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
### GitHub Settings
items_per_page = 100 # The number of results in each page of the GitHub results. Max: 100
tokens_file = "../Resources/tokens.txt" # The relative path of the file containing the list of the github tokens
### Extraction Settings
data_collection_date = "2024-05-10" # The max date to consider for the commits and activities extraction
repos_file = "Resources/repositories.txt" # The relative path of the file containing the list of the repos <organization/repo>
main_folder = "../Organizations" # The main folder where results will be archived
logs_folder = "../logs" # The folder where the logs will be archived
supported_modes = ['tf', 'a80', 'a80mod', 'a80api']
TF_report_folder = "../TF_Results" # The folder where the TF/core developers are archived
TF_developers_file = "TF_devs.csv" # The file where the TF/core developers are listed as <name;login>ù
## WARNING: The correct path to save the <TF_developers_file> is <TF_report_folder>/<organization/mainRepo>/<TF_developers_file>
A80_report_folder = "../A80_Results" # The folder where the TF/core developers are archived
A80_developers_file = "A80_devs.csv" # The file where the TF/core developers are listed as <name;login>
modTh = 5
A80mod_report_folder = "../A80MOD_Results" # The folder where the TF/core developers are archived
A80mod_developers_file = "A80mod_devs.csv" # The file where the TF/core developers are listed as <name;login>
A80api_report_folder = "../A80API_Results" # The folder where the TF/core developers are archived
A80api_developers_file = "A80api_devs.csv" # The file where the TF/core developers are listed as <name;login>
commit_list_file_name = "commit_list.csv" # The file where the repo commits will be archived
commit_history_table_file_name = "commit_history_table.csv" # The file where the 'devs by dates' table for each repo will be archived
coding_history_table_file_name = "coding_history_table.csv" # Analogous to Commit_history_table but includes PR creation and NON merged commits
pauses_list_file_name = "coding_pauses.csv" # The file where the lists of devs' pauses durations will be archived
pauses_dates_file_name = "coding_pauses_dates.csv" # The file where the lists of devs' pauses boundary dates will be archived
issue_comments_list_file_name = "issues_comments_repo.csv" # The file where the repo issue comments will be archived
pulls_comments_list_file_name = "pulls_comments_repo.csv" # The file where the repo pulls comments will be archived
issue_events_list_file_name = "issues_events_repo.csv" # The file where the repo issue events will be archived
issue_pr_list_file_name = "issues_prs_repo.csv" # The file where the repo issue/PRs creations will be archived
#core_commit_coverage = 0.8 #Percentage of commits to cover for the core identification
### Files Settings
CSV_separator = ";" # Character for cell separation in the used files
CSV_missing = "NA" # Character for the missing values in the used files
### Breaks Identification
actions_folder_name = 'Actions_Tables' # The folder where the other repo activities will be archived
breaks_folder_name = 'Dev_Breaks' # The folder where the breaks list for each developer will be archived
sliding_window_size = 90 # The size in days of the sliding window
shift = 7 # The number of days to shift the sliding window of
### Breaks Labeling
labeled_breaks_folder_name = breaks_folder_name + '/Labeled_Breaks' # The folder where the labeled breaks list for each developer will be archived
gone_threshold = 365 # Threshold to label a break as 'GONE'
### Statistics
chains_folder_name = 'Chains' # The folder where the %age of the transitions for each organization will be archived
### CONSTANTS
A = 'ACTIVE' # Label of the Active status: Developers contribute commits
NC = 'NON_CODING' # Label of the Non-coding status: Developers do not contribute commits, but show other activity signals
I = 'INACTIVE' # Label of the Inactive status: Developers do not show any activity signal
G = 'GONE' # Label of the Gone status: Developers have been Inactive for longer than <gone_threshold>
#key_folders = ['Activities_Plots', 'Dead&Resurrected_Users', 'Hibernated&Unfrozen_Users', 'Sleeping&Awaken_Users', 'DevStats_Plots', 'Longer_Breaks']