<commit_before>language: python

python:
  - 2.7
  - 3.4

sudo: false

install:
  - if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
      wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
    else
      wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
    fi
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - conda config --set always_yes yes
  - conda update -q conda
  - conda info -a
  - conda install numpy pytest
  - python setup.py install
  # Build and Upload help
  - pip install -r .ci/requirements.txt

script:
  - export PATH="$(pwd)/bin:$PATH"
  - echo $PATH
  # Download test Data
  - mkdir -p $HOME/data
  - pushd $HOME/data
  - wget http://mattmahoney.net/dc/text8.zip -O text8.zip
  - unzip text8.zip
  - head -c 1000000 text8 > text<commit_msg>Add OS X<commit_after>language: python

python:
  - 2.7
  - 3.4

os:
  - linux
  - osx

sudo: false

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
        wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
      else
        wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
      fi
    else
      if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
        wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh;
      else
        wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
      fi
    fi
  - bash miniconda.sh -b -p $HOME/miniconda
  - export PATH="$HOME/miniconda/bin:$PATH"
  - conda config --set always_yes yes
  - conda update -q conda
  - conda info -a
  - conda install numpy pytest
  - python setup.py install
  # Build and Upload help
  - pip install -r .ci/requirements.txt

script:
  - export PATH="$(pwd)/bin:$PATH"
  - echo $PATH
  # Download test Data
  - mkdir -p $HOME/data
  - pushd $HOME/data
  - wget http://mattmahoney.net/dc/text8.zip -O text8.zip
  - unzip text8.zip
  - head -c 1000000 text8 > text
{'fraction_non_alphanumeric': 0.1383177570093458, 'fraction_numerical': 0.029439252336448597, 'mean_word_length': 2.544701986754967, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5641377', 'n_tokens_mistral': 896, 'n_tokens_neox': 848, 'n_words': 184}