<commit_before>#! /usr/bin/env bash

set -o errexit -o nounset

if [ -f ~/.bash_tokens ]; then
    source ~/.bash_tokens
fi

if [ -d output/.git ]; then
    echo "removing git directory"
    rm -rf output/.git
fi

rev=$(git rev-parse --short HEAD)

cd output

git init
git config user.name "<NAME>"
git config user.email "<EMAIL>"

git remote add upstream "https://$GH_TOKEN@github.com/deBalletboetiek/website.git"
git fetch upstream
git reset upstream/gh-pages

touch .
touch .nojekyll

git add -A .
git commit -m "rebuild pages at ${rev}"
git push -q upstream HEAD:gh-pages<commit_msg>Deploy to deBalletBoetiek.github.io<commit_after>#! /usr/bin/env bash

set -o errexit -o nounset

if [ -f ~/.bash_tokens ]; then
    source ~/.bash_tokens
fi

if [ -d output/.git ]; then
    echo "removing git directory"
    rm -rf output/.git
fi

rev=$(git rev-parse --short HEAD)

cd output

git init
git config user.name "<NAME>"
git config user.email "<EMAIL>"

git remote add upstream "https://$GH_TOKEN@github.com/deBalletboetiek/deBalletboetiek.github.io.git"
git fetch upstream
git reset upstream/master

touch .
touch .nojekyll

git add -A .
git commit -m "rebuild pages at ${rev}"
git push -q upstream HEAD:master
{'fraction_non_alphanumeric': 0.12396694214876033, 'fraction_numerical': 0.0, 'mean_word_length': 3.4358974358974357, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '54894', 'n_tokens_mistral': 445, 'n_tokens_neox': 425, 'n_words': 145}