<commit_before>
# Create a simple CI server by running:
#
# npm install githubhook -g
# CI_SCRIPT_WWW_PATH=...
# githubhook --secret=GITHUB_SECRET push:limbus-buildgen ./utility-scripts/ci_script.sh
#

$CI_LOG=$CI_SCRIPT_WWW_PATH/ci-log.txt
$CI_DATE=`date`
$CI_BADGE=$CI_SCRIPT_WWW_PATH/badge.svg
$CI_PASSING_BADGE=http://img.shields.io/badge/build-passing-brightgreen.svg
$CI_FAILING_BADGE=http://img.shields.io/badge/build-failing-red.svg

mkdir -p $CI_SCRIPT_WWW_PATH
echo Starting CI Build at $CI_DATE > $CI_LOG
echo Pulling new changes... >> $CI_LOG
git pull >> $CI_LOG
echo Running tests... >> $CI_LOG
npm test >> $CI_LOG
if [ $? -eq 0 ]
then curl -sL $CI_PASSING_BADGE > $CI_BADGE ; echo TESTS PASSING! >> $CI_LOG
else curl -sL $CI_FAILING_BADGE > $CI_BADGE ; echo TESTS FAILING! >> $CI_LOG
fi<commit_msg>Fixed incorrect variable assignment in ci_script.sh<commit_after>
# Create a simple CI server by running:
#
# npm install githubhook -g
# CI_SCRIPT_WWW_PATH=...
# githubhook --secret=GITHUB_SECRET push:limbus-buildgen ./utility-scripts/ci_script.sh
#

CI_LOG=$CI_SCRIPT_WWW_PATH/ci-log.txt
CI_DATE=`date`
CI_BADGE=$CI_SCRIPT_WWW_PATH/badge.svg
CI_PASSING_BADGE=http://img.shields.io/badge/build-passing-brightgreen.svg
CI_FAILING_BADGE=http://img.shields.io/badge/build-failing-red.svg

mkdir -p $CI_SCRIPT_WWW_PATH
echo Starting CI Build at $CI_DATE > $CI_LOG
echo Pulling new changes... >> $CI_LOG
git pull >> $CI_LOG
echo Running tests... >> $CI_LOG
npm test >> $CI_LOG
if [ $? -eq 0 ]
then curl -sL $CI_PASSING_BADGE > $CI_BADGE ; echo TESTS PASSING! >> $CI_LOG
else curl -sL $CI_FAILING_BADGE > $CI_BADGE ; echo TESTS FAILING! >> $CI_LOG
fi
{'fraction_non_alphanumeric': 0.13035606517803258, 'fraction_numerical': 0.0012070006035003018, 'mean_word_length': 4.985559566787003, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, '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': '2618806', 'n_tokens_mistral': 703, 'n_tokens_neox': 666, 'n_words': 142}