<commit_before>
<% content_for :templates do %>
  <script type="text/template" id="products-template">
    <ul id="products" class="inline product-listing">
    </ul>
  </script>

  <script type="text/template" id="product-preview-template">
      <li id="product_<%%= id %>" class="columns three alpha" itemscope itemtype="http://schema.org/Product">
      <div class="product-image">
        <img src='<%%= small_image_url() %>'>
      </div>
      <a class='info' itemprop='name' title='<%%= name %>'><%%= name %></a>
      <span class="price selling" itemprop="price"><%%= display_price %></span>
    </li>
  </script>

  <script type="text/template" id="product-template">
    <div class="columns six alpha" data-hook="product_left_part">
      <div class="row" data-hook="product_left_part_wrap">

        <div id="product-images" data-hook="product_images">
          <div id="main-image" data-hook="">
              <img alt="<%%= name %>" itemprop="image" src="<%%= product_image_url() %>">
          </div>
          <div id="thumbnails" data-hook="">
            <ul id="product-thumbnails" class="thumbnails inline" data-hook="">
              <li class='tmb-all'><img src='<%%= mini_image_url() %>'></li>
            </ul>
          </div>
          <div data-hook="product_properties">
            <h6 class="product-section-title">Properties</h6>
            <table id="product-properties" class="table-display" data-hook="">
              <tbody>
                <%% _.map(product_properties, function(property) { %>
                  <tr> 
                    <td><strong><%%= property.property_name %></strong></td>
                    <td><%%= property.value %></td>
                  </tr>
                <%% }) %>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
    <div class="columns ten omega" data-hook="product_right_part">
      <div class="row" data-hook="product_right_part_wrap">
        <div id="product-description" data-hook="product_description">
          <h1 class="product-title" itemprop="name"><%%= name %></h1>
          <div itemprop="description" data-hook="description">
            <%%= description %>
          </div>
          <div id="cart-form" data-hook="cart_form">
            <form accept-charset="UTF-8" action="/orders/populate" method="post"><div style="margin:0;padding:0;display:inline">
          </div>
          <div id="inside-product-cart-form" data-hook="inside_product_cart_form" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
              <div data-hook="product_price" class="columns five  alpha ">
                
                <div id="product-price">
                  <h6 class="product-section-title">Price</h6>
                  <div><span class="price selling" itemprop="price"><%%= display_price %></span></div>
                </div><commit_msg>Use each, not map, to loop through product properties<commit_after>
<% content_for :templates do %>
  <script type="text/template" id="products-template">
    <ul id="products" class="inline product-listing">
    </ul>
  </script>

  <script type="text/template" id="product-preview-template">
      <li id="product_<%%= id %>" class="columns three alpha" itemscope itemtype="http://schema.org/Product">
      <div class="product-image">
        <img src='<%%= small_image_url() %>'>
      </div>
      <a class='info' itemprop='name' title='<%%= name %>'><%%= name %></a>
      <span class="price selling" itemprop="price"><%%= display_price %></span>
    </li>
  </script>

  <script type="text/template" id="product-template">
    <div class="columns six alpha" data-hook="product_left_part">
      <div class="row" data-hook="product_left_part_wrap">

        <div id="product-images" data-hook="product_images">
          <div id="main-image" data-hook="">
              <img alt="<%%= name %>" itemprop="image" src="<%%= product_image_url() %>">
          </div>
          <div id="thumbnails" data-hook="">
            <ul id="product-thumbnails" class="thumbnails inline" data-hook="">
              <li class='tmb-all'><img src='<%%= mini_image_url() %>'></li>
            </ul>
          </div>
          <div data-hook="product_properties">
            <h6 class="product-section-title">Properties</h6>
            <table id="product-properties" class="table-display" data-hook="">
              <tbody>
                <%% _.each(product_properties, function(property) { %>
                  <tr> 
                    <td><strong><%%= property.property_name %></strong></td>
                    <td><%%= property.value %></td>
                  </tr>
                <%% }) %>
              </tbody>
            </table>
          </div>
        </div>
      </div>
    </div>
    <div class="columns ten omega" data-hook="product_right_part">
      <div class="row" data-hook="product_right_part_wrap">
        <div id="product-description" data-hook="product_description">
          <h1 class="product-title" itemprop="name"><%%= name %></h1>
          <div itemprop="description" data-hook="description">
            <%%= description %>
          </div>
          <div id="cart-form" data-hook="cart_form">
            <form accept-charset="UTF-8" action="/orders/populate" method="post"><div style="margin:0;padding:0;display:inline">
          </div>
          <div id="inside-product-cart-form" data-hook="inside_product_cart_form" itemprop="offers" itemscope="" itemtype="http://schema.org/Offer">
              <div data-hook="product_price" class="columns five  alpha ">
                
                <div id="product-price">
                  <h6 class="product-section-title">Price</h6>
                  <div><span class="price selling" itemprop="price"><%%= display_price %></span></div>
                </div>
{'fraction_non_alphanumeric': 0.18646101113967437, 'fraction_numerical': 0.003084832904884319, 'mean_word_length': 2.426893716970053, 'pattern_counts': {'":': 0, '<': 173, '<?xml version=': 0, '>': 173, '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': '2948372', 'n_tokens_mistral': 1776, 'n_tokens_neox': 1713, 'n_words': 329}