<commit_before>#!/bin/bash -e

USER_NAME="Build Bot"
USER_EMAIL="<EMAIL>"
REPOSITORY="Narno/drafts.narno.com"
TARGET_BRANCH="gh-pages"
SITE_DIR="_site"

echo "Started deploy to GitHub Pages"

cp -R $SITE_DIR $HOME/$SITE_DIR
cd $HOME
git config --global user.name "$USER_NAME"
git config --global user.email "$USER_EMAIL"
git clone --quiet --branch=$TARGET_BRANCH https://${GITHUB_TOKEN}@github.com/${REPOSITORY}.git $TARGET_BRANCH > /dev/null
cp -R gh-pages/.git $HOME/.git
rm -rf gh-pages/*
cp -R $HOME/.git gh-pages/.git
cd gh-pages
cp -Rf $HOME/$SITE_DIR/* .
git add -Af .
git commit -m "$USER_NAME pushed to $TARGET_BRANCH"
git push -fq origin $TARGET_BRANCH > /dev/null

echo "Finished deploy to GitHub Pages"

exit 0
<commit_msg>Update deploy-drafts.sh<commit_after>#!/bin/bash -e

USER_NAME="Build Bot"
USER_EMAIL="<EMAIL>"
REPOSITORY="Narno/drafts.narno.com"
TARGET_BRANCH="gh-pages"
SITE_DIR="_site"

echo "Started deploy to $REPOSITORY/$TARGET_BRANCH"

cp -R $SITE_DIR $HOME/$SITE_DIR
cd $HOME
git config --global user.name "$USER_NAME"
git config --global user.email "$USER_EMAIL"
git clone --quiet --branch=$TARGET_BRANCH https://${GITHUB_TOKEN}@github.com/${REPOSITORY}.git $TARGET_BRANCH > /dev/null
cp -R gh-pages/.git $HOME/.git
rm -rf gh-pages/*
cp -R $HOME/.git gh-pages/.git
cd gh-pages
cp -Rf $HOME/$SITE_DIR/* .
git add -Af .
git commit -m "$USER_NAME push updated website"
git push -fq origin $TARGET_BRANCH > /dev/null

echo "Finished deploy"

exit 0

{'fraction_non_alphanumeric': 0.1546811397557666, 'fraction_numerical': 0.0013568521031207597, 'mean_word_length': 4.324909747292419, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1746666', 'n_tokens_mistral': 600, 'n_tokens_neox': 583, 'n_words': 151}