<commit_before>package Sisimai::RFC3834;
use feature ':5.10';
use strict;
use warnings;

# http://tools.ietf.org/html/rfc3834
my $Re0 = {
    # http://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml
    'auto-submitted' => qr/\Aauto-(?:generated|replied|notified)/i,
    # https://msdn.microsoft.com/en-us/library/ee219609(v=exchg.80).aspx
    'x-auto-response-suppress' => qr/(?:OOF|AutoReply)/i,
    'precedence' => qr/\Aauto_reply\z/,
    'subject' => qr/\A(?>
         Auto:
        |Auto[ ]Response:
        |Automatic[ ]reply:
        |Out[ ]of[ ](?:the[ ])*Office:
        )
    /xi,
};
my $Re1 = {
    'boundary' => qr/\A__SISIMAI_PSEUDO_BOUNDARY__\z/,
    'endof'    => qr/\A__END_OF_EMAIL_MESSAGE__\z/,
};
my $Re2 = {
    'subject' => qr{(?:
          SECURITY[ ]information[ ]for  # sudo
         |Mail[ ]failure[ ][-]          # Exim
         )
    }x,
    'from'    => qr/(?:root|postmaster|mailer-daemon)[@]/i,
    'to'      => qr/root[@]/,
};
my $ReV = qr{\A(?>
     (?:.+?)*Re:<commit_msg>Import fixed regular expression from rb-Sisimai, reported by 'ruby -cw' and warning: nested repeat operator '+?' and '*' was replaced with '+? and ?' in regular expression<commit_after>package Sisimai::RFC3834;
use feature ':5.10';
use strict;
use warnings;

# http://tools.ietf.org/html/rfc3834
my $Re0 = {
    # http://www.iana.org/assignments/auto-submitted-keywords/auto-submitted-keywords.xhtml
    'auto-submitted' => qr/\Aauto-(?:generated|replied|notified)/i,
    # https://msdn.microsoft.com/en-us/library/ee219609(v=exchg.80).aspx
    'x-auto-response-suppress' => qr/(?:OOF|AutoReply)/i,
    'precedence' => qr/\Aauto_reply\z/,
    'subject' => qr/\A(?>
         Auto:
        |Auto[ ]Response:
        |Automatic[ ]reply:
        |Out[ ]of[ ](?:the[ ])*Office:
        )
    /xi,
};
my $Re1 = {
    'boundary' => qr/\A__SISIMAI_PSEUDO_BOUNDARY__\z/,
    'endof'    => qr/\A__END_OF_EMAIL_MESSAGE__\z/,
};
my $Re2 = {
    'subject' => qr{(?:
          SECURITY[ ]information[ ]for  # sudo
         |Mail[ ]failure[ ][-]          # Exim
         )
    }x,
    'from'    => qr/(?:root|postmaster|mailer-daemon)[@]/i,
    'to'      => qr/root[@]/,
};
my $ReV = qr{\A(?>
     (?:.+?)?Re:
{'fraction_non_alphanumeric': 0.20986547085201793, 'fraction_numerical': 0.019730941704035873, 'mean_word_length': 2.6158833063209075, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '2449013', 'n_tokens_mistral': 944, 'n_tokens_neox': 895, 'n_words': 137}