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

class Files_controller extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('files_model');
        $this->path_file_upload = FCPATH . "asset/file_upload/";
    }

    public function index() {
        dd($this->dirToArray($this->path_file_upload));
    }

    /**
     * @param $path
     * @param $width
     * @param $height
     *
     * @return bool
     */
    private function resize_img($path, $width, $height) {
        $this->load->library('image_lib');
        $config['image_library'] = 'gd2';
        $config['source_image']  = $path;
        $config['width']         = $width;
        $config['height']        = $height;
        $this->image_lib->initialize($config);

        return $this->image_lib->resize();
    }

    public function show() {<commit_msg>New function<commit_after><?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Files_controller extends MY_Controller {

    public function __construct() {
        parent::__construct();
        $this->load->model('files_model');
        $this->path_file_upload = FCPATH . "asset/file_upload/";
    }

    public function index() {
        dd($this->dirToArray($this->path_file_upload));
    }

    /**
     * @param $path
     * @param $width
     * @param $height
     *
     * @return bool
     */
    private function resize_img($path, $width, $height) {
        $this->load->library('image_lib');
        $config['image_library'] = 'gd2';
        $config['source_image']  = $path;
        $config['width']         = $width;
        $config['height']        = $height;
        $this->image_lib->initialize($config);

        return $this->image_lib->resize();
    }

    /**
     * Function controller
     */
    public function show() {
{'fraction_non_alphanumeric': 0.15961945031712474, 'fraction_numerical': 0.0010570824524312897, 'mean_word_length': 2.4861878453038675, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '2268409', 'n_tokens_mistral': 567, 'n_tokens_neox': 554, 'n_words': 107}