<commit_before>(function() {
	// there can be only one
	if (window.Glow) { return; }
	
	var glowMap,
		defaultBase,
		document = window.document,
		thisScriptSrc = ( document.body || document.getElementsByTagName('head')[0] ).lastChild.src;
	
	// get default base from last script element
	defaultBase = thisScriptSrc.slice( 0, thisScriptSrc.lastIndexOf('/') ) + '/../';
		
	// track when document is ready, must run before the page is finished loading
	if (!document.readyState) {
		if (document.addEventListener) { // like Mozilla
			document.addEventListener('DOMContentLoaded',
				function () {
					document.removeEventListener('DOMContentLoaded', arguments.callee, false);
					document.readyState = 'complete';
				},
				false<commit_msg>Modified glow loading code to defend against browser extensions which add elements to the document.<commit_after>(function() {

	// there can be only one
	if (window.Glow) { return; }
	window.Glow = true;
	
	var glowMap,
		defaultBase,
		document = window.document,
		scripts = document.getElementsByTagName('script'),
		thisScriptSrc = '';
	
	// we need to be very explicit to defend against some browser
	// extensions which add elements to the document unexpectedly
	for (var i = scripts.length; i--;) { // find the most recent script tag for glow
		if ( /\bglow\b/.test(scripts[i].src || '') ) {
			thisScriptSrc = scripts[i].src;
			break;
		}
	}
		
	// get default base from last script element
	defaultBase = thisScriptSrc? 
		thisScriptSrc.slice( 0, thisScriptSrc.lastIndexOf('/') +1 ) + '../'
		: '';
		
	// track when document is ready, must run before the page is finished loading
	if (!document.readyState) {
		if (document.addEventListener) { // like Mozilla
			document.addEventListener('DOMContentLoaded',
				function () {
					document.removeEventListener('DOMContentLoaded', arguments.callee, false);
					document.readyState = 'complete';
				},
				false
{'fraction_non_alphanumeric': 0.12129099427381572, 'fraction_numerical': 0.002082248828735034, 'mean_word_length': 3.67639902676399, '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': '1486344', 'n_tokens_mistral': 611, 'n_tokens_neox': 532, 'n_words': 165}