<commit_before># encoding: utf-8

"""
.. codeauthor:: <NAME> <<EMAIL>>
"""

from __future__ import absolute_import


def lower_bool_converter(bool_value):
    return str(bool_value).lower()<commit_msg>Add strip_quote function<commit_after># encoding: utf-8

"""
.. codeauthor:: <NAME> <<EMAIL>>
"""

from __future__ import absolute_import
import re


def lower_bool_converter(bool_value):
    return str(bool_value).lower()


def strip_quote(text, value):
    re_replace = re.compile(
        '["\']%s["\']' % (value), re.MULTILINE)
    return re_replace.sub(value, text)
{'fraction_non_alphanumeric': 0.15761821366024517, 'fraction_numerical': 0.0035026269702276708, 'mean_word_length': 4.896907216494846, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2983768', 'n_tokens_mistral': 200, 'n_tokens_neox': 194, 'n_words': 42}