<commit_before>import HTMLParser
import re
from base import ChatCmd

class Define(ChatCmd):

    def __init__(self, *args, **kwargs):
        self.avail_cmds = { 'define': self.definition } 
        super(Define, self).__init__()

    def definition(self, msg):

        def_list = self.webster_lookup(msg)

        if not def_list:
            def_list = self.urban_dictionary_lookup(msg)<commit_msg>dictionary cmds wasn't finding channel<commit_after>import HTMLParser
import re
from base import ChatCmd

class Define(ChatCmd):

    def __init__(self, *args, **kwargs):
        self.avail_cmds = { 'define': self.definition } 
        super(Define, self).__init__(self, *args, **kwargs)

    def definition(self, msg):

        def_list = self.webster_lookup(msg)

        if not def_list:
            def_list = self.urban_dictionary_lookup(msg)
{'fraction_non_alphanumeric': 0.10377358490566038, 'fraction_numerical': 0.0, 'mean_word_length': 3.2663316582914574, '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': '2092019', 'n_tokens_mistral': 272, 'n_tokens_neox': 252, 'n_words': 63}