<commit_before>sudo: false
language: c
matrix:
  include:
    - os: osx
      python: "2.6"
      env: TRAVIS_PYTHON_VERSION=2.6
    - os: osx
      python: "2.7"
      env: TRAVIS_PYTHON_VERSION=2.7
    - os: osx
      python: "3.5"
      env: TRAVIS_PYTHON_VERSION=3.5
    - os: osx
      python: "pypy"
      env: TRAVIS_PYTHON_VERSION=pypy
    - os: linux
      language: python
      python: "2.6"
    - os: linux
      language: python
      python: "2.7"
    - os: linux
      language: python
      python: "3.2"
    - os: linux
      language: python
      python: "3.3"
    - os: linux
      language: python
      python: "3.4"
    - os: linux
      language: python
      python: "3.5"
    - os: linux
      language: python
      python: "pypy"
    - os: linux
      language: python
      python: "pypy3"
install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
        if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then
            brew install pypy;
            /usr/local/bin/pip_pypy install flake8;
            /usr/local/bin/pip_pypy install https://github.com/wbond/asn1crypto/archive/master.zip;
            /usr/local/bin/pip_pypy install https://github.com/wbond/oscrypto/archive/master.zip;
            export PYTHON_BIN=/usr/local/bin/pypy;
        else
            if [ "$TRAVIS_PYTHON_VERSION" == "3.5" ]; then
                brew install python3;
                /usr/local/bin/pip3 install flake8;
                /usr/local/bin/pip3 install https://github.com/wbond/asn1crypto/archive/master.zip;
                /usr/local/bin/pip3 install https://github.com/wbond/oscrypto/archive/master.zip;
                export PYTHON_BIN=/usr/local/bin/python3;
            else
                if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then
                    curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | sudo /usr/bin/python2.7;
                    sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'flake8'])";
                    sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/asn1crypto/archive/master.zip'])";
                    sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/oscrypto/archive/master.zip'])";
                    export PYTHON_BIN=/usr/bin/python2.7;
                else
                    curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | sudo /usr/bin/python2.6;
                    sudo /usr/bin/python2.6 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'flake8'])";
                    sudo /usr/bin/python2.6 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/asn1crypto/archive/master.zip'])";
                    sudo /usr/bin/python2.6 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/oscrypto/archive/master.zip'])";
                    export PYTHON_BIN=/usr/bin/python2.6;
                fi
            fi
        fi
    else
        pip install --upgrade pip;
        pip install flake8;
        pip install https://github.com/wbond/asn1crypto/archive/master.zip;
        pip install https://github.com/wbond/oscrypto/archive/master.zip;
        export PYTHON_BIN=python;
    fi
script:
  - $PYTHON_BIN run.py ci<commit_msg>Fix Travis Python 3.2 tests<commit_after>sudo: false
language: c
matrix:
  include:
    - os: osx
      python: "2.6"
      env: TRAVIS_PYTHON_VERSION=2.6
    - os: osx
      python: "2.7"
      env: TRAVIS_PYTHON_VERSION=2.7
    - os: osx
      python: "3.5"
      env: TRAVIS_PYTHON_VERSION=3.5
    - os: osx
      python: "pypy"
      env: TRAVIS_PYTHON_VERSION=pypy
    - os: linux
      language: python
      python: "2.6"
    - os: linux
      language: python
      python: "2.7"
    - os: linux
      language: python
      python: "3.2"
    - os: linux
      language: python
      python: "3.3"
    - os: linux
      language: python
      python: "3.4"
    - os: linux
      language: python
      python: "3.5"
    - os: linux
      language: python
      python: "pypy"
    - os: linux
      language: python
      python: "pypy3"
install:
  - if [ "$TRAVIS_OS_NAME" == "osx" ]; then
        if [ "$TRAVIS_PYTHON_VERSION" == "pypy" ]; then
            brew install pypy;
            /usr/local/bin/pip_pypy install flake8;
            /usr/local/bin/pip_pypy install https://github.com/wbond/asn1crypto/archive/master.zip;
            /usr/local/bin/pip_pypy install https://github.com/wbond/oscrypto/archive/master.zip;
            export PYTHON_BIN=/usr/local/bin/pypy;
        else
            if [ "$TRAVIS_PYTHON_VERSION" == "3.5" ]; then
                brew install python3;
                /usr/local/bin/pip3 install flake8;
                /usr/local/bin/pip3 install https://github.com/wbond/asn1crypto/archive/master.zip;
                /usr/local/bin/pip3 install https://github.com/wbond/oscrypto/archive/master.zip;
                export PYTHON_BIN=/usr/local/bin/python3;
            else
                if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then
                    curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | sudo /usr/bin/python2.7;
                    sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'flake8'])";
                    sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/asn1crypto/archive/master.zip'])";
                    sudo /usr/bin/python2.7 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/oscrypto/archive/master.zip'])";
                    export PYTHON_BIN=/usr/bin/python2.7;
                else
                    curl --silent --show-error https://bootstrap.pypa.io/get-pip.py | sudo /usr/bin/python2.6;
                    sudo /usr/bin/python2.6 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'flake8'])";
                    sudo /usr/bin/python2.6 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/asn1crypto/archive/master.zip'])";
                    sudo /usr/bin/python2.6 -W ignore -c "import pip; pip.main(['--disable-pip-version-check', '--quiet', 'install', 'https://github.com/wbond/oscrypto/archive/master.zip'])";
                    export PYTHON_BIN=/usr/bin/python2.6;
                fi
            fi
        fi
    else
        python -c "import sys,pip; pip.main(['install', '--upgrade', 'pip' + ('==7.1.2' if sys.version_info[0:2] == (3, 2) else '')])";
        pip install flake8;
        pip install https://github.com/wbond/asn1crypto/archive/master.zip;
        pip install https://github.com/wbond/oscrypto/archive/master.zip;
        export PYTHON_BIN=python;
    fi
script:
  - $PYTHON_BIN run.py ci
{'fraction_non_alphanumeric': 0.15383544480022274, 'fraction_numerical': 0.019072810803285534, 'mean_word_length': 1.9167681688997158, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 24, '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': '6087688', 'n_tokens_mistral': 2568, 'n_tokens_neox': 2444, 'n_words': 476}