<commit_before>$.extend({	
	getUrlQueryString:function(url) {	
		// spliting the url and query string using question mark
		var splitUrl = url.split("?"); 
		
		// again spliting the data which will have & symbol
		var strUrl = (splitUrl.length>1) ? splitUrl[1].split("&") : 0;
		
		var i = 0;
		var iLen = strUrl.length;
		
		var str = '';
		var obj = {};

		// iterator to assign key pair values into obj variable
		for(i=0;i<iLen;i++) {
			str = strUrl[i].split("=");
			if (str[0].length > 0 && typeof str[1] !== 'undefined') {
				obj[str[0]] = str[1];
			}
		}

		// returning the value
		return Array.prototype.sort.call(obj);
	}
});<commit_msg>If url and query string is empty, short circuits and returns empty object<commit_after>$.extend({	
	getUrlQueryString:function(url) {	
		if (url.length > 0) {
			// spliting the url and query string using question mark
			var splitUrl = url.split("?"); 
			
			// again spliting the data which will have & symbol
			var strUrl = (splitUrl.length>1) ? splitUrl[1].split("&") : 0;
			
			var i = 0;
			var iLen = strUrl.length;
			
			var str = '';
			var obj = {};

			// iterator to assign key pair values into obj variable
			for(i=0;i<iLen;i++) {
				str = strUrl[i].split("=");
				if (str[0].length > 0 && typeof str[1] !== 'undefined') {
					obj[str[0]] = str[1];
				}
			}

			// returning the value
			return Array.prototype.sort.call(obj);

		} else {
			return {};
		}
	}
});
{'fraction_non_alphanumeric': 0.16411682892906815, 'fraction_numerical': 0.014603616133518776, 'mean_word_length': 2.816976127320955, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, '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': '5859844', 'n_tokens_mistral': 591, 'n_tokens_neox': 493, 'n_words': 141}