<commit_before>#
# IMPORTANT.  OS X support is so experimental that you have to specifically
# request to have it enabled, on a per-repository basis.  See
# http://docs.travis-ci.com/user/multi-os/#Manual-intervention-required
#
# This file will still work, without OS X enabled, it just won't run those
# tests.
#
language: python

os:
    - linux
    # - osx

# As of early 2017, the default Linux environment is Ubuntu 12.04 (precise).
# This will soon change to 14.04 (trusty). To prepare, set it explicitly.
dist: trusty
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false

# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
    apt:
        packages:
            - graphviz
            - texlive-latex-extra
            - dvipng
python:
    - 3.5
    - 3.6
    # - 3.7
env:
    global:
        # The following versions are the 'default' for tests, unless
        # overidden underneath. They are defined here in order to save having
        # to repeat them for all configurations.
        - MAIN_CMD='python setup.py'
        - DESIUTIL_VERSION=1.9.11
    matrix:
        - SETUP_CMD='egg_info'
        - SETUP_CMD='bdist_egg'
        - SETUP_CMD='test'

matrix:
    # Don't wait for allowed failures.
    fast_finish: true

    # OS X support is still experimental, so don't penalize failures.
    allow_failures:
        - os: osx
        - os: linux
          python: 3.6
          env: MAIN_CMD='pycodestyle' SETUP_CMD='--count py/desidatamodel'

    include:
        # Check for sphinx doc build warnings.
        - os: linux
          python: 3.6
          env: SETUP_CMD='build_sphinx --warning-is-error'

        # Coverage test, pass the results to coveralls.
        - os: linux
          python: 3.6
          env: MAIN_CMD='coverage' SETUP_CMD='run --source=desidatamodel setup.py test'

        # Experimental OS X test.
        # As of March 2017, Python builds on OS X are not available.
        # See https://docs.travis-ci.com/user/languages/python/
        # - os: osx
        #   python: 3.5
        #   env: SETUP_CMD='test'

        # PEP 8 compliance.
        - os: linux
          python: 3.6
          env: MAIN_CMD='pycodestyle' SETUP_CMD='--count py/desidatamodel'

# before_install:
#     - curl ipinfo.io

install:
    - if [[ $MAIN_CMD == 'pycodestyle' ]]; then pip install pycodestyle; fi
    - if [[ $SETUP_CMD == build_sphinx* ]]; then pip install Sphinx; fi
    - if [[ $MAIN_CMD == 'coverage' ]]; then pip install coverage coveralls; fi
    - pip install git+https://github.com/desihub/desiutil.git@${DESIUTIL_VERSION}#egg=desiutil
    - if [[ $SETUP_CMD == 'test' || $MAIN_CMD == 'coverage' ]]; then pip install -r requirements.txt; fi

script:
    - $MAIN_CMD $SETUP_CMD

after_success:
    - if [[ $MAIN_CMD == 'coverage' ]]; then coveralls; fi
<commit_msg>pin sphinx version<commit_after>#
# IMPORTANT.  OS X support is so experimental that you have to specifically
# request to have it enabled, on a per-repository basis.  See
# http://docs.travis-ci.com/user/multi-os/#Manual-intervention-required
#
# This file will still work, without OS X enabled, it just won't run those
# tests.
#
language: python

os:
    - linux
    # - osx

# As of early 2017, the default Linux environment is Ubuntu 12.04 (precise).
# This will soon change to 14.04 (trusty). To prepare, set it explicitly.
dist: trusty
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false

# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
    apt:
        packages:
            - graphviz
            - texlive-latex-extra
            - dvipng
python:
    - 3.5
    - 3.6
    # - 3.7
env:
    global:
        # The following versions are the 'default' for tests, unless
        # overidden underneath. They are defined here in order to save having
        # to repeat them for all configurations.
        - MAIN_CMD='python setup.py'
        - DESIUTIL_VERSION=1.9.15
        - SPHINX_VERSION=1.8.5
    matrix:
        - SETUP_CMD='egg_info'
        - SETUP_CMD='bdist_egg'
        - SETUP_CMD='test'

matrix:
    # Don't wait for allowed failures.
    fast_finish: true

    # OS X support is still experimental, so don't penalize failures.
    allow_failures:
        - os: osx
        - os: linux
          python: 3.6
          env: MAIN_CMD='pycodestyle' SETUP_CMD='--count py/desidatamodel'

    include:
        # Check for sphinx doc build warnings.
        - os: linux
          python: 3.6
          env: SETUP_CMD='build_sphinx --warning-is-error'

        # Coverage test, pass the results to coveralls.
        - os: linux
          python: 3.6
          env: MAIN_CMD='coverage' SETUP_CMD='run --source=desidatamodel setup.py test'

        # Experimental OS X test.
        # As of March 2017, Python builds on OS X are not available.
        # See https://docs.travis-ci.com/user/languages/python/
        # - os: osx
        #   python: 3.5
        #   env: SETUP_CMD='test'

        # PEP 8 compliance.
        - os: linux
          python: 3.6
          env: MAIN_CMD='pycodestyle' SETUP_CMD='--count py/desidatamodel'

# before_install:
#     - curl ipinfo.io

install:
    - if [[ $MAIN_CMD == 'pycodestyle' ]]; then pip install pycodestyle; fi
    - if [[ $SETUP_CMD == build_sphinx* ]]; then pip install Sphinx; fi
    - if [[ $MAIN_CMD == 'coverage' ]]; then pip install coverage coveralls; fi
    - pip install git+https://github.com/desihub/desiutil.git@${DESIUTIL_VERSION}#egg=desiutil
    - if [[ $SETUP_CMD == 'test' || $MAIN_CMD == 'coverage' ]]; then pip install -r requirements.txt; fi

script:
    - $MAIN_CMD $SETUP_CMD

after_success:
    - if [[ $MAIN_CMD == 'coverage' ]]; then coveralls; fi

{'fraction_non_alphanumeric': 0.10535346602608099, 'fraction_numerical': 0.013212079615648593, 'mean_word_length': 2.3006795016987542, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '443628', 'n_tokens_mistral': 1970, 'n_tokens_neox': 1862, 'n_words': 589}