<commit_before>#!/bin/bash

set -o errexit -o nounset

if [ "$TRAVIS_BRANCH" != "master" ]
then
  echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!"
  exit 0
fi

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

mkdir deploy
cd deploy

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

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

cp ../public ./public
cp ../index.html ./index.html
cp ../static/deploy ./

touch .

git add -A .
git commit -m "rebuild pages at ${rev}"
git push -q upstream HEAD:gh-pages<commit_msg>update deploy sh<commit_after>#!/bin/bash

set -o errexit -o nounset

if [ "$TRAVIS_BRANCH" != "master" ]
then
  echo "This commit was made against the $TRAVIS_BRANCH and not the master! No deploy!"
  exit 0
fi

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

mkdir deploy
cp ./public ./deploy/public
cp ./index.html ./deploy/index.html
cp ./static/deploy ./deploy
cd deploy

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

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

touch .

git add -A .
git commit -m "rebuild pages at ${rev}"
git push -q upstream HEAD:gh-pages
{'fraction_non_alphanumeric': 0.12684824902723735, 'fraction_numerical': 0.0031128404669260703, 'mean_word_length': 3.5765124555160144, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '63348', 'n_tokens_mistral': 483, 'n_tokens_neox': 448, 'n_words': 162}