<commit_before>cat ~/resque.pid | xargs kill<commit_msg>Only kill the Resque process if it is running<commit_after>PID=`cat ~/resque.pid`

# Check if the process id is in the running processes list
count=`ps x --no-header -eo pid | grep -c $PID`

if [ "$count" -eq "1" ]; then
    cat ~/resque.pid | xargs kill
fi
{'fraction_non_alphanumeric': 0.12779552715654952, 'fraction_numerical': 0.003194888178913738, 'mean_word_length': 3.757575757575758, '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': '4014984', 'n_tokens_mistral': 115, 'n_tokens_neox': 109, 'n_words': 42}