<commit_before><section class="content-header">
    <h1>
        <i class="fa fa-bug"></i> Issues
        <small>View and Manage Issues</small>
    </h1>
</section>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <a href="/issues/add" class="btn btn-app">
                <i class="fa fa-plus"></i> Report New Issue
            </a>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-primary">
                <div class="box-header">
                    <h3 class="box-title">View / Manage Issues</h3>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-striped table-hover tableClickable">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>Project</th>
                                <th>Status</th>
                                <th>Type</th>
                                <th>Priority</th>
                                <th>Reporter</th>
                                <th>Assignee</th>
                                <th>Summary</th>
                                <th>Created</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach($issues as $issue): ?>
                            <tr>
                                <td><a href="/issues/view/<?php echo $issue->id; ?>"><?php echo $issue->getKey(); ?></a></td>
                                <td><?php echo $issue->project->name; ?></td>
                                <td><span class="label label-default"><?php echo $issue->status->name; ?></span></td>
                                <td><span class="label label-default"><?php echo $issue->type->name; ?></span></td>
                                <td><span class="label label-default"><?php echo $issue->priority->name; ?></span></td>
                                <td><?php echo $issue->reporter->name; ?></td>
                                <td><?php echo $issue->department->name; ?></td>
                                <td><?php echo Text::limit_chars($issue->summary, 20, '...'); ?></td>
                                <td><?php echo $issue->created_at; ?></td>
                                    <?php /*<div class="btn-group">
                                        <a href="/issues/edit/<?php echo $issue->id; ?>" class="btn btn-default">Edit</a>
                                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                            <span class="caret"></span>
                                            <span class="sr-only">Toggle Dropdown</span>
                                        </button>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="/issues/edit/<?php echo $issue->id; ?>">Edit</a></li>
                                        </ul>
                                    </div> */ ?>
                            </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
$(function() {
    $('table').dataTable();
    $('table').on('click', 'tbody > tr', function() {
        window.location = $(this).find('td:first-child > a').attr('href');
    });<commit_msg>Fixed js bug in issues page<commit_after><section class="content-header">
    <h1>
        <i class="fa fa-bug"></i> Issues
        <small>View and Manage Issues</small>
    </h1>
</section>

<section class="content">
    <div class="row">
        <div class="col-xs-12">
            <a href="/issues/add" class="btn btn-app">
                <i class="fa fa-plus"></i> Report New Issue
            </a>
        </div>
    </div>
    <div class="row">
        <div class="col-xs-12">
            <div class="box box-primary">
                <div class="box-header">
                    <h3 class="box-title">View / Manage Issues</h3>
                </div>
                <div class="box-body table-responsive">
                    <table class="table table-striped table-hover tableClickable">
                        <thead>
                            <tr>
                                <th>ID</th>
                                <th>Project</th>
                                <th>Status</th>
                                <th>Type</th>
                                <th>Priority</th>
                                <th>Reporter</th>
                                <th>Assignee</th>
                                <th>Summary</th>
                                <th>Created</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php foreach($issues as $issue): ?>
                            <tr class="issue">
                                <td><a href="/issues/view/<?php echo $issue->id; ?>"><?php echo $issue->getKey(); ?></a></td>
                                <td><?php echo $issue->project->name; ?></td>
                                <td><span class="label label-default"><?php echo $issue->status->name; ?></span></td>
                                <td><span class="label label-default"><?php echo $issue->type->name; ?></span></td>
                                <td><span class="label label-default"><?php echo $issue->priority->name; ?></span></td>
                                <td><?php echo $issue->reporter->name; ?></td>
                                <td><?php echo $issue->department->name; ?></td>
                                <td><?php echo Text::limit_chars($issue->summary, 20, '...'); ?></td>
                                <td><?php echo $issue->created_at; ?></td>
                                    <?php /*<div class="btn-group">
                                        <a href="/issues/edit/<?php echo $issue->id; ?>" class="btn btn-default">Edit</a>
                                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
                                            <span class="caret"></span>
                                            <span class="sr-only">Toggle Dropdown</span>
                                        </button>
                                        <ul class="dropdown-menu" role="menu">
                                            <li><a href="/issues/edit/<?php echo $issue->id; ?>">Edit</a></li>
                                        </ul>
                                    </div> */ ?>
                            </tr>
                            <?php endforeach; ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</section>

<script>
$(function() {
    $('table').dataTable();
    $('table').on('click', 'tbody > tr.issue', function() {
        window.location = $(this).find('td:first-child > a').attr('href');
    });
{'fraction_non_alphanumeric': 0.1604836493542182, 'fraction_numerical': 0.0027480076944215444, 'mean_word_length': 0.9877116329874386, 'pattern_counts': {'":': 0, '<': 235, '<?xml version=': 0, '>': 275, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 30, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2344275', 'n_tokens_mistral': 1811, 'n_tokens_neox': 1758, 'n_words': 350}