<commit_before>from twisted.words.protocols import irc
from twisted.internet import reactor, protocol
from rq import Queue
from utils import process_diff
from worker import conn
import re


class Bot(irc.IRCClient):
    nickname = "wedgebot"

    def signedOn(self):
        self.join("#en.wikipedia")

    def privmsg(self, user, channel, msg):
        try:
            colors = re.compile("\x03(?:\d{1,2}(?:,\d{1,2})?)?", re.UNICODE)
            msg = colors.sub("", msg)
            print msg
            diffid = msg.split("?diff=")[1].split("&oldid")[0]
            usern = msg.split("* ")[1].split(" *")[0]
            print diffid, usern<commit_msg>moar client<commit_after>from twisted.words.protocols import irc
from twisted.internet import reactor, protocol
from rq import Queue
from utils import process_diff
from worker import conn
import re


class Bot(irc.IRCClient):
    nickname = "wedgebot"

    def signedOn(self):
        self.join("#en.wikipedia")

    def privmsg(self, user, channel, msg):
        try:
            colors = re.compile("\x03(?:\d{1,2}(?:,\d{1,2})?)?", re.UNICODE)
            msg = colors.sub("", msg)
            diffid = msg.split("?diff=")[1].split("&oldid")[0]
            usern = msg.split("* ")[1].split(" *")[0].strip()
{'fraction_non_alphanumeric': 0.1629746835443038, 'fraction_numerical': 0.015822784810126583, 'mean_word_length': 2.856707317073171, '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': '6553281', 'n_tokens_mistral': 427, 'n_tokens_neox': 410, 'n_words': 101}