<commit_before><div class="wrapper-md bg-white b-b box-shadow">
    <h1 class="m-n font-thin h3">
        <span class="fa fa-sitemap"></span>
        <?= $this->translate('title.sitemap', 'admin') ?>
    </h1>
</div>

<div class="wrapper-md"
     data-request-url="<?= $this->url('admin/sitemap/list')?>"
     data-save-url="<?= $this->url('admin/sitemap/save')?>"
     data-add-url="<?= $this->url('admin/sitemap/add-sitemap')?>"
     ng-controller="SitemapController"
     data-active-locale="<?= $this->localization()->getDefaultLocale() ?>"
    >
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="row">
                <div class="col-md-3 col-md-offset-9">
                    <select ng-model="locale" class="form-control" ng-change="loadTree()">
                        <?php foreach($this->localization()->getAvailableLocalesDisplay() as $_locale => $_name): ?>
                            <option value="<?= $_locale?>"><?= $_name ?></option>
                        <?php endforeach; ?>
                    </select>
                </div>
            </div>
        </div>
        <div class="panel-body">
            <script type="text/ng-template" id="nodes_renderer.html">
                <div class="dd-handle dd3-handle" ui-tree-handle>&nbsp;</div>
                <div class="dd3-content">
                    <div class="row">
                        <div class="col-md-8">
                            <a class="btn btn-link btn-xs" ng-click="toggle(this)">
                                <span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed, 'glyphicon-chevron-down': !collapsed}"></span>
                            </a>
                            <code>#{{item.pageId}}</code> {{item.title}}
                        </div>
                        <div class="col-md-1 text-center">
                            <span class="label" ng-class="{'label-success': item.status == 'online', 'label-danger': item.status == 'offline'}">{{ item.status }}</span>
                        </div>
                        <div class="col-md-1 text-center">
                            <span class="label label-default">{{ item.viewCount }}</span>
                        </div>
                        <div class="col-md-1 text-center">
                            <span class="label label-default">{{ item.pageType }}</span>
                        </div>
                        <div class="col-md-1 text-right">
                            <a class="btn btn-info btn-sm" ng-href="<?= $this->url('admin/sitemap/edit', ['id' => '{{ item.pageId }}']) ?>">
                                <span class="fa fa-pencil"></span>
                            </a>
                            <delete
                                url="<?= $this->url('admin/sitemap/delete') ?>"<commit_msg>sitemap: removed collapseable on items without children<commit_after><div class="wrapper-md bg-white b-b box-shadow">
    <h1 class="m-n font-thin h3">
        <span class="fa fa-sitemap"></span>
        <?= $this->translate('title.sitemap', 'admin') ?>
    </h1>
</div>

<div class="wrapper-md"
     data-request-url="<?= $this->url('admin/sitemap/list')?>"
     data-save-url="<?= $this->url('admin/sitemap/save')?>"
     data-add-url="<?= $this->url('admin/sitemap/add-sitemap')?>"
     ng-controller="SitemapController"
     data-active-locale="<?= $this->localization()->getDefaultLocale() ?>"
    >
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="row">
                <div class="col-md-3 col-md-offset-9">
                    <select ng-model="locale" class="form-control" ng-change="loadTree()">
                        <?php foreach($this->localization()->getAvailableLocalesDisplay() as $_locale => $_name): ?>
                            <option value="<?= $_locale?>"><?= $_name ?></option>
                        <?php endforeach; ?>
                    </select>
                </div>
            </div>
        </div>
        <div class="panel-body">
            <script type="text/ng-template" id="nodes_renderer.html">
                <div class="dd-handle dd3-handle" ui-tree-handle>&nbsp;</div>
                <div class="dd3-content">
                    <div class="row">
                        <div class="col-md-8">
                            <a ng-if="item.items.length > 0" class="btn btn-link btn-xs" ng-click="toggle(this)">
                                <span class="glyphicon" ng-class="{'glyphicon-chevron-right': collapsed, 'glyphicon-chevron-down': !collapsed}"></span>
                            </a>
                            <code>#{{item.pageId}}</code> {{item.title}}
                        </div>
                        <div class="col-md-1 text-center">
                            <span class="label" ng-class="{'label-success': item.status == 'online', 'label-danger': item.status == 'offline'}">{{ item.status }}</span>
                        </div>
                        <div class="col-md-1 text-center">
                            <span class="label label-default">{{ item.viewCount }}</span>
                        </div>
                        <div class="col-md-1 text-center">
                            <span class="label label-default">{{ item.pageType }}</span>
                        </div>
                        <div class="col-md-1 text-right">
                            <a class="btn btn-info btn-sm" ng-href="<?= $this->url('admin/sitemap/edit', ['id' => '{{ item.pageId }}']) ?>">
                                <span class="fa fa-pencil"></span>
                            </a>
                            <delete
                                url="<?= $this->url('admin/sitemap/delete') ?>"
{'fraction_non_alphanumeric': 0.18216384376080194, 'fraction_numerical': 0.004320774282751469, 'mean_word_length': 1.5019455252918288, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 148, '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': '2630780', 'n_tokens_mistral': 1656, 'n_tokens_neox': 1612, 'n_words': 282}