<commit_before># Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.

##  Convert a value to a boolean
#
#   \param \type{bool|str|int} any value.
#   \return \type{bool}
def parseBool(value):
    return value in [True, "True", "true", 1]<commit_msg>Add "Yes" as an option for parsing bools<commit_after># Copyright (c) 2016 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.

##  Convert a value to a boolean
#
#   \param \type{bool|str|int} any value.
#   \return \type{bool}
def parseBool(value):
    return value in [True, "True", "true", "Yes", "yes", 1]
{'fraction_non_alphanumeric': 0.13312202852614896, 'fraction_numerical': 0.01901743264659271, 'mean_word_length': 3.8615384615384616, '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': '281149', 'n_tokens_mistral': 231, 'n_tokens_neox': 219, 'n_words': 84}