<commit_before># Copyright (c) 2015 Ultimaker B.V.
# Uranium is released under the terms of the AGPLv3 or higher.

class Version(object):
    def __init__(self, version):
        super().__init__()
        try:
            version_list = version.split(".")
        except AttributeError:
            version_list = version
        else:<commit_msg>Make the version number splitting a bit more tolerant of dashes and underscores. Fixes CURA-1421 Update checker not working<commit_after># Copyright (c) 2015 U<NAME>.V.
# Uranium is released under the terms of the AGPLv3 or higher.

class Version(object):
    def __init__(self, version):
        super().__init__()
        try:
            version_list = version.replace("-", ".").replace("_", ".").split(".")
        except AttributeError:
            version_list = version
        else:
{'fraction_non_alphanumeric': 0.10620525059665871, 'fraction_numerical': 0.016706443914081145, 'mean_word_length': 2.696035242290749, 'pattern_counts': {'":': 0, '<': 4, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '708517', 'n_tokens_mistral': 247, 'n_tokens_neox': 232, 'n_words': 80}