<commit_before>"""OpenAPI core schemas util module"""
from distutils.util import strtobool


def forcebool(val):
    if isinstance(val, str):
        val = strtobool(val)

    return bool(val)<commit_msg>Python 2.7: Check instance on string_types from six instead of str<commit_after>"""OpenAPI core schemas util module"""
from distutils.util import strtobool
from six import string_types


def forcebool(val):
    if isinstance(val, string_types):
        val = strtobool(val)

    return bool(val)
{'fraction_non_alphanumeric': 0.09218436873747494, 'fraction_numerical': 0.004008016032064128, 'mean_word_length': 4.434782608695652, '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': '955782', 'n_tokens_mistral': 153, 'n_tokens_neox': 149, 'n_words': 49}