<commit_before><!-- /snippets/collection-product.liquid -->

{% unless column_width %}
  {% assign column_width = 'column l4 m6 s12' %}
{% endunless %}

{% assign on_sale = false %}
{% if product.compare_at_price > product.price %}
  {% assign on_sale = true %}
{% endif %}

{% assign sold_out = true %}
{% if product.available %}
  {% assign sold_out = false %}
{% endif %}

<div class="{{ column_width }}">

  <a href="{{ product.url | within: collection }}" class="grid-image">
    <img src="{{ product.featured_image.src | img_url: 'large' }}" alt="{{ product.featured_image.alt | escape }}">
  </a>

  <p>
    <a href="{{ product.url | within: collection }}">{{ product.title }}</a><br>
    {% if on_sale %}
      {% if product.price_varies %}
        {% assign sale_price = product.price | money %}
        {{ 'product.on_sale_from_html' | t: price: sale_price }}
      {% else %}
        <strong>{{ 'product.on_sale_html' | t: price: sale_price }}</strong>
        {{ product.price | money }}
      {% endif %}
    {% else %}
      {% if product.price_varies %}
        {% assign price = product.price | money %}
        {{ 'product.priced_from_html' | t: price: price }}
      {% else %}
        {{ product.price | money }}
      {% endif %}
    {% endif %}
    {% if sold_out %}
      <br><strong>{{ 'products.product.sold_out' | t }}</strong><commit_msg>Gone girl gone<commit_after><!-- /snippets/collection-product.liquid -->

{% unless column_width %}
  {% assign column_width = 'column l4 m6 s12' %}
{% endunless %}

{% assign on_sale = false %}
{% if product.compare_at_price > product.price %}
  {% assign on_sale = true %}
{% endif %}

{% assign sold_out = true %}
{% if product.available %}
  {% assign sold_out = false %}
{% endif %}

<div class="{{ column_width }}">

  <a href="{{ product.url | within: collection }}">
    <img src="{{ product.featured_image.src | img_url: 'large' }}" alt="{{ product.featured_image.alt | escape }}">
  </a>

  <p>
    <a href="{{ product.url | within: collection }}">{{ product.title }}</a><br>
    {% if on_sale %}
      {% if product.price_varies %}
        {% assign sale_price = product.price | money %}
        {{ 'product.on_sale_from_html' | t: price: sale_price }}
      {% else %}
        <strong>{{ 'product.on_sale_html' | t: price: sale_price }}</strong>
        {{ product.price | money }}
      {% endif %}
    {% else %}
      {% if product.price_varies %}
        {% assign price = product.price | money %}
        {{ 'product.priced_from_html' | t: price: price }}
      {% else %}
        {{ product.price | money }}
      {% endif %}
    {% endif %}
    {% if sold_out %}
      <br><strong>{{ 'products.product.sold_out' | t }}</strong>
{'fraction_non_alphanumeric': 0.1940959409594096, 'fraction_numerical': 0.002952029520295203, 'mean_word_length': 2.8345120226308347, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 33, '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': '6627010', 'n_tokens_mistral': 985, 'n_tokens_neox': 850, 'n_words': 200}