<commit_before>def depth_argument(value, name):
    if value < 3:
        raise ValueError("The {} argument has to be <= 3, you gave : {}"
                         .format(name, value))
    return int(value)


def true_false(value, name):
    if value == "true":
        return True
    elif value == "false":
        return False
    else:
        raise ValueError("The {} argument must be true or false, you gave : {}"
                         .format(name, value))

def option_value(values):
    def to_return(name, value):
        if not value in values:
            error = "The {} argument must be in list"+str(values)
            error +=", you gave {}".format(name, value)
            raise ValueError(error)
        return value
    return to_return
<commit_msg>Jormungandr : Correction bug sur les input option value<commit_after>def depth_argument(value, name):
    if value < 3:
        raise ValueError("The {} argument has to be <= 3, you gave : {}"
                         .format(name, value))
    return int(value)


def true_false(value, name):
    if value == "true":
        return True
    elif value == "false":
        return False
    else:
        raise ValueError("The {} argument must be true or false, you gave : {}"
                         .format(name, value))

def option_value(values):
    def to_return(value, name):
        if not value in values:
            error = "The {} argument must be in list"+str(values)
            error +=", you gave {}".format(name, value)
            raise ValueError(error)
        return value
    return to_return

{'fraction_non_alphanumeric': 0.10795454545454546, 'fraction_numerical': 0.0025252525252525255, 'mean_word_length': 2.0657640232108316, 'pattern_counts': {'":': 4, '<': 7, '<?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': '6426186', 'n_tokens_mistral': 432, 'n_tokens_neox': 428, 'n_words': 153}