<commit_before>language: python
sudo: false
python:
    - 2.7
    - 3.4
virtualenv:
    system_site_packages: false
before_install:
    - export DISPLAY=:99.0
    - export CONDA=$HOME/miniconda
    - export PATH="$CONDA/bin:$PATH"
    # install conda, but only if it's not present already... Yay caching!
    - command -v conda > /dev/null || {
        wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh;
        bash miniconda.sh -b -f -p $CONDA; }
    - conda config --set always_yes yes --set changeps1 no
    - conda update -q conda
    - conda info -a

    - conda create -q -n mic-test python=$TRAVIS_PYTHON_VERSION numpy scipy pillow scikit-learn scikit-image toolz cytoolz pandas setuptools pip pymongo matplotlib six h5py
    - source activate mic-test

    - pip install pytest coverage pytest-cov sh
    - pip install coveralls

before_script:
    - sleep 15
    - mongo mydb_test --eval 'db.addUser("travis", "test");'

script:
    - python setup.py develop
    - py.test

after_success:
    - if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then coveralls; fi

before_cache:
# clean unused packages & installed files from conda cache
# This reduces cache rebuilds
# Copied from
# https://github.com/uwescience/shablona/blob/0246556f692fdeb65ba9354e94565e6181ff993c/.travis.yml#L47
- conda clean --tarballs --packages --index-cache
- rm -rf $HOME/miniconda/pkgs/cache
- xargs rm < installed_files.txt

cache:
    directories:
        - $HOME/miniconda
        - $HOME/.matplotlib

services:
    mongodb
<commit_msg>Test Python 3.5 instead of 3.4<commit_after>language: python
sudo: false
python:
    - 2.7
    - 3.5
virtualenv:
    system_site_packages: false
before_install:
    - export DISPLAY=:99.0
    - export CONDA=$HOME/miniconda
    - export PATH="$CONDA/bin:$PATH"
    # install conda, but only if it's not present already... Yay caching!
    - command -v conda > /dev/null || {
        wget http://repo.continuum.io/miniconda/Miniconda-3.7.0-Linux-x86_64.sh -O miniconda.sh;
        bash miniconda.sh -b -f -p $CONDA; }
    - conda config --set always_yes yes --set changeps1 no
    - conda update -q conda
    - conda info -a

    - conda create -q -n mic-test python=$TRAVIS_PYTHON_VERSION numpy scipy pillow scikit-learn scikit-image toolz cytoolz pandas setuptools pip pymongo matplotlib six h5py
    - source activate mic-test

    - pip install pytest coverage pytest-cov sh
    - pip install coveralls

before_script:
    - sleep 15
    - mongo mydb_test --eval 'db.addUser("travis", "test");'

script:
    - python setup.py develop
    - py.test

after_success:
    - if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then coveralls; fi

before_cache:
# clean unused packages & installed files from conda cache
# This reduces cache rebuilds
# Copied from
# https://github.com/uwescience/shablona/blob/0246556f692fdeb65ba9354e94565e6181ff993c/.travis.yml#L47
- conda clean --tarballs --packages --index-cache
- rm -rf $HOME/miniconda/pkgs/cache
- xargs rm < installed_files.txt

cache:
    directories:
        - $HOME/miniconda
        - $HOME/.matplotlib

services:
    mongodb

{'fraction_non_alphanumeric': 0.10738255033557047, 'fraction_numerical': 0.033237456056248005, 'mean_word_length': 2.845208845208845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6013056', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1103, 'n_words': 289}