<commit_before>import os
import sys
from subprocess import Popen, PIPE


def killpython():
    os.system("ps aux | grep {} > crap".format(sys.argv[1]))
    for line in open('crap').readlines():
        os.system('kill {}'.format(line.strip().split()[1]))
    os.system("rm crap")


if __name__ == '__main__':
    killpython()<commit_msg>filter for python before killing processes<commit_after>import os
import sys
from subprocess import Popen, PIPE


def killpython():
    os.system("ps aux | grep python | grep {} > crap".format(sys.argv[1]))
    for line in open('crap').readlines():
        os.system('kill {}'.format(line.strip().split()[1]))
    os.system("rm crap")


if __name__ == '__main__':
    killpython()
{'fraction_non_alphanumeric': 0.16875871687587168, 'fraction_numerical': 0.005578800557880056, 'mean_word_length': 4.020979020979021, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3902477', 'n_tokens_mistral': 234, 'n_tokens_neox': 226, 'n_words': 60}