<commit_before>package main

import (
	"strings"
)

const (
	OWL_REPLACEMENT_LIMIT = 3
)

var (
	// Replacements that cause puns
	replacementMap = map[string]string{
		"all":   "OWL",
		"All":   "OWL",
		"al":    "OWL",
		"aul":   "OWL",
		"awl":   "OWL",
		"Al":    "OWL",
		"I'll":  "OWL",
		"about": "abHOOT",
		"About": "AbHOOT",
		"oot":   "HOOT",
	}
	// Black-listed puns
	exceptionMap = map[string]string{
		"reOWL": "real",
		"tOWLk": "talk",
	}
)

func punify(text string) (string, bool) {
	punifiedText := text
	replaceCount := 0

	for what, with := range replacementMap {
		if strings.Contains(punifiedText, what) {
			punifiedText = strings.Replace(punifiedText, what, with, -1)
			replaceCount += 1<commit_msg>more puns for the pun god<commit_after>package main

import (
	"strings"
)

const (
	OWL_REPLACEMENT_LIMIT = 3
)

var (
	// Replacements that cause puns
	replacementMap = map[string]string{
		"all":   "OWL",
		"All":   "OWL",
		"al":    "OWL",
		"aul":   "OWL",
		"awl":   "OWL",
		"Al":    "OWL",
		"I'll":  "OWL",
		"Howl":  "OWL",
		"howl":  "OWL",
		"foul":  "OWL",
		"Foul":  "OWL",
		"owel":  "OWL",
		"about": "abHOOT",
		"About": "AbHOOT",
		"oot":   "HOOT",
	}
	// Black-listed puns
	exceptionMap = map[string]string{
		"reOWL":     "real",
		"ReOWL":     "Real",
		"tOWLk":     "talk",
		"TOWLk":     "Talk",
		"chOWLk":    "chalk",
		"ChOWLk":    "Chalk",
		"stOWLk":    "stalk",
		"StOWLk":    "Stalk",
		"wOWLk":     "walk",
		"WOWLk":     "Walk",
		"bOWLk":     "balk",
		"BOWLk":     "Balk",
		"disembOWL": "disembowel", //plsno
	}
)

func punify(text string) (string, bool) {
	punifiedText := text
	replaceCount := 0

	for what, with := range replacementMap {
		if strings.Contains(punifiedText, what) {
			punifiedText = strings.Replace(punifiedText, what, with, -1)
			replaceCount += 1
{'fraction_non_alphanumeric': 0.19485495347564313, 'fraction_numerical': 0.004378762999452655, 'mean_word_length': 3.1545454545454548, 'pattern_counts': {'":': 40, '<': 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': '2900642', 'n_tokens_mistral': 865, 'n_tokens_neox': 799, 'n_words': 169}