<commit_before><?php
/**
 * FocusPHP
 *
 * @link      http://aicode.cc/
 * @copyright 管宜尧 <<EMAIL>>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT (see the
 *            LICENSE file)
 */

namespace Focus;


class Environ
{
    /**
     * Get php.ini configuration
     *
     * @param string     $key
     * @param bool|false $default
     *
     * @return bool|string
     */
    public static function ini($key, $default = false)
    {
        $option = ini_get($key);

        return $option === false ? $default : $option;
    }

}<commit_msg>bugfix: using ini_get read php.ini, but it can not take effect for db.a.b style configuration<commit_after><?php
/**
 * FocusPHP
 *
 * @link      http://aicode.cc/
 * @copyright 管宜尧 <<EMAIL>>
 * @license   http://www.opensource.org/licenses/mit-license.php MIT (see the
 *            LICENSE file)
 */

namespace Focus;


class Environ
{
    /**
     * Get php.ini configuration
     *
     * @param string     $key
     * @param bool|false $default
     *
     * @return bool|string
     */
    public static function cfg($key, $default = false)
    {
        $option = get_cfg_var($key);

        return $option === false ? $default : $option;
    }

}
{'fraction_non_alphanumeric': 0.14133986928104575, 'fraction_numerical': 0.0, 'mean_word_length': 2.173575129533679, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '298056', 'n_tokens_mistral': 404, 'n_tokens_neox': 394, 'n_words': 98}