<commit_before>---
url: /
name: Home
description: The home page. Introduces the store and lists some products.
action: shop:products
template: default
published: true
---
<section class="home grid-container">
  <h1>{{ theme.storeTitle }}</h1>
  <section>
    <h2>Categories</h2>
    {{ partial('categories', {categories: categories}) }}
  </section>
  {% set featured_products = ('featured' | collection).products %}
  {% if featured_products | length %}
    <section class="callout">
      <h2>Featured</h2>
      {{ partial('product-list', {products: featured_products}) }}
    </section>
  {% else %}
    <section class="callout">
      <h2>Latest Products</h2>
      {{ partial('product-list',
        {products:
          products | extended_sort('created_at', true) | reverse | slice(0,6) })<commit_msg>Space out sections nicely in code.<commit_after>---
url: /
name: Home
description: The home page. Introduces the store and lists some products.
action: shop:products
template: default
published: true
---
<section class="home grid-container">
  <h1>{{ theme.storeTitle }}</h1>

  <section>
    <h2>Categories</h2>
    {{ partial('categories', {categories: categories}) }}
  </section>

  {% set featured_products = ('featured' | collection).products %}
  {% if featured_products | length %}
    <section class="callout">
      <h2>Featured</h2>
      {{ partial('product-list', {products: featured_products}) }}
    </section>
  {% else %}
    <section class="callout">
      <h2>Latest Products</h2>
      {{ partial('product-list',
        {products:
          products | extended_sort('created_at', true) | reverse | slice(0,6) })
{'fraction_non_alphanumeric': 0.16514320536258378, 'fraction_numerical': 0.01218769043266301, 'mean_word_length': 3.651558073654391, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '4193477', 'n_tokens_mistral': 512, 'n_tokens_neox': 491, 'n_words': 123}