<commit_before># Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/

dist: trusty
sudo: false
language: node_js

addons:
  firefox: latest
  chrome: stable

matrix:
  include:
    # Node
    # - node_js: 4
    # - node_js: 5
    # - node_js: 6
    # - node_js: 7
    # - node_js: 8

    # Browsers
    - node_js: 8
      env: KARMA=true

    - node_js: 8
      env: KARMA=true SAUCE=true

  # Don't include SauceLabs tests in the TravisCI status badge, since SauceLabs has its own badge
  fast_finish: true
  allow_failures:
    - env: SAUCE=true

before_script:
  # Setup a virtual display for browser testing
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  # Always make sure the code passes linting rules
  - npm run lint

  # Build browser distributables before running Karma tests
  - '[[ $KARMA ]] && npm run build'

  # SauceLabs hangs when code coverage is enabled (not sure why), so just run Karma normally.
  # For all other environments, run tests + code coverage.
  - '[[ $SAUCE ]] && npm run karma || npm run cover'

after_success:
  # concatenate all code-coverage data into a single file
  - ls -R1 coverage/*/lcov.info
  - cat coverage/*/lcov.info > ./coverage/lcov.info

  # send code-coverage data to Codacy
  - cat ./coverage/lcov.info | node_modules/.bin/codacy-coverage -p .

  # send code-coverage data to Coveralls
  - cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js
<commit_msg>tweaking the Travis CI script<commit_after># Travis CI config
# http://docs.travis-ci.com/user/languages/javascript-with-nodejs/
# https://docs.travis-ci.com/user/customizing-the-build/
# https://docs.travis-ci.com/user/migrating-from-legacy/

dist: trusty
sudo: false
language: node_js

addons:
  firefox: latest
  chrome: stable

# The "env" key is needed for "allow_failures" to work, even if it's empty.
# https://docs.travis-ci.com/user/customizing-the-build#Matching-Jobs-with-allow_failures
env: null

matrix:
  include:
    # Node
    - node_js: 4
    - node_js: 5
    - node_js: 6
    - node_js: 7
    - node_js: 8

    # Browsers
    - node_js: 8
      env: KARMA=true

    - node_js: 8
      env: KARMA=true SAUCE=true

  # Don't include SauceLabs tests in the TravisCI status badge, since SauceLabs has its own badge
  fast_finish: true
  allow_failures:
      env: KARMA=true SAUCE=true

before_script:
  # Setup a virtual display for browser testing
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  # Always make sure the code passes linting rules
  - npm run lint

  # Build browser distributables before running Karma tests
  - '[[ $KARMA ]] && npm run build'

  # SauceLabs hangs when code coverage is enabled (not sure why), so just run Karma normally.
  # For all other environments, run tests + code coverage.
  - '[[ $SAUCE ]] && npm run karma || npm run cover'

after_success:
  # concatenate all code-coverage data into a single file
  - ls -R1 coverage/*/lcov.info
  - cat coverage/*/lcov.info > ./coverage/lcov.info

  # send code-coverage data to Codacy
  - cat ./coverage/lcov.info | node_modules/.bin/codacy-coverage -p .

  # send code-coverage data to Coveralls
  - cat ./coverage/lcov.info | node_modules/coveralls/bin/coveralls.js

{'fraction_non_alphanumeric': 0.1094306049822064, 'fraction_numerical': 0.006524317912218268, 'mean_word_length': 2.9822904368358913, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 5, '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': '2671505', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1184, 'n_words': 341}