<commit_before><div class="panel panel-default">
    <div class="panel-body">
        <?php echo button_create('article/add', 'Artikel Baru') ?>

        <div class="btn-group">
            <a href="<?php echo site_url('article?status=all') ?>" class="btn btn-default btn-sm <?php echo $status == 'all' ? 'active' : '' ?>">Semua</a>
            <a href="<?php echo site_url('article?status=publish') ?>" class="btn btn-default btn-sm <?php echo $status == 'publish' ? 'active' : '' ?>">Terbit</a>
            <a href="<?php echo site_url('article?status=schedule') ?>" class="btn btn-default btn-sm <?php echo $status == 'schedule' ? 'active' : '' ?>">Terjadwal</a>
            <a href="<?php echo site_url('article?status=draft') ?>" class="btn btn-default btn-sm <?php echo $status == 'draft' ? 'active' : '' ?>">Naskah</a>
        </div>

        <hr>

        <table class="table table-hover table-bordered" id="article">
            <thead>
                <tr>
                    <th>#</th>
                    <th>Judul</th>
                    <th>Only Registered</th>
                    <th>Status</th>
                    <th>Waktu Terbit</th>
                    <th>&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($artikel as $row): ?>
                <tr>
                    <td><?php echo $row->id ?></td>
                    <td><?php echo $row->title ?></td>
                    <td>
                        <label class="switch switch-danger">
                            <?php echo form_checkbox('status['.$row->id.']', $row->id, $row->type == 'private', array('class' => 'switch-input')); ?>
                            <span class="switch-label" data-on="Yes" data-off="No"></span>
                            <span class="switch-handle"></span>
                        </label>
                    </td>
                    <td><?php echo $row->getStatusLabel() ?></td>
                    <td><?php echo $row->date ?></td>
                    <td>
                        <?php echo button_edit('article/edit/' . $row->id) ?>
                        <?php echo button_delete('article/delete/' . $row->id) ?>
                    </td>
                </tr>
            <?php endforeach ?>
            </tbody>
        </table>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        $('#article').DataTable();
    } );
</script><commit_msg>Artikel di sorting dari yang terbaru muncul paling atas<commit_after><div class="panel panel-default">
    <div class="panel-body">
        <?php echo button_create('article/add', 'Artikel Baru') ?>

        <div class="btn-group">
            <a href="<?php echo site_url('article?status=all') ?>" class="btn btn-default btn-sm <?php echo $status == 'all' ? 'active' : '' ?>">Semua</a>
            <a href="<?php echo site_url('article?status=publish') ?>" class="btn btn-default btn-sm <?php echo $status == 'publish' ? 'active' : '' ?>">Terbit</a>
            <a href="<?php echo site_url('article?status=schedule') ?>" class="btn btn-default btn-sm <?php echo $status == 'schedule' ? 'active' : '' ?>">Terjadwal</a>
            <a href="<?php echo site_url('article?status=draft') ?>" class="btn btn-default btn-sm <?php echo $status == 'draft' ? 'active' : '' ?>">Naskah</a>
        </div>

        <hr>

        <table class="table table-hover table-bordered" id="article">
            <thead>
                <tr>
                    <th>#</th>
                    <th>Judul</th>
                    <th>Only Registered</th>
                    <th>Status</th>
                    <th>Waktu Terbit</th>
                    <th>&nbsp;</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach ($artikel as $row): ?>
                <tr>
                    <td><?php echo $row->id ?></td>
                    <td><?php echo $row->title ?></td>
                    <td>
                        <label class="switch switch-danger">
                            <?php echo form_checkbox('status['.$row->id.']', $row->id, $row->type == 'private', array('class' => 'switch-input')); ?>
                            <span class="switch-label" data-on="Yes" data-off="No"></span>
                            <span class="switch-handle"></span>
                        </label>
                    </td>
                    <td><?php echo $row->getStatusLabel() ?></td>
                    <td><?php echo $row->date ?></td>
                    <td>
                        <?php echo button_edit('article/edit/' . $row->id) ?>
                        <?php echo button_delete('article/delete/' . $row->id) ?>
                    </td>
                </tr>
            <?php endforeach ?>
            </tbody>
        </table>
    </div>
</div>

<script type="text/javascript">
    $(document).ready(function() {
        $('#article').DataTable({
            'order': [[4, 'desc']]
        });
    } );
</script>
{'fraction_non_alphanumeric': 0.18929712460063897, 'fraction_numerical': 0.00019968051118210862, 'mean_word_length': 1.5336368234699038, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 173, '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': '4257352', 'n_tokens_mistral': 1455, 'n_tokens_neox': 1413, 'n_words': 306}