<commit_before>import time
import os
import sys


RUNNING = True
PIPENAME = "/tmp/cheese_plate"

def int_signal_handler(signal, frame):
    global RUNNING
    RUNNING = False

def create_fifo(pipename):
    if not os.path.exists(pipename):
        os.mkfifo(pipename, 0666)
    else:
        os.chmod(pipename, 0666)
    print "Reading commands from: %s" % pipename
    sys.stdout.flush()
    fd = os.open(pipename, os.O_RDWR)
    fifo = os.fdopen(fd, 'r')
    return fifo

def do_cmd(cmd):
    print("Executing: %s" % cmd)
    sys.stdout.flush()
<commit_msg>add output with time to make log shows differences<commit_after>import time
import datetime
import os
import sys


RUNNING = True
PIPENAME = "/tmp/cheese_plate"

def int_signal_handler(signal, frame):
    global RUNNING
    RUNNING = False

def create_fifo(pipename):
    if not os.path.exists(pipename):
        os.mkfifo(pipename, 0666)
    else:
        os.chmod(pipename, 0666)
    print "Reading commands from: %s" % pipename
    sys.stdout.flush()
    fd = os.open(pipename, os.O_RDWR)
    fifo = os.fdopen(fd, 'r')
    return fifo

def do_cmd(cmd):
    print(datetime.datetime.now())
    print("Executing: %s" % cmd)
    sys.stdout.flush()

{'fraction_non_alphanumeric': 0.11608623548922056, 'fraction_numerical': 0.013266998341625208, 'mean_word_length': 3.25, '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': '7621773', 'n_tokens_mistral': 466, 'n_tokens_neox': 437, 'n_words': 107}