<commit_before>#!/bin/bash

SRCDIR=$( cd -P $(dirname ${BASH_SOURCE[0]}); echo $PWD )

source $SRCDIR/checkVirtualEnv.sh
source $SRCDIR/spark_config.sh


/bin/date
echo "running getMLBStats.sh"
$SRCDIR/getMLBStats.sh
RETVAL=$?
if [[ $RETVAL -gt 0 ]]; then
    echo "getMLBStats failed."
    exit 1
fi

/bin/date<commit_msg>added createStats<commit_after>#!/bin/bash

SRCDIR=$( cd -P $(dirname ${BASH_SOURCE[0]}); echo $PWD )

source $SRCDIR/checkVirtualEnv.sh
source $SRCDIR/spark_config.sh


/bin/date
echo "running getMLBStats.sh"
$SRCDIR/getMLBStats.sh
RETVAL=$?
if [[ $RETVAL -gt 0 ]]; then
    echo "getMLBStats failed."
    exit 1
fi

/bin/date
echo "running createStats.sh"
$SRCDIR/createStats.sh
RETVAL=$?
if [[ $RETVAL -gt 0 ]]; then
    echo "createStats.sh failed."
    exit 1
fi

/bin/date
{'fraction_non_alphanumeric': 0.15480649188514356, 'fraction_numerical': 0.009987515605493134, 'mean_word_length': 4.0125, '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': '4112950', 'n_tokens_mistral': 328, 'n_tokens_neox': 322, 'n_words': 77}