<commit_before>from re import match


def validate_PIN(pin):
    """ validate_pin == PEP8, forced mixedCase by CodeWars """
    return bool(match(r'(\d{4}|\d{6})$', pin))

assert validate_PIN('') is False
assert validate_PIN('1') is False
assert validate_PIN('1234567') is False
assert validate_PIN('-1234') is False
assert validate_PIN('1111') is True
assert validate_PIN('123456') is True<commit_msg>Minor function name change<commit_after>from re import match


def validate_pin(pin):
    return bool(match(r'(\d{4}|\d{6})$', pin))

assert validate_pin('') is False
assert validate_pin('1') is False
assert validate_pin('1234567') is False
assert validate_pin('-1234') is False
assert validate_pin('1111') is True
assert validate_pin('123456') is True
{'fraction_non_alphanumeric': 0.13925729442970822, 'fraction_numerical': 0.0649867374005305, 'mean_word_length': 6.475247524752476, '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': '1661353', 'n_tokens_mistral': 268, 'n_tokens_neox': 231, 'n_words': 74}