<commit_before><?php

/* This file is part of the Staq project, which is under MIT license */


namespace Staq\Core\Ground\Stack;

class Setting
{


    /* ATTRIBUTES
     *************************************************************************/
    static public $initialized = FALSE;
    static public $cache = [];
    static public $cacheFile;


    /* CONSTRUCTOR
     *************************************************************************/
    public function __construct()
    {
        if (!static::$initialized) {
            $this->initialize();
        }
    }

    protected function initialize()
    {
        if ($path = \Staq::App()->getPath('cache/', TRUE)) {
            static::$cacheFile = $path . '/setting.' . \Staq::App()->getPlatform() . '.php';
            if (is_file(static::$cacheFile) && is_readable(static::$cacheFile)) {
                require(static::$cacheFile);
                if (isset($cache) && is_array($cache)) {<commit_msg>Bugfix on removed setting cache file<commit_after><?php

/* This file is part of the Staq project, which is under MIT license */


namespace Staq\Core\Ground\Stack;

class Setting
{


    /* ATTRIBUTES
     *************************************************************************/
    static public $initialized = FALSE;
    static public $cache = [];
    static public $cacheFile;


    /* CONSTRUCTOR
     *************************************************************************/
    public function __construct()
    {
        if (!static::$initialized) {
            $this->initialize();
        }
    }

    protected function initialize()
    {
        if ($path = \Staq::App()->getPath('cache/', TRUE)) {
            static::$cacheFile = $path . '/setting.' . \Staq::App()->getPlatform() . '.php';
            if (is_file(static::$cacheFile) && is_readable(static::$cacheFile)) {
                @include(static::$cacheFile);
                if (isset($cache) && is_array($cache)) {
{'fraction_non_alphanumeric': 0.27936670071501535, 'fraction_numerical': 0.0, 'mean_word_length': 2.856299212598425, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '3615424', 'n_tokens_mistral': 509, 'n_tokens_neox': 485, 'n_words': 115}