<commit_before>package bothandlers

import (
	"time"
	"math/rand"
	"strings"
	"github.com/djosephsen/hal"
)

type ikr struct{
}

func (h *ikr) Method() string {
	return hal.HEAR
}

func (h *ikr) Usage() string {
	return `ikr - listens for enthusiasm; responds with validation`
}

func (h *ikr) Pattern() string {
	triggers:=[]string{
		"best.*ev(er|ar)",
		"so good",
		"they have the best",
		"awesome",
		"I love",
		"fantastic|wonderful|outstanding|magnificent|brilliant|genius|amazing",
		"ZOMG|OMG|OMFG",
		"(so|pretty) great",
		"off the hook",
	}
	pat := "(?i)"+strings.Join(triggers,"|")
	return pat
}

func (h *ikr) Run(res *hal.Response) error {<commit_msg>a few new triggers<commit_after>package bothandlers

import (
	"time"
	"math/rand"
	"strings"
	"github.com/djosephsen/hal"
)

type ikr struct{
}

func (h *ikr) Method() string {
	return hal.HEAR
}

func (h *ikr) Usage() string {
	return `ikr - listens for enthusiasm; responds with validation`
}

func (h *ikr) Pattern() string {
	triggers:=[]string{
		"best.*ev(er|ar)",
		"so good",
		"they have the best",
		"awesome",
		"I love",
		"fantastic|wonderful|outstanding|magnificent|brilliant|genius|amazing|epic|nice!",
		"ZOMG|OMG|OMFG",
		"(so|pretty) great",
		"off the hook",
	}
	pat := "(?i)"+strings.Join(triggers,"|")
	return pat
}

func (h *ikr) Run(res *hal.Response) error {
{'fraction_non_alphanumeric': 0.17555555555555555, 'fraction_numerical': 0.0, 'mean_word_length': 4.629166666666666, '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': '5534437', 'n_tokens_mistral': 589, 'n_tokens_neox': 551, 'n_words': 129}