<commit_before># Inspired by http://sleepycoders.blogspot.de/2013/03/sharing-travis-ci-generated-files.html?_escaped_fragment_#!
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
  echo -e "Starting to update gh-pages\n"

  #copy data we're interested in to other place
  cp -R .build $HOME/build

  #go to home and setup git
  cd $HOME
  git config --global user.email "<EMAIL>"
  git config --global user.name "Travis"

  #using token clone gh-pages branch
  git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/Ookami86/event-sourcing-in-practice.git  gh-pages

  #go into diractory and copy data we're interested in to that directory
  cd gh-pages
  cp -Rf $HOME/build/* .

  #add, commit and push files
  git add -f .
  git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages"
  git push -fq origin gh-pages 

  echo -e "Done publishing to gh-pages.\n"
fi
<commit_msg>Print folder contents to find out why the .build directory is missing<commit_after># Inspired by http://sleepycoders.blogspot.de/2013/03/sharing-travis-ci-generated-files.html?_escaped_fragment_#!
if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
  echo -e "Starting to update gh-pages\n"

  echo `ls -al`

  #copy data we're interested in to other place
  cp -R .build $HOME/build

  #go to home and setup git
  cd $HOME
  git config --global user.email "<EMAIL>"
  git config --global user.name "Travis"

  #using token clone gh-pages branch
  git clone --quiet --branch=gh-pages https://${GH_TOKEN}@github.com/Ookami86/event-sourcing-in-practice.git  gh-pages

  #go into diractory and copy data we're interested in to that directory
  cd gh-pages
  cp -Rf $HOME/build/* .

  #add, commit and push files
  git add -f .
  git commit -m "Travis build $TRAVIS_BUILD_NUMBER pushed to gh-pages"
  git push -fq origin gh-pages 

  echo -e "Done publishing to gh-pages.\n"
fi

{'fraction_non_alphanumeric': 0.11367292225201073, 'fraction_numerical': 0.008579088471849867, 'mean_word_length': 3.380281690140845, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1732980', 'n_tokens_mistral': 684, 'n_tokens_neox': 630, 'n_words': 216}