<commit_before>#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
  echo "This is a pull request. Not publishing documentation."
  exit 0
fi
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
  echo "Testing on a branch other than master. Not publishing documentation."
  exit 0
fi

cd Documentation
virtualenv ./virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt

make clean
make html

cd build
rm -rf gh-pages
git clone -b gh-pages https://${GH_TOKEN}@${GH_REF} gh-pages

rm -rf gh-pages/*<commit_msg>Quick fix branch check in docs deployment script<commit_after>#!/bin/bash
set -e # Exit with nonzero exit code if anything fails

if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then
  echo "This is a pull request. Not publishing documentation."
  exit 0
fi
if [[ "$TRAVIS_BRANCH" != "docs" ]]; then
  echo "Testing on a branch other than docs. Not publishing documentation."
  exit 0
fi

cd Documentation
virtualenv ./virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt

make clean
make html

cd build
rm -rf gh-pages
git clone -b gh-pages https://${GH_TOKEN}@${GH_REF} gh-pages

rm -rf gh-pages/*
{'fraction_non_alphanumeric': 0.10990840965861781, 'fraction_numerical': 0.0033305578684429643, 'mean_word_length': 4.050420168067227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5308411', 'n_tokens_mistral': 408, 'n_tokens_neox': 381, 'n_words': 152}