<commit_before><?php
/**
 * Created by PhpStorm.
 * User: dimaninc
 * Date: 17.10.2018
 * Time: 18:16
 */

namespace diCore\Controller;

class SiteMap extends \diBaseController
{
    public function generateAction()
    {
        \diSiteMapGenerator::createAndGenerate();
    }
}<commit_msg>sitemap generation controller: rights check added<commit_after><?php
/**
 * Created by PhpStorm.
 * User: dimaninc
 * Date: 17.10.2018
 * Time: 18:16
 */

namespace diCore\Controller;

class SiteMap extends \diBaseController
{
    public function generateAction()
    {
        $this->adminRightsHardCheck();

        \diSiteMapGenerator::createAndGenerate();
    }
}
{'fraction_non_alphanumeric': 0.12006079027355623, 'fraction_numerical': 0.0364741641337386, 'mean_word_length': 3.5448275862068965, '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': '6020585', 'n_tokens_mistral': 223, 'n_tokens_neox': 204, 'n_words': 46}