<commit_before>{% extends "squad/base.html" %}
{% load humanize %}
{% load squad %}

{% block content %}
<h1>{{group.slug}}</h1>
<table class='table table-striped'>
    <tr>
        <th>Project</th>
        <th>Last update</th>
        <th>Tests</th>
        <th>Metrics</th>
    </tr>
    {% for project in projects %}
    {% with status=project.status %}
    <tr>
        <td>
            <a href="{% project_url project %}">
                {{project.slug}}
            </a>
        </td>
        <td>
            {{status.last_updated}}
            <em>{{status.last_updated|naturaltime}}</em>
        </td>
        <td>
            <div class="progress">
                <div class="progress-bar progress-bar-success" style="width: {{project.status.pass_percentage}}%">
                    <span class="sr-only">Pass: {{project.status.pass_percentage}}% </span>
                </div>
                <div class="progress-bar progress-bar-danger" style="width: {{project.status.fail_percentage}}%">
                    <span class="sr-only">{{project.status.fail_percentage}}</span>
                </div>
            </div>
        </td>
        <td><commit_msg>QA-1709: missing red bar in group main page<commit_after>{% extends "squad/base.html" %}
{% load humanize %}
{% load squad %}

{% block content %}
<h1>{{group.slug}}</h1>
<table class='table table-striped'>
    <tr>
        <th>Project</th>
        <th>Last update</th>
        <th>Tests</th>
        <th>Metrics</th>
    </tr>
    {% for project in projects %}
    {% with status=project.status %}
    <tr>
        <td>
            <a href="{% project_url project %}">
                {{project.slug}}
            </a>
        </td>
        <td>
            {{status.last_updated}}
            <em>{{status.last_updated|naturaltime}}</em>
        </td>
        <td>
            <div class="progress" title="Pass: {{project.status.pass_percentage|stringformat:"d"}}%">
                <div class="progress-bar progress-bar-success" style="width: {{project.status.pass_percentage}}%">
                    <span class="sr-only">Pass: {{project.status.pass_percentage}}% </span>
                </div>
                <div class="progress-bar progress-bar-danger" style="width: {{project.status.non_pass_percentage}}%">
                </div>
            </div>
        </td>
        <td>
{'fraction_non_alphanumeric': 0.17934551636209095, 'fraction_numerical': 0.003399915002124947, 'mean_word_length': 1.8812729498164014, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, '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': '120304', 'n_tokens_mistral': 760, 'n_tokens_neox': 710, 'n_words': 132}