<commit_before>package bencode

import (
	"strings"
	"unicode"
)

func isValidTag(key string) bool {
	if key == "" {
		return false
	}
	for _, c := range key {
		if c != '$' && c != '-' && c != '_' && !unicode.IsLetter(c) && !unicode.IsDigit(c) {
			return false
		}
	}
	return true
}

func matchName(key string) func(string) bool {
	return func(s string) bool {
		return strings.ToLower(key) == strings.ToLower(s)
	}
}<commit_msg>Allow spaces in tags<commit_after>package bencode

import (
	"strings"
	"unicode"
)

func isValidTag(key string) bool {
	if key == "" {
		return false
	}
	for _, c := range key {
		if c != ' ' && c != '$' && c != '-' && c != '_' && !unicode.IsLetter(c) && !unicode.IsDigit(c) {
			return false
		}
	}
	return true
}

func matchName(key string) func(string) bool {
	return func(s string) bool {
		return strings.ToLower(key) == strings.ToLower(s)
	}
}
{'fraction_non_alphanumeric': 0.17480136208853575, 'fraction_numerical': 0.0, 'mean_word_length': 3.4321608040201004, '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': '1926149', 'n_tokens_mistral': 355, 'n_tokens_neox': 333, 'n_words': 82}