<commit_before># Config file for automatic testing at travis-ci.org

language: python

dist: trusty

sudo: required

addons:
  chrome: stable

services:
  - postgresql

cache:
  yarn: true
  directories:
    - node_modules
    - $HOME/.cache/pip
    - $HOME/.cache/pre-commit

matrix:
  include:
    - python: "3.6"
      env:
        - TOX_ENV=startup_provision_shutdown_without_zombies
      script:
       - tox -e $TOX_ENV
    - python: "2.7"
      env:
        - TOX_ENV=pythonlint2
      script:
       - tox -e $TOX_ENV
    - python: "3.6"
      env:
        - TOX_ENV=lint
    - python: "2.7"
      env:
        - TOX_ENV=licenses
      script:
       - tox -e $TOX_ENV
    - python: "2.7"
      env:
        - TOX_ENV=py2.7
      script:
       - tox -e $TOX_ENV
    - python: "3.5"
      env:
        - TOX_ENV=docs
      script:
       - tox -e $TOX_ENV
    - python: "3.4"
      env:
        - TOX_ENV=py3.4
    - python: "3.5"
      env:
        - TOX_ENV=py3.5
    - python: "3.6"
      env:
        - TOX_ENV=py3.6
    - python: 3.7
      dist: xenial
      sudo: true
      env:
        - TOX_ENV=py3.7
    - python: "2.7"
      env:
        - TOX_ENV=node10.x
      script:
       - tox -e $TOX_ENV
    - python: "3.5"
      env:
        - TOX_ENV=postgres
    - python: "2.7"
      env:
        - TOX_ENV=nocext
      script:
       - tox -e $TOX_ENV
    - python: "2.7"
      env:
        - TOX_ENV=cext
      script:
       - tox -e $TOX_ENV


before_install:
  - git fetch
  - git describe --tags --always
  # Required until this is fixed: https://github.com/travis-ci/travis-ci/issues/9112
  - sudo apt-get update --option Acquire::Retries=100 --option Acquire::http::Timeout="60"
  - pip install -U pip codecov virtualenv==16.7.9 tox
  - . $HOME/.nvm/nvm.sh
  - nvm install 10
  - nvm use 10
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - psql -c 'create database eco_test1;' -U postgres
  - psql -c 'create database eco_test2;' -U postgres
  - psql -c 'create database eco_test3;' -U postgres
<commit_msg>Fix `BlockingIOError: [Errno 11] write could not complete without blocking`<commit_after># Config file for automatic testing at travis-ci.org

language: python

dist: trusty

sudo: required

addons:
  chrome: stable

services:
  - postgresql

cache:
  yarn: true
  directories:
    - node_modules
    - $HOME/.cache/pip
    - $HOME/.cache/pre-commit

matrix:
  include:
    - python: "3.6"
      env:
        - TOX_ENV=startup_provision_shutdown_without_zombies
      script:
       - tox -e $TOX_ENV
    - python: "2.7"
      env:
        - TOX_ENV=pythonlint2
      script:
       - tox -e $TOX_ENV
    - python: "3.6"
      env:
        - TOX_ENV=lint
    - python: "2.7"
      env:
        - TOX_ENV=licenses
      script:
       - tox -e $TOX_ENV
    - python: "2.7"
      env:
        - TOX_ENV=py2.7
      script:
       - tox -e $TOX_ENV
    - python: "3.5"
      env:
        - TOX_ENV=docs
      script:
       - tox -e $TOX_ENV
    - python: "3.4"
      env:
        - TOX_ENV=py3.4
    - python: "3.5"
      env:
        - TOX_ENV=py3.5
    - python: "3.6"
      env:
        - TOX_ENV=py3.6
    - python: 3.7
      dist: xenial
      sudo: true
      env:
        - TOX_ENV=py3.7
    - python: "2.7"
      env:
        - TOX_ENV=node10.x
      script:
       - tox -e $TOX_ENV
    - python: "3.5"
      env:
        - TOX_ENV=postgres
    - python: "2.7"
      env:
        - TOX_ENV=nocext
      script:
       - tox -e $TOX_ENV
    - python: "2.7"
      env:
        - TOX_ENV=cext
      script:
       - tox -e $TOX_ENV


before_install:
  # Can likely be removed once we stop using Trusty
  # https://github.com/travis-ci/travis-ci/issues/8920
  - python -c "import fcntl; fcntl.fcntl(1, fcntl.F_SETFL, 0)"
  - git fetch
  - git describe --tags --always
  # Required until this is fixed: https://github.com/travis-ci/travis-ci/issues/9112
  - sudo apt-get update --option Acquire::Retries=100 --option Acquire::http::Timeout="60"
  - pip install -U pip codecov virtualenv==16.7.9 tox
  - . $HOME/.nvm/nvm.sh
  - nvm install 10
  - nvm use 10
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

before_script:
  - psql -c 'create database travis_ci_test;' -U postgres
  - psql -c 'create database eco_test1;' -U postgres
  - psql -c 'create database eco_test2;' -U postgres
  - psql -c 'create database eco_test3;' -U postgres

{'fraction_non_alphanumeric': 0.12698412698412698, 'fraction_numerical': 0.028659611992945325, 'mean_word_length': 1.7216556688662268, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2787672', 'n_tokens_mistral': 1847, 'n_tokens_neox': 1778, 'n_words': 406}