<commit_before>#!/bin/bash
echo "Setting up git config"

CURRENT_COMMIT=`git rev-parse HEAD`

git config user.name "Travis-CI"
git config user.email "<EMAIL>"

git clone -b gh-pages "https://${GH_TOKEN}@${GH_REF}" docs > /dev/null 2>&1 || exit 1

rm -r docs/*

echo "Compiling docs"
./bin/grock --verbose --out docs/ || exit 1

cd docs/

echo "Pushing to gh-pages"
git add -A
git commit -m "Generated documentation for $CURRENT_COMMIT" || exit 1
git push origin gh-pages > /dev/null 2>&1 || exit 1

echo "Pushed new documentation successfully."
exit 0<commit_msg>Travis Deploy to gh-pages, take 4<commit_after>#!/bin/bash
echo "Setting up git config"

CURRENT_COMMIT=`git rev-parse HEAD`

git clone -b gh-pages "https://${GH_TOKEN}@${GH_REF}" docs > /dev/null 2>&1 || exit 1

rm -r docs/*

echo "Compiling docs"
./bin/grock --verbose --out docs/ || exit 1

cd docs/

echo "Pushing to gh-pages"
git config user.name "Travis-CI"
git config user.email "<EMAIL>"

git add -A
git commit -m "Generated documentation for $CURRENT_COMMIT" || exit 1
git push origin gh-pages > /dev/null 2>&1 || exit 1

echo "Pushed new documentation successfully."
exit 0
{'fraction_non_alphanumeric': 0.14136125654450263, 'fraction_numerical': 0.016579406631762654, 'mean_word_length': 3.839662447257384, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '4804360', 'n_tokens_mistral': 439, 'n_tokens_neox': 399, 'n_words': 148}