<commit_before>{% extends 'Layout.twig' %}

{% block content %}

    {% if failing > 0 %}
        <p class="alert alert-danger"><b>Warning:</b> {{ failing }} of your projects are failing.</p>
    {% endif %}

    {% if projects|length > 0 %}

        <table class="table">
            <thead>
                <tr>
                    <th>Project</th>
                    <th class="hidden-phone">Last Run</th>
                    {% if app.user and app.user.isAdmin %}<th class="actions">Actions</th>{% endif %}
                </tr>
            </thead>
            <tbody>
                {% for project in projects %}

                    {% if project.status.code == '0' %}
                        {% set project_class = 'error' %}
                    {% elseif project.status.code == '1' %}
                        {% set project_class = 'success' %}
                    {% elseif project.status.code == '2' %}
                        {% set project_class = 'warning' %}
                    {% endif %}

                    <tr class="{{ project_class }}" >
                        <td>
                            {% if project.provider %}
                                {% if project.provider == 'folder' %}
                                    {% set icon = 'folder-close' %}
                                {% else %}
                                    {% set icon = project.provider %}
                                {% endif %}
                                <i class="icon-{{ icon }}"></i>
                            {% endif %}
                            <a href="/project/{{ project._id }}">

                                {% if project.name is defined and project.name %}
                                    {{ project.name }}
                                {% else %}
                                    {{ project.short_repo }}
                                {% endif %}
                            </a>
                        </td>
                        <td class="hidden-phone">
                            <span class="timeago" title="{{ project.last_run.sec|date('c') }}">
                                {{ project.last_run.sec|date('jS M Y') }}
                            </span>
                        </td>
                        {% if app.user and app.user.isAdmin %}
                            <td width="16%" class="actions">
                                <a class="btn btn-success btn-mini" href="/project/run/{{ project._id }}">
                                    <i class="icon-play"></i> <span class="hidden-phone">Test</span>
                                </a>
                                <a class="btn btn-danger btn-mini hidden-phone delete_project" data-id="{{ project._id }}" >
                                    <i class="icon-remove"></i> Delete<commit_msg>Inlined some twig formatting<commit_after>{% extends 'Layout.twig' %}

{% block content %}

    {% if failing > 0 %}
        <p class="alert alert-danger"><b>Warning:</b> {{ failing }} of your projects are failing.</p>
    {% endif %}

    {% if projects|length > 0 %}

        <table class="table">
            <thead>
                <tr>
                    <th>Project</th>
                    <th class="hidden-phone">Last Run</th>
                    {% if app.user and app.user.isAdmin %}<th class="actions">Actions</th>{% endif %}
                </tr>
            </thead>
            <tbody>
                {% for project in projects %}

                    {% if project.status.code == '0' %}
                        {% set project_class = 'error' %}
                    {% elseif project.status.code == '1' %}
                        {% set project_class = 'success' %}
                    {% elseif project.status.code == '2' %}
                        {% set project_class = 'warning' %}
                    {% endif %}

                    <tr class="{{ project_class }}" >
                        <td>
                            {% if project.provider %}
                            <i class="icon-{{ project.provider == 'folder' ? 'folder-close' : project.provider }}"></i>
                            {% endif %}
                            <a href="/project/{{ project._id }}">
                                {% if project.name is defined and project.name %}
                                    {{ project.name }}
                                {% else %}
                                    {{ project.short_repo }}
                                {% endif %}
                            </a>
                        </td>
                        <td class="hidden-phone">
                            <span class="timeago" title="{{ project.last_run.sec|date('c') }}">
                                {{ project.last_run.sec|date('jS M Y') }}
                            </span>
                        </td>
                        {% if app.user and app.user.isAdmin %}
                            <td width="16%" class="actions">
                                <a class="btn btn-success btn-mini" href="/project/run/{{ project._id }}">
                                    <i class="icon-play"></i> <span class="hidden-phone">Test</span>
                                </a>
                                <a class="btn btn-danger btn-mini hidden-phone delete_project" data-id="{{ project._id }}" >
                                    <i class="icon-remove"></i> Delete
{'fraction_non_alphanumeric': 0.13914006274220336, 'fraction_numerical': 0.002583502491234545, 'mean_word_length': 0.9118165784832452, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 81, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '116589', 'n_tokens_mistral': 1402, 'n_tokens_neox': 1206, 'n_words': 272}