<commit_before>#!/usr/bin/env bash
set -e

git checkout gh-pages || git checkout --orphan gh-pages

# Collect data
bundle exec rake collect
bundle exec rake build
# bundle exec rake test

if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then
    echo "Skipping deploy"
    exit 0
fi

# Save some useful information
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.<EMAIL>:}
SHA=`git rev-parse --verify HEAD`

cp -r ./_site/* ./

git config user.name "CI auto deploy"
git config user.email "<EMAIL>"

git add .
git commit -m "Auto deploy to GitHub Pages: ${SHA}"<commit_msg>Save repo info before anything<commit_after>#!/usr/bin/env bash
set -e

# Save some useful information
REPO=`git config remote.origin.url`
SSH_REPO=${REPO/https:\/\/github.com\//git@github.<EMAIL>:}
SHA=`git rev-parse --verify HEAD`

git checkout gh-pages || git checkout --orphan gh-pages

# Collect data
bundle exec rake collect
bundle exec rake build
# bundle exec rake test

if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then
    echo "Skipping deploy"
    exit 0
fi

cp -r ./_site/* ./

git config user.name "CI auto deploy"
git config user.email "<EMAIL>"

git add .
git commit -m "Auto deploy to GitHub Pages: ${SHA}"
{'fraction_non_alphanumeric': 0.1414141414141414, 'fraction_numerical': 0.001554001554001554, 'mean_word_length': 3.7881040892193307, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '269170', 'n_tokens_mistral': 465, 'n_tokens_neox': 442, 'n_words': 151}