<commit_before>language: python

python: "2.7"

before_install:
  - sudo apt-get -qq update
  - sudo apt-get install golang

install:
  - pip install .
  - pip install codecov
  - pip install coverage

before_script:
  # install node and npm tools
  - rm -rf ~/.nvm
  - git clone https://github.com/creationix/nvm.git ~/.nvm
  - (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
  - source ~/.nvm/nvm.sh
  - nvm install 5
  - npm install

  # Use ruby2
  - rvm install 2.0.0
  - rvm use 2.0.0
  - bundle install --path ./bundle

  # Install golint
  - go get -u github.com/golang/lint/golint

  # Sample config file
  - cp settings.sample.py settings.py

env:
  - LINTREVIEW_SETTINGS="./settings.py" GOPATH="./gocode"

script:
  - nosetests --with-coverage --cover-package lintreview

after_success:
  - codecov

notifications:
  email:
    on_failure: change<commit_msg>Try absolute gopath<commit_after>language: python

python: "2.7"

before_install:
  - sudo apt-get -qq update
  - sudo apt-get install golang

install:
  - pip install .
  - pip install codecov
  - pip install coverage

before_script:
  # install node and npm tools
  - rm -rf ~/.nvm
  - git clone https://github.com/creationix/nvm.git ~/.nvm
  - (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`)
  - source ~/.nvm/nvm.sh
  - nvm install 5
  - npm install

  # Use ruby2
  - rvm install 2.0.0
  - rvm use 2.0.0
  - bundle install --path ./bundle

  # Install golint
  - go get -u github.com/golang/lint/golint

  # Sample config file
  - cp settings.sample.py settings.py

env:
  - LINTREVIEW_SETTINGS="./settings.py" GOPATH="${TRAVIS_BUILD_DIR}/gocode"

script:
  - nosetests --with-coverage --cover-package lintreview

after_success:
  - codecov

notifications:
  email:
    on_failure: change
{'fraction_non_alphanumeric': 0.12416107382550336, 'fraction_numerical': 0.012304250559284116, 'mean_word_length': 2.6068548387096775, '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': '1585733', 'n_tokens_mistral': 685, 'n_tokens_neox': 648, 'n_words': 177}