<commit_before>#! /bin/bash

set -e

repo_root=$(realpath $(dirname $BASH_SOURCE))

# keep our temp files from cluttering /tmp
export TMPDIR=/tmp/perutest
mkdir -p $TMPDIR

fail() {
  # print the line where fail() is called, followed by arguments
  echo<commit_msg>add unit tests to the start of test.sh<commit_after>#! /bin/bash

set -e

python3 -m unittest discover --start peru

repo_root=$(realpath $(dirname $BASH_SOURCE))

# keep our temp files from cluttering /tmp
export TMPDIR=/tmp/perutest
mkdir -p $TMPDIR

fail() {
  # print the line where fail() is called, followed by arguments
  echo
{'fraction_non_alphanumeric': 0.10702341137123746, 'fraction_numerical': 0.0016722408026755853, 'mean_word_length': 4.208695652173913, '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': '577182', 'n_tokens_mistral': 207, 'n_tokens_neox': 200, 'n_words': 74}