<commit_before>language: python
services:
  - docker
sudo: required

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27-django111
    - python: 2.7
      env: TOXENV=quality

before_install:
  - docker-compose -f .travis/docker-compose-travis.yml up -d
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; pip install -r requirements/travis.txt"
script:
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; TOXENV=${TOXENV} tox"
after_success:
  - pip install -r requirements/travis.txt
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; coverage combine; coverage xml"
  - codecov
branches:
  only:
    - master<commit_msg>pip 10 and tox-battery don't work together<commit_after>language: python
services:
  - docker
sudo: required

matrix:
  include:
    - python: 2.7
      env: TOXENV=py27-django111
    - python: 2.7
      env: TOXENV=quality

before_install:
  - docker-compose -f .travis/docker-compose-travis.yml up -d
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; pip install -r requirements/travis.txt"
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; pip install --upgrade pip==9.0.3" # tox-battery doesn't work with pip 10
script:
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; TOXENV=${TOXENV} tox"
after_success:
  - pip install -r requirements/travis.txt
  - docker exec xqueue bash -c "source /edx/app/xqueue/venvs/xqueue/bin/activate; cd /edx/app/xqueue/xqueue/; coverage combine; coverage xml"
  - codecov
branches:
  only:
    - master
{'fraction_non_alphanumeric': 0.12774122807017543, 'fraction_numerical': 0.013706140350877192, 'mean_word_length': 3.284037558685446, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7073931', 'n_tokens_mistral': 723, 'n_tokens_neox': 684, 'n_words': 162}