<commit_before># Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from collections import namedtuple

VersionInfo = namedtuple('VersionInfo', [
    'major',
    'minor',
    'micro',
    'releaselevel',
    'serial'
])

# DO NOT EDIT THIS DIRECTLY!  It is managed by bumpversion
__version__ = '1.0.0a3'

parts = __version__.split('.')

# handle the release level
if len(parts) < 4:
    parts.append('final')
elif parts[3] == 'a':
    parts[4] = 'alpha'
elif parts[3] == 'rc':
    parts[4] == 'candidate'

# Handle the serial
if len(parts) < 5:
    parts.append(0)

version_info = VersionInfo(*parts)
<commit_msg>fix formatting of version info<commit_after># Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

from collections import namedtuple

VersionInfo = namedtuple('VersionInfo', [
    'major',
    'minor',
    'micro',
    'releaselevel',
    'serial'
])

# DO NOT EDIT THIS DIRECTLY!  It is managed by bumpversion
__version__ = '1.0.0a3'

parts = __version__.split('.')

major = int(parts[0])
minor = int(parts[1])
micro = int(parts[2])
rel = 'final'
ser = 0

# handle the release level
if len(parts) >= 4:
    if parts[3] == 'a':
        rel = 'alpha'
    elif parts[3] == 'rc':
        rel == 'candidate'

# Handle the serial
if len(parts) < 5:
   ser = int(parts[4])

# Create the version info
version_info = VersionInfo(major, minor, micro, rel, ser)

{'fraction_non_alphanumeric': 0.13738892686261106, 'fraction_numerical': 0.016404647983595352, 'mean_word_length': 3.7225806451612904, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6163425', 'n_tokens_mistral': 505, 'n_tokens_neox': 490, 'n_words': 156}