<commit_before>{% extends 'layout/base.html' %}

{% block title %}{% trans %}Services{% endtrans %}{% endblock %}

{% block content %}
    <p class="fixed-width">
        {%- trans -%}
            You can request additional services for your event. Click one of the service buttons
            below to send a request to view/modify an existing request.
        {%- endtrans -%}
    </p>

    <div class="i-requests-list i-badges-list-left">
        {%- for name, definition in definitions.items()|sort(attribute='1.title') %}
            {% set request = requests[name] %}
            <a class="i-badge i-request-{{ request.state.name if request else 'none' }}"
               href="{{ url_for('requests.event_requests_details', event, type=name) }}">
                <div class="i-badge-legend">
                    <span class="i-badge-legend-right">
                        {%- if not request -%}
                            {# nothing to show #}
                        {%- elif request.state.name == 'pending' -%}
                            {% trans %}Pending{% endtrans %}
                        {%- elif request.state.name == 'accepted' -%}
                            {% trans %}Accepted{% endtrans %}
                        {%- elif request.state.name == 'rejected' -%}
                            {% trans %}Rejected{% endtrans %}
                        {%- elif request.state.name == 'withdrawn' -%}
                            {% trans %}Withdrawn{% endtrans %}
                        {%- endif -%}
                    </span>
                </div>
                <div class="i-badge-content"><commit_msg>Avoid shadowing `request`<commit_after>{% extends 'layout/base.html' %}

{% block title %}{% trans %}Services{% endtrans %}{% endblock %}

{% block content %}
    <p class="fixed-width">
        {%- trans -%}
            You can request additional services for your event. Click one of the service buttons
            below to send a request to view/modify an existing request.
        {%- endtrans -%}
    </p>

    <div class="i-requests-list i-badges-list-left">
        {%- for name, definition in definitions.items()|sort(attribute='1.title') %}
            {% set req = requests[name] %}
            <a class="i-badge i-request-{{ req.state.name if req else 'none' }}"
               href="{{ url_for('requests.event_requests_details', event, type=name) }}">
                <div class="i-badge-legend">
                    <span class="i-badge-legend-right">
                        {%- if not req -%}
                            {# nothing to show #}
                        {%- elif req.state.name == 'pending' -%}
                            {% trans %}Pending{% endtrans %}
                        {%- elif req.state.name == 'accepted' -%}
                            {% trans %}Accepted{% endtrans %}
                        {%- elif req.state.name == 'rejected' -%}
                            {% trans %}Rejected{% endtrans %}
                        {%- elif req.state.name == 'withdrawn' -%}
                            {% trans %}Withdrawn{% endtrans %}
                        {%- endif -%}
                    </span>
                </div>
                <div class="i-badge-content">
{'fraction_non_alphanumeric': 0.15108359133126936, 'fraction_numerical': 0.0006191950464396285, 'mean_word_length': 1.3951074870274278, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '421300', 'n_tokens_mistral': 936, 'n_tokens_neox': 831, 'n_words': 205}