graph: update collected data with ada.2 updates.
[jackhill/mal.git] / docs / graph / README.md
1 # Mal Implementation Stats Graph
2
3
4 ## Updating the data
5
6 * Install prerequisites:
7
8 ```
9 sudo aptitude install ruby2.3-dev
10 sudo gem install travis --no-rdoc --no-ri
11 ```
12
13 * Download the latest successful travis build (BUILD is the travis
14 build number):
15
16 ```
17 cd docs/graph
18
19 BUILD=983
20
21 for x in $(seq 1 90); do echo ${BUILD}/${x}; mkdir -p logs/${BUILD}; while ! travis logs ${BUILD}.${x} > logs/${BUILD}/${x}; do true; done; done
22 ```
23
24 * Run the [StackOverflow tags query](https://data.stackexchange.com/stackoverflow/query/edit/1013465) and update the CSV link:
25
26 ```
27 export SO_TAG_CSV_URL=... # from the query page
28 ```
29
30 * Download GitHub and StackOverflow data and generate the final
31 combined data set:
32
33 ```
34 PATH=$PATH:~/personal/programming/loccount
35
36 time VERBOSE=1 node ./collect_data.js logs/${BUILD}/ all_data.json
37 ```