<commit_before>{# table_rows variable MUST be defined from the outside #}

{% if not table_selectable is defined %}
  {# This variable MUST be explicitly set to false to hide checkboxes         #}
  {# If you set this to false and you have a second listing that display them #}
  {# set explicitly to true in the second listing.                            #}
  {% set table_selectable = true %}
{% endif %}

<table class="zebra-striped align-middle" data-type="invoices">
  <thead>
    <tr>
      {% if table_selectable %}
      <th class="check">
        <input type="checkbox" name="all" />
      </th>
      {% endif %}
      <th class="number">{% trans %}Number{% endtrans %}</th>
      <th>{% trans %}Customer{% endtrans %}</th>
      <th class="date">{% trans %}Date{% endtrans %}</th>
      <th class="date">{% trans %}Due Date{% endtrans %}</th>
      <th class="status">{% trans %}Status{% endtrans %}</th>
      <th class="currency">{% trans %}Due{% endtrans %}</th>
      <th class="currency">{% trans %}Total{% endtrans %}</th>
      <th class="payments"></th>
    </tr>
  </thead>
  <tbody>
    {% for entity in table_rows %}
      <tr data-link="{{ path('invoice_show', { 'id': entity.id }) }}">
        {% if table_selectable %}
        <td class="check">
          <input type="checkbox" name="id[]" value="{{ entity.id }}" />
        </td>
        {% endif %}
        <td class="number">{{ entity.number }}</td>
        <td>{{ entity.getCustomerName }}</td><commit_msg>Invoices listing with no results.<commit_after>{# table_rows variable MUST be defined from the outside #}

{% set table_columns = 8 %}

{% if not table_selectable is defined %}
  {# This variable MUST be explicitly set to false to hide checkboxes         #}
  {# If you set this to false and you have a second listing that display them #}
  {# set explicitly to true in the second listing.                            #}
  {% set table_selectable = true %}
  {% set table_columns = table_columns + 1 %}
{% endif %}

<table class="zebra-striped align-middle" data-type="invoices">
  <thead>
    <tr>
      {% if table_selectable %}
      <th class="check">
        <input type="checkbox" name="all" />
      </th>
      {% endif %}
      <th class="number">{% trans %}Number{% endtrans %}</th>
      <th>{% trans %}Customer{% endtrans %}</th>
      <th class="date">{% trans %}Date{% endtrans %}</th>
      <th class="date">{% trans %}Due Date{% endtrans %}</th>
      <th class="status">{% trans %}Status{% endtrans %}</th>
      <th class="currency">{% trans %}Due{% endtrans %}</th>
      <th class="currency">{% trans %}Total{% endtrans %}</th>
      <th class="payments"></th>
    </tr>
  </thead>
  <tbody>
    {% if table_rows|length == 0 %}
      <tr>
        <td colspan="{{ table_columns }}">{% trans %}No invoices found.{% endtrans %}</td>
      </tr>
    {% endif %}
    {% for entity in table_rows %}
      <tr data-link="{{ path('invoice_show', { 'id': entity.id }) }}">
        {% if table_selectable %}
        <td class="check">
          <input type="checkbox" name="id[]" value="{{ entity.id }}" />
        </td>
        {% endif %}
        <td class="number">{{ entity.number }}</td>
        <td>{{ entity.getCustomerName }}</td>
{'fraction_non_alphanumeric': 0.18898855552118776, 'fraction_numerical': 0.0009279307145066501, 'mean_word_length': 2.6791808873720138, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '6745467', 'n_tokens_mistral': 1090, 'n_tokens_neox': 978, 'n_words': 307}