<commit_before><?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * 
 * 
 * 
 *
 * @copyright  版权所有(C) 2014-2015 沈阳工业大学ACM实验室 沈阳工业大学网络管理中心 *Chen
 * @license    http://www.gnu.org/licenses/gpl-3.0.txt   GPL3.0 License
 * @version    
 * @link       https://github.com/SUTFutureCoder/
*/
class MyRedis{
    private static $redis;
    
    public function getInstance(){
        if (!isset(self::$redis)){
            self::$redis = new Redis();
        }
        return self::$redis;
    }
    
    public function set($key, $value, $expired = 0){
        if (!isset(self::$redis)){
            $this->getInstance();
        }
        if ($expired){<commit_msg>rename redis<commit_after><?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');
/**
 * 
 * 
 * 
 *
 * @copyright  版权所有(C) 2014-2015 沈阳工业大学ACM实验室 沈阳工业大学网络管理中心 *Chen
 * @license    http://www.gnu.org/licenses/gpl-3.0.txt   GPL3.0 License
 * @version    
 * @link       https://github.com/SUTFutureCoder/
*/
class Myredis{
    private static $redis;
    
    public function getInstance(){
        if (!isset(self::$redis)){
            self::$redis = new Redis();
        }
        return self::$redis;
    }
    
    public function set($key, $value, $expired = 0){
        if (!isset(self::$redis)){
            $this->getInstance();
        }
        if ($expired){
{'fraction_non_alphanumeric': 0.16220130340333092, 'fraction_numerical': 0.01882693700217234, 'mean_word_length': 2.2748815165876777, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5810453', 'n_tokens_mistral': 515, 'n_tokens_neox': 515, 'n_words': 94}