<commit_before># https://github.com/sympy/sympy/blob/master/.travis.yml
# https://github.com/twisted/klein/blob/master/.travis.yml
# https://github.com/codecov/example-python
# https://docs.travis-ci.com

language: python

dist: xenial

matrix:
  include:
    - python: 3.5
    - python: 3.6
      env:
        DEPLOY="true"
    - python: 3.7
      dist: xenial
      sudo: true

before_install:
  - pip install --upgrade pip setuptools wheel
  - pip install pytest-cov codecov
  # black requires Python 3.6+
  - python3.6 -m pip install black

install:
  - pip install .

script:
  - python3.6 black --check --diff .
  - set -e
  - |
    if [ -z ${DEPLOY+x} ]; then  # https://stackoverflow.com/a/13864829/4727627
      curl -sSf -o resources.tar.gz https://s3.amazonaws.com/lineage-public/resources.tar.gz
      if [ -f resources.tar.gz ]; then
        tar -xzf resources.tar.gz
        rm resources.tar.gz
      fi
    fi
  - pytest --cov=lineage tests

after_success:
  - codecov

# automatically package and deploy to PyPI
# https://www.appneta.com/blog/pypi-deployment-with-travis-ci/
deploy:
  # production PyPI
  - provider: pypi
    user: "apriha"
    password:<commit_msg>Forget hacks, use snaps<commit_after># https://github.com/sympy/sympy/blob/master/.travis.yml
# https://github.com/twisted/klein/blob/master/.travis.yml
# https://github.com/codecov/example-python
# https://docs.travis-ci.com

language: python

dist: xenial

addons:
  snaps:
  - black

matrix:
  include:
    - python: 3.5
    - python: 3.6
      env:
        DEPLOY="true"
    - python: 3.7
      dist: xenial
      sudo: true

before_install:
  - pip install --upgrade pip setuptools wheel
  - pip install pytest-cov codecov

install:
  - pip install .

script:
  - black --check --diff .
  - set -e
  - |
    if [ -z ${DEPLOY+x} ]; then  # https://stackoverflow.com/a/13864829/4727627
      curl -sSf -o resources.tar.gz https://s3.amazonaws.com/lineage-public/resources.tar.gz
      if [ -f resources.tar.gz ]; then
        tar -xzf resources.tar.gz
        rm resources.tar.gz
      fi
    fi
  - pytest --cov=lineage tests

after_success:
  - codecov

# automatically package and deploy to PyPI
# https://www.appneta.com/blog/pypi-deployment-with-travis-ci/
deploy:
  # production PyPI
  - provider: pypi
    user: "apriha"
    password:
{'fraction_non_alphanumeric': 0.13370593293207222, 'fraction_numerical': 0.021496130696474634, 'mean_word_length': 2.397080291970803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, 'lorem ipsum': 0, 'www.': 2, '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': '702014', 'n_tokens_mistral': 891, 'n_tokens_neox': 853, 'n_words': 183}