<commit_before>
import os, sys

if __name__ == '__main__':
    directory = os.path.dirname(os.path.abspath(sys.argv[0]))
    script = os.path.join(directory, 'socketserver.py')
    while 1:
        cmd = "python %s %s" % (script, " ".join(sys.argv[1:]))
        print "starting subcommand:", cmd
        f = os.popen(cmd)
        for line in f:
            print line,<commit_msg>[svn r37445] use suprocess module to start socketserver subprocess<commit_after>
import os, sys
import subprocess

if __name__ == '__main__':
    directory = os.path.dirname(os.path.abspath(sys.argv[0]))
    script = os.path.join(directory, 'socketserver.py')
    while 1:
        cmdlist = ["python", script]
        cmdlist.extend(sys.argv[1:])
        print "starting subcommand:", " ".join(cmdlist)
        process = subprocess.Popen(cmdlist)
        process.wait()
{'fraction_non_alphanumeric': 0.1425206124852768, 'fraction_numerical': 0.012956419316843345, 'mean_word_length': 2.9906103286384975, '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': '911338', 'n_tokens_mistral': 288, 'n_tokens_neox': 281, 'n_words': 66}