<commit_before>import json
import time, threading
from app import app
import RPi.GPIO as GPIO

# GPIO ports on RPI for fingers
L_THUMB      = 19
L_INDEX      = 17
L_MIDDLE     = 27
L_RING       = 22
L_PINKY      = 5
L_PALM       = 6
L_BACK       = 13
R_THUMB      = 18
R_INDEX      = 23
R_MIDDLE     = 24
R_RING       = 25
R_PINKY      = 12
R_PALM       = 16
R_BACK       = 20

# timeout for check and also point of time
POINT_OF_TIME = 0.5

class RPI:
    def __init__(self):
        GPIO.setmode(GPIO.BCM)
        GPIO.setup(L_THUMB, GPIO.OUT)
        GPIO.output(L_THUMB,False)
        GPIO.setup(L_INDEX, GPIO.OUT)
        GPIO.output(L_INDEX,False)
        GPIO.setup(L_MIDDLE, GPIO.OUT)
        GPIO.output(L_MIDDLE,False)
        GPIO.setup(L_RING, GPIO.OUT)
        GPIO.output(L_RING,False)
        GPIO.setup(L_PINKY, GPIO.OUT)
        GPIO.output(L_PINKY,False)
        GPIO.setup(L_PALM, GPIO.OUT)
        GPIO.output(L_PALM,False)
        GPIO.setup(L_BACK, GPIO.OUT)<commit_msg>time extend to 1 second<commit_after>import json
import time, threading
from app import app
import RPi.GPIO as GPIO

# GPIO ports on RPI for fingers
L_THUMB      = 19
L_INDEX      = 17
L_MIDDLE     = 27
L_RING       = 22
L_PINKY      = 5
L_PALM       = 6
L_BACK       = 13
R_THUMB      = 18
R_INDEX      = 23
R_MIDDLE     = 24
R_RING       = 25
R_PINKY      = 12
R_PALM       = 16
R_BACK       = 20

# timeout for check and also point of time
POINT_OF_TIME = 1

class RPI:
    def __init__(self):
        GPIO.setmode(GPIO.BCM)
        GPIO.setup(L_THUMB, GPIO.OUT)
        GPIO.output(L_THUMB,False)
        GPIO.setup(L_INDEX, GPIO.OUT)
        GPIO.output(L_INDEX,False)
        GPIO.setup(L_MIDDLE, GPIO.OUT)
        GPIO.output(L_MIDDLE,False)
        GPIO.setup(L_RING, GPIO.OUT)
        GPIO.output(L_RING,False)
        GPIO.setup(L_PINKY, GPIO.OUT)
        GPIO.output(L_PINKY,False)
        GPIO.setup(L_PALM, GPIO.OUT)
        GPIO.output(L_PALM,False)
        GPIO.setup(L_BACK, GPIO.OUT)
{'fraction_non_alphanumeric': 0.08985943775100401, 'fraction_numerical': 0.028112449799196786, 'mean_word_length': 2.143533123028391, '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': '1936462', 'n_tokens_mistral': 846, 'n_tokens_neox': 789, 'n_words': 167}