<commit_before>package bothandlers

import (
	"fmt"
	"github.com/djosephsen/hal"
	"math/rand"
	"time"
	"net/http"
	"encoding/json"
)

type insult struct{
   Insult   string
   Severity string
}

var loveAndWar = &hal.Handler{
	Method:  hal.RESPOND,
	Pattern: `(love|insult) (\w+)`,
	Run: func(res *hal.Response) error {
		act:=res.Match[1]
		user:=res.Match[2]
		if user==`me`{ user = res.Envelope.User.Name}
		now:=time.Now()
		rand.Seed(int64(now.Unix()))

		var reply string
		if act == `love`{
			reply=makeLove(user)
		}else if act == `insult`{
			reply=makeWar(user)
		}
				return res.Reply(reply)<commit_msg>derp gotta export the name<commit_after>package bothandlers

import (
	"fmt"
	"github.com/djosephsen/hal"
	"math/rand"
	"time"
	"net/http"
	"encoding/json"
)

type insult struct{
   Insult   string
   Severity string
}

var LoveAndWar = &hal.Handler{
	Method:  hal.RESPOND,
	Pattern: `(love|insult) (\w+)`,
	Run: func(res *hal.Response) error {
		act:=res.Match[1]
		user:=res.Match[2]
		if user==`me`{ user = res.Envelope.User.Name}
		now:=time.Now()
		rand.Seed(int64(now.Unix()))

		var reply string
		if act == `love`{
			reply=makeLove(user)
		}else if act == `insult`{
			reply=makeWar(user)
		}
				return res.Reply(reply)
{'fraction_non_alphanumeric': 0.16546184738955824, 'fraction_numerical': 0.00642570281124498, 'mean_word_length': 3.810810810810811, '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': '2429429', 'n_tokens_mistral': 560, 'n_tokens_neox': 512, 'n_words': 104}