<commit_before>{% extends "base.html" %}
{% block title %}Checkouts by Airstrip - Detail{% endblock title %}

{% block content_title %}
Checkouts for {{ airstrip.ident }} ({{ airstrip.name }})
{% endblock content_title %}

{% block content %}
    <p>There are {{ checkouts_by_pilot|length }} pilot{{ checkouts_by_pilot|length|pluralize }} checked out here.</p>
    <table border="1">
    <tr>
	<th rowspan="2">Pilot</th>
	<th colspan="{{ aircrafttypes|length }}">Aircraft Type</th>
    </tr>
    <tr>
	{% for aircraft in aircrafttypes %}
	<th>{{ aircraft }}</th>
	{% endfor %}
    </tr>
    {% for row in checkouts_by_pilot %}
    <tr>
	<td><a href="{% url 'pilot_detail' row.pilot_username %}">{{ row.pilot_name }}</a></td>
	{% for status in row.aircraft %}
	<td class="{{ status }}">&nbsp;</td>
	{% endfor %}
    </tr>
    {% endfor %}
    </table>
{% endblock content %}
<commit_msg>Correcting pluralization<commit_after>{% extends "base.html" %}
{% block title %}Checkouts by Airstrip - Detail{% endblock title %}

{% block content_title %}
Checkouts for {{ airstrip.ident }} ({{ airstrip.name }})
{% endblock content_title %}

{% block content %}
    <p>There {{ checkouts_by_pilot|length|pluralize:"is,are" }} {{ checkouts_by_pilot|length }} pilot{{ checkouts_by_pilot|length|pluralize }} checked out here.</p>
    <table border="1">
    <tr>
	<th rowspan="2">Pilot</th>
	<th colspan="{{ aircrafttypes|length }}">Aircraft Type</th>
    </tr>
    <tr>
	{% for aircraft in aircrafttypes %}
	<th>{{ aircraft }}</th>
	{% endfor %}
    </tr>
    {% for row in checkouts_by_pilot %}
    <tr>
	<td><a href="{% url 'pilot_detail' row.pilot_username %}">{{ row.pilot_name }}</a></td>
	{% for status in row.aircraft %}
	<td class="{{ status }}">&nbsp;</td>
	{% endfor %}
    </tr>
    {% endfor %}
    </table>
{% endblock content %}

{'fraction_non_alphanumeric': 0.20327868852459016, 'fraction_numerical': 0.002185792349726776, 'mean_word_length': 3.9755434782608696, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '2268474', 'n_tokens_mistral': 719, 'n_tokens_neox': 640, 'n_words': 153}