<commit_before><?php
//News.php
class News extends CI_Controller {
        public function __construct()
        {
                parent::__construct();
                $this->load->model('news_model');
                $this->load->helper('url_helper');
        }
        public function index()
        {
                $data['news'] = $this->news_model->get_news();
                $data['page_id'] = 'News';
                $data['title'] = 'News archive';
            
                $this->load->view('templates/header', $data);
                $this->load->view('news/index', $data);
                $this->load->view('templates/footer');
        }
        public function view($slug = NULL)
    {
            $data['news_item'] = $this->news_model->get_news($slug);
             $data['page_id'] = 'News';
        
            if (empty($data['news_item']))
            {
                    show_404();
            }
        
            $data['title'] = $data['news_item']['title'];
        
            $this->load->view('templates/header', $data);
            $this->load->view('news/view', $data);
            $this->load->view('templates/footer');
    }
    
        public function create()
    {
        $this->load->helper('form');
        $this->load->library('form_validation');
<commit_msg>Added theme footer and header<commit_after><?php
//News.php
class News extends CI_Controller {
        public function __construct()
        {
                parent::__construct();
                $this->load->model('news_model');
                $this->load->helper('url_helper');
        }
        public function index()
        {
                $data['news'] = $this->news_model->get_news();
                $data['page_id'] = 'News';
                $data['title'] = 'News archive';
            
                //$this->load->view('templates/header', $data);
                $this->load->view('news/index', $data);
                //$this->load->view('templates/footer');
        }
        public function view($slug = NULL)
    {
            $data['news_item'] = $this->news_model->get_news($slug);
             $data['page_id'] = 'News';
        
            if (empty($data['news_item']))
            {
                    show_404();
            }
        
            $data['title'] = $data['news_item']['title'];
        
            $this->load->view('templates/header', $data);
            $this->load->view('news/view', $data);
            $this->load->view('templates/footer');
    }
    
        public function create()
    {
        $this->load->helper('form');
        $this->load->library('form_validation');

{'fraction_non_alphanumeric': 0.1762481089258699, 'fraction_numerical': 0.0022692889561270802, 'mean_word_length': 1.5704567541302235, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '2624710', 'n_tokens_mistral': 736, 'n_tokens_neox': 714, 'n_words': 104}