<commit_before>package youtubeUrl

import (
	"regexp"
)

// Validate youtube url
func Valid(url string) bool {
	m, _ := regexp.MatchString(`((http://)?)(www\.)?((youtube\.com/)|(youtu.be)).+`, url)
	return m
}<commit_msg>Updated regex to check for video id length<commit_after>package youtubeUrl

import (
	"regexp"
)

// Validate youtube url
func Valid(url string) bool {
	m, _ := regexp.MatchString(`((?:http://)?)(?:www\.)?(?:(youtube\.com/(\/watch\?(?:\=.*v=((\w|-){11}))|.+))|(youtu.be\/\w{11}))`, url)
	return m
}
{'fraction_non_alphanumeric': 0.2543352601156069, 'fraction_numerical': 0.007707129094412331, 'mean_word_length': 4.416666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7410068', 'n_tokens_mistral': 211, 'n_tokens_neox': 199, 'n_words': 39}