<commit_before>grammar Regex::P6Grammar::Grammar is Regex::P6Regex::Grammar;

    token TOP {
        <grammar_stmt> 
        <regex_stmt>* 
        [ $ || <.panic: 'Confused'> ]
        {*}
    }

    token name { <.ident> ** [\:\:] {*} }

    token longname {
        [
        | <.ident> [ \: sym \< <-[>]>*: \> ]?
        ]
        {*}
    }

    rule grammar_stmt { grammar <name> [ is <base=name> ]? \; {*} }

    rule regex_stmt {
        $<sym>=[regex|token|rule]
        <longname>
        \{ <nibbler> \}
        {*}
    }
<commit_msg>Use single quotes instead of backslashes for quoted literal punctuation.<commit_after>grammar Regex::P6Grammar::Grammar is Regex::P6Regex::Grammar;

    token TOP {
        <grammar_stmt> 
        <regex_stmt>* 
        [ $ || <.panic: 'Confused'> ]
        {*}
    }

    token name { <.ident> ** '::' {*} }

    token longname {
        [
        | <.ident> [ ':sym<' <-[>]>* '>' ]?
        ]
        {*}
    }

    rule grammar_stmt { grammar <name> [ is <base=name> ]? ';' {*} }

    rule regex_stmt {
        $<sym>=[regex|token|rule]
        <longname>
        '{' <nibbler> '}'
        {*}
    }

{'fraction_non_alphanumeric': 0.1986062717770035, 'fraction_numerical': 0.003484320557491289, 'mean_word_length': 1.7292161520190024, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '3078695', 'n_tokens_mistral': 442, 'n_tokens_neox': 412, 'n_words': 65}