<commit_before>machine:
  post:
    - pyenv global 2.7.9 3.5.0
  hosts:
    database: 127.0.0.1

database:
  override:
    - createdb dbt
    - echo "CREATE ROLE root WITH UNENCRYPTED PASSWORD 'password';" | psql -U postgres
    - echo "ALTER ROLE root WITH LOGIN;" | psql -U postgres
    - echo "GRANT SELECT, UPDATE, INSERT ON ALL TABLES IN SCHEMA dbt.* TO root;" | psql -U postgres
    - echo "GRANT CREATE, CONNECT ON DATABASE dbt TO root;" | psql -U postgres


dependencies:
  pre:
    - sudo pip install --upgrade pip setuptools || true
    - pip install --upgrade tox tox-pyenv
  override:
    - pyenv local 2.7.9 3.5.0

test:
  override:
    - sudo -i /bin/bash -c 'cd /home/ubuntu/dbt && tox'
  post:
    - mv htmlcov $CIRCLE_ARTIFACTS/<commit_msg>don't issue circle commands as sudo<commit_after>machine:
  post:
    - pyenv global 2.7.9 3.5.0
  hosts:
    database: 127.0.0.1

database:
  override:
    - createdb dbt
    - echo "CREATE ROLE root WITH UNENCRYPTED PASSWORD 'password';" | psql -U postgres
    - echo "ALTER ROLE root WITH LOGIN;" | psql -U postgres
    - echo "GRANT SELECT, UPDATE, INSERT ON ALL TABLES IN SCHEMA dbt.* TO root;" | psql -U postgres
    - echo "GRANT CREATE, CONNECT ON DATABASE dbt TO root;" | psql -U postgres


dependencies:
  pre:
    - pip install --upgrade pip setuptools || true
    - pip install --upgrade tox tox-pyenv
  override:
    - pyenv local 2.7.9 3.5.0

test:
  override:
    - /bin/bash -c 'cd /home/ubuntu/dbt && tox'
  post:
    - mv htmlcov $CIRCLE_ARTIFACTS/
{'fraction_non_alphanumeric': 0.1103086014445174, 'fraction_numerical': 0.023637557452396585, 'mean_word_length': 2.5277777777777777, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2033131', 'n_tokens_mistral': 621, 'n_tokens_neox': 556, 'n_words': 187}