<commit_before>from enum import Enum


class StrEnum(str, Enum):
    def __str__(self):
        return self.value

    # pylint: disable=no-self-argument
    # The first argument to this function is documented to be the name of the
    # enum member, not `self`:
    # https://docs.python.org/3.6/library/enum.html#using-automatic-values
    def _generate_next_value_(name, *_):
        return name


def StrLiteral(value: str):
    return StrEnum(value, value)<commit_msg>cleanup arg weirdness<commit_after>from enum import Enum


class StrEnum(str, Enum):
    def __str__(self):
        return self.value

    # https://docs.python.org/3.6/library/enum.html#using-automatic-values
    def _generate_next_value_(name, start, count, last_values):
        return name


def StrLiteral(value: str):
    return StrEnum(value, value)
{'fraction_non_alphanumeric': 0.1037394451145959, 'fraction_numerical': 0.0048250904704463205, 'mean_word_length': 3.4623655913978495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2053789', 'n_tokens_mistral': 261, 'n_tokens_neox': 248, 'n_words': 68}