<commit_before>(function()
{
	var getLogs = function(app, callback, error)
	{
		CF.async({url : '/apps/' + app.metadata.guid + '/recentlogs'}, function(data)
		{
			data = JSON.parse(data);
			if(data.code == 200)
			{
				data = data.body;
				try
				{
					data = data.split('\r\n\r\n\n\bgorouter');
			        if (data.length > 1) {
			            data.splice(0, 1);
			        }
			        var length = data.length;
			        for (var i = 0; i < length; i++) {
			            var value = data[i];
			            value = value.substr(1, value.length - 1);
		            	value = value.substr(value.indexOf(String.fromCharCode(3)) + 1);
			            value = value.substr(0, value.indexOf(String.fromCharCode(16)));
		            	value = value.substr(value.indexOf(String.fromCharCode(2)) + 1, value.length-1);
			            
			            data[i] = value;
			        }
			        
			        data = data.join('\n');
			        
					callback(data);
				}
				catch(err)
				{
					console.error(err.stack);
				}
			}
			else
			{
				callback(data.body);
			}
			
		}, error, true);
	};<commit_msg>fixed bugs.<commit_after>(function()
{
	var getLogs = function(app, callback, error)
	{
		CF.async({url : '/apps/' + app.metadata.guid + '/recentlogs'}, function(data)
		{
			data = JSON.parse(data);
			if(data.code == 200)
			{
				data = data.body;
				try
				{
					data = data.split('\r\n\r\n\n\bgorouter');
			        if (data.length > 1) {
			            data.splice(0, 1);
			        }
			        var length = data.length;
			        for (var i = 0; i < length; i++) {
			            var value = data[i];
			            value = value.substr(1, value.length - 1);

			            value = value.substr(0, value.indexOf(String.fromCharCode(16)));
			            while(value.indexOf(String.fromCharCode(3)) != -1)
			            	value = value.substr(value.indexOf(String.fromCharCode(3)) + 1);
			            while(value.lastIndexOf(String.fromCharCode(5)) != -1)
			            	value = value.substr(value.lastIndexOf(String.fromCharCode(5)) + 1);
			            while(value.indexOf(String.fromCharCode(4)) != -1)
			            	value = value.substr(value.lastIndexOf(String.fromCharCode(4)) + 1);
			            if(value.indexOf(String.fromCharCode(2)) != -1)
			            	value = value.substr(value.indexOf(String.fromCharCode(2)) + 1, value.length-1);
			            
			            data[i] = value;
			        }
			        
			        data = data.join('\n');
			        
					callback(data);
				}
				catch(err)
				{
					console.error(err.stack);
				}
			}
			else
			{
				callback(data.body);
			}
			
		}, error, true);
	};
{'fraction_non_alphanumeric': 0.15799396681749622, 'fraction_numerical': 0.017345399698340876, 'mean_word_length': 1.653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7383129', 'n_tokens_mistral': 1103, 'n_tokens_neox': 857, 'n_words': 141}