<commit_before>#!/home/pi/coffee/venv/bin/python

import time
import sys
import os

sys.path.append(os.path.dirname(os.path.dirname(__file__)))

from coffee.models import Status

DEBUG = 1
PIN = 14


def main():
    import RPi.GPIO as GPIO

    GPIO.setmode(GPIO.BCM)
    status = Status()

    def rc_time(RCpin):
        reading = 0
        GPIO.setup(RCpin, GPIO.OUT)
        GPIO.output(RCpin, GPIO.LOW)
        time.sleep(0.1)

        GPIO.setup(RCpin, GPIO.IN)
        while (GPIO.input(RCpin) == GPIO.LOW):
            reading += 1
        return reading

    while True:
        if rc_time(PIN) < 1500:
            status.update(True)
        else:
            status.update(False)

main()<commit_msg>changed value required to update<commit_after>#!/home/pi/coffee/venv/bin/python

import time
import sys
import os

sys.path.append(os.path.dirname(os.path.dirname(__file__)))

from coffee.models import Status

DEBUG = 1
PIN = 14


def main():
    import RPi.GPIO as GPIO

    GPIO.setmode(GPIO.BCM)
    status = Status()

    def rc_time(RCpin):
        reading = 0
        GPIO.setup(RCpin, GPIO.OUT)
        GPIO.output(RCpin, GPIO.LOW)
        time.sleep(0.1)

        GPIO.setup(RCpin, GPIO.IN)
        while (GPIO.input(RCpin) == GPIO.LOW):
            reading += 1
        return reading

    while True:
        if rc_time(PIN) < 2500:
            status.update(True)
        else:
            status.update(False)

main()
{'fraction_non_alphanumeric': 0.11813759555246699, 'fraction_numerical': 0.015288394718554551, 'mean_word_length': 2.1648351648351647, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2174325', 'n_tokens_mistral': 507, 'n_tokens_neox': 474, 'n_words': 107}