forked from servo/servo-org-stats
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitstat_settings.py
143 lines (130 loc) · 5.37 KB
/
gitstat_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
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
#-*- coding: utf-8 -*-
TITLE = 'Servo Organization Git Statistics'
CHART_SIZE = 70 # Maybe Google limit?
CHARSET = 'utf-8'
TEMPLATE_FILE = 'aggregate_template.html'
INPUT_FILE = 'log.txt' # None for stdin
OUTPUT_FILE = '../out/index.html' # None for stdout
AUTHOR_FILE = 'authors.txt'
COMMIT_DETAIL_COUNT = 1
COMMIT_ABSTRACT_COUNT = 5
COMMIT_LIST_COUNT = 20
ACTIVE_DAYS = 7
PIWIK = {"tracker": "https://api-8afce4501cd56a4921fd17fe0b9d3f61.oasis.sandstorm.io",
"token": "aFzZxUdC61h9PDHXj16t5O3wMtjOHXPd5-mf3WpHHCJ",
"source": "https://wzbb7q4leo9d3ypskuvy.oasis.sandstorm.io/embed.js"}
REPO_URL = 'https://github.com/mozilla/servo/tree/master'
COMMIT_URL = 'http://github.com/mozilla/servo/commit/{commit}'
GITHUB_RIBBON = 'https://github.com/edunham/servo-org-stats'
NAMES = {
'[email protected]': 'Elly Fong-Jones',
'[email protected]': 'Gareth Daniel Smith',
'[email protected]': 'Benjamin Jackman',
'[email protected]': 'Chris Pressey',
'[email protected]': 'Eric Holmes',
'[email protected]': 'Graydon Hoare',
'[email protected]': 'Simon Barber-Dueck',
'[email protected]': 'Rob Arnold',
'[email protected]': 'Ilyong Cho',
'[email protected]': u'Rafael Ávila de Espíndola',
'[email protected]': 'Or Brostovski',
'[email protected]': 'Kyeongwoon Lee',
'[email protected]': 'startling',
'[email protected]': u'Alex Rønne Petersen',
'[email protected]': 'Damien Schoof',
'[email protected]': 'Lennart Kudling',
}
ALIASES = {
'[email protected]': '[email protected]', # Make a@ as alias of b@
'graydon@4632428-PC.(none)': '[email protected]',
'espindola@dream.(none)': '[email protected]',
'tohava@tohava-laptop.(none)': '[email protected]',
'gareth@gareth-N56VM.(none)': '[email protected]',
'simon@server': '[email protected]',
'mmeyerho@andrew': '[email protected]',
'[email protected]': '[email protected]', # reverse?
'[email protected]': '[email protected]', # reverse?
'[email protected]': '[email protected]', # reverse?
'[email protected]': '[email protected]', #reverse?
'[email protected]': '[email protected]', #reverse?
}
MOZILLA = ["[email protected]",
]
SAMSUNG = ["[email protected]",
]
GROUPS = [
{
'name': 'Bot',
'description': 'Robot is your friend',
'filter': lambda author: author.name == 'bors-servo',
'priority': 1,
},
{
'name': 'Mozilla Corporation',
'url': 'http://www.mozilla.org/',
'filter': lambda author: author.email in MOZILLA or '@mozilla.com' in author.email,
},
{
'name': 'Samsung Electronics',
'url': 'http://www.samsung.com/',
'filter': lambda author: '@samsung.com' in author.email or author.email in SAMSUNG,
},
{
'name': 'Igalia',
'filter': lambda author: '@igalia.com' in author.email,
},
{
'name': 'Unidentified',
'description': 'Strange emails...',
'filter': lambda author: author.email.endswith('(none)') or author.email.endswith('.localdomain')
},
]