<commit_before><?php
    if (!defined('UPGRADING') or !UPGRADING)
        exit;

    /**
     * Function: read_more_add_config
     * Adds config settings into an array.
     *
     * Versions: 2022.01 => 2022.02
     */
    function read_more_add_config(): void {
        $set = Config::current()->set("module_read_more",
                                      array("apply_to_feeds" => false, "default_text" => ""),
                                      true);

        if ($set === false)
            error(__("Error"), __("Could not write the configuration file."));<commit_msg>Read More module: fixed upgrader versioning<commit_after><?php
    if (!defined('UPGRADING') or !UPGRADING)
        exit;

    /**
     * Function: read_more_add_config
     * Adds config settings into an array.
     *
     * Versions: 2022.02 => 2022.03
     */
    function read_more_add_config(): void {
        $set = Config::current()->set("module_read_more",
                                      array("apply_to_feeds" => false, "default_text" => ""),
                                      true);

        if ($set === false)
            error(__("Error"), __("Could not write the configuration file."));
{'fraction_non_alphanumeric': 0.13674496644295303, 'fraction_numerical': 0.020134228187919462, 'mean_word_length': 1.854066985645933, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5875571', 'n_tokens_mistral': 356, 'n_tokens_neox': 332, 'n_words': 76}