<commit_before>#!/bin/sh

bin/gen_docs.sh

VERSION="$(cat VERSION)"
TMP_DIR="$(mktemp -d -t AmazeKit.docs)"
if [ $? -ne 0 ]; then
	echo "$0: Can't create temp file, exiting..."
	exit 1
fi

pushd "${TMP_DIR}"

git clone <EMAIL>:detroit-labs/AmazeKit
git fetch --all
git checkout gh-pages

popd

rsync -HhavP --delete docs/html/ "${TMPDIR}/"

pushd "${TMP_DIR}"

git add --all
git commit -m "Updated docs for version ${VERSION}."

echo git push origin gh-pages

popd

echo rm -rf "${TMP_DIR}"<commit_msg>Add first draft of publishing script.<commit_after>#!/bin/sh

bin/gen_docs.sh

VERSION="$(cat VERSION)"
TMP_DIR="$(mktemp -d -t AmazeKit.docs)"
if [ $? -ne 0 ]; then
	echo "$0: Can't create temp file, exiting..."
	exit 1
fi

pushd "${TMP_DIR}"

git clone <EMAIL>:detroit-labs/AmazeKit
cd AmazeKit/
git fetch --all
git checkout gh-pages

popd

rsync -HhavP --delete --exclude=".git/" docs/html/ "${TMP_DIR}/AmazeKit/"

pushd "${TMP_DIR}/AmazeKit/"

git add --all
git commit -m "Updated docs for version ${VERSION}."

git push origin gh-pages

popd

rm -rf "${TMP_DIR}"
{'fraction_non_alphanumeric': 0.16838166510757718, 'fraction_numerical': 0.005612722170252572, 'mean_word_length': 3.734513274336283, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '2927668', 'n_tokens_mistral': 438, 'n_tokens_neox': 414, 'n_words': 129}