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

set -e

if [[ $# -eq 0 ]] ; then
    echo 'Please provide a quoted commit message'
    exit 1
fi
COMMIT_MSG="${1}"

# Compile the zola site using the docker container
docker-compose run zola zola build

# Don't publish if the build fails
if [[ $? -ne 0 ]] ; then
    exit 1
fi

GITHUB_PUBLISH_REPO=master
ZOLA_BUILD_DIR=./public
CNAME=tjtelan.com

# TODO: Move this pipenv code into the docker container to keep tools off the host
# Publish the locally compiled site to github
pipenv run ghp-import -n -c ${CNAME} -b ${GITHUB_PUBLISH_REPO} -m ${COMMIT_MSG} -p ${ZOLA_BUILD_DIR}<commit_msg>Fixing quotes around supplied commit message<commit_after>#!/usr/bin/env sh

set -e

if [[ $# -eq 0 ]] ; then
    echo 'Please provide a quoted commit message'
    exit 1
fi
COMMIT_MSG="${1}"

# Compile the zola site using the docker container
docker-compose run zola zola build

# Don't publish if the build fails
if [[ $? -ne 0 ]] ; then
    exit 1
fi

GITHUB_PUBLISH_REPO=master
ZOLA_BUILD_DIR=./public
CNAME=tjtelan.com

# TODO: Move this pipenv code into the docker container to keep tools off the host
# Publish the locally compiled site to github
pipenv run ghp-import -n -c ${CNAME} -b ${GITHUB_PUBLISH_REPO} -m "${COMMIT_MSG}" -p ${ZOLA_BUILD_DIR}
{'fraction_non_alphanumeric': 0.1016419077404222, 'fraction_numerical': 0.007818608287724784, 'mean_word_length': 3.923076923076923, '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': '1596312', 'n_tokens_mistral': 483, 'n_tokens_neox': 451, 'n_words': 168}