<commit_before>#! /bin/sh
# Extract the file name of the tes executable
name=${1##*/}
echo $name
valgrind --error-exitcode=1 --leak-check=full --quiet --track-origins=yes --xml=yes --xml-file=valgrind_${name}.xml --log-file=valgrind_${name}.log -v ./${name} --gtest_output=xml:"unit_"${name}".xml"
#exec $1 --gtest_output="xml:"$1".xml"
<commit_msg>redirect test console to log<commit_after>#! /bin/sh
# Extract the file name of the tes executable
name=${1##*/}
echo $name
valgrind --error-exitcode=1 --leak-check=full --quiet --track-origins=yes --xml=yes --xml-file=valgrind_${name}.xml --log-file=valgrind_${name}.log -v ./${name} --gtest_output=xml:"unit_"${name}".xml" &> valgrind_${name}.log
#exec $1 --gtest_output="xml:"$1".xml"

{'fraction_non_alphanumeric': 0.22523744911804613, 'fraction_numerical': 0.010854816824966078, 'mean_word_length': 4.676923076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '1418202', 'n_tokens_mistral': 291, 'n_tokens_neox': 282, 'n_words': 59}