<commit_before>import win32api
import win32con
import time

while True:

    if win32api.GetAsyncKeyState(81) != 0 and win32api.GetAsyncKeyState(16) != 0:

        while True:

            (x,y) = win32api.GetCursorPos() #Get the current position of the cursor
            win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
            win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
            time.sleep(0.01)

            if win32api.GetAsyncKeyState(87) != 0 and win32api.GetAsyncKeyState(16) != 0:

                break<commit_msg>Added multiple threads and clicks/second counter<commit_after>import win32api
import win32con
import threading
import time

cps = 0

def counter():

    while True:
        global cps
        print("Clicks Per Second", cps)
        cps = 0
        time.sleep(1)

def clicker():

    global cps

    while True:

        if win32api.GetAsyncKeyState(81) != 0 and win32api.GetAsyncKeyState(16) != 0:

            while True:

                (x,y) = win32api.GetCursorPos() #Get the current position of the cursor
                win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
                win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
                cps += 1
                time.sleep(0.01)

                if win32api.GetAsyncKeyState(87) != 0 and win32api.GetAsyncKeyState(16) != 0:
                    break
                    cps = 0


threading.Thread(target = clicker).start()
threading.Thread(target = counter).start()
{'fraction_non_alphanumeric': 0.09583608724388631, 'fraction_numerical': 0.05750165234633179, 'mean_word_length': 2.3421633554083887, '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': '70514', 'n_tokens_mistral': 554, 'n_tokens_neox': 490, 'n_words': 103}