<commit_before>package main

import (
	"flag"
	"github.com/breunigs/frank/frank"
	irc "github.com/fluffle/goirc/client"
	"log"
	"strings"
)

//~ const instaJoin = "#chaos-hd"
const instaJoin = "#test"

const nickServPass = ""

const ircServer = "irc.twice-irc.de"

func main() {
	flag.Parse() // parses the logging flags. TODO

	c := irc.SimpleClient("frank", "frank", "<NAME>")
	c.SSL = true

	// connect
	c.AddHandler(irc.CONNECTED,
		func(conn *irc.Conn, line *irc.Line) {
			log.Printf("Connected as: %s\n", conn.Me.Nick)
			conn.Privmsg("nickserv", "identify "+nickServPass)
			for _, cn := range strings.Split(instaJoin, " ") {
				if cn != "" {
					conn.Join(cn)
				}
			}
		})

	// react
	c.AddHandler("PRIVMSG",
		func(conn *irc.Conn, line *irc.Line) {
			//~ tgt := line.Args[0]
			//~ msg := line.Args[1]

			go func() { frank.RaumBang(conn, line) }()
			go func() { frank.UriFind(conn, line) }()

			if line.Args[0] == conn.Me.nick && line.Args[1] == "help" {<commit_msg>typo, joker is a lousy code reviewer.<commit_after>package main

import (
	"flag"
	"github.com/breunigs/frank/frank"
	irc "github.com/fluffle/goirc/client"
	"log"
	"strings"
)

//~ const instaJoin = "#chaos-hd"
const instaJoin = "#test"

const nickServPass = ""

const ircServer = "irc.twice-irc.de"

func main() {
	flag.Parse() // parses the logging flags. TODO

	c := irc.SimpleClient("frank", "frank", "<NAME>")
	c.SSL = true

	// connect
	c.AddHandler(irc.CONNECTED,
		func(conn *irc.Conn, line *irc.Line) {
			log.Printf("Connected as: %s\n", conn.Me.Nick)
			conn.Privmsg("nickserv", "identify "+nickServPass)
			for _, cn := range strings.Split(instaJoin, " ") {
				if cn != "" {
					conn.Join(cn)
				}
			}
		})

	// react
	c.AddHandler("PRIVMSG",
		func(conn *irc.Conn, line *irc.Line) {
			//~ tgt := line.Args[0]
			//~ msg := line.Args[1]

			go func() { frank.RaumBang(conn, line) }()
			go func() { frank.UriFind(conn, line) }()

			if line.Args[0] == conn.Me.Nick && line.Args[1] == "help" {
{'fraction_non_alphanumeric': 0.19558676028084251, 'fraction_numerical': 0.004012036108324975, 'mean_word_length': 3.2088607594936707, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '269333', 'n_tokens_mistral': 898, 'n_tokens_neox': 811, 'n_words': 160}