<commit_before>from typing import List
import wiringpi

wiringpi.wiringPiSetup()

def enable(pins: List[int]):
    for pin in pins:
        wiringpi.softPwmCreate(pin, 0, 100)


def disable(pins: List[int]):
    for pin in pins:
        wiringpi.softPwmWrite(pin, 0)
        wiringpi.softPwmStop(pin)


cpdef set_pwm(pin: int, level: int):
    if 0 <= level <= 100:
        wiringpi.softPwmWrite(pin, level)
<commit_msg>remove redundant check<commit_after>from typing import List
import wiringpi

wiringpi.wiringPiSetup()

def enable(pins: List[int]):
    for pin in pins:
        wiringpi.softPwmCreate(pin, 0, 100)


def disable(pins: List[int]):
    for pin in pins:
        wiringpi.softPwmWrite(pin, 0)
        wiringpi.softPwmStop(pin)


cpdef set_pwm(int pin, int level):
    wiringpi.softPwmWrite(pin, level)

{'fraction_non_alphanumeric': 0.10648714810281518, 'fraction_numerical': 0.017135862913096694, 'mean_word_length': 3.569832402234637, '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': '5960630', 'n_tokens_mistral': 326, 'n_tokens_neox': 291, 'n_words': 74}