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

class Home extends CI_Controller {
    public function index(){

        $this->load->model('product');

        $products = $this->product->getRecord();

        var_export($products);

        $data['products'] = $products;

        $this->load->view('home' , $data);

    }

    public function view_product(){

        $this->load->model('product');

        $tableName = $this->product->getRecord('title');

        $result = $this->get_all_Record_withTable($tableName);

        var_export($result);<commit_msg>home array<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Home extends CI_Controller {
    public function index(){

        $this->load->model('product');

        $q = $this->db->get('products');
        $r = $q->result_array();

        if ($r) {
            $data = array('r' => $r);
                  var_export($data);
            $this->load->view('home', $data);

        } else {
            $data['novalue'] = true;
            $this->load->view('home', $data);
        }








    }

    public function view_product(){

        $this->load->model('product');

        $tableName = $this->product->getRecord('title');

        $result = $this->get_all_Record_withTable($tableName);

        var_export($result);
{'fraction_non_alphanumeric': 0.17518248175182483, 'fraction_numerical': 0.0, 'mean_word_length': 2.506393861892583, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '2864281', 'n_tokens_mistral': 413, 'n_tokens_neox': 385, 'n_words': 74}