<commit_before><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Thread extends CI_Controller 
{
    public function __construct()
    {
        parent::__construct();
        $this->load->database();
        $this->load->model(array('model_thread','model_visitor'));
        $this->load->helper(array('BBCodeParser','visitor'));

        if(!sentinel()->check()) {
            redirect(login_url());
        }
    }
    
    public function index()
    {
        if($this->session->flashdata('success')){
            $data['success'] = $this->session->flashdata('success');
        }elseif($this->session->flashdata('failed')){
            $data['failed'] = $this->session->flashdata('failed');
        }

        $data['comments'] = $this->model_thread->get_count_reply(); 
        $data['visitors'] = $this->model_visitor->get_visitors();
        $data['threads']  = $this->model_thread->get_all_threads();<commit_msg>Update controller untuk load helper thread<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Thread extends CI_Controller 
{
    public function __construct()
    {
        parent::__construct();
        $this->load->database();
        $this->load->model(array('model_thread','model_visitor'));
        $this->load->helper(array('BBCodeParser','visitor','thread'));

        if(!sentinel()->check()) {
            redirect(login_url());
        }
    }
    
    public function index()
    {
        if($this->session->flashdata('success')){
            $data['success'] = $this->session->flashdata('success');
        }elseif($this->session->flashdata('failed')){
            $data['failed'] = $this->session->flashdata('failed');
        }

        $data['comments'] = $this->model_thread->get_count_reply(); 
        $data['visitors'] = $this->model_visitor->get_visitors();
        $data['threads']  = $this->model_thread->get_all_threads();
{'fraction_non_alphanumeric': 0.18872802481902792, 'fraction_numerical': 0.0, 'mean_word_length': 3.1346153846153846, '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': '4656082', 'n_tokens_mistral': 553, 'n_tokens_neox': 546, 'n_words': 76}