-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththresholds.py
More file actions
44 lines (40 loc) · 1.09 KB
/
thresholds.py
File metadata and controls
44 lines (40 loc) · 1.09 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Repositories to consider
REPOSITORIES_TO_CONSIDER = 5
# OpenAI
OPENAI_TOKEN_LIMIT = 3042
# Complexity weightage
COMPLEXITY_WEIGHTAGE = 0.7
# Impact weightage
IMPACT_WEIGHTAGE = 0.3
# Complexity
# * Number of languages
NUMBER_OF_LANGUAGES_UPPER = 10
NUMBER_OF_LANGUAGES_LOWER = 1
# * Number of lines per language
AMOUNT_OF_BYTES_PER_LANGUAGE_UPPER = 1000000
AMOUNT_OF_BYTES_PER_LANGUAGE_LOWER = 1000
# * Number of dependencies
NUMBER_OF_DEPENDENCIES_UPPER = 100
NUMBER_OF_DEPENDENCIES_LOWER = 1
# * Number of files
NUMBER_OF_FILES_UPPER = 1000
NUMBER_OF_FILES_LOWER = 1
# * Number of commits
NUMBER_OF_COMMITS_UPPER = 1000
NUMBER_OF_COMMITS_LOWER = 1
# * Useful/Impactful-ness:
# * Number of stars
NUMBER_OF_STARS_UPPER = 1000
NUMBER_OF_STARS_LOWER = 0
# * Number of forks
NUMBER_OF_FORKS_UPPER = 1000
NUMBER_OF_FORKS_LOWER = 0
# * Number of watchers
NUMBER_OF_WATCHERS_UPPER = 1000
NUMBER_OF_WATCHERS_LOWER = 0
# * Number of pull requests
NUMBER_OF_PULL_REQUESTS_UPPER = 1000
NUMBER_OF_PULL_REQUESTS_LOWER = 0
# * Number of issues
NUMBER_OF_ISSUES_UPPER = 1000
NUMBER_OF_ISSUES_LOWER = 0