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

cd $SNAP_WORKING_DIR
bundle install
echo "Building site..."
bundle exec nanoc

git checkout gh-pages
cp -r gh-pages/* ./
rm -rf gh-pages tmp
echo "Checking for changes..."
if [[ -z $(git status -s) ]]; then
  echo "No changes to push"
  exit 0
fi<commit_msg>Fetch the gh-pages branch before trying to push<commit_after>#!/usr/bin/env bash

cd $SNAP_WORKING_DIR

echo "Installing Gems..."
bundle install

echo "Building site..."
bundle exec nanoc

echo "Fetching gh-pages..."
git fetch gh-pages
git checkout --track origin/gh-pages
cp -r gh-pages/* ./
rm -rf gh-pages tmp

echo "Checking for changes..."
if [[ -z $(git status -s) ]]; then
  echo "No changes to push"
  exit 0
fi
{'fraction_non_alphanumeric': 0.13464235624123422, 'fraction_numerical': 0.002805049088359046, 'mean_word_length': 3.2754491017964074, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6905561', 'n_tokens_mistral': 262, 'n_tokens_neox': 242, 'n_words': 96}