<commit_before>"""Alert on GuardDuty"""
from stream_alert.rule_processor.rules_engine import StreamRules

rule = StreamRules.rule
disable = StreamRules.disable()


@rule(logs=['cloudwatch:events'],
      matchers=['guardduty'],
      outputs=['slack:sample-channel'])
def guardduty(rec):
    """
    author:         spiper
    description:    Alert on GuardDuty events<commit_msg>Ignore unused variable<commit_after>"""Alert on GuardDuty"""
from stream_alert.rule_processor.rules_engine import StreamRules

rule = StreamRules.rule
disable = StreamRules.disable()


@rule(logs=['cloudwatch:events'],
      matchers=['guardduty'],
      outputs=['slack:sample-channel'])
def guardduty(*_):
    """
    author:         spiper
    description:    Alert on GuardDuty events
{'fraction_non_alphanumeric': 0.12630208333333334, 'fraction_numerical': 0.0, 'mean_word_length': 4.532374100719425, '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': '6704645', 'n_tokens_mistral': 229, 'n_tokens_neox': 220, 'n_words': 47}