<commit_before>const Actions = {

	routeRequest: function request(actionName, request, response){
		var response = null;
		
		if(actionName && (typeof this[actionName] == "function") && actionName != "routeRequest"){
			//response = this[actionName].apply(Actions, data);
			response = this[actionName](request, response);
		} else {
			throw "No action with name " + actionName;
		}

		return response;
	},

	sum: function sum(request, response){
		var sum = 0;
		var text = "";

		if(request && result.parameters && request.result.parameters.number &&
			request.result.parameters.number.length > 0){

			sum = request.result.parameters.number.reduce((acc, val) => acc + val);

			if(request.result.parameters.prev_number && request.result.parameters.prev_number.length > 0){
				console.log('prev_number', request.result.parameters.prev_number, JSON.stringify(request.result.parameters.prev_number));
				sum += request.result.parameters.prev_number.reduce((acc, val) => acc + val);
			}

			text = request.result.fulfillment.speech;
			text += ' ';
			text += sum;

		} else {<commit_msg>correcciones<commit_after>const Actions = {

	routeRequest: function request(actionName, request, response){
		var response = null;
		
		if(actionName && (typeof this[actionName] == "function") && actionName != "routeRequest"){
			//response = this[actionName].apply(Actions, data);
			response = this[actionName](request, response);
		} else {
			throw "No action with name " + actionName;
		}

		return response;
	},

	sum: function sum(request, response){
		var sum = 0;
		var text = "";

		if(request && request.result.parameters && request.result.parameters.number &&
			request.result.parameters.number.length > 0){

			sum = request.result.parameters.number.reduce((acc, val) => acc + val);

			if(request.result.parameters.prev_number && request.result.parameters.prev_number.length > 0){
				console.log('prev_number', request.result.parameters.prev_number, JSON.stringify(request.result.parameters.prev_number));
				sum += request.result.parameters.prev_number.reduce((acc, val) => acc + val);
			}

			text = request.result.fulfillment.speech;
			text += ' ';
			text += sum;

		} else {
{'fraction_non_alphanumeric': 0.14924691921497032, 'fraction_numerical': 0.0027384755819260614, 'mean_word_length': 4.169811320754717, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6130589', 'n_tokens_mistral': 747, 'n_tokens_neox': 643, 'n_words': 134}