<commit_before><?php
/**
* @author      <NAME>
* @copyright   2015 <NAME>
* @link        http://www.jelix.org
* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
*/

/**
 */
class jsitemapModuleInstaller extends jInstallerModule {

    function install() {

        if (!$this->firstExec('config')) {
            return;
        }

        if (null == $this->config->getValue('sitemap','responses', null, true)) {
            $this->config->setValue('sitemap','jsitemap~jResponseSitemap','responses', null, true);
        }
    }
}<commit_msg>Fix installer for the latest jelix 1.7<commit_after><?php
/**
* @author      <NAME>
* @copyright   2015 <NAME>
* @link        http://www.jelix.org
* @licence     GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html
*/

/**
 */
class jsitemapModuleInstaller extends jInstallerModule {

    function install() {

        if (!$this->firstExec('config')) {
            return;
        }

        if (null == $this->entryPoint->getMainConfigIni()->getValue('sitemap','responses', null, true)) {
            $this->entryPoint->getMainConfigIni()->setValue('sitemap','jsitemap~jResponseSitemap','responses', null, true);
        }
    }
}
{'fraction_non_alphanumeric': 0.16154452324665092, 'fraction_numerical': 0.007880220646178092, 'mean_word_length': 2.8719512195121952, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '1180629', 'n_tokens_mistral': 402, 'n_tokens_neox': 393, 'n_words': 78}