<commit_before>git:
  depth: 3
sudo: false
language: node_js
cache:
  yarn: true
  directories:
    - node_modules
node_js:
- '7'
- '6'
- '4'
env:
  global:
    - BABEL_ENV=test
  matrix:
    - PKG_CMD="npm"
    - PKG_CMD="yarn"
before_install:
  - nvm use $TRAVIS_NODE_VERSION
  - npm set loglevel error
  - npm set progress false
  - 'if [ $PKG_CMD = "yarn" ]; then curl -o- -L https://yarnpkg.com/install.sh | bash && PATH=$HOME/.yarn/bin:$PATH ; fi'
install:
  - $PKG_CMD install
script:
  - 'if [ -n "${LINT-}" ]; then $PKG_CMD run lint ; fi'
  - 'if [ -n "${DATA_CHECK-}" ]; then $PKG_CMD run build-data -- --check ; fi'
  - 'if [ -n "${SMOKE_TEST-}" ]; then node scripts/smoke-test.js ; fi'
  - 'if [ -z "${LINT-}" ] && [ -z "${DATA_CHECK-}" ] && [ -z "${SMOKE_TEST-}" ]; then $PKG_CMD run test-ci ; fi'
matrix:
  fast_finish: true
  include:
    - node_js: "node"
      env: LINT=true PKG_CMD="npm"
    - node_js: "node"
      env: DATA_CHECK=true PKG_CMD="npm"
    - node_js: "node"
      env: SMOKE_TEST=true PKG_CMD="npm"

after_success: 'if [ -z "${LINT-}" ] && [ -z "${DATA_CHECK-}" ] && [ -z "${SMOKE_TEST-}" ]; then npm run coverage-ci ; fi'
<commit_msg>target node 8<commit_after>git:
  depth: 3
sudo: false
language: node_js
cache:
  yarn: true
  directories:
    - node_modules
node_js:
- '8'
- '6'
- '4'
env:
  global:
    - BABEL_ENV=test
  matrix:
    - PKG_CMD="npm"
    - PKG_CMD="yarn"
before_install:
  - nvm use $TRAVIS_NODE_VERSION
  - npm set loglevel error
  - npm set progress false
  - 'if [ $PKG_CMD = "yarn" ]; then curl -o- -L https://yarnpkg.com/install.sh | bash && PATH=$HOME/.yarn/bin:$PATH ; fi'
install:
  - $PKG_CMD install
script:
  - 'if [ -n "${LINT-}" ]; then $PKG_CMD run lint ; fi'
  - 'if [ -n "${DATA_CHECK-}" ]; then $PKG_CMD run build-data -- --check ; fi'
  - 'if [ -n "${SMOKE_TEST-}" ]; then node scripts/smoke-test.js ; fi'
  - 'if [ -z "${LINT-}" ] && [ -z "${DATA_CHECK-}" ] && [ -z "${SMOKE_TEST-}" ]; then $PKG_CMD run test-ci ; fi'
matrix:
  fast_finish: true
  include:
    - node_js: "node"
      env: LINT=true PKG_CMD="npm"
    - node_js: "node"
      env: DATA_CHECK=true PKG_CMD="npm"
    - node_js: "node"
      env: SMOKE_TEST=true PKG_CMD="npm"

after_success: 'if [ -z "${LINT-}" ] && [ -z "${DATA_CHECK-}" ] && [ -z "${SMOKE_TEST-}" ]; then npm run coverage-ci ; fi'

{'fraction_non_alphanumeric': 0.19674935842600513, 'fraction_numerical': 0.003849443969204448, 'mean_word_length': 2.7909238249594814, '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': '239358', 'n_tokens_mistral': 1006, 'n_tokens_neox': 980, 'n_words': 236}