<commit_before>import zmq
import sys
context = zmq.Context()
socket = context.socket(zmq.REQ)
socket.connect("tcp://127.0.0.1:3999")
msg=""
for a in sys.argv[1::]:
	msg += "%s " %a
socket.send(msg)
reply = socket.recv()
print("> %s" %reply)
<commit_msg>Extend control.py with help and port specification<commit_after>import zmq
import sys

if len(sys.argv) < 3:
    print("Usage: %s <control_port> <args...>")
    sys.exit(1)

context = zmq.Context()
socket = context.socket(zmq.REQ)    
socket.connect("tcp://127.0.0.1:%s" %sys.argv[1])
msg=""
for a in sys.argv[2::]:
	msg += "%s " %a
socket.send(msg)
reply = socket.recv()
print("> %s" %reply)
context.destroy()
{'fraction_non_alphanumeric': 0.20512820512820512, 'fraction_numerical': 0.03167420814479638, 'mean_word_length': 4.487603305785124, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '2670298', 'n_tokens_mistral': 267, 'n_tokens_neox': 259, 'n_words': 62}