<commit_before>machine:
  node:
    version: 0.10.28
  python:
    version: 3.4.1
  services:
    - postgresql
  environment:
    TEST_DATABASE_URL: postgres://ubuntu:@127.0.0.1:5432/circle_test

dependencies:
  override:
    - pip install -r requirements-dev.txt
    - npm install
    - bower install

test:
  override:
    - isort --recursive --diff kuulemma tests && isort --recursive --check-only kuulemma tests
    - flake8 .
    - ./node_modules/.bin/gulp jshint
    - py.test tests
    - ./node_modules/.bin/gulp test-karma
    - ./node_modules/.bin/gulp test-protractor<commit_msg>Deploy automatically on successful CI build<commit_after>machine:
  node:
    version: 0.10.28
  python:
    version: 3.4.1
  services:
    - postgresql
  environment:
    TEST_DATABASE_URL: postgres://ubuntu:@127.0.0.1:5432/circle_test

dependencies:
  override:
    - pip install -r requirements-dev.txt
    - npm install
    - bower install

test:
  override:
    - isort --recursive --diff kuulemma tests && isort --recursive --check-only kuulemma tests
    - flake8 .
    - ./node_modules/.bin/gulp jshint
    - py.test tests
    - ./node_modules/.bin/gulp test-karma
    - ./node_modules/.bin/gulp test-protractor

deployment:
  production:
    branch: master
    commands:
      - git remote add production dokku@192.168.127.12:kuulemispalvelu.hel.fi
      - git push production master
{'fraction_non_alphanumeric': 0.11368573497465605, 'fraction_numerical': 0.03548153511947864, 'mean_word_length': 2.5076142131979697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 3, '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': '1135611', 'n_tokens_mistral': 519, 'n_tokens_neox': 477, 'n_words': 104}