<commit_before><?php
    
    
    namespace Think\Template;
    
    use Think\Template;
    use Think\Think;
    
    /**
     * 标签库TagLib解析基类
     */
    class TagLib
    {
        
        /**
         * 标签库定义XML文件
         * @var string
         * @access protected
         */
        protected $xml = '';
        /**
         * @var array $tags 标签定义
         */
        protected $tags = [];
        /**
         * 标签库名称
         * @var string
         * @access protected
         */
        protected $tagLib = '';
        
        /**
         * 标签库标签列表
         * @var array $tagList
         * @access protected
         */
        protected $tagList = [];
        
        /**
         * 标签库分析数组
         * @var array $parse
         * @access protected
         */
        protected $parse = [];
        
        /**
         * 标签库是否有效
         * @var bool $valid
         * @deprecated
         * @access protected
         */
        protected $valid = false;
        
        /**
         * 当前模板对象
         * @var \Think\Template
         * @access protected
         */
        protected $tpl;
        
        protected $comparison = [
            ' nheq ' => ' !== ',
            ' heq '  => ' === ',
            ' neq '  => ' != ',
            ' eq '   => ' == ',
            ' egt '  => ' >= ',
            ' gt '   => ' > ',
            ' elt '  => ' <= ',
            ' lt '   => ' < ',
        ];
        
        /**
         * @access public
         */
        public function __construct()
        {
            $this->tagLib = strtolower(substr(get_class($this), 6));
            $this->tpl = Think::instance(Template::class);
        }
        
        /**
         * TagLib标签属性分析 返回标签属性数组
         * @access   public<commit_msg>remove useless member $xml & $tagLib<commit_after><?php
    
    
    namespace Think\Template;
    
    use Think\Template;
    use Think\Think;
    
    /**
     * 标签库TagLib解析基类
     */
    class TagLib
    {
        
        /**
         * @var array $tags 标签定义
         */
        protected $tags = [];
        
        /**
         * 标签库标签列表
         * @var array $tagList
         * @access protected
         */
        protected $tagList = [];
        
        /**
         * 标签库分析数组
         * @var array $parse
         * @access protected
         */
        protected $parse = [];
        
        /**
         * 标签库是否有效
         * @var bool $valid
         * @deprecated
         * @access protected
         */
        protected $valid = false;
        
        /**
         * 当前模板对象
         * @var \Think\Template
         * @access protected
         */
        protected $tpl;
        
        protected $comparison = [
            ' nheq ' => ' !== ',
            ' heq '  => ' === ',
            ' neq '  => ' != ',
            ' eq '   => ' == ',
            ' egt '  => ' >= ',
            ' gt '   => ' > ',
            ' elt '  => ' <= ',
            ' lt '   => ' < ',
        ];
        
        /**
         * @access public
         */
        public function __construct()
        {
            $this->tpl = Think::instance(Template::class);
        }
        
        /**
         * TagLib标签属性分析 返回标签属性数组
         * @access   public
{'fraction_non_alphanumeric': 0.1371818746120422, 'fraction_numerical': 0.00031036623215394165, 'mean_word_length': 0.888107791446983, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '4125958', 'n_tokens_mistral': 976, 'n_tokens_neox': 1021, 'n_words': 160}