<commit_before>#/usr/bin/env bash
# usage: docker-compose run --rm web bash docker/run_unittests.sh
#       --rm flag is important, because web has restart:always policy,
#       and without the flag docker will try to spin the container indefinitely

source docker/env.sh
cp docker/config.json conf/config.json
cp conf/sm_log.cfg.template conf/sm_log.cfg
mkdir /code/sm-engine/logs
python test_runner.py -u<commit_msg>docker/run_unittests.sh update<commit_after>#/usr/bin/env bash
# usage: docker-compose run --rm web bash docker/run_unittests.sh
#       --rm flag is important, because web has restart:always policy,
#       and without the flag docker will try to spin the container indefinitely

source docker/env.sh
cp docker/config.json conf/config.json
cp conf/sm_log.cfg.template conf/sm_log.cfg
mkdir /code/sm-engine/logs
python scripts/test_runner.py -u
{'fraction_non_alphanumeric': 0.09154113557358054, 'fraction_numerical': 0.0, 'mean_word_length': 3.9371428571428573, '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': '4589973', 'n_tokens_mistral': 287, 'n_tokens_neox': 265, 'n_words': 86}