<commit_before>import logging

import pydicom

logger = logging.getLogger(__name__)


class UID(pydicom.uid.UID):

    """Unique DICOM identifier with a highdicom-specific UID prefix."""

    def __new__(cls: type) -> None:
        prefix = '1.2.826.0.1.3680043.10.511.3.'
        identifier = pydicom.uid.generate_uid(prefix=prefix)
        super().__new__(cls, identifier)<commit_msg>Fix return value of uid class __new__ method<commit_after>import logging

import pydicom

logger = logging.getLogger(__name__)


class UID(pydicom.uid.UID):

    """Unique DICOM identifier with a highdicom-specific UID prefix."""

    def __new__(cls: type) -> str:
        prefix = '1.2.826.0.1.3680043.10.511.3.'
        identifier = pydicom.uid.generate_uid(prefix=prefix)
        return super().__new__(cls, identifier)
{'fraction_non_alphanumeric': 0.12360939431396786, 'fraction_numerical': 0.049443757725587144, 'mean_word_length': 3.525139664804469, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '769661', 'n_tokens_mistral': 297, 'n_tokens_neox': 273, 'n_words': 59}