mirror of
https://github.com/kanaka/mal.git
synced 2024-09-11 13:55:55 +03:00
|
||
---|---|---|
.. | ||
all_data.json | ||
base_data.yaml | ||
collect_data.js | ||
graph_languages.js | ||
index.html | ||
package.json | ||
README.md |
Mal Implementation Stats Graph
Updating the data
- Install prerequisites:
sudo aptitude install ruby2.3-dev
sudo gem install travis --no-rdoc --no-ri
- Download the latest successful travis build (BUILD is the travis build number):
cd docs/graph
BUILD=1490
for x in $(seq 1 109); do echo ${BUILD}/${x}; mkdir -p logs/${BUILD}; while ! travis logs ${BUILD}.${x} > logs/${BUILD}/${x}; do true; done; done
- Run the StackOverflow tags query and update the CSV link:
export SO_TAG_CSV_URL=... # from the query page
E.G.
export SO_TAG_CSV_URL=https://data.stackexchange.com/stackoverflow/csv/1451851
- Remove/clean all generated files:
make -C ../.. clean
- Download GitHub and StackOverflow data and generate the final combined data set:
PATH=$PATH:~/personal/programming/loccount
npm install
time VERBOSE=1 node ./collect_data.js logs/${BUILD}/ all_data.json