<commit_before>language: javascript

script: mongo test.js

services:
  - mongodb

before_script:
  # https://docs.travis-ci.com/user/database-setup/#MongoDB-does-not-immediately-accept-connections
  - sleep 15
<commit_msg>Revert "Use travis’ mongodb and wait before running test"<commit_after>language: javascript

script: mongo test.js

before_install:
  # https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/
  - sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
  - echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
  - sudo apt-get update
  - sudo apt-get install -y --force-yes mongodb-org

before_script:
  - sudo service mongod start

after_script:
  - sudo service mongod stop

{'fraction_non_alphanumeric': 0.12023121387283237, 'fraction_numerical': 0.04971098265895954, 'mean_word_length': 4.005780346820809, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3564909', 'n_tokens_mistral': 363, 'n_tokens_neox': 308, 'n_words': 61}