<commit_before>{% block extends %}
{{ "{% extends '@App/settings/base.html.twig' %}" }}
{% endblock extends %}

{% block body %}
{{ "{% block title %}{{ 'settings." ~ entity_singularized ~ ".list.title'|trans }} · {{ parent() }}{% endblock title %}" }}

{{ "{% block headline %}{{ 'settings." ~ entity_singularized ~ ".list.title'|trans }}{% endblock %}" }}

{{ "{% set direction = pagination.getDirection() %}" }}

{{ "{% block content_content %}" }}
    <table class="table">
        <thead>
        <tr>
            {% for field, metadata in fields -%}
            {% if field not in {1: 'id', 2:'created', 3:'creator', 4:'updated', 5:'updater'} -%}
            <th class="text-center" id="status-name">
                {{ "{% if pagination.isSorted('" ~ entity_singularized ~ "." ~ field ~ "') %}" }}
                    {{ "{# TODO Changer le alpha en fonction du type #}" }}
                    <span class="fa fa-sort-alpha-{{ "{{ direction }}" }}"></span>
                {{ "{% endif %}" }}
                {{ "{{ knp_pagination_sortable(pagination, 'settings." ~ entity_singularized ~ ".field." ~ field ~ "' | trans, '" ~ entity_singularized ~ "." ~ field ~ "')}}" }}
            </th>
            {% endif -%}
            {% endfor -%}
            <th id="status-actions">Actions</th>
        </tr>
        </thead>
        <tbody>
        {{ "{% for " ~ entity_singularized ~ " in pagination %}" }}
            <tr>
                {% for field, metadata in fields -%}
                    {% if field not in {1: 'id', 2:'created', 3:'creator', 4:'updated', 5:'updater'} -%}
                    {% if metadata.type in ['datetime'] -%}
                        <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}{% endif %}' }}</td>
                    {% elseif metadata.type in ['date'] -%}
                        <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d\') }}{% endif %}' }}</td>
                    {% elseif metadata.type in ['time'] -%}
                        <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'H:i:s\') }}{% endif %}' }}</td>
                    {% elseif metadata.type in ['array'] -%}
                        <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|join(\', \') }}{% endif %}' }}</td>
                    {% elseif metadata.type in ['boolean'] -%}
                        <td>{{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}Yes{% else %}No{% endif %}' }}</td>
                    {% else -%}
                        <td>{{ '{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' }}' }}</td>
                    {% endif -%}
                    {% endif -%}
                    {% if loop.last -%}
                    <td>
                        <div class="btn-group-xs btn-group">
                            {% if 'show' in actions -%}
                                <a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_show', { '"~ identifier ~"': " ~ entity_singularized ~ "."~ identifier ~" }) }}" }}">
                                <span class="fa fa-eye"></span>
                                <span class="sr-only">{{ "{{ 'settings.show' | trans }}" }}</span>
                            </a>
                            {% endif -%}
                            {%- if 'edit' in actions -%}
                                <a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_edit', { '"~ identifier ~"': " ~ entity_singularized ~ "."~ identifier ~" }) }}" }}">
                                <span class="fa fa-edit"></span>
                                <span class="sr-only">{{ "{{ 'settings.edit' | trans }}" }}</span>
                            </a>
                            {% endif -%}
                        </div>
                    </td>
                {% endif -%}
            {% endfor -%}
        </tr>
        {{ "{% endfor %}" }}
        </tbody>
    </table>
    <div class="navigation text-right">
        {{ "{{ knp_pagination_render(pagination) }}" }}
    </div>
{{ "{% endblock content_content %}" }}

{{ "{% block content_action %}" }}
{% if 'new' in actions -%}
    <div class="text-center">
        <a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_new') }}" }}">
            <span class="fa fa-cube"></span>
            {{ "{{ 'settings.status.create' | trans }}" }}
        </a>
    </div>
{% endif %}
{{ "{% endblock content_action %}" }}
{% endblock body %}
<commit_msg>Generator improved<commit_after>{% block extends %}
{{ "{% extends '@App/settings/base.html.twig' %}" }}
{% endblock extends %}

{% block body %}
{{ "{% block title %}{{ 'settings." ~ entity_singularized ~ ".list.title'|trans }} · {{ parent() }}{% endblock title %}" }}

{{ "{% block headline %}{{ 'settings." ~ entity_singularized ~ ".list.title'|trans }}{% endblock %}" }}

{{ "{% set direction = pagination.getDirection() %}" }}

{{ "{% block content_content %}" }}
    <table class="table">
        <thead>
        <tr>
            {% for field, metadata in fields -%}
            {% if field not in {1: 'id', 2:'created', 3:'creator', 4:'updated', 5:'updater'} -%}
            <th class="text-center" id="{{ entity_singularized ~ '-' ~ field|replace({'_': ''})}}">
                {{ "{% if pagination.isSorted('" ~ entity_singularized ~ "." ~ field ~ "') %}" }}
                    {{ "{# TODO Changer le alpha en fonction du type (numeric) #}" }}
                    <span class="fa fa-sort-alpha-{{ "{{ direction }}" }}"></span>
                {{ "{% endif %}" }}
                {{ "{{ knp_pagination_sortable(pagination, 'settings." ~ entity_singularized ~ ".field." ~ field ~ "' | trans, '" ~ entity_singularized ~ "." ~ field ~ "')}}" }}
            </th>
            {% endif -%}
            {% endfor -%}
            <th id="{{ entity_singularized }}-actions">Actions</th>
        </tr>
        </thead>
        <tbody>
        {{ "{% for " ~ entity_singularized ~ " in pagination %}" }}
            <tr>
                {% for field, metadata in fields -%}
                {% if field not in {1: 'id', 2:'created', 3:'creator', 4:'updated', 5:'updater'} -%}
                <td headers="{{ entity_singularized ~ '-' ~ field|replace({'_': ''})}}">
                {%- if metadata.type in ['datetime'] -%}
                    {{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d H:i:s\') }}{% endif %}' }}
                {%- elseif metadata.type in ['date'] -%}
                    {{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'Y-m-d\') }}{% endif %}' }}
                {%- elseif metadata.type in ['time'] -%}
                    {{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|date(\'H:i:s\') }}{% endif %}' }}
                {%- elseif metadata.type in ['array'] -%}
                    {{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ '|join(\', \') }}{% endif %}' }}
                {%- elseif metadata.type in ['boolean'] -%}
                    {{ '{% if ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' %}Yes{% else %}No{% endif %}' }}
                {%- else -%}
                    {{ '{{ ' ~ entity_singularized ~ '.' ~ field|replace({'_': ''}) ~ ' }}' }}
                {%- endif -%}
                </td>
                {% endif -%}
                {% if loop.last -%}
                <td headers="criticity-actions">
                    <div class="btn-group-xs btn-group">
                        {% if 'show' in actions -%}
                            <a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_show', { '"~ identifier ~"': " ~ entity_singularized ~ "."~ identifier ~" }) }}" }}">
                            <span class="fa fa-eye"></span>
                            <span class="sr-only">{{ "{{ 'settings.show' | trans }}" }}</span>
                        </a>
                        {% endif -%}
                        {%- if 'edit' in actions -%}
                            <a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_edit', { '"~ identifier ~"': " ~ entity_singularized ~ "."~ identifier ~" }) }}" }}">
                            <span class="fa fa-edit"></span>
                            <span class="sr-only">{{ "{{ 'settings.edit' | trans }}" }}</span>
                        </a>
                        {% endif -%}
                    </div>
                </td>
            {% endif -%}
            {% endfor -%}
        </tr>
        {{ "{% endfor %}" }}
        </tbody>
    </table>
    <div class="navigation text-right">
        {{ "{{ knp_pagination_render(pagination) }}" }}
    </div>
{{ "{% endblock content_content %}" }}

{{ "{% block content_action %}" }}
{% if 'new' in actions -%}
    <div class="text-center">
        <a class="btn btn-default" href="{{ "{{ path('" ~ route_name_prefix ~ "_new') }}" }}">
            <span class="fa fa-cube"></span>
            {{ "{{ 'settings." ~ entity_singularized ~".create' | trans }}" }}
        </a>
    </div>
{% endif %}
{{ "{% endblock content_action %}" }}
{% endblock body %}

{'fraction_non_alphanumeric': 0.236289500509684, 'fraction_numerical': 0.0020387359836901123, 'mean_word_length': 1.7027548209366392, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '6444225', 'n_tokens_mistral': 3133, 'n_tokens_neox': 2903, 'n_words': 550}