<commit_before>machine:
  node:
    version: 4.3.2

dependencies:
  pre:
    - sudo apt-get update && sudo apt-get install jq
    - pip install awscli
    - aws configure set preview.cloudfront true

test:
  override:
    - echo 'no tests!'

deployment:
  production:
    branch: production
    commands:
      - ./bin/deploy prod
      - aws s3 sync static/ s3://callsforchange.com/
      - aws --region us-east-1 cloudfront create-invalidation --distribution-id E3VA3C4R5I28R2 --paths '/*'
  staging:
    branch: staging
    commands:
      - ./bin/deploy dev
      - aws s3 sync static/ s3://www.52calls-52weeks.com/
      - aws --region us-west-2 cloudfront create-invalidation --distribution-id E1YG4R2UNDSCRT --paths '/*'<commit_msg>Swap staging and prod invalidations to correct place<commit_after>machine:
  node:
    version: 4.3.2

dependencies:
  pre:
    - sudo apt-get update && sudo apt-get install jq
    - pip install awscli
    - aws configure set preview.cloudfront true

test:
  override:
    - echo 'no tests!'

deployment:
  production:
    branch: production
    commands:
      - ./bin/deploy prod
      - aws s3 sync static/ s3://callsforchange.com/
      - aws --region us-west-2 cloudfront create-invalidation --distribution-id E1YG4R2UNDSCRT --paths '/*'
  staging:
    branch: staging
    commands:
      - ./bin/deploy dev
      - aws s3 sync static/ s3://www.52calls-52weeks.com/
      - aws --region us-east-1 cloudfront create-invalidation --distribution-id E3VA3C4R5I28R2 --paths '/*'
{'fraction_non_alphanumeric': 0.11206328279499012, 'fraction_numerical': 0.03032300593276203, 'mean_word_length': 2.434389140271493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '5229795', 'n_tokens_mistral': 523, 'n_tokens_neox': 511, 'n_words': 137}