<commit_before>from coalib.bearlib.aspects import Root, AspectDocumentation, AspectSetting


Root.new_subaspect(
    "Metadata",
    AspectDocumentation(
        definition="""
        This describes any aspect that is related to metadata that is not
        inside your source code.
        """
    )
)

Root.Metadata.new_subaspect(
    "CommitMessage",
    AspectDocumentation(
        definition="""
        Your commit message is important documentation associated with your
        source code. It can help you to identify bugs (e.g. through
        `git bisect`) or find missing information about unknown source code
        (through `git blame`).

        Commit messages are also sometimes used to generate - or write
        manually - release notes.
        """
    )
)

Root.Metadata.CommitMessage.new_subaspect(
    "Shortlog",<commit_msg>aspects.Metadata: Add CommitMessage.Emptiness<commit_after>from coalib.bearlib.aspects import Root, AspectDocumentation, AspectSetting


Root.new_subaspect(
    "Metadata",
    AspectDocumentation(
        definition="""
        This describes any aspect that is related to metadata that is not
        inside your source code.
        """
    )
)

Root.Metadata.new_subaspect(
    "CommitMessage",
    AspectDocumentation(
        definition="""
        Your commit message is important documentation associated with your
        source code. It can help you to identify bugs (e.g. through
        `git bisect`) or find missing information about unknown source code
        (through `git blame`).

        Commit messages are also sometimes used to generate - or write
        manually - release notes.
        """
    )
)

Root.Metadata.CommitMessage.new_subaspect(
    "Emptiness",
    AspectDocumentation(
        definition="""
        Your commit message serves as important documentation for your source
        code.
        """,
        example="(no text at all)",
        example_language="English",
        importance_reason="""
        An empty commit message shows the lack of documentation for your
        change.
        """,
        fix_suggestions="Write a commit message."
    )
)

Root.Metadata.CommitMessage.new_subaspect(
    "Shortlog",
{'fraction_non_alphanumeric': 0.0755656108597285, 'fraction_numerical': 0.0, 'mean_word_length': 2.606851549755302, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6325046', 'n_tokens_mistral': 569, 'n_tokens_neox': 573, 'n_words': 194}