<commit_before><?php
namespace Kernel;
use Service\Timeer;
use Whoops\Run;
use Whoops\Handler\PrettyPageHandler;
use Service\Session;
use Service\Route;
use Service\Http;
use DebugBar\StandardDebugBar;
//
use DebugBar\DebugBar;
use DebugBar\DataCollector\ExceptionsCollector;
use DebugBar\DataCollector\MemoryCollector;
use DebugBar\DataCollector\MessagesCollector;
use DebugBar\DataCollector\PhpInfoCollector;
use DebugBar\DataCollector\RequestDataCollector;
use DebugBar\DataCollector\TimeDataCollector;
use DebugBar\DataCollector\LocalizationCollector;
use DebugBar\DataCollector\DataCollector;
use DebugBar\DataCollector\ConfigCollector;
use DebugBar\DataCollector\AggregatedCollector;
/**
* 框架核心类
*/
class Kernel
{
    protected static $class = [];
    /**
     * 类的映射
     */
    public static function auto_load($class){
        if(count(self::$class)==0){
            # 加载配置文件
            self::$class = C('all','class');
        }
        # 判断类是否存在
        if(isset(self::$class[$class])){
            # 获取类文件名
            $class_name = str_replace('\\','_',CLASS_PATH.self::$class[$class].'.php');
            # 判断缓存文件是否存在
            if(!file_exists($class_name)){
                # 写入文件
                file_put_contents($class_name,'<?php class '.$class.' extends '.self::$class[$class].'{ }');
            }
            # 引入映射类
            require($class_name);
            # 递归 判断是否改了映射注入
            if(!class_exists($class)){
                self::auto_load($class);
            }
        }
    }
    /**
     * 启动框架
     */
    public static function start()
    {
        # 判断环境变量配置文件是否存在
        if(file_exists(ROOT_PATH.'.env')){
            # 自定义配置
            $f= fopen(ROOT_PATH.'.env',"r");
        }else{
            # 惯例配置
            $f= fopen(ROOT_PATH.'env.example',"r");
        }
        # 循环行<commit_msg>避免语法错误递归查找类映射<commit_after><?php
namespace Kernel;
use Service\Timeer;
use Whoops\Run;
use Whoops\Handler\PrettyPageHandler;
use Service\Session;
use Service\Route;
use Service\Http;
use DebugBar\StandardDebugBar;
//
use DebugBar\DebugBar;
use DebugBar\DataCollector\ExceptionsCollector;
use DebugBar\DataCollector\MemoryCollector;
use DebugBar\DataCollector\MessagesCollector;
use DebugBar\DataCollector\PhpInfoCollector;
use DebugBar\DataCollector\RequestDataCollector;
use DebugBar\DataCollector\TimeDataCollector;
use DebugBar\DataCollector\LocalizationCollector;
use DebugBar\DataCollector\DataCollector;
use DebugBar\DataCollector\ConfigCollector;
use DebugBar\DataCollector\AggregatedCollector;
/**
* 框架核心类
*/
class Kernel
{
    protected static $class = [];
    /**
     * 类的映射
     */
    public static function auto_load($class){
        if(count(self::$class)==0){
            # 加载配置文件
            self::$class = C('all','class');
        }
        # 判断类是否存在
        if(isset(self::$class[$class])){
            # 获取类文件名
            $class_name = str_replace('\\','_',CLASS_PATH.self::$class[$class].'.php');
            # 判断缓存文件是否存在
            if(!file_exists($class_name)){
                # 写入文件
                file_put_contents($class_name,'<?php class '.$class.' extends '.self::$class[$class].'{ }');
            }
            # 引入映射类
            require($class_name);
        }
    }
    /**
     * 启动框架
     */
    public static function start()
    {
        # 判断环境变量配置文件是否存在
        if(file_exists(ROOT_PATH.'.env')){
            # 自定义配置
            $f= fopen(ROOT_PATH.'.env',"r");
        }else{
            # 惯例配置
            $f= fopen(ROOT_PATH.'env.example',"r");
        }
        # 循环行
{'fraction_non_alphanumeric': 0.13372747747747749, 'fraction_numerical': 0.0005630630630630631, 'mean_word_length': 2.466341463414634, 'pattern_counts': {'":': 0, '<': 7, '<?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': '760459', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1295, 'n_words': 171}