<commit_before><div class="sidebar">
    <h2><?= t('Actions') ?></h2>
    <ul>
        <li>
            <?= Helper\a(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?>
        </li>

        <?php if (Helper\is_admin() || $project['is_private']): ?>
        <li>
            <?= Helper\a(t('Public access'), 'project', 'share', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?>
        </li>
        <?php endif ?>
        <?php if ((Helper\is_admin() || $is_owner) && $project['is_private'] == 0): ?>
            <li>
                <?= Helper\a(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?>
            </li>
        <?php endif ?>
        <?php if (Helper\is_admin() || $project['is_private']): ?>
        <li>
            <?= Helper\a(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id']), true) ?>
        </li>
        <li>
            <?php if ($project['is_active']): ?>
                <?= Helper\a(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?>
            <?php else: ?>
                <?= Helper\a(t('Enable'), 'project', 'enable', array('project_id' => $project['id']), true) ?>
            <?php endif ?>
        </li>
        <li>
            <?= Helper\a(t('Remove'), 'project', 'remove', array('project_id' => $project['id'])) ?>
        </li>
        <?php endif ?>
    </ul>

    <?php if (Helper\is_admin() || $project['is_private']): ?>
    <h2><?= t('Exports') ?></h2>
    <ul>
        <li>
            <?= Helper\a(t('Tasks'), 'project', 'exportTasks', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Daily project summary'), 'project', 'exportDailyProjectSummary', array('project_id' => $project['id'])) ?>
        </li>
    </li>
    <?php endif ?><commit_msg>Give more privileges to a project owner<commit_after><div class="sidebar">
    <h2><?= t('Actions') ?></h2>
    <ul>
        <li>
            <?= Helper\a(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?>
        </li>

        <?php if (Helper\is_admin() || $project['is_private']): ?>
        <li>
            <?= Helper\a(t('Public access'), 'project', 'share', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?>
        </li>
        <?php endif ?>
        <?php if (Helper\is_admin() || $is_owner || $project['is_private']): ?>
            <li>
                <?= Helper\a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?>
            </li>
            <li>
                <?= Helper\a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?>
            </li>
            <?php if ($project['is_private'] == 0): ?>
            <li>
                <?= Helper\a(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?>
            </li>
            <?php endif ?>
            <li>
                <?= Helper\a(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?>
            </li>
        <?php endif ?>
        <?php if (Helper\is_admin() || $project['is_private']): ?>
        <li>
            <?= Helper\a(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id']), true) ?>
        </li>
        <li>
            <?php if ($project['is_active']): ?>
                <?= Helper\a(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?>
            <?php else: ?>
                <?= Helper\a(t('Enable'), 'project', 'enable', array('project_id' => $project['id']), true) ?>
            <?php endif ?>
        </li>
        <li>
            <?= Helper\a(t('Remove'), 'project', 'remove', array('project_id' => $project['id'])) ?>
        </li>
        <?php endif ?>
    </ul>

    <?php if (Helper\is_admin() || $project['is_private']): ?>
    <h2><?= t('Exports') ?></h2>
    <ul>
        <li>
            <?= Helper\a(t('Tasks'), 'project', 'exportTasks', array('project_id' => $project['id'])) ?>
        </li>
        <li>
            <?= Helper\a(t('Daily project summary'), 'project', 'exportDailyProjectSummary', array('project_id' => $project['id'])) ?>
        </li>
    </li>
    <?php endif ?>
{'fraction_non_alphanumeric': 0.25147507629704985, 'fraction_numerical': 0.002034587995930824, 'mean_word_length': 2.251322751322751, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 149, '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': '1533836', 'n_tokens_mistral': 1600, 'n_tokens_neox': 1575, 'n_words': 301}