<commit_before>os: linux

language: python

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7
  - 3.8

env:
  - DJANGO="Django<1.12"    # Django 1.11.x LTS
  - DJANGO="Django<2.3"     # Django 2.2.x LTS
  - DJANGO="Django<3.1"     # Django 3.0.x

cache:
  directories:
    - $HOME/.cache/pip

matrix:
  exclude:
    # Django 1.11 doesn't support Python 3.8
    - env: DJANGO="Django<1.12"
      python: 3.8

    # Django 2.2 doesn't support Python 2.7 and 3.4
    - env: DJANGO="Django<2.3"
      python: 2.7
    - env: DJANGO="Django<2.3"
      python: 3.4

    # Django 3.0 doesn't support Python 2.7, 3.4 and 3.5
    - env: DJANGO="Django<3.1"
      python: 2.7
    - env: DJANGO="Django<3.1"
      python: 3.4
    - env: DJANGO="Django<3.1"
      python: 3.5

# Command to install dependencies
install:
  # Latest PIP uses wheel by default
  - pip install --upgrade pip
  - pip install $DJANGO
  - pip install -r requirements.txt
  - pip install -r requirements_test.txt
  - pip install coveralls

# Command to run tests
script: coverage run setup.py test

after_success:
  coveralls<commit_msg>Installing appropriate sorl-thumbnail for testing in all Django versions<commit_after>os: linux

language: python

python:
  - 2.7
  - 3.4
  - 3.5
  - 3.6
  - 3.7
  - 3.8

env:
  - DJANGO="Django<1.12"    # Django 1.11.x LTS
  - DJANGO="Django<2.3"     # Django 2.2.x LTS
  - DJANGO="Django<3.1"     # Django 3.0.x

cache:
  directories:
    - $HOME/.cache/pip

matrix:
  exclude:
    # Django 1.11 doesn't support Python 3.8
    - env: DJANGO="Django<1.12"
      python: 3.8

    # Django 2.2 doesn't support Python 2.7 and 3.4
    - env: DJANGO="Django<2.3"
      python: 2.7
    - env: DJANGO="Django<2.3"
      python: 3.4

    # Django 3.0 doesn't support Python 2.7, 3.4 and 3.5
    - env: DJANGO="Django<3.1"
      python: 2.7
    - env: DJANGO="Django<3.1"
      python: 3.4
    - env: DJANGO="Django<3.1"
      python: 3.5

# Command to install dependencies
install:
  # Latest PIP uses wheel by default
  - pip install --upgrade pip
  - pip install $DJANGO
  - pip install -r requirements.txt
  - pip install -r requirements_test.txt
  - pip install -e git://github.com/jazzband/sorl-thumbnail@4fe1854#egg=sorl-thumbnail
  - pip install coveralls

# Command to run tests
script: coverage run setup.py test

after_success:
  coveralls
{'fraction_non_alphanumeric': 0.12905982905982907, 'fraction_numerical': 0.06196581196581197, 'mean_word_length': 2.2787114845938374, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '283311', 'n_tokens_mistral': 1021, 'n_tokens_neox': 928, 'n_words': 241}