<commit_before>language: python
python:
  - "2.7"
services:
  - rabbitmq
before_install:
  - virtualenv ./pyenv --distribute
  - source ./pyenv/bin/activate
install:
  # To install external filter binaries, we first need to install
  # RubyGems and Node/NPM. I'm not sure why, since it seems clear
  # that NVM and RVM are pre-installed (see below).
  - sudo apt-get install python-software-properties
  - sudo apt-add-repository -y ppa:chris-lea/node.js
  - sudo apt-get update
  - sudo apt-get install nodejs rubygems
  # These are useful for debugging this mess.
  #- env
  #- gem env
  #- rvm info
  # Use non-http registry? https://github.com/n1k0/casperjs/issues/876
  # Without this, installing doesn't work.
  - sudo npm config set registry http://registry.npmjs.org/

  # Now install the external filter binaries, finally.
  # If we use sudo for this, ruby gems will not work: it seems they are
  # then installed globally, but are then searched for in a RVM location.
  # (Clearing GEM_HOME might be a way to fix this, if sudo where necessary).
  - sh requirements-dev.sh

  - pip install -r requirements.txt -e .
  - pip install psycopg2
before_script:
  - psql -c 'create database spendb;' -U postgres
  - cp settings.py_tmpl settings.py
  - nosetests --version
script:
  - nosetests<commit_msg>remove travis cruft. <commit_after>language: python
python:
  - "2.7"
services:
  - rabbitmq
before_install:
  - virtualenv ./pyenv --distribute
  - source ./pyenv/bin/activate
install:
  # To install external filter binaries, we first need to install
  # RubyGems and Node/NPM. I'm not sure why, since it seems clear
  # that NVM and RVM are pre-installed (see below).
  - sudo apt-get install python-software-properties
  - sudo apt-add-repository -y ppa:chris-lea/node.js
  - sudo apt-get update
  - sudo apt-get install nodejs rubygems
  # These are useful for debugging this mess.
  #- env
  #- gem env
  #- rvm info
  # Use non-http registry? https://github.com/n1k0/casperjs/issues/876
  # Without this, installing doesn't work.
  - sudo npm config set registry http://registry.npmjs.org/
  - pip install -r requirements.txt -e .
  - pip install psycopg2
before_script:
  - psql -c 'create database spendb;' -U postgres
  - cp settings.py_tmpl settings.py
  - nosetests --version
script:
  - nosetests
{'fraction_non_alphanumeric': 0.0958963282937365, 'fraction_numerical': 0.006911447084233261, 'mean_word_length': 3.0560420315236425, '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': '5230918', 'n_tokens_mistral': 789, 'n_tokens_neox': 743, 'n_words': 267}