<commit_before>package template

//Hello says hello
func Hello() string {
	return "Hello!"
}

type RomanNumeral string

// Adds roman numerals together (Ex. I + III = IV)
func AddRoman(s RomanNumeral, t RomanNumeral) RomanNumeral {
	IsByLiteral := map[RomanNumeral]RomanNumeral{
		"I":"I",
		"II":"II",
		"III":"III",
		"IV":"IIII",
		"V":"IIIII",
		"VI":"IIIIII",
	}
	LiteralsByI := map[RomanNumeral]RomanNumeral{
		"IIIIII":"VI",
		"IIIII":"V",
		"IIII":"IV",
		"III":"III",
		"II":"II",
		"I":"I",
	}
    Is := IsByLiteral[s] + IsByLiteral[t]
	return LiteralsByI[Is]
}<commit_msg>Moved conversion functions to type<commit_after>package template

//Hello says hello
func Hello() string {
	return "Hello!"
}

type RomanNumeral string

var isByLiteral = map[RomanNumeral]RomanNumeral{
	"I":   "I",
	"II":  "II",
	"III": "III",
	"IV":  "IIII",
	"V":   "IIIII",
	"VI":  "IIIIII",
}

var literalsByI = map[RomanNumeral]RomanNumeral{
	"IIIIII": "VI",
	"IIIII":  "V",
	"IIII":   "IV",
	"III":    "III",
	"II":     "II",
	"I":      "I",
}

// Adds roman numerals together (Ex. I + III = IV)
func AddRoman(s RomanNumeral, t RomanNumeral) RomanNumeral {
	Is := isByLiteral[s] + isByLiteral[t]
	return literalsByI[Is]
}
{'fraction_non_alphanumeric': 0.19173553719008266, 'fraction_numerical': 0.0, 'mean_word_length': 4.31140350877193, 'pattern_counts': {'":': 24, '<': 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': '2066688', 'n_tokens_mistral': 537, 'n_tokens_neox': 496, 'n_words': 114}