<commit_before>{% if foia_requests %}
<h3>Latest Requests</h3>
<table class="foia">
    <tr>
        <th width="50%">Title</th>
        <th width="20%">Status</th>
        <th width="30%">Jurisdiction</th>
    </tr>
    {% for foia in foia_requests %}
    <tr>
        <td>
            <a href="{% if request.user == foia.user and foia.status == "started" %}{% url 'foia-update' jurisdiction=foia.jurisdiction.slug jidx=foia.jurisdiction.pk idx=foia.pk slug=foia.slug %}{% else %}{% url 'foia-detail' jurisdiction=foia.jurisdiction.slug jidx=foia.jurisdiction.pk idx=foia.pk slug=foia.slug %}{% endif %}">{{ foia.title }}</a>
        </td>
        <td>
        {% if foia.color_code == "stop" %}
            <span class="failure">
        {% else %}
            {% if foia.color_code == "go" %}
            <span class="success">
            {% else %}
            <span class="default">
            {% endif %}
        {% endif %}
        {{ foia.get_status_display }}</span>
        </td>
        <td><a href="{{ foia.jurisdiction.get_absolute_url }}">{{ foia.jurisdiction }}</a></td>
    </tr>
    {% endfor %}
</table>
    {% with foia=foia_requests|first %}
    <a href="
    {% if context %}
        {% if context == 'user' %}
            {% url 'foia-list-user' user_name=foia.user.username %}
        {% endif %}
        {% if context == 'active_user' %}
            {% url 'foia-mylist-all' %}
        {% endif %}
        {% if context == 'agency' %}
            {% url 'foia-list-agency' agency=foia.agency.slug %}
        {% endif %}
        {% if context == 'jurisdiction' %}
            {% url 'foia-list-jurisdiction' agency=foia.jurisdiction.slug %}
        {% endif %}
    {% else %}
        {% url 'foia-list' %}
    {% endif %}
    " class="button">View All Requests</a>
    {% endwith %}
{% else %}
<h3>No requests have been filed. <small><a href="{% url 'foia-create'%}">Create one now.</a></small></h3>
{% endif %}  <commit_msg>fixed a bug that broke the foia-table display<commit_after>{% if foia_requests %}
<h3>Latest Requests</h3>
<table class="foia">
    <tr>
        <th width="50%">Title</th>
        <th width="20%">Status</th>
        <th width="30%">Jurisdiction</th>
    </tr>
    {% for foia in foia_requests %}
    <tr>
        <td>
            <a href="{% if request.user == foia.user and foia.status == "started" %}{% url 'foia-update' jurisdiction=foia.jurisdiction.slug jidx=foia.jurisdiction.pk idx=foia.pk slug=foia.slug %}{% else %}{% url 'foia-detail' jurisdiction=foia.jurisdiction.slug jidx=foia.jurisdiction.pk idx=foia.pk slug=foia.slug %}{% endif %}">{{ foia.title }}</a>
        </td>
        <td>
        {% if foia.color_code == "stop" %}
            <span class="failure">
        {% else %}
            {% if foia.color_code == "go" %}
            <span class="success">
            {% else %}
            <span class="default">
            {% endif %}
        {% endif %}
        {{ foia.get_status_display }}</span>
        </td>
        <td><a href="{{ foia.jurisdiction.get_absolute_url }}">{{ foia.jurisdiction }}</a></td>
    </tr>
    {% endfor %}
</table>
    {% with foia=foia_requests|first %}
    <a href="
    {% if context %}
        {% if context == 'user' %}
            {% url 'foia-list-user' user_name=foia.user.username %}
        {% endif %}
        {% if context == 'active_user' %}
            {% url 'foia-mylist-all' %}
        {% endif %}
        {% if context == 'agency' %}
            {% url 'foia-list-agency' agency=foia.agency.slug idx=foia.agency.pk %}
        {% endif %}
        {% if context == 'jurisdiction' %}
            {% url 'foia-list-jurisdiction' jurisdiction=foia.jurisdiction.slug idx=foia.jurisdiction.pk %}
        {% endif %}
    {% else %}
        {% url 'foia-list' %}
    {% endif %}
    " class="button">View All Requests</a>
    {% endwith %}
{% else %}
<h3>No requests have been filed. <small><a href="{% url 'foia-create'%}">Create one now.</a></small></h3>
{% endif %}  
{'fraction_non_alphanumeric': 0.19673366834170855, 'fraction_numerical': 0.005025125628140704, 'mean_word_length': 2.207896857373086, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 75, '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': '7474865', 'n_tokens_mistral': 1522, 'n_tokens_neox': 1331, 'n_words': 265}