<commit_before><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Blog extends CI_Controller {
    //Constructor del controlador
    public function __construct(){
        parent::__construct();
        $this->load->model('blog_model');               
    }
//Carga las entradas y las envia a la vista show_entries para mostrarlas
public function index(){
    $data['entries'] = $this->blog_model->getEntries();  

    if ($this->session->userdata('is_logged_in')) {
        $username = $this->session->userdata('username');
        $data['my_entries'] = $this->blog_model->getMyEntries($username);  
    }
    $this->load->view('show_entries', $data);
}
//Carga la vista new_entry
public function entry(){

    $this->load->view('new_entry');

}
//Carga la vista wurrflTest<commit_msg>-Modificado el controlador para cambiar el zona horaria de codeigniter<commit_after><?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Blog extends CI_Controller {
    //Constructor del controlador
    public function __construct(){
        parent::__construct();
        date_default_timezone_set('Europe/Madrid');

        $this->load->model('blog_model');               
    }
//Carga las entradas y las envia a la vista show_entries para mostrarlas
public function index(){
    $data['entries'] = $this->blog_model->getEntries();  

    if ($this->session->userdata('is_logged_in')) {
        $username = $this->session->userdata('username');
        $data['my_entries'] = $this->blog_model->getMyEntries($username);  
    }
    $this->load->view('show_entries', $data);
}
//Carga la vista new_entry
public function entry(){

    $this->load->view('new_entry');

}
//Carga la vista wurrflTest
{'fraction_non_alphanumeric': 0.15212399540757748, 'fraction_numerical': 0.0, 'mean_word_length': 3.685483870967742, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 31, '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': '4018045', 'n_tokens_mistral': 517, 'n_tokens_neox': 515, 'n_words': 123}