<commit_before>{% macro list(tax_rates) %}

{% if tax_rates|length > 0 %}
<table class="table">
    <thead>
        <tr>
            <th>{{ sylius_resource_sort('id', '#id') }}</th>
            <th>{{ sylius_resource_sort('category') }}</th>
            <th>{{ sylius_resource_sort('name') }}</th>
            <th>{{ sylius_resource_sort('amount') }}</th>
            <th>{{ sylius_resource_sort('includedInPrice', 'included in price?') }}</th>
            <th>{{ sylius_resource_sort('calculator') }}</th>
            <th>{{ sylius_resource_sort('updatedAt', 'last updated') }}</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    {% for rate in rates %}
        <tr>
            <td>{{ tax_rate.id }}</td>
            <td>{{ tax_rate.category }}</td>
            <td>{{ tax_rate.name }}</td>
            <td>{{ tax_rate.amount }}</td>
            <td>
                <span class="label label-{{ tax_rate.includedInPrice ? 'success' : 'important'}}">
                    {{ tax_rate.includedInPrice ? 'yes' : 'no'}}
                </span>
            </td>
            <td><span class="label label info">{{ tax_rate.calculator }}</span></td>
            <td>{{ tax_rate.updatedAt|date }}</td>
            <td>
                <div class="btn-group pull-right">
                    <a href="{{ path('sylius_tax_rate_show', {'id': tax_rate.id}) }}" class="btn">
                       <i class="icon-book"></i> details
                    </a>
                    <a href="{{ path('sylius_tax_rate_update', {'id': tax_rate.id}) }}" class="btn">
                       <i class="icon-pencil"></i> edit
                    </a>
                    <a href="{{ path('sylius_tax_rate_delete', {'id': tax_rate.id}) }}" class="btn btn-danger">
                        <i class="icon-trash"></i> delete
                    </a>
                </div>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
{% else %}
<div class="alert alert-info">
    <h4 class="alert-heading">Information</h4>
    You have no tax rates configured
</div>
{% endif %}

{% endmacro %}
<commit_msg>tax_rates variable is pass to macros so we have to use this instead of rates<commit_after>{% macro list(tax_rates) %}

{% if tax_rates|length > 0 %}
<table class="table">
    <thead>
        <tr>
            <th>{{ sylius_resource_sort('id', '#id') }}</th>
            <th>{{ sylius_resource_sort('category') }}</th>
            <th>{{ sylius_resource_sort('name') }}</th>
            <th>{{ sylius_resource_sort('amount') }}</th>
            <th>{{ sylius_resource_sort('includedInPrice', 'included in price?') }}</th>
            <th>{{ sylius_resource_sort('calculator') }}</th>
            <th>{{ sylius_resource_sort('updatedAt', 'last updated') }}</th>
            <th></th>
        </tr>
    </thead>
    <tbody>
    {% for tax_rate in tax_rates %}
        <tr>
            <td>{{ tax_rate.id }}</td>
            <td>{{ tax_rate.category }}</td>
            <td>{{ tax_rate.name }}</td>
            <td>{{ tax_rate.amount }}</td>
            <td>
                <span class="label label-{{ tax_rate.includedInPrice ? 'success' : 'important'}}">
                    {{ tax_rate.includedInPrice ? 'yes' : 'no'}}
                </span>
            </td>
            <td><span class="label label info">{{ tax_rate.calculator }}</span></td>
            <td>{{ tax_rate.updatedAt|date }}</td>
            <td>
                <div class="btn-group pull-right">
                    <a href="{{ path('sylius_tax_rate_show', {'id': tax_rate.id}) }}" class="btn">
                       <i class="icon-book"></i> details
                    </a>
                    <a href="{{ path('sylius_tax_rate_update', {'id': tax_rate.id}) }}" class="btn">
                       <i class="icon-pencil"></i> edit
                    </a>
                    <a href="{{ path('sylius_tax_rate_delete', {'id': tax_rate.id}) }}" class="btn btn-danger">
                        <i class="icon-trash"></i> delete
                    </a>
                </div>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>
{% else %}
<div class="alert alert-info">
    <h4 class="alert-heading">Information</h4>
    You have no tax rates configured
</div>
{% endif %}

{% endmacro %}

{'fraction_non_alphanumeric': 0.19332243754377773, 'fraction_numerical': 0.0014008872285780996, 'mean_word_length': 1.7728155339805824, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 133, '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': '6274212', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1318, 'n_words': 284}