<commit_before>language: python
python:
  - "2.7"
  - "3.6"

branches:
  only:
  - master
  - dev

env:
  matrix:
    - ES_VERSION=1.7.5
    - ES_VERSION=6.2.2

  global:
    - PYTHONPATH=.:tests:vendor

install:
  - "export ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
  - "wget ${ES_DOWNLOAD_URL}"
  - "tar -xzf elasticsearch-${ES_VERSION}.tar.gz"
  - "sudo cp -f tests/travis/elasticsearch.yml ./elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
  - "./elasticsearch-${ES_VERSION}/bin/elasticsearch &"
  - "pip install -r requirements.txt"
  - "wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200"

script:
  - "python -m unittest discover tests --failfast"<commit_msg>try this<commit_after>language: python
python:
  - "2.7"
  - "3.6"

branches:
  only:
  - master
  - dev

env:
  matrix:
    - ES_VERSION=1.7.5
    - ES_VERSION=6.2.2

  global:
    - PYTHONPATH=.:tests:vendor

install:
  - "export ES_DOWNLOAD_URL=https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz"
  - "wget ${ES_DOWNLOAD_URL}"
  - "tar -xzf elasticsearch-${ES_VERSION}.tar.gz"
  - "sudo cp -f tests/travis/elasticsearch.yml ./elasticsearch-${ES_VERSION}/config/elasticsearch.yml"
  - "./elasticsearch-${ES_VERSION}/bin/elasticsearch &"
  - "pip install -r requirements.txt"
  - "wget -q --waitretry=1 --retry-connrefused -T 10 -O - http://127.0.0.1:9200"

script:
  - "python -m unittest discover tests --failfast"
{'fraction_non_alphanumeric': 0.16886543535620052, 'fraction_numerical': 0.030343007915567283, 'mean_word_length': 3.1675824175824174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '442667', 'n_tokens_mistral': 598, 'n_tokens_neox': 592, 'n_words': 96}