<commit_before><commit_msg>test keyboard input<commit_after>import time
from pykeyboard import PyKeyboard

k = PyKeyboard()

def tap_space():
    k.press_key(' ')
    time.sleep(0.05)
    k.release_key(' ')

def press_left():
    k.press_key('a')

def release_left():
    k.release_key('a')

def press_right():
    k.press_key('d')

def release_right():
    k.release_key('d')

if __name__ == '__main__':
    for i in range(1, 4):
        print '%d...' % i
        time.sleep(1)

    print 'starting...'
    tap_space()

    time.sleep(1)

    print 'PRESSING UP'
    press_left()

    time.sleep(0.5)

    print 'letting go...'
    release_left()
{'fraction_non_alphanumeric': 0.15765069551777433, 'fraction_numerical': 0.013910355486862442, 'mean_word_length': 2.8117647058823527, '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': '4570396', 'n_tokens_mistral': 243, 'n_tokens_neox': 236, 'n_words': 52}