<commit_before><?php
	include("./php/model.php");
	include("./php/view.php");

	$model = new Model("./config.php");
	$view = new View($model);

	$action = "";
	if (isset($_POST["action"]))
		$action = $_POST["action"];

	switch ($action) {
		case "Montrer résultats":
			if(isset($_POST["ics"]))
				$view->showResults($_POST["ics"], 
								   $_POST["startDate"], 
								   $_POST["endDate"]);

			else
				print ("Aucun fichier n'as été sélectionner");
			break;

		case "Exporter":
			$view->showCsv($_POST["ics"],
                          ($_POST["startDate"]),
                          ($_POST["endDate"]));
			break;
		
		case "tableauAction":
			$view->exportTableauCDG();
			break;
		
		case "tableauModalite":
			$view->exportTableauCDG();
			break;

		default:
			include("php/views/header.phtml");
			$view->showForm();
			break;
	}
?><commit_msg>Gestion de l'export sans calendrier sélectionné.<commit_after><?php
	include("./php/model.php");
	include("./php/view.php");

	$model = new Model("./config.php");
	$view = new View($model);

	$action = "";
	if (isset($_POST["action"]))
		$action = $_POST["action"];

	switch ($action) {
		case "Montrer résultats":
			if(isset($_POST["ics"]))
				$view->showResults($_POST["ics"], 
								   $_POST["startDate"], 
								   $_POST["endDate"]);
			else
				print ("Aucun fichier n'as été sélectionner");
			break;

		case "Exporter":
			if(isset($_POST["ics"]))
				$view->showCsv($_POST["ics"],
	                          ($_POST["startDate"]),
	                          ($_POST["endDate"]));
			else
				print ("Aucun fichier n'as été sélectionner");
			break;
		
		case "tableauAction":
			$view->exportTableauCDG();
			break;
		
		case "tableauModalite":
			$view->exportTableauCDG();
			break;

		default:
			include("php/views/header.phtml");
			$view->showForm();
			break;
	}
?>
{'fraction_non_alphanumeric': 0.20032397408207345, 'fraction_numerical': 0.0, 'mean_word_length': 2.8523908523908523, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 15, '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': '1288472', 'n_tokens_mistral': 769, 'n_tokens_neox': 626, 'n_words': 111}