<commit_before>## Customize the test machine
machine:
  python:
    version: 2.7.6
  services:
    - docker

database:
  post:
    - psql -c 'CREATE DATABASE avipost_ci;'
    - psql -c "CREATE EXTENSION postgis;" -d avipost_ci

## Customize test commands
test:
  pre:
    - docker build -t avipost .
    - docker run --net="host" avipost python avipost/manage.py migrate --settings=avipost.settings.ci
    # - docker run --name=api -p 3001:80 -d avipost
  override:
    - docker run --net="host" avipost python avipost/manage.py test --settings=avipost.settings.ci<commit_msg>add test coverage<commit_after>## Customize the test machine
machine:
  python:
    version: 2.7.6
  services:
    - docker

database:
  post:
    - psql -c 'CREATE DATABASE avipost_ci;'
    - psql -c "CREATE EXTENSION postgis;" -d avipost_ci

## Customize test commands
test:
  pre:
    - docker build -t avipost .
    - docker run --net="host" avipost python avipost/manage.py migrate --settings=avipost.settings.ci
    # - docker run --name=api -p 3001:80 -d avipost
  override:
    - docker run --net="host" avipost coverage run --source='.' avipost/manage.py test --settings=avipost.settings.ci
  post:
    coveralls
{'fraction_non_alphanumeric': 0.11779448621553884, 'fraction_numerical': 0.015037593984962405, 'mean_word_length': 2.915032679738562, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1108794', 'n_tokens_mistral': 450, 'n_tokens_neox': 421, 'n_words': 121}