<commit_before><div class="callout">
    <h5 class="subheader float-right">{{ app['cart.quantity'] }} {{ 'item' | trans }}</h5>
    <h5>{{ 'cart.your-order' | trans }}</h5>
    
    <ul class="no-bullet">
        <li>{{ 'cart.price.subtotal' | trans }} <span class="float-right">{{ cart.totals.subtotal | money }}</span></li>
        
        <li><hr/></li>
        
        {% include '@cart/cart/parts/cart-discounts.twig' %}

        {% if cart.shipment is defined and cart.shipment.method is defined %}

            <li><strong>{{ 'cart.shipping' | trans }}</strong></li>

            <li>
                {{ cart.shipment.method.name }}
                <span class="float-right">{{ cart.shipment.method.defaultPrice | money }}</span>
            </li>

            <li><hr/></li>
        {% endif %}
        
        <li>{{ 'cart.price.grand.total' | trans }} <strong class="float-right">{{ cart.totals.grandTotal | money }}</strong></li>
        
        <li>{{ 'cart.total.tax_total' | trans }} <span class="float-right">{{ cart.totals.taxTotal.amount | money }}</span></li>
    </ul>
    
    {% if cart.items | length %}
        <p class="__padding-top">
            <a class="button expanded success __no-margin-bottom" href="{{ url('checkout-index') }}">
                <i class="fa fa-check"></i>{{ 'cart.checkout'|trans }}
            </a>
        </p>
    {% endif %}
</div><commit_msg>core-1477: fix exception in cart overview page<commit_after><div class="callout">
    <h5 class="subheader float-right">{{ app['cart.quantity'] }} {{ 'item' | trans }}</h5>
    <h5>{{ 'cart.your-order' | trans }}</h5>

    <ul class="no-bullet">
        <li>{{ 'cart.price.subtotal' | trans }} <span class="float-right">{{ cart.totals.subtotal | money }}</span></li>

        <li><hr/></li>

        {% include '@cart/cart/parts/cart-discounts.twig' %}

        {% if cart.shipment is not null and cart.shipment.method is not null %}

            <li><strong>{{ 'cart.shipping' | trans }}</strong></li>

            <li>
                {{ cart.shipment.method.name }}
                <span class="float-right">{{ cart.shipment.method.defaultPrice | money }}</span>
            </li>

            <li><hr/></li>
        {% endif %}

        <li>{{ 'cart.price.grand.total' | trans }} <strong class="float-right">{{ cart.totals.grandTotal | money }}</strong></li>

        <li>{{ 'cart.total.tax_total' | trans }} <span class="float-right">{{ cart.totals.taxTotal.amount | money }}</span></li>
    </ul>

    {% if cart.items | length %}
        <p class="__padding-top">
            <a class="button expanded success __no-margin-bottom" href="{{ url('checkout-index') }}">
                <i class="fa fa-check"></i>{{ 'cart.checkout'|trans }}
            </a>
        </p>
    {% endif %}
</div>
{'fraction_non_alphanumeric': 0.2116553450125134, 'fraction_numerical': 0.004290311047550947, 'mean_word_length': 2.245939675174014, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '6344240', 'n_tokens_mistral': 942, 'n_tokens_neox': 881, 'n_words': 177}