{"size": 1535, "ext": "js", "max_stars_repo_path": "js/events/__eventAjax.js", "max_stars_repo_name": "campagna91/trender", "max_stars_repo_stars_event_min_datetime": "2015-09-02T12:32:53.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-10T16:08:24.000Z", "max_issues_repo_path": "js/events/__eventAjax.js", "max_issues_repo_name": "campagna91/trender", "max_issues_repo_issues_event_min_datetime": "2019-03-10T12:25:23.000Z", "max_issues_repo_issues_event_max_datetime": "2019-03-10T12:25:23.000Z", "max_forks_repo_path": "js/events/__eventAjax.js", "max_forks_repo_name": "campagna91/trender", "max_forks_repo_forks_event_min_datetime": "2016-03-07T09:51:19.000Z", "max_forks_repo_forks_event_max_datetime": "2018-01-25T10:35:55.000Z"}
{"max_stars_count": 13, "max_issues_count": 1, "max_forks_count": 7, "avg_line_length": 18.4939759036, "max_line_length": 71, "alphanum_fraction": 0.5993485342}
function sent(section, type, dataSent){
	var path = ""; 
	switch(section) {
		case('requirements'): 
			path = "cgi-bin/__ajaxRequirements.php"; 
			break;

		case('usecases'): 
			path = "cgi-bin/__ajaxUsecases.php"; 
			break;

		case('actors'): 
			path = "cgi-bin/__ajaxActors.php"; 
			break;

		case('verbals'): 
			path = "cgi-bin/__ajaxVerbals.php"; 
			break;

		case('classes'): 
			path = "cgi-bin/__ajaxClasses.php"; 
			break;

		case('packages'): 
			path = "cgi-bin/__ajaxPackages.php"; 
			break;

		case('unitTests'): 
			path = "cgi-bin/__ajaxUnitTests.php"; 
			break;

		case('sources'):
			path = "cgi-bin/__ajaxSources.php";
			break;

		case('types'):
			path = "cgi-bin/__ajaxTypes.php";
			break;

		case('prints'):
			path = "cgi-bin/__ajaxPrints.php";
			break;

		case('backups'):
			path = "cgi-bin/__ajaxBackups.php";
			break;

		case('glossary'):
			path = "cgi-bin/__ajaxGlossary.php";
			break;
	}
	console.log(dataSent);
	console.log(type);
	$.ajax({
		url: path,
		type:'post',
		dataType:'html',
		data:{
			'typeRequest':type,
			'data':dataSent,
		},
		success:function(data) {
			console.log(data);
			if(data.substring(0, 4) == 'ERROR')
				Materialize.toast("ERRORE DURANTE L'ESECUZIONE DEL COMANDO", 2000);
			else 
				Materialize.toast("COMANDO ESEGUITO CORRETTAMENTE", 2000);
			switch(type) {
				case('insert'):
					loadInsert();
					loadList();
					break;

				case('delete'):
					loadInsert();
					loadList();
					location.href="" + section + ".php";
					break;
			}
		}
	});
}
