-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
51 lines (37 loc) · 1.5 KB
/
README
File metadata and controls
51 lines (37 loc) · 1.5 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
45
46
47
48
49
50
51
These scripts generate user statistics for software development platforms such as git, trac, phabricator and irc.
Requirements:
git:
To generate git commit statistics, one needs a git clone at:
input/git/
trac:
To generate trac statistics, one needs a wget mirror of a trac instance, at least of each ticket html:
input/trac/ticket/X.html
irc:
To generate chat statistics, one needs an irclogs folder in irssi chatlog format:
input/irc/year/year-month/
events:
To have custom events (date + label pair) in charts, add this file (see input/events_example.json):
input/events.json
phabricator:
To create phabricator statistics:
Register a Conduit API token at https://phabricator-instance.com/settings/user/yourusername/page/apitokens/
software:
python3
matplotlib module
date
sort
Statistics generation (txt files):
git:
Adapt the git arguments in the script files.
Currently only the month data is used for charts.
obtain_git_stats/git_stats.sh
trac:
To compute the statistics of trac, run this command:
python3 obtain_trac_stats/parse_trac_tickets.py
This generates several files indicating how often individual users added or removed the "review" or "rfc" keyword and
how many tickets existed at a given month that had these keywords.
irc:
To compute the irc chat statistics per user per month, edit the wfgparser.py user list and run
python3 obtain_irc_stats/wfgparser.py > data/irc/irc_month.txt
To generate the charts:
python3 plot.py