<commit_before>(function(window){

	if('function' === typeof window.highlight)
	{
		(console.warn||console.log).call(console,'The syntax highlight for Javascript is broken.');
		
		window.highlight.javascript=[
			{
				'class':'string',
				'regex':/("(?:[^"]|\\")*"|'(?:[^']|\\')*')(?=[\b\s\(\),:;\[\]\{\}])/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'number',
				'regex':/(?![a-z_\-])(\d+(?:\.\d+))(?=[\b\s\(\),])/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'keyword',
				'regex':/\b(do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|await|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)\b/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'comment',
				'regex':/(\/\/[^\r\n]*|\/\*(?:[^*]|\*[^\/])*\*\/)/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'regexp',
				'regex':/(\/(?:\\\/|[^\/])+\/[gim]?)/g,
				'replace':window.highlight.default_replace
			}
		];
	}

})(Function('return this')());
<commit_msg>Fixed general bugs in matching<commit_after>(function(window){

	if('function' === typeof window.highlight)
	{
		(console.warn||console.log).call(console,'The syntax highlight for Javascript is broken.');
		
		window.highlight.javascript=[
			{
				'class':'string',
                'regex':/("(?:[^"]|\\")*"|'(?:[^']|\\')*')(?=[\b\s\(\),:;])/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'number',
				'regex':/(?![a-z_\-])(\d+(?:\.\d+))(?=[\b\s\(\),:;])/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'comment',
				'regex':/(\/\/[^\r\n]*|\/\*(?:[^*]|\*[^\/])*\*\/)/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'regexp',
                'regex':/(\/(?:\\\/|[^\/])+\/(?:[gim]+)?)/g,
				'replace':window.highlight.default_replace
			},
			{
				'class':'keyword',
				'regex':/\b(do|if|in|for|let|new|try|var|case|else|enum|eval|null|this|true|void|with|await|break|catch|class|const|false|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)\b/g,
				'replace':window.highlight.default_replace
			}
		];
	}

})(Function('return this')());

{'fraction_non_alphanumeric': 0.2798238590872698, 'fraction_numerical': 0.0, 'mean_word_length': 4.283298097251586, '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': '1962751', 'n_tokens_mistral': 1088, 'n_tokens_neox': 909, 'n_words': 62}