<commit_before><div class="row">
  <div class="col-sm-12">
    <div class="panel panel-default">
      <div class="panel-heading"><%=t".All Products"%></div>
      <div class="panel-body">
        <div class="table-responsive">
          <table class="table">
            <tr>
              <th><%=Product.model_name.human%></th>
              <th><%=t".open_orders"%></th>
              <th><%=t".to"%></th>
            </tr>

            <% @products.each do |product| %>
            <tr>
              <td><%=link_to product.name, product %> (<%=number_to_currency product.price%>)</td>
              <td><%=product.sold_products.open_orders.length %> (<%=number_to_currency product.sold_products.collect{|sold_product|sold_product.price}.sum %>)</td>
              <td><%=product.sold_products.group_by{|sold_product| sold_product.user.email}.collect{|email, products| "#{email} (#{products.length})"}.join ", " %></td>
            </tr>
            <% end %>

          </table>
        </div>
      </div>
    </div>
  </div>
</div><commit_msg>show only reserved<commit_after><div class="row">
  <div class="col-sm-12">
    <div class="panel panel-default">
      <div class="panel-heading"><%=t".All Products"%></div>
      <div class="panel-body">
        <div class="table-responsive">
          <table class="table">
            <tr>
              <th><%=Product.model_name.human%></th>
              <th><%=t".open_orders"%></th>
              <th><%=t".to"%></th>
            </tr>

            <% @products.each do |product| %>
            <tr>
              <td><%=link_to product.name, product %> (<%=number_to_currency product.price%>)</td>
              <td><%=product.sold_products.open_orders.length %> (<%=number_to_currency product.sold_products.collect{|sold_product|sold_product.price}.sum %>)</td>
              <td><%=product.sold_products.open_orders.group_by{|sold_product| sold_product.user.email}.collect{|email, products| "#{email} (#{products.length})"}.join ", " %></td>
            </tr>
            <% end %>

          </table>
        </div>
      </div>
    </div>
  </div>
</div>
{'fraction_non_alphanumeric': 0.20831365139348135, 'fraction_numerical': 0.001889466225791214, 'mean_word_length': 2.2685185185185186, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 0, '>': 85, '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': '4879711', 'n_tokens_mistral': 718, 'n_tokens_neox': 659, 'n_words': 97}