<commit_before><?php
/**
 * Created by PhpStorm.
 * User: luoxiaojun
 * Date: 15/11/7
 * Time: 下午3:26
 * Lb framework config container file
 */

namespace lb\components\containers;

class Config extends Base
{
    public function set($config_name, $config_content)
    {
        try {
            $this->$config_name = $config_content;
        } catch (\Exception $e) {

        }
    }

    public function get($config_name)
    {
        try {
            return $this->$config_name;
        } catch (\Exception $e) {

        }
    }

    /**
     * @return bool|Base
     */
    public static function component()
    {
        if (self::$instance instanceof self) {
            return self::$instance;
        } else {
            return (self::$instance = new self());
        }
    }
}<commit_msg>config container<commit_after><?php
/**
 * Created by PhpStorm.
 * User: luoxiaojun
 * Date: 15/11/7
 * Time: 下午3:26
 * Lb framework config container file
 */

namespace lb\components\containers;

class Config extends Base
{
    public function set($config_name, $config_content)
    {
        try {
            $this->$config_name = $config_content;
        } catch (\Exception $e) {

        }
    }

    public function get($config_name)
    {
        try {
            return $this->$config_name;
        } catch (\Exception $e) {

        }
    }

    /**
     * @return bool|Base
     */
    public static function component()
    {
        if (static::$instance instanceof static) {
            return static::$instance;
        } else {
            return (static::$instance = new static());
        }
    }
}
{'fraction_non_alphanumeric': 0.12461443553362123, 'fraction_numerical': 0.00987045033929673, 'mean_word_length': 1.8556338028169015, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7535376', 'n_tokens_mistral': 496, 'n_tokens_neox': 486, 'n_words': 115}