<commit_before><?php
	
	# CONTROLLER

	$tipo 					= $this->get_tipo();
	$parent 				= $this->get_parent();
	$section_tipo			= $this->get_section_tipo();
	$modo					= $this->get_modo();
	$lang					= DEDALO_APPLICATION_LANG;
	$label 					= $this->get_label();	
	$debugger				= $this->get_debugger();
	$permissions			= $this->get_component_permissions();
	$html_title				= "Info about $tipo";
	$identificador_unico	= $this->get_identificador_unico();
	$component_name			= get_class($this);
	$file_name 				= $modo;
		
	if($permissions===0) return null;
	
	switch($modo) {
		
		case 'edit'	:
				$dato 			  		= $this->get_dato();				
				$id_wrapper 			= 'wrapper_'.$identificador_unico;
				$input_name 			= "{$tipo}_{$parent}";	
				$component_info 		= $this->get_component_info('json');				
				$profile_section_tipo 	= DEDALO_SECTION_PROFILES_TIPO;
					#dump($dato, ' dato ++ '.to_string($tipo));

				$ar_select_values 		= (array)$this->get_ar_select_values();
				$valor 					= $this->get_valor();

				# IS_GLOBAL_ADMIN 
				$logged_user_id 		= navigator::get_user_id();
				$is_global_admin 		= component_security_administrator::is_global_admin($logged_user_id);
					#dump($is_global_admin, ' is_global_admin ++ '.to_string($logged_user_id));
				#if($is_global_admin!==true) $permissions = 1;
				break;

		case 'valor_list':
				$file_name	= 'list';
		case 'list':
				$valor 		= $this->get_valor();
				break;

		case 'search':
				# dato is injected by trigger search wen is needed
				$dato = isset($this->dato) ? $this->dato : null;
				
				#$referenced_tipo 		 = $this->get_referenced_tipo();
				#$ar_list_of_values		 = $this->get_ar_list_of_values( DEDALO_DATA_LANG, null );
				$ar_select_values 		 = (array)$this->get_ar_select_values();
									
				$ar_comparison_operators = $this->build_search_comparison_operators();
				$ar_logical_operators 	 = $this->build_search_logical_operators();

				# Search input name (var search_input_name is injected in search -> records_search_list.phtml)
				# and recovered in component_common->get_search_input_name()
				# Normally is section_tipo + component_tipo, but when in portal can be portal_tipo + section_tipo + component_tipo<commit_msg>Adapted component_profile to use new get_ar_list_of_values2 (removed non used calls)<commit_after><?php
	
	# CONTROLLER

	$tipo 					= $this->get_tipo();
	$parent 				= $this->get_parent();
	$section_tipo			= $this->get_section_tipo();
	$modo					= $this->get_modo();
	$lang					= DEDALO_APPLICATION_LANG;
	$label 					= $this->get_label();	
	$debugger				= $this->get_debugger();
	$permissions			= $this->get_component_permissions();
	$html_title				= "Info about $tipo";
	$identificador_unico	= $this->get_identificador_unico();
	$component_name			= get_class($this);
	$file_name 				= $modo;
		
	if($permissions===0) return null;
	
	switch($modo) {
		
		case 'edit'	:
				$dato 			  		= $this->get_dato();				
				$id_wrapper 			= 'wrapper_'.$identificador_unico;
				$input_name 			= "{$tipo}_{$parent}";	
				$component_info 		= $this->get_component_info('json');				
				$profile_section_tipo 	= DEDALO_SECTION_PROFILES_TIPO;
					#dump($dato, ' dato ++ '.to_string($tipo));

				$ar_select_values 		= (array)$this->get_ar_select_values();
				$valor 					= $this->get_valor();

				# IS_GLOBAL_ADMIN 
				$logged_user_id 		= navigator::get_user_id();
				$is_global_admin 		= component_security_administrator::is_global_admin($logged_user_id);
					#dump($is_global_admin, ' is_global_admin ++ '.to_string($logged_user_id));
				#if($is_global_admin!==true) $permissions = 1;
				break;

		case 'valor_list':
				$file_name	= 'list';
		case 'list':
				$valor 		= $this->get_valor();
				break;

		case 'search':
				# dato is injected by trigger search wen is needed
				$dato = isset($this->dato) ? $this->dato : null;
				
				$ar_select_values 		 = (array)$this->get_ar_select_values();
									
				$ar_comparison_operators = $this->build_search_comparison_operators();
				$ar_logical_operators 	 = $this->build_search_logical_operators();

				# Search input name (var search_input_name is injected in search -> records_search_list.phtml)
				# and recovered in component_common->get_search_input_name()
				# Normally is section_tipo + component_tipo, but when in portal can be portal_tipo + section_tipo + component_tipo
{'fraction_non_alphanumeric': 0.14019337016574585, 'fraction_numerical': 0.0011510128913443832, 'mean_word_length': 3.8820224719101124, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 45, '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': '2362130', 'n_tokens_mistral': 1963, 'n_tokens_neox': 1646, 'n_words': 254}