<commit_before># Runs compiler in non-generation mode, to exercise the early parts of the
# compiler's codepath, on the contents of the tests directory.
#
# <NAME>, Cambridge University Computer Lab, July 2015
#
# NOTE expects to find the compiler in the working directory.

DIR=tests/

# NOTE tests containing "bad" in their name are filtered out. They are known
#      negative tests. Perhaps should include them and flip the result?
for FILE in `ls $DIR | grep -v bad`
do
  ./otto.byte --unexceptional -q "$DIR$FILE"
  STATUS=$?
  echo -n "${FILE} : "
  if [ ${STATUS} -eq 0 ]
  then
    echo "ok"
  else
    echo "fail"<commit_msg>added example usage;<commit_after># Runs compiler in non-generation mode, to exercise the early parts of the
# compiler's codepath, on the contents of the tests directory.
#
# <NAME>, Cambridge University Computer Lab, July 2015
#
# Example usage:
#   ./scripts/test_type_checker.sh | grep fail
#
# NOTE expects to find the compiler in the working directory.

DIR=tests/

# NOTE tests containing "bad" in their name are filtered out. They are known
#      negative tests. Perhaps should include them and flip the result?
for FILE in `ls $DIR | grep -v bad`
do
  ./otto.byte --unexceptional -q "$DIR$FILE"
  STATUS=$?
  echo -n "${FILE} : "
  if [ ${STATUS} -eq 0 ]
  then
    echo "ok"
  else
    echo "fail"
{'fraction_non_alphanumeric': 0.10126582278481013, 'fraction_numerical': 0.007446016381236039, 'mean_word_length': 3.4210526315789473, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6247284', 'n_tokens_mistral': 419, 'n_tokens_neox': 400, 'n_words': 186}