<commit_before>package acronym

import (
	"strings"
	"unicode"
)

// Abbreviate should return an abbreviated string based on s.
func Abbreviate(s string) string {
	parsed := replaceNonLettersWithWhitespace(s)

	fields := strings.Fields(parsed)
	result := ""
	for _, v := range fields {
		result += v[:1]
	}
	return strings.ToUpper(result)
}
<commit_msg>Extract generateAcronym<commit_after>package acronym

import (
	"strings"
	"unicode"
)

// Abbreviate should return an abbreviated string based on s.
func Abbreviate(s string) string {
	parsed := replaceNonLettersWithWhitespace(s)
	acronym := generateAcronym(parsed)
	return strings.ToUpper(acronym)
}

func generateAcronym(s string) string {
	result := ""
	for _, v := range strings.Fields(s) {
		result += v[:1]
	}
	return result
}

{'fraction_non_alphanumeric': 0.11435832274459974, 'fraction_numerical': 0.0025412960609911056, 'mean_word_length': 4.751824817518248, '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': '5177779', 'n_tokens_mistral': 283, 'n_tokens_neox': 272, 'n_words': 69}