<commit_before>###
### .travis.yml
###

# these are executed in order.  each must pass for the next to be run
stages:
  - smoke # this ensures a "user" install works properly
  - precache # warm up cache for default Node.js version
  - lint # lint code and docs
  - test # all tests

# defaults
language: node_js
node_js: '14'
addons:
  apt:
    packages:
      # Growl
      - libnotify-bin
# `nvm install` happens before the cache is restored, which means
# we must install our own npm elsewhere (`~/npm`)
before_install: |
  [[ ! -x ~/npm/node_modules/.bin/npm ]] && {
    # caching feature creates `~/npm` for us
    cd ~/npm && npm install npm
    cd -
  } || true
  # avoids bugs around https://github.com/travis-ci/travis-ci/issues/5092
  export PATH=~/npm/node_modules/.bin:$PATH
# this avoids compilation in most cases (where we don't need it)
install: npm ci --ignore-scripts
cache:
  directories:
    - ~/.npm # cache npm's cache
    - ~/npm # cache latest npm

jobs:
  include:
    - script: COVERAGE=1 npm start test.node
      after_success: npm start coveralls
      name: 'Latest Node.js (with coverage)'
    - script: MOCHA_PARALLEL=0 npm start test.node.unit
      name: 'Latest Node.js (unit tests in serial mode)'

    - &node
      script: npm start test.node
      node_js: '12'
      name: 'Node.js v12'

    - <<: *node
      node_js: '10'
      name: 'Node.js v10'

    - script: npm start test.bundle test.browser
      name: 'Browser'
      node_js: 12
      install: npm ci # we need the native modules here
      addons:
        artifacts:
          paths:
            - .karma/
            - ./mocha.js<commit_msg>Remove serial travis job<commit_after>###
### .travis.yml
###

# these are executed in order.  each must pass for the next to be run
stages:
  - smoke # this ensures a "user" install works properly
  - precache # warm up cache for default Node.js version
  - lint # lint code and docs
  - test # all tests

# defaults
language: node_js
node_js: '14'
addons:
  apt:
    packages:
      # Growl
      - libnotify-bin
# `nvm install` happens before the cache is restored, which means
# we must install our own npm elsewhere (`~/npm`)
before_install: |
  [[ ! -x ~/npm/node_modules/.bin/npm ]] && {
    # caching feature creates `~/npm` for us
    cd ~/npm && npm install npm
    cd -
  } || true
  # avoids bugs around https://github.com/travis-ci/travis-ci/issues/5092
  export PATH=~/npm/node_modules/.bin:$PATH
# this avoids compilation in most cases (where we don't need it)
install: npm ci --ignore-scripts
cache:
  directories:
    - ~/.npm # cache npm's cache
    - ~/npm # cache latest npm

jobs:
  include:
    - script: COVERAGE=1 npm start test.node
      after_success: npm start coveralls
      name: 'Latest Node.js (with coverage)'

    - &node
      script: npm start test.node
      node_js: '12'
      name: 'Node.js v12'

    - <<: *node
      node_js: '10'
      name: 'Node.js v10'

    - script: npm start test.bundle test.browser
      name: 'Browser'
      node_js: 12
      install: npm ci # we need the native modules here
      addons:
        artifacts:
          paths:
            - .karma/
            - ./mocha.js
{'fraction_non_alphanumeric': 0.113308223477715, 'fraction_numerical': 0.01098556183301946, 'mean_word_length': 2.3547368421052632, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5745202', 'n_tokens_mistral': 1115, 'n_tokens_neox': 1026, 'n_words': 357}