<commit_before><p>
  <%= render_votes_for_item(@item) %><strong>[<%= @item.score %>]</strong>
</p>

<p>
  <strong>
    <%= link_to @item.title, @item, title: @item.url %>
    <small>(<%= @item.url %>)</small>
  </strong>
  <span><small>(posted by: <%= link_to @item.user.username, @item.user %>)</small></span>
</p>

<ul>
  <% if current_user %>
    <%= simple_form_for([@item, current_user.item_comments.build]) do |f| %>
      <%= f.input :content, label: false, required: true %>
      <%= f.submit "Comment", type: 'submit', class: 'btn btn-default' %>
    <% end %>
  <% end %>

<hr>
  <% @comments.each do |comment| %>
    <%= content_tag_for(:li, comment) do %>
      <span>
        created: <%= link_to time_ago_in_words(comment.created_at), item_path(@item, anchor: "comment") %> ago.
        <small>(posted by: <%= link_to comment.user.username, comment.user %>)</small>
      </span>
      <br/>
      <small>
        <%= comment.content %>
      </small>
    <% end %>
  <% end %>
</ul><commit_msg>removed 'created:' and change no.of likes to button<commit_after><p>
  <%= render_votes_for_item(@item) %><strong><button class="btn btn-danger" type="button"><%= @item.score %></button></strong>
</p>

<p>
  <strong>
    <%= link_to @item.title, @item, title: @item.url %>
    <small>(<%= @item.url %>)</small>
  </strong>
  <span><small>(posted by: <%= link_to @item.user.username, @item.user %>)</small></span>
</p>

<ul>
  <% if current_user %>
    <%= simple_form_for([@item, current_user.item_comments.build]) do |f| %>
      <%= f.input :content, label: false, required: true %>
      <%= f.submit "Comment", type: 'submit', class: 'btn btn-default' %>
    <% end %>
  <% end %>

<hr>
  <% @comments.each do |comment| %>
    <%= content_tag_for(:li, comment) do %>
      <span>
        <%= link_to time_ago_in_words(comment.created_at), item_path(@item, anchor: "comment") %> ago.
        <small>(posted by: <%= link_to comment.user.username, comment.user %>)</small>
      </span>
      <br/>
      <small>
        <%= comment.content %>
      </small>
    <% end %>
  <% end %>
</ul>
{'fraction_non_alphanumeric': 0.2270347453593527, 'fraction_numerical': 0.0, 'mean_word_length': 3.212424849699399, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 89, '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': '3490279', 'n_tokens_mistral': 831, 'n_tokens_neox': 752, 'n_words': 158}