<commit_before>#!/bin/bash
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 $1 ${HOME}/$2

  #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://${GIT_HUB_TOKEN}@github.com/fhoeben/hsac-fitnesse-fixtures.git  gh-pages > /dev/null

  #go into directory, remove files from previous build and copy data we're interested in to that directory
  cd gh-pages
  rm -r $2
  cp -Rf ${HOME}/$2 $2

  #add, commit and push files
  git add -A -f .
  git commit -m "Travis build ${TRAVIS_BUILD_NUMBER} $2 pushed to gh-pages"
  git push -fq origin gh-pages > /dev/null

  echo -e "Done magic with results\n"
fi<commit_msg>Prevent the directory from being changed after script<commit_after>#!/bin/bash
if [ "${TRAVIS_PULL_REQUEST}" == "false" ]; then
  echo -e "Starting to update gh-pages\n"

  #store current dir
  pushd .
  #copy data we're interested in to other place
  cp -R $1 ${HOME}/$2

  #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://${GIT_HUB_TOKEN}@github.com/fhoeben/hsac-fitnesse-fixtures.git  gh-pages > /dev/null

  #go into directory, remove files from previous build and copy data we're interested in to that directory
  cd gh-pages
  rm -r $2
  cp -Rf ${HOME}/$2 $2

  #add, commit and push files
  git add -A -f .
  git commit -m "Travis build ${TRAVIS_BUILD_NUMBER} $2 pushed to gh-pages"
  git push -fq origin gh-pages > /dev/null

  #go back to original dir
  popd
  echo -e "Done magic with results\n"
fi
{'fraction_non_alphanumeric': 0.11903455842018651, 'fraction_numerical': 0.006582556226001097, 'mean_word_length': 3.18348623853211, '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': '4857302', 'n_tokens_mistral': 662, 'n_tokens_neox': 633, 'n_words': 238}