<commit_before>language: ruby
cache: bundler
rvm: '2.2.4'
services: postgresql

before_script:
  # Update phantomjs. Built-in version doesnt support Function.prototype,bind
  - mkdir travis-phantomjs
  - wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
  - tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
  - export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

  - bundle exec rake db:create RAILS_ENV=test
  - bundle exec rake db:test:prepare

script: bundle exec rspec
<commit_msg>turn off email notifications for travis builds<commit_after>language: ruby
cache: bundler
rvm: '2.2.4'
services: postgresql

notifications:
    email: false

before_script:
  # Update phantomjs. Built-in version doesnt support Function.prototype,bind
  - mkdir travis-phantomjs
  - wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
  - tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
  - export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH

  - bundle exec rake db:create RAILS_ENV=test
  - bundle exec rake db:test:prepare

script: bundle exec rspec

{'fraction_non_alphanumeric': 0.12536443148688048, 'fraction_numerical': 0.04956268221574344, 'mean_word_length': 4.142322097378277, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4384140', 'n_tokens_mistral': 595, 'n_tokens_neox': 545, 'n_words': 93}