<commit_before>import time
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)

while True:
    try:
        GPIO.output(17, GPIO.HIGH)
        print("LED on")
        time.sleep(1)
        GPIO.output(17, GPIO.LOW)
        print("LED off")
        time.sleep(1)
    except KeyboardInterrupt:
        GPIO.cleanup()<commit_msg>try gpio with servo<commit_after>import RPi.GPIO as GPIO
import time

GPIO.setmode(GPIO.BOARD)

GPIO.setup(12, GPIO.OUT)

p = GPIO.PWM(12, 50)

p.start(7.5)

try:
    while True:
        p.ChangeDutyCycle(7.5)
        time.sleep(1)
        p.ChangeDutyCycle(2.5)
        time.sleep(1)
        p.ChangeDutyCycle(12.5)
        time.sleep(1)
except KeyboardInterrupt:
    p.stop()
    GPIO.cleanup()
{'fraction_non_alphanumeric': 0.12768817204301075, 'fraction_numerical': 0.03494623655913978, 'mean_word_length': 2.449074074074074, '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': '990840', 'n_tokens_mistral': 291, 'n_tokens_neox': 282, 'n_words': 53}