<commit_before>__version__ = '3.0.0-rc.11'
__frontend_version__ = '^0.1.1'


def stable_semver():
    """
    Get the stable portion of the semantic version string (the first three
    numbers), without any of the trailing labels

    '3.0.0-rc.11' -> '3.0.0'
    """

    return __version__.split('-')[0]
<commit_msg>Revert version string back to 3.0.0rc11 and use LooseVersion to extract stable component.<commit_after>__version__ = '3.0.0rc11'
__frontend_version__ = '^0.1.1'


def stable_semver():
    """
    Get the stable portion of the semantic version string (the first three
    numbers), without any of the trailing labels

    '3.0.0rc11' -> '3.0.0'
    """
    from distutils.version import LooseVersion
    version_components = LooseVersion(__version__).version
    stable_ver_str = '.'.join(str(s) for s in version_components[0:3])
    return stable_ver_str

{'fraction_non_alphanumeric': 0.11912943871706758, 'fraction_numerical': 0.045819014891179836, 'mean_word_length': 3.528497409326425, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7415464', 'n_tokens_mistral': 306, 'n_tokens_neox': 292, 'n_words': 82}