<commit_before><h1>Trade history</h1>

<% unless @trades.blank? %>
  <table class="default" id="trade-history">
    <tr>
      <th>Date</th>
      <th>Type</th>
      <th>Amount</th>
      <th>Price</th>
      <th>Total</th>
      <th class="auto-sized"></th>
    </tr>

    <% @trades.each do |trade| %>
      <tr>
        <td><%= l trade.created_at %></td>
        <td>
          <% if trade.buyer_id == @current_user.id %>
            Buy
          <% else %>
            Sell
          <% end %>
        </td>
        <td class="amount"><%= number_to_bitcoins trade.traded_btc, :precision => 4 %></td>
        <td class="amount"><%= number_to_currency trade.ppc, :unit => "", :precision => 5 %> <%= trade.currency %></td>
        <td class="amount"><%= number_to_currency trade.traded_currency, :unit => "", :precision => 4 %> <%= trade.currency %> </td>
        <td class="auto-sized"><%= image_tag "#{trade.currency}.png", :alt => trade.currency, :title => trade.currency %></td>
      </tr>
    <% end %>
  </table>
<% else %>
  <p>No trades were found</p>
<% end %><commit_msg>Small display fix in trade history page<commit_after><h1>Trade history</h1>

<% unless @trades.blank? %>
  <table class="default" id="trade-history">
    <tr>
      <th>Date</th>
      <th>Type</th>
      <th>Amount</th>
      <th>Price</th>
      <th>Total</th>
      <th class="auto-sized"></th>
    </tr>

    <% @trades.each do |trade| %>
      <tr>
        <td><%= l trade.created_at %></td>
        <td>
          <% if trade.buyer_id == @current_user.id %>
            Buy
          <% else %>
            Sell
          <% end %>
        </td>
        <td class="amount"><%= number_to_bitcoins trade.traded_btc, :precision => 4 %></td>
        <td class="amount"><%= number_to_currency trade.ppc, :unit => "", :precision => 5 %> <%= trade.currency %></td>
        <td class="amount"><%= number_to_currency trade.traded_currency, :unit => "", :precision => 4 %> <%= "#{trade.currency + ("&nbsp;" * (5 - trade.currency.size))}".html_safe %> </td>
        <td class="auto-sized"><%= image_tag "#{trade.currency}.png", :alt => trade.currency, :title => trade.currency %></td>
      </tr>
    <% end %>
  </table>
<% else %>
  <p>No trades were found</p>
<% end %>
{'fraction_non_alphanumeric': 0.21980461811722912, 'fraction_numerical': 0.004884547069271759, 'mean_word_length': 2.4084720121028744, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 115, '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': '4645395', 'n_tokens_mistral': 847, 'n_tokens_neox': 764, 'n_words': 161}