<commit_before>sudo: required
dist: trusty
language: node_js
branches:
  only:
  - a-new-hope-episode-iv
node_js:
- 8.4.0
python:
- '3.5'
cache:
- pip
- yarn
install:
- pip install --user awscli
before_script:
- yarn
script: yarn run build
deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: sendgrid-knowledge-center-staging
  skip_cleanup: true
  local_dir: public
  acl: public_read
  on:
    repo: sendgrid/docs
    branch: a-new-hope-episode-iv
after_deploy:
  access_key_id: $AWS_ACCESS_KEY
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  aws configure set preview.cloudfront true
  aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths /*<commit_msg>messing with formatting part 2<commit_after>sudo: required
dist: trusty
language: node_js
branches:
  only:
  - a-new-hope-episode-iv
node_js:
- 8.4.0
python:
- '3.5'
cache:
- pip
- yarn
install:
- pip install --user awscli
before_script:
- yarn
script: yarn run build
deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: sendgrid-knowledge-center-staging
  skip_cleanup: true
  local_dir: public
  acl: public_read
  on:
    repo: sendgrid/docs
    branch: a-new-hope-episode-iv
after_deploy:
  access_key_id: $AWS_ACCESS_KEY
  secret_access_key: $AWS_SECRET_ACCESS_KEY
- aws configure set preview.cloudfront true
- aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths /*
{'fraction_non_alphanumeric': 0.09120951751487112, 'fraction_numerical': 0.008592200925313946, 'mean_word_length': 4.387900355871886, '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': '2423478', 'n_tokens_mistral': 597, 'n_tokens_neox': 569, 'n_words': 130}