<commit_before><?php
	
	# CONTROLLER
	$modo 			= $this->modo;
	$check_cache 	= null;
	$file_name 		= $modo;


	$section_id 	= navigator::get_selected('id');
	$section_tipo 	= $this->tipo;	//navigator::get_selected('area');
	$section_label	= RecordObj_dd::get_termino_by_tipo($section_tipo,null,true) ;#$section->get_label();

	
	$fixed_tools 	= false;

	switch($modo) {		
		
		case 'edit' :
			
			#
			# LOADED COMPONENTS	
			#$ar_loaded_modelos_name = array_unique(common::$ar_loaded_modelos_name);

			if(SHOW_DEBUG) {
				#$section = section::get_instance($section_id, $section_tipo);
			}			


			# FIXED TOOLS 
			# RELATION_LIST
			# When component_relations is loaded, inspector load fixed relation_list for current section record
			# Load button to open dialog tool window and list of records related to current section
			$section_id 		= $this->section->get_section_id();

			$relation_list_button_html = '';
			$model_required_rl = array('relation_list');
			$relation_list_tipo = section::get_ar_childrens_by_model($section_tipo, $model_required_rl);
			$relation_list_name = RecordObj_dd::get_termino_by_tipo($relation_list_tipo);
			if($relation_list_tipo){
				$relation_list 		= new relation_list($relation_list_tipo, $section_id, $section_tipo, $modo='button');
				$relation_list_button_html = $relation_list->get_html();
			}

			# TIME_MACHINE_LIST
			# When term time_machine is loaded, inspector load fixed time_machine_list for current section record
			# Load button to open dialog tool window and list of records of time_machine to current section
			$time_machine_button_html = '';
			$model_required_tm = array('time_machine_list');
			$time_machine_tipo = section::get_ar_childrens_by_model($section_tipo, $model_required_tm);
			$time_machine_name = RecordObj_dd::get_termino_by_tipo($time_machine_tipo);
			if($time_machine_tipo){
				$time_machine_list 		= new time_machine_list($time_machine_tipo, $section_id, $section_tipo, $modo='button');
				$time_machine_button_html = $time_machine_list->get_html();
			}
			

			//dump($time_machine_list,'$relation_list_button_html');

			//$relation_list_name = RecordObj_dd::get_termino_by_tipo($relation_list,DEDALO_APPLICATION_LANG, true);

			#
			# BUTTONS
			# Calculate and prepare current section buttons to use as : $this->section_obj->ar_buttons
				$ar_buttons = (array)$this->section->get_ar_buttons();
					#dump($ar_buttons['button_new'][0], ' ar_buttons ++ '.to_string());

				# Button new 
				$button_new_html = '';
				if (isset($ar_buttons['button_new'][0]) && is_object($ar_buttons['button_new'][0])) {
					$button_new_html = $ar_buttons['button_new'][0]->get_html();
				}

			break;
<commit_msg>fix languaje for label in the inspector for time_machine_list<commit_after><?php
	
	# CONTROLLER
	$modo 			= $this->modo;
	$check_cache 	= null;
	$file_name 		= $modo;


	$section_id 	= navigator::get_selected('id');
	$section_tipo 	= $this->tipo;	//navigator::get_selected('area');
	$section_label	= RecordObj_dd::get_termino_by_tipo($section_tipo,null,true) ;#$section->get_label();

	
	$fixed_tools 	= false;

	switch($modo) {		
		
		case 'edit' :
			
			#
			# LOADED COMPONENTS	
			#$ar_loaded_modelos_name = array_unique(common::$ar_loaded_modelos_name);

			if(SHOW_DEBUG) {
				#$section = section::get_instance($section_id, $section_tipo);
			}			


			# FIXED TOOLS 
			# RELATION_LIST
			# When component_relations is loaded, inspector load fixed relation_list for current section record
			# Load button to open dialog tool window and list of records related to current section
			$section_id 		= $this->section->get_section_id();

			$relation_list_button_html = '';
			$model_required_rl = array('relation_list');
			$relation_list_tipo = section::get_ar_childrens_by_model($section_tipo, $model_required_rl);
			$relation_list_name = RecordObj_dd::get_termino_by_tipo($relation_list_tipo);
			if($relation_list_tipo){
				$relation_list 		= new relation_list($relation_list_tipo, $section_id, $section_tipo, $modo='button');
				$relation_list_button_html = $relation_list->get_html();
			}

			# TIME_MACHINE_LIST
			# When term time_machine is loaded, inspector load fixed time_machine_list for current section record
			# Load button to open dialog tool window and list of records of time_machine to current section
			$time_machine_button_html = '';
			$model_required_tm = array('time_machine_list');
			$time_machine_tipo = section::get_ar_childrens_by_model($section_tipo, $model_required_tm);
			$time_machine_name = RecordObj_dd::get_termino_by_tipo($time_machine_tipo, DEDALO_APPLICATION_LANG);
			if($time_machine_tipo){
				$time_machine_list 		= new time_machine_list($time_machine_tipo, $section_id, $section_tipo, $modo='button');
				$time_machine_button_html = $time_machine_list->get_html();
			}
			

			//dump($time_machine_list,'$relation_list_button_html');

			//$relation_list_name = RecordObj_dd::get_termino_by_tipo($relation_list,DEDALO_APPLICATION_LANG, true);

			#
			# BUTTONS
			# Calculate and prepare current section buttons to use as : $this->section_obj->ar_buttons
				$ar_buttons = (array)$this->section->get_ar_buttons();
					#dump($ar_buttons['button_new'][0], ' ar_buttons ++ '.to_string());

				# Button new 
				$button_new_html = '';
				if (isset($ar_buttons['button_new'][0]) && is_object($ar_buttons['button_new'][0])) {
					$button_new_html = $ar_buttons['button_new'][0]->get_html();
				}

			break;

{'fraction_non_alphanumeric': 0.12392458356214534, 'fraction_numerical': 0.0014643968515467693, 'mean_word_length': 5.223234624145786, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 27, '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': '5197012', 'n_tokens_mistral': 2175, 'n_tokens_neox': 1902, 'n_words': 317}