<commit_before>sudo: false
language: node_js
cache:
  yarn: true
  directories:
  - "~/.npm"
node_js: '8'
python: "3.5"
install:
  - yarn install
  - pip install awscli
script: yarn build
branches:
  only: master
deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: ibchamilton
  skip_cleanup: true
  local_dir: public
after_deploy:
  - aws configure set preview.cloudfront true
  - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"<commit_msg>Make AWS CLI work on travis<commit_after>sudo: false
language: node_js
cache:
  yarn: true
  directories:
  - "~/.npm"
node_js: '8'
python: "3.5"
before_install:
  - pip install --user awscli
  - export PATH=$PATH:$HOME/.local/bin
install:
  - yarn install
script: yarn build
branches:
  only: master
deploy:
  provider: s3
  access_key_id: $AWS_ACCESS_KEY
  secret_access_key: $AWS_SECRET_ACCESS_KEY
  bucket: ibchamilton
  skip_cleanup: true
  local_dir: public
after_deploy:
  - aws configure set preview.cloudfront true
  - aws cloudfront create-invalidation --distribution-id $CLOUDFRONT_DISTRIBUTION_ID --paths "/*"
{'fraction_non_alphanumeric': 0.09691252144082332, 'fraction_numerical': 0.00686106346483705, 'mean_word_length': 4.377880184331797, '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': '43257', 'n_tokens_mistral': 438, 'n_tokens_neox': 424, 'n_words': 109}