<commit_before><?php

function _jesyncphp_autoload_funcs($class) {    
    if (substr($class, 0, strlen(__NAMESPACE__)) != __NAMESPACE__)
        return false;
    $path = $class.'.php';
    if (file_exists($path)){
        require_once($path);
    }else{
        return false;
    }
}

spl_autoload_register('_jesyncphp_autoload_funcs');<commit_msg>php autoloading only worked if jesync was in the root dir<commit_after><?php

function _jesyncphp_autoload_funcs($class) {    
    if (substr($class, 0, strlen(__NAMESPACE__)) != __NAMESPACE__)
        return false;
    $path =__DIR__.'/'.$class.'.php';
    if (file_exists($path)){
        require_once($path);
    }else{
        return false;
    }
}

spl_autoload_register('_jesyncphp_autoload_funcs');
{'fraction_non_alphanumeric': 0.13642384105960265, 'fraction_numerical': 0.0026490066225165563, 'mean_word_length': 3.638036809815951, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7340675', 'n_tokens_mistral': 263, 'n_tokens_neox': 267, 'n_words': 47}