<commit_before># -*- coding: utf-8 -*-

import re

from slackbot.bot import listen_to, respond_to

MD5_REGEX = re.compile(r'([a-fA-F\d]{32})')


def extract_md5s(message):
    return set(MD5_REGEX.findall(message.body.get('text', '')))


@respond_to(MD5_REGEX)
def md5_active(message):
    message.reply('I will provide info about this md5')


@listen_to(MD5_REGEX)
def md5_passive(message):
    message.send('I will provide info about this md5')<commit_msg>Disable md5 listeners for now<commit_after># -*- coding: utf-8 -*-

import re

from slackbot.bot import listen_to, respond_to

MD5_REGEX = re.compile(r'([a-fA-F\d]{32})')


def extract_md5s(message):
    return set(MD5_REGEX.findall(message.body.get('text', '')))


def md5_active(message):
    message.reply('I will provide info about this md5')


def md5_passive(message):
    message.send('I will provide info about this md5')
{'fraction_non_alphanumeric': 0.14656144306651633, 'fraction_numerical': 0.02593010146561443, 'mean_word_length': 4.803921568627451, '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': '5249455', 'n_tokens_mistral': 336, 'n_tokens_neox': 325, 'n_words': 73}