<commit_before>import sys
import pigpio
import time

P_RED = 17
P_GREEN = 22
P_BLUE = 24

rgb_color = sys.argv[1:]
set_rgb(rgb_color)

def set_rgb(rgb_color):
    red = int(rgb_color[0])
    green = int(rgb_color[1])
    blue = int(rgb_color[2])
    pi.set_PWM_dutycycle(P_RED, red)
    pi.set_PWM_dutycycle(P_GREEN, green)
    pi.set_PWM_dutycycle(P_BLUE, blue)<commit_msg>Fixed LED control script<commit_after>import sys
import pigpio
import time

P_RED = 17
P_GREEN = 22
P_BLUE = 24

rgb_color = sys.argv[1:]


def set_rgb(rgb_color):
    red = int(rgb_color[0])
    green = int(rgb_color[1])
    blue = int(rgb_color[2])
    pi.set_PWM_dutycycle(P_RED, red)
    pi.set_PWM_dutycycle(P_GREEN, green)
    pi.set_PWM_dutycycle(P_BLUE, blue)


set_rgb(rgb_color)
{'fraction_non_alphanumeric': 0.11286089238845144, 'fraction_numerical': 0.026246719160104987, 'mean_word_length': 4.489208633093525, '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': '6921771', 'n_tokens_mistral': 351, 'n_tokens_neox': 329, 'n_words': 60}