<commit_before>from readkey import getch
from inter import send_keystroke


def demo1(DEBUG):
    keygen = getch(0.1)
    charge = 0
    inc = 0.1
    while 1:
        the_input = keygen.next()
        if the_input:
            # print the_input
            charge = inc + (1 - inc) * charge
            tempo = int(charge  *100)
            if DEBUG:
                print tempo * 'X'
            send_keystroke(tempo)
        else:
            charge = (1 - inc) * charge

if __name__ == '__main__':
    demo1(DEBUG=False)
<commit_msg>demo mode<commit_after>from readkey import getch
from inter import send_keystroke


def main(DEBUG):
    keygen = getch(0.1)
    charge = 0
    inc = 0.1
    while 1:
        the_input = keygen.next()
        if the_input:
            charge = inc + (1 - inc) * charge
            tempo = int(charge  *100)
            if DEBUG:
                print tempo * 'X'
            else:
                send_keystroke(tempo)
        else:
            charge = (1 - inc) * charge

if __name__ == '__main__':
    main(DEBUG=False)

{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.022641509433962263, 'mean_word_length': 1.5878048780487806, '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': '6354601', 'n_tokens_mistral': 352, 'n_tokens_neox': 334, 'n_words': 94}