<commit_before>dist: focal  # https://docs.travis-ci.com/user/reference/linux
language: python

os: osx
osx_image: xcode12.2  # https://docs.travis-ci.com/user/reference/osx/#macos-version

jobs:
  include:
    - os: linux
      python: 2.7
    - os: linux
      python: 3.5
    - os: linux
      python: 3.6
    - os: linux
      python: 3.7
    - os: linux
      python: 3.8
    - os: linux
      python: 3.9
    - os: osx
      language: shell
      env: PYTHON=2.7.18
    - os: osx
      language: shell
      env: PYTHON=3.5.10
    - os: osx
      language: shell
      env: PYTHON=3.6.12
    - os: osx
      language: shell
      env: PYTHON=3.7.9
    - os: osx
      language: shell
      env: PYTHON=3.8.7
    - os: osx
      language: shell
      env: PYTHON=3.9.1

before_install:
  - |
    if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      brew update
      brew outdated pyenv || brew upgrade pyenv
      pyenv --version
      echo "Available Python versions:"
      pyenv install --list | grep "^\s*\d"
      pyenv install $PYTHON
      export PYENV_VERSION=$PYTHON
      export PATH="/Users/travis/.pyenv/versions/$PYTHON/bin:$PATH"
    fi

install:
  - python --version
  - python -m pip install --upgrade pip<commit_msg>update Python versions for macOS on travis<commit_after>dist: focal  # https://docs.travis-ci.com/user/reference/linux
language: python

os: osx
osx_image: xcode12.2  # https://docs.travis-ci.com/user/reference/osx/#macos-version

jobs:
  include:
    - os: linux
      python: 2.7
    - os: linux
      python: 3.5
    - os: linux
      python: 3.6
    - os: linux
      python: 3.7
    - os: linux
      python: 3.8
    - os: linux
      python: 3.9
    - os: osx
      language: shell
      env: PYTHON=2.7.18
    - os: osx
      language: shell
      env: PYTHON=3.5.10
    - os: osx
      language: shell
      env: PYTHON=3.6.13
    - os: osx
      language: shell
      env: PYTHON=3.7.10
    - os: osx
      language: shell
      env: PYTHON=3.8.9
    - os: osx
      language: shell
      env: PYTHON=3.9.4

before_install:
  - |
    if [ "$TRAVIS_OS_NAME" == "osx" ]; then
      brew update
      brew outdated pyenv || brew upgrade pyenv
      pyenv --version
      echo "Available Python versions:"
      pyenv install --list | grep "^\s*\d"
      pyenv install $PYTHON
      export PYENV_VERSION=$PYTHON
      export PATH="/Users/travis/.pyenv/versions/$PYTHON/bin:$PATH"
    fi

install:
  - python --version
  - python -m pip install --upgrade pip
{'fraction_non_alphanumeric': 0.1218925421010425, 'fraction_numerical': 0.029270248596631916, 'mean_word_length': 1.8711162255466054, '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': '5340088', 'n_tokens_mistral': 972, 'n_tokens_neox': 930, 'n_words': 231}