<commit_before><?php

// Some ZF stuff has explicit require_once's in it... meh.
ini_set('include_path', ini_get('include_path') . ':' . dirname(__FILE__) );

function _xerte_autoloader($class) {
    
    $class = str_replace("_", DIRECTORY_SEPARATOR , $class);
    $full_file_name = dirname(__FILE__) . DIRECTORY_SEPARATOR . $class . '.php';

    //echo "Looking for $class <br/>";
    if(file_exists($full_file_name)) {
        require_once($full_file_name); 
        return true;
    }

    // hmm, pass onto someone else?
    return false;

    
}

spl_autoload_register("_xerte_autoloader");<commit_msg>autoloader.php - Ron M try this.<commit_after><?php

// Some ZF stuff has explicit require_once's in it... meh.
ini_set('include_path', ini_get('include_path') . ':' . dirname(__FILE__) );

// For Ron -
var_dump(ini_get('include_path'));
die('xx');

function _xerte_autoloader($class) {
    
    $class = str_replace("_", DIRECTORY_SEPARATOR , $class);
    $full_file_name = dirname(__FILE__) . DIRECTORY_SEPARATOR . $class . '.php';

    //echo "Looking for $class <br/>";
    if(file_exists($full_file_name)) {
        require_once($full_file_name); 
        return true;
    }

    // hmm, pass onto someone else?
    return false;
}

spl_autoload_register("_xerte_autoloader");
{'fraction_non_alphanumeric': 0.14895267649340574, 'fraction_numerical': 0.0, 'mean_word_length': 3.590747330960854, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '7354129', 'n_tokens_mistral': 470, 'n_tokens_neox': 452, 'n_words': 89}