<commit_before>#!/bin/bash

echo "Hugo env:"

hugo env

cd _script

BASEURL=${BASEURL:-http://localhost:1313}

./generateThemeSite.sh ${BASEURL} | exit 1

echo "Building site to public with baseURL ${BASEURL}..."

hugo --quiet -s hugoThemeSite/themeSite -b ${BASEURL} | exit 1

cd ..

echo "Done!"<commit_msg>script: Add some more debug<commit_after>#!/bin/bash

echo "Hugo env:"

hugo env

cd _script

BASEURL=${BASEURL:-http://localhost:1313}

./generateThemeSite.sh ${BASEURL}
if [ $code -ne 0 ]; then
	echo "generate theme site failed: exit status $code"
	exit 1
fi

echo "Building site to public with baseURL ${BASEURL}..."

hugo -s hugoThemeSite/themeSite -b ${BASEURL}
if [ $code -ne 0 ]; then
	echo "building theme site failed: exit status $code"
	exit 1
fi

cd ..

echo "Done!"
{'fraction_non_alphanumeric': 0.14376590330788805, 'fraction_numerical': 0.017811704834605598, 'mean_word_length': 3.91875, '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': '63093', 'n_tokens_mistral': 303, 'n_tokens_neox': 283, 'n_words': 94}