<commit_before>clear
echo "Watching for changes..."

run_tests() {
    rm tests > /dev/null
    clear
    gcc -o tests tests.c funcs.c -std=c99 -Wall
    ./tests
}
run_tests

while true; do
    change=$(inotifywait -q -e close_write,moved_to,create {*.c,*.h})
    change=${change#./ * }
    run_tests
done<commit_msg>Update unit_tests.sh to use the Makefile.<commit_after>clear
echo "Watching for changes..."

run_tests() {
    rm tests > /dev/null
    make tests
    clear
    ./tests
}
run_tests

while true; do
    change=$(inotifywait -q -e close_write,moved_to,create {*.c,*.h})
    change=${change#./ * }
    run_tests
done
{'fraction_non_alphanumeric': 0.14308426073131955, 'fraction_numerical': 0.003179650238473768, 'mean_word_length': 2.888888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3773425', 'n_tokens_mistral': 231, 'n_tokens_neox': 228, 'n_words': 59}