<commit_before><?php

use App\Option;

if (! function_exists('option')) {
    /**
     * Get a value option from database by given option key.
     *
     * @param  string  $key
     * @param  null    $default
     * @return mixed
     */
    function option($key, $default = null)
    {
        try {
            if (! app()->isLocal()) {
                return Option::remember($key, config('cms.option.lifetime'), $default);
            }

            return Option::value($key, $default);
        } catch (Exception $e) {
            return value($default);
        }
    }
}

if (! function_exists('a')) {
    /**<commit_msg>also remember option's value in local environment<commit_after><?php

use App\Option;

if (! function_exists('option')) {
    /**
     * Get a value option from database by given option key.
     *
     * @param  string  $key
     * @param  null    $default
     * @return mixed
     */
    function option($key, $default = null)
    {
        try {
            return Option::remember($key, $default);
        } catch (Exception $e) {
            return value($default);
        }
    }
}

if (! function_exists('a')) {
    /**
{'fraction_non_alphanumeric': 0.14421416234887738, 'fraction_numerical': 0.0, 'mean_word_length': 1.9120603015075377, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '4296855', 'n_tokens_mistral': 340, 'n_tokens_neox': 335, 'n_words': 88}