<commit_before>#!/bin/sh

_term() {
    kill -TERM "$child"
}

trap _term SIGTERM  # Forward SIGTERM to bot

python3 upgrade_db.py

python3 run_cardinal.py &

child=$!
wait "$child"
<commit_msg>refactor(docker): avoid signal weirdness via exec<commit_after>#!/bin/sh

python3 upgrade_db.py

exec python3 run_cardinal.py

{'fraction_non_alphanumeric': 0.115625, 'fraction_numerical': 0.0125, 'mean_word_length': 4.732142857142857, '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': '3352383', 'n_tokens_mistral': 127, 'n_tokens_neox': 122, 'n_words': 30}