<commit_before>{% extends "base-web.html" %}
{% block content %}
    <div class="tasks">
        <div class="page-header">
            <h3>Analysis Tasks <small>performed, processing and pending analyses</small></h3>
        </div>
        {% include "pagination-menu.html" %}
        <table class="table table-striped table-bordered">
            <thead>
                <tr>
                    <th>ID</th>
                    <th>Category</th>
                    <th style="width: 40%;">Target</th>
                    <th>Added</th>
                    <th>Status</th>
                </tr>
            </thead>
            <tbody>
            {% for row in rows %}
                <tr>
                    <td>{{row.id}}</td>
                    <td>{{row.category|upper}}</td>
                    <td>
                        {% if row.processed %}
                            <a href="/view/{{row.id}}">
                        {% endif %}
                        <span class="mono">
                            {% if row.category == "file" %}
                                {{row.md5}}
                            {% elif row.category == "url" %}
                                {{row.target}}
                            {% endif %}
                        </span>
                        {% if row.processed %}
                            </a>
                        {% endif %}
                    </td>
                    <td>{{row.added_on}}</td>
                    <td>{{row.status}}</td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        {% include "pagination-menu.html" %}
    </div>
{% endblock %}<commit_msg>Added check for empty db<commit_after>{% extends "base-web.html" %}
{% block content %}
    <div class="tasks">
        <div class="page-header">
            <h3>Analysis Tasks <small>performed, processing and pending analyses</small></h3>
        </div>
        {% if rows %}
            {% include "pagination-menu.html" %}
            <table class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>Category</th>
                        <th style="width: 40%;">Target</th>
                        <th>Added</th>
                        <th>Status</th>
                    </tr>
                </thead>
                <tbody>
                {% for row in rows %}
                    <tr>
                        <td>{{row.id}}</td>
                        <td>{{row.category|upper}}</td>
                        <td>
                            {% if row.processed %}
                                <a href="/view/{{row.id}}">
                            {% endif %}
                            <span class="mono">
                                {% if row.category == "file" %}
                                    {{row.md5}}
                                {% elif row.category == "url" %}
                                    {{row.target}}
                                {% endif %}
                            </span>
                            {% if row.processed %}
                                </a>
                            {% endif %}
                        </td>
                        <td>{{row.added_on}}</td>
                        <td>{{row.status}}</td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
            {% include "pagination-menu.html" %}
        {% else %}
            <div class="alert alert-info">
                <b>Analysis not found!</b> Your database is empty. Run an analysis.
            </div>
        {% endif %}
    </div>
{% endblock %}
{'fraction_non_alphanumeric': 0.14274193548387096, 'fraction_numerical': 0.002688172043010753, 'mean_word_length': 0.783796740172579, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2981011', 'n_tokens_mistral': 1015, 'n_tokens_neox': 865, 'n_words': 172}