<commit_before><% if item.created_at %>
  <li class="item_info">
  <% if @wallet.write? session %>
    <div class="x">
      <%= link_to '✎', edit_wallet_item_path(item.wallet, item) %>
      <%= link_to 'x', [item.wallet, item],
                  method: :delete,
                  data: { confirm: 'Are you sure?' } %>
    </div>
  <% end %>
  <h2><%= item.name %> △ 
  <% if item.delta == 0 %>  
    <span>¥<%= item.delta %></span>
  <% elsif item.delta > 0 %>
    <span class="red">¥<%= item.delta %></span>
  <% else %>
    <span class="green">¥<%= -item.delta %></span>
  <% end %>
  </h2>
  <p> <%= item.detail %> </p>
  <div class="note" title="created at <%= item.created_at.localtime %> and updated at <%= item.updated_at.localtime %>">
    <% item.tags.each do |i| %>
      <%= link_to '#' + i.name, wallet_items_path(item.wallet, :tag => i.name) %>
    <% end %>
    <span>@ <%= item.time.localtime.strftime "%Y-%m-%d %H:%M" %></span>
  </div>
  </li>
<% end %><commit_msg>use h3 for item title<commit_after><% if item.created_at %>
  <li class="item_info">
  <% if @wallet.write? session %>
    <div class="x">
      <%= link_to '✎', edit_wallet_item_path(item.wallet, item) %>
      <%= link_to 'x', [item.wallet, item],
                  method: :delete,
                  data: { confirm: 'Are you sure?' } %>
    </div>
  <% end %>
  <h3><%= item.name %> △ 
  <% if item.delta == 0 %>  
    <span>¥<%= item.delta %></span>
  <% elsif item.delta > 0 %>
    <span class="red">¥<%= item.delta %></span>
  <% else %>
    <span class="green">¥<%= -item.delta %></span>
  <% end %>
  </h3>
  <p> <%= item.detail %> </p>
  <div class="note" title="created at <%= item.created_at.localtime %> and updated at <%= item.updated_at.localtime %>">
    <% item.tags.each do |i| %>
      <%= link_to '#' + i.name, wallet_items_path(item.wallet, :tag => i.name) %>
    <% end %>
    <span>@ <%= item.time.localtime.strftime "%Y-%m-%d %H:%M" %></span>
  </div>
  </li>
<% end %>
{'fraction_non_alphanumeric': 0.24469160768452983, 'fraction_numerical': 0.00455005055611729, 'mean_word_length': 2.6580406654343807, 'pattern_counts': {'":': 0, '<': 81, '<?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': '6514631', 'n_tokens_mistral': 835, 'n_tokens_neox': 751, 'n_words': 162}