<commit_before>language: python
python:
  # We don't actually use the Travis Python, but this keeps it organized.
  - "3.5"
install:
  - sudo apt-get update
  # We do this conditionally because it saves us some downloading if the
  # version is the same.
  - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

  # Replace dep1 dep2 ... with your dependencies
  - conda create -n test-environment python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib scikit-learn keras tensorflow
  - source activate test-environment
  - python setup.py install

script:
  - pytest<commit_msg>try another change to .travis.yml<commit_after># adapted in part from https://github.com/soft-matter/trackpy/blob/master/.travis.yml

language: python

matrix:
  include:
    - python: "3.5"
      env: DEPS="numpy scipy matplotlib scikit-learn keras tensorflow pyyaml"

before_install:
  - sudo apt-get update
  # We do this conditionally because it saves us some downloading if the
  # version is the same.
  - wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - hash -r
  - conda config --set always_yes yes --set changeps1 no
  - conda update -q conda
  # Useful for debugging any issues with conda
  - conda info -a

install:
  - conda config --append channels conda-forge
  - conda create -n testenv --yes $DEPS pip pytest setuptools python=$TRAVIS_PYTHON_VERSION
  - source activate testenv
  - python setup.py install

script:
  - pytest
{'fraction_non_alphanumeric': 0.09397066811515481, 'fraction_numerical': 0.00977729494839761, 'mean_word_length': 3.2442396313364057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, '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': '165552', 'n_tokens_mistral': 640, 'n_tokens_neox': 618, 'n_words': 198}