<commit_before>{% extends "base.html" %}

{% load i18n teams_tags %}

{% block main_content %}

<div class="grid_8 push_2">
    <h2>{% trans "Generate Billing Report" %}</h2>

    <form method="post">
        {% csrf_token %}
        <div class="group">
            <p>{{ form.teams.label_tag }}</p>
            <div class="checkbox-grid group">
                {{ form.teams }}
            </div>
            <p>{{ form.start_date.label_tag }}
                {{ form.start_date }}
                {{ form.start_date.help_text }}
            </p>
            <p>{{ form.end_date.label_tag }}
                {{ form.end_date }}
                {{ form.end_date.help_text }}
            </p>
            <p>{{ form.type.label_tag }}
                {{ form.type }}
                {{ form.type.help_text }}
            </p>
        </div>

        <button type="submit" class="green_button big" value="login">{% trans 'Submit' %}</button>
    </form>

</div>

<div class="grid_12">
    <div class="sso">
        <h2>Reports</h2>
    </div>

    <table>

        <thead>
            <th>Team names</th>
            <th>Start date</th>
            <th>End date</th>
            <th>Report type</th>
            <th>Processed on</th>
            <th>Link</th>
        </thead>

        <tbody>

        {% for report in reports %}
        <tr>
            <td>{{ report.teams.all|join:', ' }}</td>
            <td>{{ report.start_date }}</td>
            <td>{{ report.end_date }}</td>
            <td>{{ report.get_type_display }}</td>
            <td>{{ report.processed|date:"Y-m-d" }}</td>
            <td>
            {% if report.processed %}
                {% if report.csv_file %}
                    <a href="{{ report.csv_file.url }}">Download csv</a>
                {% else %}
                    Failed
                {% endif %}
            {% else %}
                Processing
            {% endif %}<commit_msg>Billing tables lost their styling, giving it back with the new-style class for tables.<commit_after>{% extends "base.html" %}

{% load i18n teams_tags %}

{% block main_content %}

<div class="grid_8 push_2">
    <h2>{% trans "Generate Billing Report" %}</h2>

    <form method="post">
        {% csrf_token %}
        <div class="group">
            <p>{{ form.teams.label_tag }}</p>
            <div class="checkbox-grid group">
                {{ form.teams }}
            </div>
            <p>{{ form.start_date.label_tag }}
                {{ form.start_date }}
                {{ form.start_date.help_text }}
            </p>
            <p>{{ form.end_date.label_tag }}
                {{ form.end_date }}
                {{ form.end_date.help_text }}
            </p>
            <p>{{ form.type.label_tag }}
                {{ form.type }}
                {{ form.type.help_text }}
            </p>
        </div>

        <button type="submit" class="green_button big" value="login">{% trans 'Submit' %}</button>
    </form>

</div>

<div class="grid_12">
    <div class="sso">
        <h2>Reports</h2>
    </div>

    <table class="new-style">

        <thead>
            <th>Team names</th>
            <th>Start date</th>
            <th>End date</th>
            <th>Report type</th>
            <th>Processed on</th>
            <th>Link</th>
        </thead>

        <tbody>

        {% for report in reports %}
        <tr>
            <td>{{ report.teams.all|join:', ' }}</td>
            <td>{{ report.start_date }}</td>
            <td>{{ report.end_date }}</td>
            <td>{{ report.get_type_display }}</td>
            <td>{{ report.processed|date:"Y-m-d" }}</td>
            <td>
            {% if report.processed %}
                {% if report.csv_file %}
                    <a href="{{ report.csv_file.url }}">Download csv</a>
                {% else %}
                    Failed
                {% endif %}
            {% else %}
                Processing
            {% endif %}
{'fraction_non_alphanumeric': 0.17160963244613434, 'fraction_numerical': 0.005069708491761723, 'mean_word_length': 1.3600478468899522, 'pattern_counts': {'":': 0, '<': 113, '<?xml version=': 0, '>': 113, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5199931', 'n_tokens_mistral': 1302, 'n_tokens_neox': 1180, 'n_words': 240}