<commit_before>language: node_js
services:
  - docker
node_js:
  - 8.2.1
cache:
  directories:
    - node_modules
    - server/node_modules
env:
  - NODE_ENV=production
install:
  - npm install --dev
jobs:
  include:
    - script: npm test
    - script: npm run build
    - stage: deploy
      script: if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
        cd server && npm install --production && cd ..;
        export REPO=martijnhols/wowanalyzer;
        export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH; fi else echo pr-$TRAVIS_PULL_REQUEST-$TRAVIS_PULL_REQUEST_BRANCH; fi | sed -r 's/\//-/g');
        docker build --tag $REPO:$BRANCH --file Dockerfile.package .;
        docker login --username="$DOCKER_USERNAME" --password="$<PASSWORD>";
        docker push $REPO:$BRANCH;
      fi
<commit_msg>Fix .travis.yml?<commit_after>language: node_js
services:
  - docker
node_js:
  - 8.2.1
cache:
  directories:
    - node_modules
    - server/node_modules
env:
  - NODE_ENV=production
install:
  - npm install --dev
jobs:
  include:
    - script: npm test
    - script: npm run build
    - stage: deploy
      script:
       - if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
           cd server && npm install --production && cd ..;
           export REPO=martijnhols/wowanalyzer;
           export BRANCH=$(
              if [ "$TRAVIS_BRANCH" == "master" ]; then
                echo "latest";
              else
                echo $TRAVIS_BRANCH;
              fi | sed -r 's/\//-/g'
            );
           docker build --tag $REPO:$BRANCH --file Dockerfile.package .;
           docker login --username="$DOCKER_USERNAME" --password="$<PASSWORD>";
           docker push $REPO:$BRANCH;
         fi

{'fraction_non_alphanumeric': 0.13470066518847007, 'fraction_numerical': 0.0033259423503325942, 'mean_word_length': 2.18342151675485, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6143695', 'n_tokens_mistral': 629, 'n_tokens_neox': 600, 'n_words': 146}