<commit_before>package linkicon

import (
	"net/url"
	"regexp"
	"strconv"
)

// TODO: make icon types/guess table arguments?

var linkIconRe = regexp.MustCompile(`` +
	`<\s*link\s+` +
	`(?:` +
	`(?:rel=".*?(?P<rel>icon|apple-touch-icon|fluid-icon).*?")|` +
	`(?:href="(?P<href>.*?)")|` +
	`(?:sizes="(?P<width>\d+)x(?P<height>\d+)")|` +
	`.*?` +<commit_msg>Add comment about proper html parser<commit_after>package linkicon

import (
	"net/url"
	"regexp"
	"strconv"
)

// TODO: make icon types/guess table arguments?
// TODO: proper parser?

var linkIconRe = regexp.MustCompile(`` +
	`<\s*link\s+` +
	`(?:` +
	`(?:rel=".*?(?P<rel>icon|apple-touch-icon|fluid-icon).*?")|` +
	`(?:href="(?P<href>.*?)")|` +
	`(?:sizes="(?P<width>\d+)x(?P<height>\d+)")|` +
	`.*?` +
{'fraction_non_alphanumeric': 0.30486202365308807, 'fraction_numerical': 0.0, 'mean_word_length': 4.861538461538461, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '5874104', 'n_tokens_mistral': 353, 'n_tokens_neox': 338, 'n_words': 46}