<commit_before><h2><center>Your cart</center></h2>
<table class="table table-condensed">
  <thead>
    <tr>
   	  <th>#</th>
   	  <th>Product</th>
   	  <th>Price</th>
   	  <th>Size</th>
   	  <th>Qty</th>
   	</tr>
  </thead>
  <tbody>
  <%@items.each do |item|%>
   <tr>
   	  <td><%= item[0].id %></td>
   	  <td><%= item[0].title %></td>
   	  <td><%= item[0].price %> $</td>
   	  <td><%= item[0].size %> cm</td>
   	  <td><%= item[1] %></td>
   </tr>
  <% end %>
  </tbody>
</table>



<commit_msg>change cart output<commit_after><h2><center>Your cart</center></h2>
<table class="table table-condensed">
  <thead>
    <tr>
   	  <th>#</th>
   	  <th>Product</th>
   	  <th>Price</th>
   	  <th>Size (cm)</th>
   	  <th>Qty</th>
   	</tr>
  </thead>
  <tbody>
  <%total_price=0%>
  <%total_qty=0%>
  <%@items.each do |item|%>
   <tr>
   	  <td><%= item[0].id %></td>
   	  <td><%= item[0].title %></td>
   	  <td><%= item[0].price %> $</td>
   	  <td><%= item[0].size %></td>
   	  <td><%= item[1] %></td>
   </tr>
   <%total_price +=item[0].price * item[1].to_i%>
   <%total_qty +=item[1].to_i%>
  <% end %>
   <tr>
   		<td></td>
   		<td></td>
   		<td>Total price: <%= total_price %>$</td>
   		<td></td>
   		<td>Total qty: <%= total_qty %></td>
   </tr>

  </tbody>
</table>





{'fraction_non_alphanumeric': 0.28405572755417957, 'fraction_numerical': 0.014705882352941176, 'mean_word_length': 2.349740932642487, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '3166001', 'n_tokens_mistral': 656, 'n_tokens_neox': 616, 'n_words': 99}