<commit_before><commit_msg>Added a script to build and run all tests.<commit_after>#!/bin/bash

function check_return_value()
{
  if [ $1 -ne 0 ];
  then
    exit 1
  fi
}

mkdir _build_/test-reports -p
cd _build_
cmake ..
check_return_value $?

make -j8
check_return_value $?

./bin/tfmtests --gtest_output=xml:test-reports/tfmtests.xml

{'fraction_non_alphanumeric': 0.11834319526627218, 'fraction_numerical': 0.011834319526627219, 'mean_word_length': 3.7746478873239435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '863039', 'n_tokens_mistral': 138, 'n_tokens_neox': 130, 'n_words': 31}