<commit_before>#!/bin/sh
# This script tests both the natty and scaffolding crates, to make sure that
# changes to natty's public API do not break the scaffolding terminal

cargo test && cd scaffolding && cargo test && cd ..<commit_msg>Make testing script test notty-cairo as well.<commit_after>#!/bin/sh
# This script tests both the natty and scaffolding crates, to make sure that
# changes to natty's public API do not break the scaffolding terminal

test_subcrate() {
    cd $1 && cargo test && cd ..
}

cargo test && test_subcrate 'notty-cairo' && test_subcrate 'scaffolding'
{'fraction_non_alphanumeric': 0.08981001727115717, 'fraction_numerical': 0.0017271157167530224, 'mean_word_length': 4.420560747663552, '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': '3338141', 'n_tokens_mistral': 179, 'n_tokens_neox': 172, 'n_words': 75}