<commit_before>(function() {
	/* We want to get the device pixel ratio. */
	var pixelRatio = window.devicePixelRatio || 1;


	/* Actually implement the real `imgsrc` algorithm here */
	function getImgSrc(image) {
		if(!image.attributes['srcset']) return false;
		var img_src, img_ratio, i,
			imgsrc_parts = image.attributes['srcset'].nodeValue.split(",");

		for (i = 0; i < imgsrc_parts.length; i++)
		{
			img_src = imgsrc_parts[i].match(/[^\s]+/)[0];<commit_msg>Added test to see if srcset is supported, then proceed or cancel execution<commit_after>(function() {
	/* Test if it already supports srcset.*/
	if('srcset' in document.createElement('img')) return false;

	/* We want to get the device pixel ratio. */
	var pixelRatio = window.devicePixelRatio || 1;

	/* Actually implement the real `imgsrc` algorithm here */
	function getImgSrc(image) {
		if(!image.attributes['srcset']) return false;
		var img_src, img_ratio, i,
			imgsrc_parts = image.attributes['srcset'].nodeValue.split(",");

		for (i = 0; i < imgsrc_parts.length; i++)
		{
			img_src = imgsrc_parts[i].match(/[^\s]+/)[0];
{'fraction_non_alphanumeric': 0.15693430656934307, 'fraction_numerical': 0.005474452554744526, 'mean_word_length': 4.351219512195122, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6770847', 'n_tokens_mistral': 386, 'n_tokens_neox': 361, 'n_words': 100}