<commit_before># build matrix consists of different versions of Sage on different platforms.
# the versions are obtained via tarball download since Sage is not a supported
# "language" in TravisCI
#
# choice of Sage version is determined via environment variables
#
env:
  global:
    - SAGE=${HOME}/SageMath/sage

matrix:
  include:
    - os: linux
      env:
        - SAGE_TARBALL=sage-8.0-Ubuntu_14.04-x86_64.tar.bz2
        - SAGE_SERVER=http://mirrors.mit.edu/sage/linux/64bit
      dist: trusty
    - os: osx
      env:
        - SAGE_TARBALL=sage-8.0-OSX_10.12.6-x86_64.tar.bz2
        - SAGE_SERVER=http://mirrors.mit.edu/sage/osx/intel
      osx_image: xcode8.3  # OSX 10.12


before_install:
  # download and extract Sage
  - cd ${HOME}
  - wget ${SAGE_SERVER}/${SAGE_TARBALL}
  - travis_wait tar xjf ${HOME}/${SAGE_TARBALL}

  # OpenSSL is missing for Sage on OSX but is required to use pip securely
  - |
    if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
      ${SAGE} -pip install --index-url=http://pypi.python.org/simple/ --trusted-host pypi.python.org concurrencytest
    fi

  - |
    if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      ${SAGE} -pip install concurrencytest
    fi

  - cd ${TRAVIS_BUILD_DIR}

install: ${SAGE} setup.py build_ext --inplace

script: ${SAGE} runtests.py -v -p 2

addons:
  apt:
    packages:
     - gfortran

notifications:
  email: false<commit_msg>Download packages manually<commit_after># build matrix consists of different versions of Sage on different platforms.
# the versions are obtained via tarball download since Sage is not a supported
# "language" in TravisCI
#
# choice of Sage version is determined via environment variables
#
env:
  global:
    - SAGE=${HOME}/SageMath/sage

matrix:
  include:
    - os: linux
      env:
        - SAGE_TARBALL=sage-8.0-Ubuntu_14.04-x86_64.tar.bz2
        - SAGE_SERVER=http://mirrors.mit.edu/sage/linux/64bit
      dist: trusty
    - os: osx
      env:
        - SAGE_TARBALL=sage-8.0-OSX_10.12.6-x86_64.tar.bz2
        - SAGE_SERVER=http://mirrors.mit.edu/sage/osx/intel
      osx_image: xcode8.3  # OSX 10.12


before_install:
  # download and extract Sage
  - cd ${HOME}
  - wget ${SAGE_SERVER}/${SAGE_TARBALL}
  - travis_wait tar xjf ${HOME}/${SAGE_TARBALL}

  # OpenSSL is missing for Sage on OSX but is required to use pip securely
  - |
    if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
      wget https://pypi.python.org/packages/ba/8a/8286de6d3aa9a3c4765cb3dd73515d91129f012a61e0ec8578c733ea2d27/concurrencytest-0.1.2.tar.gz#md5=773d9a8be83fc043a32a25b6665bf59b
      wget https://pypi.python.org/packages/87/74/a4d55da28d7bba6d6f49430f22a62afd8472cb24a63fa61daef80d3e821b/testtools-2.3.0-py2.py3-none-any.whl#md5=eb9ce65ad08afbc7a2bf1b1da9114086
      wget https://pypi.python.org/packages/75/00/f5829197ddfb9b8ff68b2995b5bb33519ec889282d45c27a7b98d2f40752/python_subunit-1.2.0-py2.py3-none-any.whl#md5=bb666fe045f8d3989e78c7cd90d6d394
      wget https://pypi.python.org/packages/0c/5d/b077dbf309993d52c1d71e6bf6fe443a8029ea215135ebbe0b1b10e7aefc/pbr-3.1.1-py2.py3-none-any.whl#md5=75a0f55856bfc9220af0d01244afec43
      wget https://pypi.python.org/packages/03/e9/e915af1f97914cd0bc021e125fd1bfd4106de614a275e4b6866dd9a209ac/extras-1.0.0-py2.py3-none-any.whl#md5=9a2a42996d242746bdad945d8b2617e5
      ${SAGE} -pip install concurrencytest
    fi

  - |
    if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
      ${SAGE} -pip install concurrencytest
    fi

  - cd ${TRAVIS_BUILD_DIR}

install: ${SAGE} setup.py build_ext --inplace

script: ${SAGE} runtests.py -v -p 2

addons:
  apt:
    packages:
     - gfortran

notifications:
  email: false
{'fraction_non_alphanumeric': 0.11682242990654206, 'fraction_numerical': 0.10610225398570643, 'mean_word_length': 3.321852731591449, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 5, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '701486', 'n_tokens_mistral': 1703, 'n_tokens_neox': 1514, 'n_words': 260}