<commit_before><?php
	/* Master settings applied to all applications. */
	class master_config {
		const MASTER_INCLUDE_DIR = "include/";
        const MASTER_INCLUDE_MASK = "/\\.php$/";
        const MASTER_LANG_DIR = "lang/";
        const DEFAULT_EXTENSION = ".php";
	
		const SECTION_FUNCTION_PREFIX = "section_";
		const DEFAULT_FUNCTION_NAME = "default";
        const DEFAULT_LANGUAGE = "cs";

		const APPLICATION = "zzs";
		const INITIALIZATION_SCRIPT = "/index.php";
		const TEMPLATE_DIR = "/template/";
		const INCLUDE_DIR = "/include/";
		const INCLUDE_MASK = "/\\.php$/";
        const LANG_DIR = "/lang/";

		const TIME_ZONE = "Europe/Prague";

		static function debug($s) { return("<pre>" . print_r($s, true) . "</pre>"); }
		
		// Includes/requires all files from the directory according to the mask.
		static function include_dir($dir, $mask, $required) {
			if(file_exists($dir) && is_dir($dir)) {
				$d = dir($dir);
				while($f = $d->read()) {
					if(preg_match($mask, $f)) {
						$f = $dir . $f;<commit_msg>Přepnutí jazyka na angličtinu.<commit_after><?php
	/* Master settings applied to all applications. */
	class master_config {
		const MASTER_INCLUDE_DIR = "include/";
        const MASTER_INCLUDE_MASK = "/\\.php$/";
        const MASTER_LANG_DIR = "lang/";
        const DEFAULT_EXTENSION = ".php";
	
		const SECTION_FUNCTION_PREFIX = "section_";
		const DEFAULT_FUNCTION_NAME = "default";
        const DEFAULT_LANGUAGE = "en";

		const APPLICATION = "zzs";
		const INITIALIZATION_SCRIPT = "/index.php";
		const TEMPLATE_DIR = "/template/";
		const INCLUDE_DIR = "/include/";
		const INCLUDE_MASK = "/\\.php$/";
        const LANG_DIR = "/lang/";

		const TIME_ZONE = "Europe/Prague";

		static function debug($s) { return("<pre>" . print_r($s, true) . "</pre>"); }
		
		// Includes/requires all files from the directory according to the mask.
		static function include_dir($dir, $mask, $required) {
			if(file_exists($dir) && is_dir($dir)) {
				$d = dir($dir);
				while($f = $d->read()) {
					if(preg_match($mask, $f)) {
						$f = $dir . $f;
{'fraction_non_alphanumeric': 0.1614457831325301, 'fraction_numerical': 0.0, 'mean_word_length': 3.210953346855984, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2907672', 'n_tokens_mistral': 793, 'n_tokens_neox': 696, 'n_words': 170}