<commit_before><?php
namespace Workerman;

if(!defined('WORKERMAN_ROOT_DIR'))
{
    define('WORKERMAN_ROOT_DIR', realpath(__DIR__  . '/../'));
}

require_once WORKERMAN_ROOT_DIR.'/Workerman/Lib/Constants.php';

class Autoloader
{
    protected static $_appInitPath = '';

    public static function setRootPath($root_path)
    {
        self::$_appInitPath = $root_path;
    }

    public static function loadByNamespace($name)
    {
        $class_path = str_replace('\\', DIRECTORY_SEPARATOR ,$name);
        $class_file = self::$_appInitPath . '/' . $class_path.'.php';
        if(is_file($class_file))
        {
            $class_file = WORKERMAN_ROOT_DIR . DIRECTORY_SEPARATOR . "$class_path.php";<commit_msg>autoloader fix<commit_after><?php
namespace Workerman;

if(!defined('WORKERMAN_ROOT_DIR'))
{
    define('WORKERMAN_ROOT_DIR', realpath(__DIR__  . '/../'));
}

require_once WORKERMAN_ROOT_DIR.'/Workerman/Lib/Constants.php';

class Autoloader
{
    protected static $_appInitPath = '';

    public static function setRootPath($root_path)
    {
        self::$_appInitPath = $root_path;
    }

    public static function loadByNamespace($name)
    {
        $class_path = str_replace('\\', DIRECTORY_SEPARATOR ,$name);
        $class_file = self::$_appInitPath . '/' . $class_path.'.php';
        if(!is_file($class_file))
        {
            $class_file = WORKERMAN_ROOT_DIR . DIRECTORY_SEPARATOR . "$class_path.php";
{'fraction_non_alphanumeric': 0.14315642458100558, 'fraction_numerical': 0.0, 'mean_word_length': 3.450310559006211, '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': '3708670', 'n_tokens_mistral': 487, 'n_tokens_neox': 476, 'n_words': 70}