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

// Load the url helper too!
if (!function_exists('url_title')) {
    ci()->load->helper('url');
}

if (!function_exists('clean_file_name')) {

    // For UTF-8 encoded sites only.
    function clean_file_name($file_name, $separator = '-',  $lowercase = false, $language = NULL) {

        $extension = UTF8::strtolower(extension($file_name));

        if ($extension != '') {
            $file_name = substr($file_name, 0, -(strlen($extension) + 1));
        }

        $file_name = url_title($file_name, $separator, $lowercase, true, $language);<commit_msg>MY_file_helper: A change allowing loading another helper before the controller instance has been initialized.<commit_after><?php defined('BASEPATH') OR exit('No direct script access allowed.');

// Load the url helper too!
if (!function_exists('url_title')) {
    load_class('Loader', 'core')->helper('url');
}

if (!function_exists('clean_file_name')) {

    // For UTF-8 encoded sites only.
    function clean_file_name($file_name, $separator = '-',  $lowercase = false, $language = NULL) {

        $extension = UTF8::strtolower(extension($file_name));

        if ($extension != '') {
            $file_name = substr($file_name, 0, -(strlen($extension) + 1));
        }

        $file_name = url_title($file_name, $separator, $lowercase, true, $language);
{'fraction_non_alphanumeric': 0.16452991452991453, 'fraction_numerical': 0.005698005698005698, 'mean_word_length': 3.8954703832752613, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '3099544', 'n_tokens_mistral': 430, 'n_tokens_neox': 413, 'n_words': 103}