<commit_before><%= div_for_comment(comment) do %>
  <div class="media">
    <div class="pull-left">
      <% if comment.user.image_url %>
        <img src="<%=current_user.image_url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
      <% else %>
        <img src="<%=current_user.avatar.url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
      <% end %>
    </div>
  
    <div class="media-body">
      <h4 class="media-heading"><%= comment.user.name %></h4>
        <%= comment.content %>
      <small class="ms-date">
        <%= time_ago_in_words(comment.created_at) + " ago" %> 
        <%= comment.reply_counter %> comments
        <%#= comment.cheer_count %> <!-- cheers -->
        <%#= render 'cheers/form', cheerable: comment %>
        <div class="reply-to-comment">
          <div class="reply-form hidden">
            <%= render "comments/form", commentable: comment%>
          </div>
          <button class="reply">Reply</button>
        </div>
      </small>
      <div class="newest-comment">
    
      </div>
      <% comment.replies.each do |reply| %>
        <div class="media">
          <div class="pull-left" style="size:50x50;">
            <% if reply.user.image_url %>
              <img src="<%=reply.user.image_url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
            <% else %>
              <img src="<%=reply.user.avatar.url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
            <% end %>
          </div>
<commit_msg>sorts comment-replies in reverse chronological order<commit_after><%= div_for_comment(comment) do %>
  <div class="media">
    <div class="pull-left">
      <% if comment.user.image_url %>
        <img src="<%=current_user.image_url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
      <% else %>
        <img src="<%=current_user.avatar.url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
      <% end %>
    </div>
  
    <div class="media-body">
      <h4 class="media-heading"><%= comment.user.name %></h4>
        <%= comment.content %>
      <small class="ms-date">
        <%= time_ago_in_words(comment.created_at) + " ago" %> 
        <%= comment.reply_counter %> comments
        <%#= comment.cheer_count %> <!-- cheers -->
        <%#= render 'cheers/form', cheerable: comment %>
        <div class="reply-to-comment">
          <div class="reply-form hidden">
            <%= render "comments/form", commentable: comment%>
          </div>
          <button class="reply">Reply</button>
        </div>
      </small>
      <div class="newest-comment">
    
      </div>
      <% replies = Comment.where(commentable_type: "Comment", commentable_id: comment.id).order(:created_at).reverse_order %>
      <% replies.each do |reply| %>
        <div class="media">
          <div class="pull-left" style="size:50x50;">
            <% if reply.user.image_url %>
              <img src="<%=reply.user.image_url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
            <% else %>
              <img src="<%=reply.user.avatar.url%>" style="height:auto;width:auto;max-width:50px;max-height:50px;">
            <% end %>
          </div>

{'fraction_non_alphanumeric': 0.19345880900956494, 'fraction_numerical': 0.013576056772601049, 'mean_word_length': 2.6102449888641424, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 90, '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': '1992128', 'n_tokens_mistral': 1146, 'n_tokens_neox': 1047, 'n_words': 156}