<commit_before>import abc


class TypeValue(metaclass=abc.ABCMeta):
    """
    A value and type combo needed for codegen.
    >>> from . import types
    >>> TypeValue(1, types.c_type('int'))
    TypeValue(value=1, type=int, name='...')
    """
    def __init__(self, value, type):
        self.value = value
        self.type = type

    def __repr__(self):
        return "TypeValue(value={}, type={}, name='{}')".format(
            self.value,
            self.type,
            None
        )<commit_msg>Added test and implementation for assigned names<commit_after>import abc


class TypeValue(metaclass=abc.ABCMeta):
    """
    A value and type combo needed for codegen.
    >>> from . import types
    >>> TypeValue(1, types.c_type('int'))
    TypeValue(value=1, type=int, name='...')
    >>> TypeValue(1, types.c_type('int'), name='test')
    TypeValue(value=1, type=int, name='test')
    """
    def __init__(self, value, type, name=None):
        self.value = value
        self.type = type
        self.name = name

    def __repr__(self):
        return "TypeValue(value={}, type={}, name='{}')".format(
            self.value,
            self.type,
            self.name,
        )
{'fraction_non_alphanumeric': 0.15525876460767946, 'fraction_numerical': 0.005008347245409015, 'mean_word_length': 2.3774647887323943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '2321749', 'n_tokens_mistral': 378, 'n_tokens_neox': 372, 'n_words': 89}