<commit_before>package markdown

import (
	"fmt"
	"regexp"
)

func BoldText(haystack, needle string) string {
	output := haystack
	return regexp.MustCompile(`(?i)\b(`+regexp.QuoteMeta(needle)+`)`).ReplaceAllString(output, "**$1**")
}
<commit_msg>update text/markdown<commit_after>package markdown

import (
	"fmt"
	"regexp"
)

// BoldText bodifies the identified text. It looks for start of words
// using a word boundary and will arbirarily end to match words with
// different suffixes.
func BoldText(haystack, needle string) string {
	output := haystack
	return regexp.MustCompile(`(?i)\b(`+regexp.QuoteMeta(needle)+`)`).ReplaceAllString(output, "**$1**")
}

{'fraction_non_alphanumeric': 0.14977307110438728, 'fraction_numerical': 0.0030257186081694403, 'mean_word_length': 5.686868686868687, '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': '7026899', 'n_tokens_mistral': 235, 'n_tokens_neox': 221, 'n_words': 56}