<commit_before>{% load i18n %}
{% load staticfiles %}
{% load gross from prices_i18n %}
{% load get_thumbnail from product_images %}

<div class="container">
  {% if quantity > 0 %}
    <div id="cart-dropdown-list" class="cart-dropdown__list{% if lines|length <= 2 %} overflow{% endif %}">
    {% for line in lines %}
      <div class="row item">
        <div class="col-md-10">
          <a href="{{ line.variant_url }}">
            <img class="cart-dropdown__image" src="{% get_thumbnail line.image size="60x60" %}" alt="">
            <h3>
              {{ line.product }}
              <span>x{{ line.quantity }}</span>
              <p>{{ line.variant }}</p>
            </h3>
          </a>
        </div>
        <div class="col-md-2">
          <div class="float-right">
            <h3>{{ line.line_total }}</h3>
          </div>
        </div>
      </div>
    {% endfor %}
    </div>
    <div class="row cart-dropdown__total" data-quantity="{{ quantity }}">
      <div class="col-md-8">
        <h3>{% trans "Subtotal" %} <br> <span>{% trans "(Delivery caclulated on checkout)" %}</span></h3>
      </div>
      <div class="col-md-4">
        <h3 class="float-md-right price {% if lines|length <= 2 %}single{% endif %}" data-quantity="{{ quantity }}">
          <p>{{ total }}</p>
        </h3>
      </div>
    </div>
    <div class="row cart-dropdown__actions">
      <div class="col-md-5 offset-md-1">
        <a href="{% url "cart:index" %}" class="btn secondary float-md-right">{% trans "Go to cart" %}</a>
      </div>
      <div class="col-md-5">
        <a href="{% url "checkout:login" %}" class="btn primary">{% trans "Checkout" %}</a>
      </div>
    </div>
  {% else %}
    <div class="text-md-center cart-dropdown__empty">
      <h3>{% trans "There are no products in your shopping cart." %}</h3>
      <img src="{% static 'images/pirate_cart.png' %}" srcset="{% static 'images/pirate_cart.png' %} 1x, {% static 'images/pirate_cart2x.png' %} 2x"><commit_msg>Fix typo<commit_after>{% load i18n %}
{% load staticfiles %}
{% load gross from prices_i18n %}
{% load get_thumbnail from product_images %}

<div class="container">
  {% if quantity > 0 %}
    <div id="cart-dropdown-list" class="cart-dropdown__list{% if lines|length <= 2 %} overflow{% endif %}">
    {% for line in lines %}
      <div class="row item">
        <div class="col-md-10">
          <a href="{{ line.variant_url }}">
            <img class="cart-dropdown__image" src="{% get_thumbnail line.image size="60x60" %}" alt="">
            <h3>
              {{ line.product }}
              <span>x{{ line.quantity }}</span>
              <p>{{ line.variant }}</p>
            </h3>
          </a>
        </div>
        <div class="col-md-2">
          <div class="float-right">
            <h3>{{ line.line_total }}</h3>
          </div>
        </div>
      </div>
    {% endfor %}
    </div>
    <div class="row cart-dropdown__total" data-quantity="{{ quantity }}">
      <div class="col-md-8">
        <h3>{% trans "Subtotal" %} <br> <span>{% trans "(Delivery calculated on checkout)" %}</span></h3>
      </div>
      <div class="col-md-4">
        <h3 class="float-md-right price {% if lines|length <= 2 %}single{% endif %}" data-quantity="{{ quantity }}">
          <p>{{ total }}</p>
        </h3>
      </div>
    </div>
    <div class="row cart-dropdown__actions">
      <div class="col-md-5 offset-md-1">
        <a href="{% url "cart:index" %}" class="btn secondary float-md-right">{% trans "Go to cart" %}</a>
      </div>
      <div class="col-md-5">
        <a href="{% url "checkout:login" %}" class="btn primary">{% trans "Checkout" %}</a>
      </div>
    </div>
  {% else %}
    <div class="text-md-center cart-dropdown__empty">
      <h3>{% trans "There are no products in your shopping cart." %}</h3>
      <img src="{% static 'images/pirate_cart.png' %}" srcset="{% static 'images/pirate_cart.png' %} 1x, {% static 'images/pirate_cart2x.png' %} 2x">
{'fraction_non_alphanumeric': 0.20741862225586677, 'fraction_numerical': 0.016149381781478678, 'mean_word_length': 2.365025466893039, 'pattern_counts': {'":': 0, '<': 109, '<?xml version=': 0, '>': 107, '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': '2462182', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1309, 'n_words': 326}