<commit_before>package plugins

import (
	"strings"
	"ircclient"
	"fmt"
)

type QDevoicePlugin struct {
	ic *ircclient.IRCClient
}

func (q *QDevoicePlugin) Register(cl *ircclient.IRCClient) {
	q.ic = cl
}

func (q *QDevoicePlugin) String() string {
	return "q-devoice"
}

func (q *QDevoicePlugin) Info() string {
	return "automatically de-voices people who got voice by Norad after saying \"!q\""
}

func (q *QDevoicePlugin) Usage(cmd string) string {
	// stub for interface satisfaction
	return ""
}

func (q *QDevoicePlugin) ProcessLine(msg *ircclient.IRCMessage) {
	if strings.Index(msg.Source, "cl-faui2k9") == 0 && msg.Command == "MODE" &&
		msg.Args[0] == "+v" && len(msg.Args) > 1 {
		line := fmt.Sprintf("MODE %s -v :%s", msg.Target, msg.Args[1])
		q.ic.SendLine(line)
	}
}

func (q *QDevoicePlugin) ProcessCommand(cmd *ircclient.IRCCommand) {
	return
}
<commit_msg>Update troll plugin<commit_after>package plugins

import (
	"strings"
	"ircclient"
	"fmt"
)

type QDevoicePlugin struct {
	ic *ircclient.IRCClient
}

func (q *QDevoicePlugin) Register(cl *ircclient.IRCClient) {
	q.ic = cl
}

func (q *QDevoicePlugin) String() string {
	return "q-devoice"
}

func (q *QDevoicePlugin) Info() string {
	return "automatically de-voices people who got voice by Norad after saying \"!q\""
}

func (q *QDevoicePlugin) Usage(cmd string) string {
	// stub for interface satisfaction
	return ""
}

func (q *QDevoicePlugin) ProcessLine(msg *ircclient.IRCMessage) {
	if len(msg.Args) >= 1 && strings.SplitN(msg.Args[0], " ", 2)[0] == "!q" && strings.Index(msg.Source, "siccegge") == 0 {
		line := fmt.Sprintf("MODE %s +v siccegge", msg.Target, "siccegge")
		q.ic.SendLine(line)
	}
	if strings.Index(msg.Source, "cl-faui2k9") == 0 && msg.Command == "MODE" &&
		msg.Args[0] == "+v" && len(msg.Args) > 1 {
		line := fmt.Sprintf("MODE %s -v :%s", msg.Target, msg.Args[1])
		q.ic.SendLine(line)
	}
}

func (q *QDevoicePlugin) ProcessCommand(cmd *ircclient.IRCCommand) {
	return
}

{'fraction_non_alphanumeric': 0.1659056316590563, 'fraction_numerical': 0.008625063419583967, 'mean_word_length': 4.402739726027397, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5176209', 'n_tokens_mistral': 796, 'n_tokens_neox': 781, 'n_words': 183}