<commit_before># -*- coding: utf-8 -*-
from tehbot.plugins import *
import irc.client
import model
import threading
import time
from random import randint, random
import os.path

#import gettext
#t = gettext.translation("Shadowlamb", os.path.dirname(__file__) + "/i18n")
#_ = t.gettext
_ = lambda x: x

class ShadowlambPlugin(StandardCommand):
    """What, you don't know what shadowlamb is??"""

    def __init__(self):
        StandardCommand.__init__(self)

    def commands(self):
        return "sl"

    def execute_parsed(self, connection, event, extra, dbconn):
        if not self.is_privileged(extra):
            return self.request_priv(extra)

        return "Shadowlamb is teh greatest!"

class ShadowlambHandler(PrefixHandler):
    def command_prefix(self):
        #return "+"
        return u'\u00a5';

    def __init__(self):
        PrefixHandler.__init__(self)
        self.cmd2action = {
                "start" : self.start,
                "reset" : self.reset,
                "s" : self.status,
                "status" : self.status,
                "a" : self.attributes,
                "attributes" : self.attributes,
                "kw" : self.known_words,
                "known_words" : self.known_words,
                "kp" : self.known_places,
                "known_places" : self.known_places,
                "time" : self.show_time,
                "p" : self.party_status,
                "party" : self.party_status,
                }

    def initialize(self, dbconn):
        PrefixHandler.initialize(self, dbconn)
        #model.init()
        self.quit = False
        self.thread = threading.Thread(target=self.timerfunc)
        self.thread.start()

    def deinit(self, dbconn):
        self.quit = True
        self.thread.join()

    def cmd(self, args):
        return u"\x02%s%s\x02" % (self.command_prefix(), args)
<commit_msg>shadowlamb module: disable broken stuff<commit_after># -*- coding: utf-8 -*-
from tehbot.plugins import *
import irc.client
import model
import threading
import time
from random import randint, random
import os.path

#import gettext
#t = gettext.translation("Shadowlamb", os.path.dirname(__file__) + "/i18n")
#_ = t.gettext
_ = lambda x: x

class ShadowlambPlugin(StandardCommand):
    """What, you don't know what shadowlamb is??"""

    def __init__(self):
        StandardCommand.__init__(self)

    def commands(self):
        return "sl"

    def execute_parsed(self, connection, event, extra, dbconn):
        if not self.is_privileged(extra):
            return self.request_priv(extra)

        return "Shadowlamb is teh greatest!"

class ShadowlambHandler(PrefixHandler):
    def command_prefix(self):
        #return "+"
        return u'\u00a5';

    def __init__(self):
        PrefixHandler.__init__(self)
        self.cmd2action = {
                "start" : self.start,
                "reset" : self.reset,
                "s" : self.status,
                "status" : self.status,
                "a" : self.attributes,
                "attributes" : self.attributes,
                "kw" : self.known_words,
                "known_words" : self.known_words,
                "kp" : self.known_places,
                "known_places" : self.known_places,
                "time" : self.show_time,
                "p" : self.party_status,
                "party" : self.party_status,
                }

    def initialize(self, dbconn):
        PrefixHandler.initialize(self, dbconn)
        #model.init()
        self.quit = False
        self.thread = threading.Thread(target=self.timerfunc)
        #self.thread.start()

    def deinit(self, dbconn):
        self.quit = True
        #self.thread.join()

    def cmd(self, args):
        return u"\x02%s%s\x02" % (self.command_prefix(), args)

{'fraction_non_alphanumeric': 0.11741424802110818, 'fraction_numerical': 0.005804749340369393, 'mean_word_length': 2.0896495517522413, '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': '4923229', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1113, 'n_words': 252}