-
Notifications
You must be signed in to change notification settings - Fork 121
/
Copy pathtest_studies.cfg
248 lines (214 loc) · 7.13 KB
/
test_studies.cfg
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
#
# Test config with only git and github activated
#
# Config values format
#
# List: [val1, val2 ...]
# Int: int_value
# Int as string: "Int"
# List as string: "[val1, val2 ...]"
# String: string_value
# None: None, none
# Boolean: true, True, False, false
[general]
short_name = Grimoire
update = false
min_update_delay = 10
debug = true
# /var/log/sigmordred/
logs_dir = logs
# Number of items per bulk request to Elasticsearch
bulk_size = 100
# Number of items to get from Elasticsearch when scrolling
scroll_size = 100
aliases_file = ./aliases.json
[projects]
projects_file = test-projects.json
[es_collection]
url = http://localhost:9200
# url = https://admin:admin@localhost:9200
[es_enrichment]
url = http://localhost:9200
# url = https://admin:admin@localhost:9200
autorefresh = false
[sortinghat]
host = 127.0.0.1
user = root
password =
port = 8000
path = api/
ssl = false
database = test_sh
load_orgs = true
orgs_file = data/orgs_sortinghat.json
identities_api_token = 'xxxx'
identities_file = [data/perceval_identities_sortinghat.json]
affiliate = true
# commonly: Unknown
unaffiliated_group = Unknown
autoprofile = [customer,git,github]
matching = [email]
sleep_for = 120
# sleep_for = 1800
[panels]
kibiter_time_from= "now-30y"
kibiter_default_index= "git"
kibiter_url = http://localhost:5601
[phases]
collection = true
identities = true
enrichment = true
panels = true
[cocom]
raw_index = ??? # cocom_raw_graal_file
enriched_index = ??? # cocom_enrich_graal_file
category = ??? # code_complexity_lizard_file
studies = [enrich_cocom_analysis]
branches = ??? # master
[enrich_cocom_analysis]
out_index = ??? # default: cocom_enrich_graal_repo
interval_months = ??? # default: [3]
[colic]
raw_index = ??? # colic_raw_graal_file
enriched_index = ??? # colic_enrich_graal_file
category = ??? # code_license_scancode_cli
studies = [enrich_colic_analysis]
exec-path = ??? # executable path
branches = ??? # master
[enrich_colic_analysis]
out_index = ??? # default: colic_enrich_graal_repo
interval_months = ??? # default: [3]
[git]
raw_index = ???
enriched_index = ???
studies = [enrich_demography:git, enrich_areas_of_code:git,
enrich_onion:git, enrich_git_branches:git, enrich_extra_data:git]
[enrich_git_branches:git]
# no params
[enrich_demography:git]
date_field = ??? # default: grimoire_creation_date
author_field = ??? # default: author_uuid
[enrich_areas_of_code:git]
in_index = ??? # default: git-raw
out_index = ??? # default: git_aoc-enriched
sort_on_field = ??? # default: metadata__timestamp
no_incremental = true # default: false
[enrich_onion:git]
in_index = ??? # default: git_onion-src
out_index = ??? # default: git_onion-enriched
data_source = ??? # default : git
contribs_field = ??? # default: hash
timeframe_field = ??? # default: grimoire_creation_date
sort_on_field = ??? # default: metadata__timestamp
no_incremental = true # default: false
seconds = ??? # default: 3600 * 24 * 7 (one week)
[enrich_extra_data:git]
json_url = ??? # path to the JSON file, an example is available at: https://gist.githubusercontent.com/valeriocos/810d0325eda9f06edd9b91ee9d78b839/raw/be1fad08837301d2c81355e61c5473c29018fe2d/gistfile1.txt
target_index = ??? # if not defined, it is the enriched index declared in the git section, otherwise it
# can be any index
[gerrit]
user = ***
blacklist-reviews = [1, 2, 3]
no-archive = true
max-reviews = 100
raw_index = ???
enriched_index = ???
studies = [enrich_demography:gerrit, enrich_onion:gerrit, enrich_demography_contribution:gerrit]
[enrich_demography_contribution:gerrit]
date_field = ??? # default: grimoire_creation_date
author_field = ??? # default: author_uuid
[enrich_demography:gerrit]
date_field = ??? # default: grimoire_creation_date
author_field = ??? # default: author_uuid
[enrich_onion:gerrit]
in_index = ??? # default: gerrit_onion-src
out_index = ??? # default: gerrit_onion-enriched
data_source = ??? # default: gerrit
contribs_field = ??? # default: uuid
timeframe_field = ??? # default: grimoire_creation_date
sort_on_field = ??? # default: metadata__timestamp
no_incremental = true # default: false
seconds = ??? # default: 3600 * 24 * 7 (one week)
[github:issue]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true # default: false
no-archive = true # default: false
category = issue # default: issue
studies = [enrich_onion:github]
[github:pull]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true # default: false
no-archive = true # default: false
category = pull_request # default: issue
[enrich_onion:github]
in_index_iss = ??? # default: github_issues_onion-src
in_index_prs = ??? # default: github_prs_onion-src
out_index_iss = ??? # default: github_issues_onion-enriched
out_index_prs = ??? # default: github_prs_onion-enriched
data_source_iss = ??? # default: github-issues
data_source_prs = ??? # default: github-prs
contribs_field = ??? # default: uuid
timeframe_field = ??? # default: grimoire_creation_date
sort_on_field = ??? # default: metadata__timestamp
no_incremental = true # default: false
seconds = ??? # default: 3600 * 24 * 7 (one week)
[gitlab:issue]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true # default: false
no-archive = true # default: false
category = issue # default: issue
studies = [enrich_onion:gitlab-issue]
[enrich_onion:gitlab-issue]
in_index = ???
out_index = ???
data_source = ??? # gitlab-issues | gitlab-merges, otherwise a warning is thrown
contribs_field = ??? # default: uuid)
timeframe_field = ??? # default: grimoire_creation_date)
sort_on_field = ??? # default: metadata__timestamp)
no_incremental = true # default: false
seconds = ??? # default: 3600 * 24 * 7 (one week)
[gitlab:merge]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true # default: false
no-archive = true # default: false
category = merge_request # default: issue
studies = [enrich_onion:gitlab-merge]
[enrich_onion:gitlab-merge]
in_index = ???
out_index = ???
data_source = ??? # gitlab-issues | gitlab-merges, otherwise a warning is thrown
contribs_field = ??? # default: uuid)
timeframe_field = ??? # default: grimoire_creation_date)
sort_on_field = ??? # default: metadata__timestamp)
no_incremental = true # default: false
seconds = ??? # default: 3600 * 24 * 7 (one week)
[github2:issue]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true # default: false
no-archive = true # default: false
category = issue # default: issue
[github2:pull]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true # default: false
no-archive = true # default: false
category = pull_request # default: issue
[githubql]
raw_index = ???
enriched_index = ???
api-token = ???
sleep-for-rate = true
no-archive = true
studies = [enrich_reference_analysis]
[enrich_reference_analysis]