<commit_before>language: node_js

node_js:
  - "0.10"

before_script:
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS sqldown;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database sqldown;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS sqldown;'; fi"

env:
  - COMMAND=test
  - DB=mysql COMMAND=test
  - DB=postgres COMMAND=test
  - COMMAND=browser

script: npm run $COMMAND<commit_msg>browser hack<commit_after>language: node_js

node_js:
  - "0.10"

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - "sleep 5"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'DROP DATABASE IF EXISTS sqldown;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'postgres' ]; then psql -c 'create database sqldown;' -U postgres; fi"
  - sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS sqldown;'; fi"

env:
  - COMMAND=test
  - DB=mysql COMMAND=test
  - DB=postgres COMMAND=test
  - COMMAND=browser

script: npm run $COMMAND
{'fraction_non_alphanumeric': 0.16339869281045752, 'fraction_numerical': 0.009337068160597572, 'mean_word_length': 3.1875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5576475', 'n_tokens_mistral': 455, 'n_tokens_neox': 428, 'n_words': 130}