<commit_before>	</script>
	<script>
	Array.prototype.average = function (array){
		return this.reduce(function(prev,curr){return prev+curr;})/this.length;
	}
	function silverChallenge(candyCountObj){
		var candyCountJsonObj = JSON.parse(candyCountObj);
		var candyCountsParsed = {};
		var actualCandyCount = candyCountJsonObj.candy_count;
		var calculatedDelta;
		var winners = [];
		var winner_name_array = [];
		
		candyCountJsonObj['guessers'].forEach(function(element){
			if (element.name in candyCountsParsed){
				candyCountsParsed[element.name].push(element.guess);
			}else{
				candyCountsParsed[element.name] = [element.guess];	
			}
		});
		for (key in candyCountsParsed){
			calculatedDelta = Math.abs(candyCountsParsed[key].average()-actualCandyCount);
			if(winners.length === 0 || calculatedDelta < winners[0].delta){
				winners = [];
				winners.push({name: key, delta: calculatedDelta});
			}else if(calculatedDelta === winners[0].delta){
				winners.push({name: key, delta: calculatedDelta});
			}
		}
		winners.forEach(function (element){
			winner_name_array.push(element.name);<commit_msg>fix for silver test case<commit_after>	</script>
	<script>
	Array.prototype.average = function (array){
		return this.reduce(function(prev,curr){return prev+curr;})/this.length;
	}
	function silverSolution(candyCountObj){
		var candyCountJsonObj = JSON.parse(candyCountObj);
		var candyCountsParsed = {};
		var actualCandyCount = candyCountJsonObj.candy_count;
		var calculatedDelta;
		var winners = [];
		var winner_name_array = [];
		
		candyCountJsonObj['guessers'].forEach(function(element){
			if (element.name in candyCountsParsed){
				candyCountsParsed[element.name].push(element.guess);
			}else{
				candyCountsParsed[element.name] = [element.guess];	
			}
		});
		for (key in candyCountsParsed){
			calculatedDelta = Math.abs(candyCountsParsed[key].average()-actualCandyCount);
			if(winners.length === 0 || calculatedDelta < winners[0].delta){
				winners = [];
				winners.push({name: key, delta: calculatedDelta});
			}else if(calculatedDelta === winners[0].delta){
				winners.push({name: key, delta: calculatedDelta});
			}
		}
		winners.forEach(function (element){
			winner_name_array.push(element.name);
{'fraction_non_alphanumeric': 0.1414503133393017, 'fraction_numerical': 0.0026857654431512983, 'mean_word_length': 5.056910569105691, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, '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': '3494508', 'n_tokens_mistral': 836, 'n_tokens_neox': 729, 'n_words': 121}