<commit_before>{% extends '@Admin/adminLayout.html.twig' %}

{% block page_content -%}
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-3 col-md-2 sidebar">
                {% include "@Admin/Admin/admin-menu.html.twig" %}
            </div>
            <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                <h3>Orders list</h3>
                <table class="records_list table table-bordered table-stripped">
                    <thead>
                    <tr>
                        <th>{{ knp_pagination_sortable(entities, 'Client name', 'a.name') }}</th>
                        <th>{{ knp_pagination_sortable(entities, 'Order date', 'a.date') }}</th>
                        <th>Actions</th>
                    </tr>
                    </thead>
                    <tbody>
                    {% for entity in entities %}
                        <tr>
                            <td>
                                <a href="{{ path('admin_order_show', { 'id': entity.id }) }}">{{ entity.name }}</a>
                            </td>
                            <td>
                                {{ entity.date|date('Y-m-d H:i') }}
                            </td>
                            <td>
                                <a href="{{ path('admin_order_show', { 'id': entity.id }) }}">show</a>
                            </td>
                        </tr>
                    {% endfor %}
                    </tbody>
                </table>
                <div class="row">
                    <div class="col-md-12">
                        {{ knp_pagination_render(entities) }}
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock page_content %}<commit_msg>fix empti table problem<commit_after>{% extends '@Admin/adminLayout.html.twig' %}

{% block page_content -%}
    <div class="container-fluid">
        <div class="row">
            <div class="col-sm-3 col-md-2 sidebar">
                {% include "@Admin/Admin/admin-menu.html.twig" %}
            </div>
            <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
                <h3>Orders list</h3>
                {% if entities|length %}
                    <table class="records_list table table-bordered table-stripped">
                        <thead>
                        <tr>
                            <th>{{ knp_pagination_sortable(entities, 'Client name', 'a.name') }}</th>
                            <th>{{ knp_pagination_sortable(entities, 'Order date', 'a.date') }}</th>
                            <th>Actions</th>
                        </tr>
                        </thead>
                        <tbody>
                            {% for entity in entities %}
                                <tr>
                                    <td>
                                        <a href="{{ path('admin_order_show', { 'id': entity.id }) }}">{{ entity.name }}</a>
                                    </td>
                                    <td>
                                        {{ entity.date|date('Y-m-d H:i') }}
                                    </td>
                                    <td>
                                        <a href="{{ path('admin_order_show', { 'id': entity.id }) }}">show</a>
                                    </td>
                                </tr>
                            {% endfor %}
                        </tbody>
                    </table>
                {% else %}
                    <strong>No orders yet</strong>
                {% endif %}
                <div class="row">
                    <div class="col-md-12">
                        {{ knp_pagination_render(entities) }}
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock page_content %}
{'fraction_non_alphanumeric': 0.14093106079877893, 'fraction_numerical': 0.005596540320529127, 'mean_word_length': 0.8582230623818525, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '415612', 'n_tokens_mistral': 1064, 'n_tokens_neox': 974, 'n_words': 188}