<commit_before><?php
namespace Concrete\Controller\Backend\Page;

use Concrete\Core\Command\Batch\Batch;
use Concrete\Core\Controller\AbstractController;
use Concrete\Core\Error\UserMessageException;
use Concrete\Core\Page\Command\DeletePageForeverCommand;
use Concrete\Core\Page\Page;

class SitemapDeleteForever extends AbstractController
{

    public function canAccess()
    {
        $dh = $this->app->make('helper/concrete/dashboard/sitemap');
        return $dh->canRead();
    }

    public function fillQueue()
    {<commit_msg>Using proper permission for sitemap delete forever<commit_after><?php
namespace Concrete\Controller\Backend\Page;

use Concrete\Core\Command\Batch\Batch;
use Concrete\Core\Controller\AbstractController;
use Concrete\Core\Error\UserMessageException;
use Concrete\Core\Page\Command\DeletePageForeverCommand;
use Concrete\Core\Page\Page;
use Concrete\Core\Permission\Checker;

class SitemapDeleteForever extends AbstractController
{

    public function canAccess()
    {
        $checker = new Checker();
        return $checker->canEmptyTrash();
    }

    public function fillQueue()
    {
{'fraction_non_alphanumeric': 0.10115350488021295, 'fraction_numerical': 0.0, 'mean_word_length': 4.584158415841584, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7247832', 'n_tokens_mistral': 326, 'n_tokens_neox': 327, 'n_words': 63}