<commit_before>import random
import time

arduino_connection = open("/dev/ttyACM0",'w')
for id in range(47):
    id_str = "{}\n".format(5000+id)
    rand_int = random.randint(0,4000)
    rand_str = "{}\n".format(rand_int)
    print repr(id_str), repr(rand_str)
    time.sleep(0.5)
    arduino_connection.write(id_str)
    time.sleep(0.5)
    arduino_connection.write(rand_str)

arduino_connection.close()<commit_msg>testing serial comms through dev file<commit_after>import random
import time

arduino_connection = open("/dev/ttyACM0",'w')
for id in range(47):
    id_str = "{}\n".format(5000+id)
    rand_int = random.randint(0,1000)
    rand_str = "{}\n".format(rand_int)
    print repr(id_str), repr(rand_str)
    time.sleep(0.75)
    arduino_connection.write(id_str)
    time.sleep(0.75)
    arduino_connection.write(rand_str)

arduino_connection.close()
{'fraction_non_alphanumeric': 0.1445221445221445, 'fraction_numerical': 0.039627039627039624, 'mean_word_length': 4.506410256410256, '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': '75068', 'n_tokens_mistral': 349, 'n_tokens_neox': 328, 'n_words': 52}