<commit_before><?php
use Cake\Utility\Inflector;

echo $this->Html->css('AdminLTE./plugins/datatables/dataTables.bootstrap', ['block' => 'css']);
echo $this->Html->script(
    [
        'AdminLTE./plugins/datatables/jquery.dataTables.min',
        'AdminLTE./plugins/datatables/dataTables.bootstrap.min'
    ],
    [
        'block' => 'scriptBotton'
    ]
);
echo $this->Html->scriptBlock(
    '$(".table-datatable").DataTable({});',
    ['block' => 'scriptBotton']
);
?>
<section class="content-header">
    <h1>Sites
        <div class="pull-right">
            <div class="btn-group btn-group-sm" role="group">
                <?= $this->Html->link(
                    '<i class="fa fa-plus"></i> ' . __('Add'),
                    ['plugin' => $this->plugin, 'controller' => $this->name, 'action' => 'add'],
                    ['escape' => false, 'title' => __('Add'), 'class' => 'btn btn-default']
                ) ?>
            </div>
        </div>
    </h1>
</section>
<section class="content">
    <div class="box">
        <div class="box-body">
            <div class="box-body table-responsive">
                <table class="table table-condensed table-vertical-align">
                    <thead>
                        <tr>
                            <th><?= __('Name'); ?></th>
                            <th><?= __('Slug'); ?></th>
                            <th><?= __('Active'); ?></th>
                            <th class="actions"><?= __('Actions'); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($sites as $site) : ?>
                        <tr>
                            <td><?= $site->name ?></td>
                            <td><?= $site->slug ?></td>
                            <td><?= $site->active ? __('Yes') : __('No') ?></td>
                            <td class="actions">
                                <div class="btn-toolbar" role="toolbar">
                                    <div class="btn-group btn-group-xs" role="group">
                                        <?= $this->Html->link(
                                            '<i class="fa fa-eye"></i>',
                                            ['action' => 'view', $site->id],
                                            ['title' => __('View'), 'class' => 'btn btn-default', 'escape' => false]
                                        ) ?>
                                        <?= $this->Html->link(
                                            '<i class="fa fa-pencil"></i>',
                                            ['action' => 'edit', $site->id],
                                            ['title' => __('Edit'), 'class' => 'btn btn-default', 'escape' => false]
                                        ) ?>
                                        <?= $this->Form->postLink(
                                            '<i class="fa fa-trash"></i>',
                                            ['action' => 'delete', $site->id],
                                            [
                                                'confirm' => __('Are you sure you want to delete # {0}?', $site->name),
                                                'title' => __('Delete'),
                                                'class' => 'btn btn-default',
                                                'escape' => false
                                            ]
                                        ) ?>
                                    </div>
                                    <div class="btn-group btn-group-xs" role="group">
                                        <?= $this->Html->link(
                                            '<i class="fa fa-tag"></i>',
                                            ['controller' => 'Categories', 'action' => 'add', $site->slug],
                                            ['title' => __('Create Category'), 'class' => 'btn btn-default', 'escape' => false]
                                        ) ?>
                                        <?= $this->Form->button('<i class="fa fa-pencil-square"></i>', [
                                            'type' => 'button',
                                            'title' => __('Create Article'),
                                            'class' => 'btn btn-default dropdown-toggle',
                                            'data-toggle' => 'dropdown',
                                            'aria-haspopup' => 'true',
                                            'aria-expanded' => 'false',
                                            'escape' => false
                                        ]) ?>
                                        <ul class="dropdown-menu dropdown-menu-right">
                                        <?php foreach (array_keys($types) as $type) : ?>
                                            <li>
                                                <a href="<?= $this->Url->build([
                                                    'controller' => 'Articles',
                                                    'action' => 'add',
                                                    $site->slug,
                                                    $type
                                                ]); ?>">
                                                    <?= Inflector::humanize($type) ?>
                                                </a>
                                            </li>
                                        <?php endforeach; ?>
                                        </ul>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section><commit_msg>Removed button for creating site articles (task #3424)<commit_after><?php
use Cake\Utility\Inflector;

echo $this->Html->css('AdminLTE./plugins/datatables/dataTables.bootstrap', ['block' => 'css']);
echo $this->Html->script(
    [
        'AdminLTE./plugins/datatables/jquery.dataTables.min',
        'AdminLTE./plugins/datatables/dataTables.bootstrap.min'
    ],
    [
        'block' => 'scriptBotton'
    ]
);
echo $this->Html->scriptBlock(
    '$(".table-datatable").DataTable({});',
    ['block' => 'scriptBotton']
);
?>
<section class="content-header">
    <h1>Sites
        <div class="pull-right">
            <div class="btn-group btn-group-sm" role="group">
                <?= $this->Html->link(
                    '<i class="fa fa-plus"></i> ' . __('Add'),
                    ['plugin' => $this->plugin, 'controller' => $this->name, 'action' => 'add'],
                    ['escape' => false, 'title' => __('Add'), 'class' => 'btn btn-default']
                ) ?>
            </div>
        </div>
    </h1>
</section>
<section class="content">
    <div class="box">
        <div class="box-body">
            <div class="box-body table-responsive">
                <table class="table table-condensed table-vertical-align">
                    <thead>
                        <tr>
                            <th><?= __('Name'); ?></th>
                            <th><?= __('Slug'); ?></th>
                            <th><?= __('Active'); ?></th>
                            <th class="actions"><?= __('Actions'); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($sites as $site) : ?>
                        <tr>
                            <td><?= $site->name ?></td>
                            <td><?= $site->slug ?></td>
                            <td><?= $site->active ? __('Yes') : __('No') ?></td>
                            <td class="actions">
                                <div class="btn-toolbar" role="toolbar">
                                    <div class="btn-group btn-group-xs" role="group">
                                        <?= $this->Html->link(
                                            '<i class="fa fa-eye"></i>',
                                            ['action' => 'view', $site->id],
                                            ['title' => __('View'), 'class' => 'btn btn-default', 'escape' => false]
                                        ) ?>
                                        <?= $this->Html->link(
                                            '<i class="fa fa-pencil"></i>',
                                            ['action' => 'edit', $site->id],
                                            ['title' => __('Edit'), 'class' => 'btn btn-default', 'escape' => false]
                                        ) ?>
                                        <?= $this->Form->postLink(
                                            '<i class="fa fa-trash"></i>',
                                            ['action' => 'delete', $site->id],
                                            [
                                                'confirm' => __('Are you sure you want to delete # {0}?', $site->name),
                                                'title' => __('Delete'),
                                                'class' => 'btn btn-default',
                                                'escape' => false
                                            ]
                                        ) ?>
                                    </div>
                                    <div class="btn-group btn-group-xs" role="group">
                                    <?= $this->Html->link(
                                        '<i class="fa fa-tag"></i>',
                                        ['controller' => 'Categories', 'action' => 'add', $site->slug],
                                        ['title' => __('Create Category'), 'class' => 'btn btn-default', 'escape' => false]
                                    ) ?>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</section>
{'fraction_non_alphanumeric': 0.15508589075468057, 'fraction_numerical': 0.0009650646593321753, 'mean_word_length': 0.7573342377480075, 'pattern_counts': {'":': 0, '<': 162, '<?xml version=': 0, '>': 282, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 143, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '942599', 'n_tokens_mistral': 2188, 'n_tokens_neox': 2172, 'n_words': 434}