<commit_before>#!/usr/bin/env bash

# Bash script for running the test suite every time a file is changed.
# Requires the python package `nose` to be installed, as well as the
# `inotifytools` commands.

function run_tests {
    nosetests \
              tests/test_provided_code.py \
              tests/test_sanity_checks.py \
              tests/test_1_parsing.py \
              tests/test_2_evaluating_simple_expressions.py \
              tests/test_3_evaluating_complex_expressions.py \
              tests/test_4_working_with_variables_and_environments.py \
              tests/test_5_adding_functions_to_the_mix.py \
              tests/test_6_working_with_lists.py \
              tests/test_7_using_the_language.py \
              --stop
}

run_tests

if command -v inotifywait >/dev/null; then
  msg="Prepared to run tests on new changes..."
  echo -e "\033[1;37m> $msg\033[0m"
  while inotifywait -q -r -e modify . ; do
      run_tests
  done
fi
<commit_msg>changed order of tests in run-tests.sh<commit_after>#!/usr/bin/env bash

# Bash script for running the test suite every time a file is changed.
# Requires the python package `nose` to be installed, as well as the
# `inotifytools` commands.

function run_tests {
    nosetests \
              tests/test_provided_code.py \
              tests/test_1_parsing.py \
              tests/test_2_evaluating_simple_expressions.py \
              tests/test_3_evaluating_complex_expressions.py \
              tests/test_4_working_with_variables_and_environments.py \
              tests/test_5_adding_functions_to_the_mix.py \
              tests/test_6_working_with_lists.py \
              tests/test_7_using_the_language.py \
              tests/test_sanity_checks.py \
              --stop
}

run_tests

if command -v inotifywait >/dev/null; then
  msg="Prepared to run tests on new changes..."
  echo -e "\033[1;37m> $msg\033[0m"
  while inotifywait -q -r -e modify . ; do
      run_tests
  done
fi

{'fraction_non_alphanumeric': 0.07829181494661921, 'fraction_numerical': 0.01728520589730554, 'mean_word_length': 2.2691029900332227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5470262', 'n_tokens_mistral': 654, 'n_tokens_neox': 631, 'n_words': 145}