<commit_before>#!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ]; then
  git config --global user.email "<EMAIL>"
  git config --global user.name "travis-ci"
  npm run build:prod
  cd dist
  git init
  git add .
  git commit -m "deployed commit ${TRAVIS_COMMIT} from travis"
  git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
fi<commit_msg>added failsafe yml for eploying only when dist exists<commit_after>#!/bin/bash
if [ "$TRAVIS_BRANCH" == "master" ]; then
  git config --global user.email "<EMAIL>"
  git config --global user.name "travis-ci"
  npm run build:prod
  if [ -d "./dist" ]; then
    echo "PRODUCTION BUILD CREATED";
    cd dist
    git init
    git add .
    git commit -m "deployed commit ${TRAVIS_COMMIT} from travis"
    git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1
  else
    echo "!!! PRODUCTION BUILD FAILED !!!";
  fi
fi
{'fraction_non_alphanumeric': 0.15301724137931033, 'fraction_numerical': 0.004310344827586207, 'mean_word_length': 3.300925925925926, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '2046382', 'n_tokens_mistral': 349, 'n_tokens_neox': 334, 'n_words': 103}