<commit_before><?php
class Contactos extends CI_Controller{
    
    /**
     * Funcion contructor de la clase
     * 
     * @autor <NAME> <<EMAIL>>
     * @param none
     * @return none
     * @version 1.0
     */
    function __construct() {
        parent::__construct();
        $this->load->model('Model_contactos');
    }
    
    public function index(){
        $data['titulo']='Pagina  principal';
        $this->load->view('plantilla/header',$data);
        $this->load->view('contactos/index');
        $this->load->view('plantilla/footer');
    }
    public function agregar(){
        $data['titulo']='Agregar Nuevo Contacto';
        $this->load->view('plantilla/header',$data);
        $this->load->view('contactos/agregar');
        $this->load->view('plantilla/footer');
    }
    public function agregarContacto(){
        $this->form_validation->set_rules('nnombre','Nombre','required');
        $this->form_validation->set_rules('ndireccion','Direccion','required');
        $this->form_validation->set_rules('ntelefono','Telefono','required');
        
        if($this->form_validation->run()==FALSE){
            
            $data['titulo']='Agregar Nuevo Contacto';
            $this->load->view('plantilla/header',$data);<commit_msg>Comentado a la clase de contactos<commit_after><?php
class Contactos extends CI_Controller{
    
    /**
     * Funcion contructor de la clase
     * 
     * @author <NAME> <<EMAIL>>
     * @param none
     * @return none
     * @version 1.0
     */
    function __construct() {
        parent::__construct();
        $this->load->model('Model_contactos');
    }
    /**
     * Funcion inicial de la clase
     * 
     * @author <NAME> <<EMAIL>>
     * @param none
     * @return none
     * @version 1.0
     */
    public function index(){
        $data['titulo']='Pagina  principal';
        $this->load->view('plantilla/header',$data);
        $this->load->view('contactos/index');
        $this->load->view('plantilla/footer');
    }
    public function agregar(){
        $data['titulo']='Agregar Nuevo Contacto';
        $this->load->view('plantilla/header',$data);
        $this->load->view('contactos/agregar');
        $this->load->view('plantilla/footer');
    }
    public function agregarContacto(){
        $this->form_validation->set_rules('nnombre','Nombre','required');
        $this->form_validation->set_rules('ndireccion','Direccion','required');
        $this->form_validation->set_rules('ntelefono','Telefono','required');
        
        if($this->form_validation->run()==FALSE){
            
            $data['titulo']='Agregar Nuevo Contacto';
            $this->load->view('plantilla/header',$data);
{'fraction_non_alphanumeric': 0.17782738095238096, 'fraction_numerical': 0.002232142857142857, 'mean_word_length': 2.6734972677595628, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 60, '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': '2475960', 'n_tokens_mistral': 843, 'n_tokens_neox': 839, 'n_words': 120}