<commit_before>#!/bin/sh

set -e

export PYTHONPATH=`pwd`

# regular unit tests
find ./barrister/test -name "*_test.py" -exec python {} \; -print

# conformance test suite
cd conform; python conform_test.py<commit_msg>Switch to xargs so exit codes are propegated<commit_after>#!/bin/sh

set -e

export PYTHONPATH=`pwd`

# regular unit tests
# use xargs instead of -exec so that we get exit code propegation
find ./barrister/test -name "*_test.py" -print | xargs -n1 python

# conformance test suite
cd conform; python conform_test.py
{'fraction_non_alphanumeric': 0.10694183864915573, 'fraction_numerical': 0.001876172607879925, 'mean_word_length': 4.184466019417476, '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': '4957657', 'n_tokens_mistral': 187, 'n_tokens_neox': 182, 'n_words': 63}