<commit_before>#!/bin/bash

# based on:
# - https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
# - http://www.steveklabnik.com/automatically_update_github_pages_with_travis_example/

set -o errexit -o nounset

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

cd build

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

git remote add dest "https://${GH_TOKEN}@${GH_REF}" > /dev/null 2>&1
git fetch --depth=1 dest gh-pages > /dev/null 2>&1
git reset dest/gh-pages

echo "hacktun.es" > CNAME
git add -A .
git commit -m "Auto-build of ${REV}"
git push dest HEAD:gh-pages > /dev/null 2>&1<commit_msg>Don't retain commit history in gh-pages branch<commit_after>#!/bin/bash

# based on:
# - https://gist.github.com/domenic/ec8b0fc8ab45f39403dd
# - http://www.steveklabnik.com/automatically_update_github_pages_with_travis_example/

set -o errexit -o nounset

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

cd build

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

echo "hacktun.es" > CNAME
git add -A .
git commit -m "Auto-build of ${REV}"
git push -f "https://${GH_TOKEN}@${GH_REF}" HEAD:gh-pages > /dev/null 2>&1
{'fraction_non_alphanumeric': 0.15240641711229946, 'fraction_numerical': 0.025846702317290554, 'mean_word_length': 4.127853881278539, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '6914035', 'n_tokens_mistral': 469, 'n_tokens_neox': 443, 'n_words': 111}