<commit_before>"""Comments."""

from .stmt import HDLStatement


class HDLComment(HDLStatement):
    """Comments. Only useful for code generation."""

    def __init__(self, text, **kwargs):
        """Initialize."""
        super(HDLComment, self).__init__(stmt_type='null', **kwargs)
        if len(text.split('\n')) > 1:
            raise ValueError('cannot have multiline text')
        self.text = text
<commit_msg>generate right kind of command with function<commit_after>"""Comments."""

from .stmt import HDLStatement


def make_comment(text):
    """Make comment."""
    if len(text.split('\n')) > 1:
        return HDLMultiLineComment(text)
    else:
        return HDLComment(text)


class HDLComment(HDLStatement):
    """Comments. Only useful for code generation."""

    def __init__(self, text, **kwargs):
        """Initialize."""
        super(HDLComment, self).__init__(stmt_type='null', **kwargs)
        if len(text.split('\n')) > 1:
            raise ValueError('cannot have multiline text')
        self.text = text

{'fraction_non_alphanumeric': 0.14739884393063585, 'fraction_numerical': 0.002890173410404624, 'mean_word_length': 3.1726907630522088, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1329969', 'n_tokens_mistral': 306, 'n_tokens_neox': 286, 'n_words': 80}