<commit_before>package main

import (
	"github.com/fluffle/goirc/client"
	"github.com/ianremmler/geauxbot/flip"
	"github.com/ianremmler/geauxbot/weather"

	"flag"
	"fmt"
	"log"
	"os"
	"strings"
)

const (
	flipCmd    = "!flip"
	weatherCmd = "!weather"
	table      = "┻━┻"
)

var (
	nick    string
	server  string
	channel string
)

func main() {
	log.SetFlags(0)
	log.SetPrefix("geauxbot: ")

	flag.Usage = func() {
		fmt.Println("usage: geauxbot [-n <nick>] [-s <server>] #channel")
	}
	flag.StringVar(&nick, "n", "geauxbot", "nick of the bot")
	flag.StringVar(&server, "s", "irc.freenode.net", "IRC server")
	flag.Parse()

	if flag.NArg() < 1 {
		flag.Usage()
		os.Exit(0)
	}
	channel = flag.Arg(0)
	if !strings.HasPrefix(channel, "#") {
		log.Fatalf("%s is not a valid channel", channel)
	}

	quit := make(chan bool)
	c := client.SimpleClient(nick)
	c.HandleFunc(client.CONNECTED, func(conn *client.Conn, line *client.Line) {
		conn.Join(channel)
	})
	c.HandleFunc(client.DISCONNECTED, func(conn *client.Conn, line *client.Line) {
		fmt.Println("disconnected :(")
		quit <- true
	})
	c.HandleFunc(client.PRIVMSG, handlePrivMsg)
	if err := c.ConnectTo("irc.freenode.net"); err != nil {
		fmt.Printf("Connection error: %s\n", err)
	}<commit_msg>Fixed to use specified server.<commit_after>package main

import (
	"github.com/fluffle/goirc/client"
	"github.com/ianremmler/geauxbot/flip"
	"github.com/ianremmler/geauxbot/weather"

	"flag"
	"fmt"
	"log"
	"os"
	"strings"
)

const (
	flipCmd    = "!flip"
	weatherCmd = "!weather"
	table      = "┻━┻"
)

var (
	nick    string
	server  string
	channel string
)

func main() {
	log.SetFlags(0)
	log.SetPrefix("geauxbot: ")

	flag.Usage = func() {
		fmt.Println("usage: geauxbot [-n <nick>] [-s <server>] #channel")
	}
	flag.StringVar(&nick, "n", "geauxbot", "nick of the bot")
	flag.StringVar(&server, "s", "irc.freenode.net", "IRC server")
	flag.Parse()

	if flag.NArg() < 1 {
		flag.Usage()
		os.Exit(0)
	}
	channel = flag.Arg(0)
	if !strings.HasPrefix(channel, "#") {
		log.Fatalf("%s is not a valid channel", channel)
	}

	quit := make(chan bool)
	c := client.SimpleClient(nick)
	c.HandleFunc(client.CONNECTED, func(conn *client.Conn, line *client.Line) {
		conn.Join(channel)
	})
	c.HandleFunc(client.DISCONNECTED, func(conn *client.Conn, line *client.Line) {
		fmt.Println("disconnected :(")
		quit <- true
	})
	c.HandleFunc(client.PRIVMSG, handlePrivMsg)
	if err := c.ConnectTo(server); err != nil {
		fmt.Printf("Connection error: %s\n", err)
	}
{'fraction_non_alphanumeric': 0.18061674008810572, 'fraction_numerical': 0.0032038446135362435, 'mean_word_length': 3.996, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '6904101', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1011, 'n_words': 198}