<commit_before><?php
################################################################
################### DEDALO VERSION V4 ##########################
################################################################
/*	
	UNDER GNU PUBLIC LICENSE / BAJO LICENCIA PÚBLICA GNU
	http://www.gnu.org/licenses/licenses.es.html
	Version 4, 14 de marzo de 2012 / 5 May 2016
	
	<NAME>
	<NAME>
	http://www.fmomo.org/
	http://dedalo4.antropolis.net/

	Reviewed: 12-05-2018
*/


################################################################
# DEDALO 4 MAIN VARS
	define('DEDALO_HOST'			, $_SERVER['HTTP_HOST'] );
	define('DEDALO_PROTOCOL'		, stripos( $_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://' );
	
	# Dedalo paths
	define('DEDALO_ROOT'			, dirname(dirname(dirname(dirname(__FILE__)))));
	#define('DEDALO_ROOT_WEB'		, '/'. substr(substr($_SERVER["REQUEST_URI"],1), 0,  strpos(substr($_SERVER["REQUEST_URI"],1), "/")));
	define('DEDALO_ROOT_WEB'		, explode('/lib/', $_SERVER["REQUEST_URI"])[0]);
	
	define('DEDALO_LIB_BASE_PATH'	, dirname( dirname(__FILE__) ));
	define('DEDALO_LIB_BASE_URL'	, DEDALO_ROOT_WEB . '/'. basename(dirname(DEDALO_LIB_BASE_PATH)) . '/'. basename(DEDALO_LIB_BASE_PATH) );
	
	define('DEDALO_EXTRAS_PATH'		, DEDALO_LIB_BASE_PATH .'/extras');
	
	# Dedalo information
	define('DEDALO_SALT_STRING'		, 'dedalo_cuatro');

	# TIME ZONE : Zona horaria (for backups archive names)
	define('DEDALO_TIMEZONE'		, 'Europe/Madrid');	date_default_timezone_set(DEDALO_TIMEZONE);
	# SET LOCALE (Spanish for example)	
	#setlocale(LC_ALL,'en_EN');
	setlocale(LC_ALL,'es_ES'); 			// For Mac
	#setlocale(LC_ALL, 'es_ES.utf8');	// For Linux



################################################################
# DEDALO 4 ENTITY
	define('DEDALO_ENTITY', 'my_entity_name'); # Like 'dedalo4'
	# DEDALO_ENTITY_LABEL . (Showed title of html pages)
	define('DEDALO_ENTITY_LABEL', DEDALO_ENTITY);
	# DEVELOPMENT_SERVER
	define('DEVELOPMENT_SERVER'	, false);



################################################################
# CACHE MANAGER
	define('DEDALO_CACHE_MANAGER', false );	# redis / memcached / zebra_db / false<commit_msg>Added DEDALO_ENTITY_ID to config<commit_after><?php
################################################################
################### DEDALO VERSION V4 ##########################
################################################################
/*	
	UNDER GNU PUBLIC LICENSE / BAJO LICENCIA PÚBLICA GNU
	http://www.gnu.org/licenses/licenses.es.html
	Version 4, 14 de marzo de 2012 / 5 May 2016
	
	<NAME>
	<NAME>
	http://www.fmomo.org/
	http://dedalo4.antropolis.net/

	Reviewed: 12-05-2018
*/


################################################################
# DEDALO 4 MAIN VARS
	define('DEDALO_HOST'			, $_SERVER['HTTP_HOST'] );
	define('DEDALO_PROTOCOL'		, stripos( $_SERVER['SERVER_PROTOCOL'],'https') === true ? 'https://' : 'http://' );
	
	# Dedalo paths
	define('DEDALO_ROOT'			, dirname(dirname(dirname(dirname(__FILE__)))));
	#define('DEDALO_ROOT_WEB'		, '/'. substr(substr($_SERVER["REQUEST_URI"],1), 0,  strpos(substr($_SERVER["REQUEST_URI"],1), "/")));
	define('DEDALO_ROOT_WEB'		, explode('/lib/', $_SERVER["REQUEST_URI"])[0]);
	
	define('DEDALO_LIB_BASE_PATH'	, dirname( dirname(__FILE__) ));
	define('DEDALO_LIB_BASE_URL'	, DEDALO_ROOT_WEB . '/'. basename(dirname(DEDALO_LIB_BASE_PATH)) . '/'. basename(DEDALO_LIB_BASE_PATH) );
	
	define('DEDALO_EXTRAS_PATH'		, DEDALO_LIB_BASE_PATH .'/extras');
	
	# Dedalo information
	define('DEDALO_SALT_STRING'		, 'dedalo_cuatro');

	# TIME ZONE : Zona horaria (for backups archive names)
	define('DEDALO_TIMEZONE'		, 'Europe/Madrid');	date_default_timezone_set(DEDALO_TIMEZONE);
	# SET LOCALE (Spanish for example)	
	#setlocale(LC_ALL,'en_EN');
	setlocale(LC_ALL,'es_ES'); 			// For Mac
	#setlocale(LC_ALL, 'es_ES.utf8');	// For Linux



################################################################
# DEDALO 4 ENTITY
	define('DEDALO_ENTITY', 'my_entity_name'); # Like 'dedalo4'
	# DEDALO_ENTITY_LABEL . (Showed title of html pages)
	define('DEDALO_ENTITY_LABEL', DEDALO_ENTITY);
	# DEDALO_ENTITY_ID . (From Dédalo private list)
	define('DEDALO_ENTITY_ID', 0);
	# DEVELOPMENT_SERVER
	define('DEVELOPMENT_SERVER'	, false);



################################################################
# CACHE MANAGER
	define('DEDALO_CACHE_MANAGER', false );	# redis / memcached / zebra_db / false
{'fraction_non_alphanumeric': 0.30068337129840544, 'fraction_numerical': 0.013895216400911162, 'mean_word_length': 6.442372881355932, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '2998548', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1564, 'n_words': 241}