<commit_before>"""Enum related utilities."""
from __future__ import annotations

from enum import Enum
from typing import Any


class StrEnum(str, Enum):
    """Partial backport of Python 3.11's StrEnum for our basic use cases."""

    def __new__(cls, value: str, *args: Any, **kwargs: Any):  # type: ignore[no-untyped-def]
        """Create a new StrEnum instance."""<commit_msg>Add return type annotation to StrEnum (#60624)<commit_after>"""Enum related utilities."""
from __future__ import annotations

from enum import Enum
from typing import Any, TypeVar

T = TypeVar("T", bound="StrEnum")


class StrEnum(str, Enum):
    """Partial backport of Python 3.11's StrEnum for our basic use cases."""

    def __new__(cls: type[T], value: str, *args: Any, **kwargs: Any) -> T:
        """Create a new StrEnum instance."""
{'fraction_non_alphanumeric': 0.1315468940316687, 'fraction_numerical': 0.013398294762484775, 'mean_word_length': 4.372549019607843, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3797969', 'n_tokens_mistral': 254, 'n_tokens_neox': 233, 'n_words': 97}