1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00
mal/docs/graph
Joel Martin 42e55b2947 graph: update stats, add new implementations.
New implementations: jq, pike, wren, zig, python #2, Swift 5.
2020-01-16 15:51:54 -06:00
..
all_data.json graph: update stats, add new implementations. 2020-01-16 15:51:54 -06:00
base_data.yaml graph: update stats, add new implementations. 2020-01-16 15:51:54 -06:00
collect_data.js graph: update stats, add new implementations. 2020-01-16 15:51:54 -06:00
graph_languages.js graph: remove unnecessary popup line breaks. 2019-04-01 09:30:56 -05:00
index.html graph: sync notes with code updates. 2019-03-25 13:50:41 -05:00
package.json docs/graph: js-yaml vulnerability fix. 2019-08-08 13:44:42 -05:00
README.md graph: update stats, add new implementations. 2020-01-16 15:51:54 -06:00

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
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