<commit_before>language: node_js
cache: false
python: 3.7
node_js:
- 8
before_install:
- openssl aes-256-cbc -K $encrypted_f7bd7c62657c_key -iv $encrypted_f7bd7c62657c_iv
  -in credentials.tar.gz.enc -out credentials.tar.gz -d
- yarn install
- command -v meteor >/dev/null 2>&1 || curl https://install.meteor.com | /bin/sh
before_script:
- tar xvf credentials.tar.gz --strip-components=1 
- export PATH=$HOME/.meteor:$PATH
- yarn global add mup https://github.com/jimrandomh/mup-aws-beanstalk
- yarn global add json
- yarn global add @sentry/cli
env:
  global:
    secure: <KEY>
  matrix:
    - RUN_TESTS=0
    - RUN_TESTS=1
jobs:
  include:
  - stage: test
    script: ls
    if: env(RUN_TESTS)=1
deploy:
  # Deploy lessestwrong
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-lessestwrong.secret ./mup-lessestwrong.secret;
      bash ./travis_wait "mup deploy --config mup-lessestwrong.secret --settings ./LessWrong-Credentials/settings-staging-lessestwrong.json"
    on:
      branch: devel
    skip_cleanup: true
  # Deploy baserates
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-baserates.secret ./mup-baserates.secret;
      bash ./travis_wait "mup deploy --config mup-baserates.secret --settings ./LessWrong-Credentials/settings-staging-baserates.json"
    on:
      branch: travisCiShenanigans
      condition: $RUN_TESTS = 0
    skip_cleanup: true
  # Deploy production
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-production.secret ./mup-production.secret;
      bash ./travis_wait "mup deploy --config mup-production.secret --settings ./LessWrong-Credentials/settings-production-lesswrong.json"
    on:
      branch: master
    skip_cleanup: true
  # Deploy Alignment Forum
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-af.secret ./mup-af.secret;
      bash ./travis_wait "mup deploy --config mup-af.secret --settings ./LessWrong-Credentials/settings-production-alignmentforum.json"
    on:
      branch: master
    skip_cleanup: true<commit_msg>Change how we call things<commit_after>language: node_js
cache: false
python: 3.7
node_js:
- 8
before_install:
- openssl aes-256-cbc -K $encrypted_f7bd7c62657c_key -iv $encrypted_f7bd7c62657c_iv
  -in credentials.tar.gz.enc -out credentials.tar.gz -d
- yarn install
- command -v meteor >/dev/null 2>&1 || curl https://install.meteor.com | /bin/sh
before_script:
- tar xvf credentials.tar.gz --strip-components=1 
- export PATH=$HOME/.meteor:$PATH
- yarn global add mup https://github.com/jimrandomh/mup-aws-beanstalk
- yarn global add json
- yarn global add @sentry/cli
env:
  global:
    secure: <KEY>aW<KEY>
  matrix:
    - RUN_TESTS=0
    - RUN_TESTS=1
jobs:
  include:
  - stage: test
    script: ls
    env: RUN_TESTS=0
  - stage: test
    script: yarn run test
    env: RUN_TESTS=1
deploy:
  # Deploy lessestwrong
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-lessestwrong.secret ./mup-lessestwrong.secret;
      bash ./travis_wait "mup deploy --config mup-lessestwrong.secret --settings ./LessWrong-Credentials/settings-staging-lessestwrong.json"
    on:
      branch: devel
    skip_cleanup: true
  # Deploy baserates
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-baserates.secret ./mup-baserates.secret;
      bash ./travis_wait "mup deploy --config mup-baserates.secret --settings ./LessWrong-Credentials/settings-staging-baserates.json"
    on:
      branch: travisCiShenanigans
      condition: $RUN_TESTS = 0
    skip_cleanup: true
  # Deploy production
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-production.secret ./mup-production.secret;
      bash ./travis_wait "mup deploy --config mup-production.secret --settings ./LessWrong-Credentials/settings-production-lesswrong.json"
    on:
      branch: master
    skip_cleanup: true
  # Deploy Alignment Forum
  - provider: script
    script: 
      yarn;
      cp ./LessWrong-Credentials/mup-af.secret ./mup-af.secret;
      bash ./travis_wait "mup deploy --config mup-af.secret --settings ./LessWrong-Credentials/settings-production-alignmentforum.json"
    on:
      branch: master
    skip_cleanup: true
{'fraction_non_alphanumeric': 0.11222585160989268, 'fraction_numerical': 0.012832477834811012, 'mean_word_length': 2.922232387923147, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 10, 'https://': 4, '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': '442919', 'n_tokens_mistral': 1548, 'n_tokens_neox': 1478, 'n_words': 327}