<commit_before>"""A collection of python stylers"""

import re


def sentencecase(string):
    """returns a string in sentencecase but with text in braces preserved

    parameters
    ----------
    string
        The string
    :returns
        The string in sentence-case (but preserving any text wrapped in braces
    """
    freezecaps = re.findall("\{[^{}]+\}", string)
    datalow = string.capitalize()
    sentencecase = re.split("\{[^{}]+\}", datalow)
    title = ''
    freezecaps.reverse()<commit_msg>change string to sentence for variable name and docstring in numpy mode<commit_after>"""A collection of python stylers"""

import re


def sentencecase(sentence):
    """returns a sentence in sentencecase but with text in braces preserved

    Parameters
    ----------
    sentence: str
        The sentence
        
    Returns
    -------
        The sentence in sentence-case (but preserving any text wrapped in braces)
    """
    freezecaps = re.findall("\{[^{}]+\}", sentence)
    datalow = sentence.capitalize()
    sentencecase = re.split("\{[^{}]+\}", datalow)
    title = ''
    freezecaps.reverse()
{'fraction_non_alphanumeric': 0.1408199643493761, 'fraction_numerical': 0.0, 'mean_word_length': 2.6940789473684212, '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': '4641650', 'n_tokens_mistral': 317, 'n_tokens_neox': 309, 'n_words': 103}