<commit_before><?php

echo `php ../app/console  env=prod cache:clear`;
echo `php ../app/console  env=prod cache:warm`;<commit_msg>Added a web-based cache clearer<commit_after><?php

//just for see if there are errors
error_reporting(E_ALL);
ini_set('display_errors', '1');

//erases a directory recursively
function rrmdir($dir) {
	if (is_dir($dir)) {
		$objects = scandir($dir);
		foreach ($objects as $object) {
			if ($object != "." && $object != "..") {
				if (filetype($dir . "/" . $object) == "dir")
				rrmdir($dir . "/" . $object); else
				unlink($dir . "/" . $object);
			}
		}

		reset($objects);
		rmdir($dir);
	}
}
//erases the cache
rrmdir('../app/cache/');
{'fraction_non_alphanumeric': 0.2113095238095238, 'fraction_numerical': 0.001488095238095238, 'mean_word_length': 3.5167785234899327, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7207012', 'n_tokens_mistral': 269, 'n_tokens_neox': 243, 'n_words': 57}