<commit_before>(function() {
	// Insert a script tag pointing at the desired version of jQuery

	// Get the version from the url
	var jqueryRE = /[\\?&]jquery=([^&#]*)/,
		results = jqueryRE.exec( location.search ),
		version = "",
		myScriptTag = document.getElementsByTagName( "script" )[document.getElementsByTagName( "script" ).length - 1],
		baseUrl = myScriptTag.src.replace( /(.*)\/.*$/, "$1/" ),
		url = baseUrl + "jquery.js";

	if ( results ) {
		version = decodeURIComponent(results[results.length - 1].replace(/\+/g, " "));
		url = "http://code.jquery.com/jquery-"+version+".js";
	}

	document.write( "<script src='" + url + "'></script>" );

	document.write(
		'<script>' +
			'if ( parseInt( jQuery.fn.jquery.replace( /\\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {' +
			    'define( "jquery", [], function () { return jQuery; } );'+
			'}'+
		'</script>'
	);
}());<commit_msg>jQuery Tag Inserter: added check for jQuery existence in conditional that creates jQuery AMD definition. Fixes #4996. Win Phone 7/8: Slider onChange test failing.<commit_after>(function() {
	// Insert a script tag pointing at the desired version of jQuery

	// Get the version from the url
	var jqueryRE = /[\\?&]jquery=([^&#]*)/,
		results = jqueryRE.exec( location.search ),
		version = "",
		myScriptTag = document.getElementsByTagName( "script" )[document.getElementsByTagName( "script" ).length - 1],
		baseUrl = myScriptTag.src.replace( /(.*)\/.*$/, "$1/" ),
		url = baseUrl + "jquery.js";

	if ( results ) {
		version = decodeURIComponent(results[results.length - 1].replace(/\+/g, " "));
		url = "http://code.jquery.com/jquery-"+version+".js";
	}

	document.write( "<script src='" + url + "'></script>" );

	document.write(
		'<script>' +
			'if ( window.jQuery && parseInt( jQuery.fn.jquery.replace( /\\./g, "" ), 10 ) < 170 && window.define && window.define.amd ) {' +
			    'define( "jquery", [], function () { return jQuery; } );'+
			'}'+
		'</script>'
	);
}());
{'fraction_non_alphanumeric': 0.21651560926485397, 'fraction_numerical': 0.011077542799597181, 'mean_word_length': 3.485327313769752, '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': '630845', 'n_tokens_mistral': 716, 'n_tokens_neox': 656, 'n_words': 156}