<commit_before>%li.cf.comment{:class => top_comment?(comment, comment_counter) ? "top-comment" : "" , :id => "comment_#{comment.id}"}
  %header.cf
    .comment-avatar
      =image_tag(users_image_path(comment.user), :class => 'avatar')
    %a.comment-user{:href => profile_path(comment.user.username), 'data-reply-to' => comment.user.username}
      = comment.user.username
    %a.like{:href =>like_protip_comment_path(comment.commentable.try(:public_id), comment.id), 'data-remote' => 'true', 'data-method' => :post, :class => comment_liked_class(comment), :rel => "nofollow"}
      =comment_likes(comment)
  .comment
    %p
      =raw sanitize(formatted_comment(comment.body))
    - if can_edit_comment?(comment)
      .edit-comment.hidden
        =form_for [comment.commentable, comment] do |f|
          =f.text_area :comment, :label => false, :rows => 5
          %input{:type => "submit", :value => "Save", :class => "button save"}
          %input{:type => "button", :value => "Cancel", :class => "button cancel"}
  %ul.edit-del.cf
    - if signed_in?
      %li.hidden.show-for-user{"data-user" => comment.user.username}
        %a.edit{:href => '#', :onclick => 'return false;'}
          Edit
      %li.hidden.show-for-user{"data-user" => comment.user.username}
        %a.delete{:href => protip_comment_path(comment.commentable.try(:public_id), comment.id), 'data-method' => :delete}
          Delete
      %li.remove-for-user{"data-user" => comment.user.username}
        %a.reply{:href => "#add-comment", :rel => "nofollow"}
          Reply<commit_msg>Remove nested p tags in comments.<commit_after>%li.cf.comment{:class => top_comment?(comment, comment_counter) ? "top-comment" : "" , :id => "comment_#{comment.id}"}
  %header.cf
    .comment-avatar
      =image_tag(users_image_path(comment.user), :class => 'avatar')
    %a.comment-user{:href => profile_path(comment.user.username), 'data-reply-to' => comment.user.username}
      = comment.user.username
    %a.like{:href =>like_protip_comment_path(comment.commentable.try(:public_id), comment.id), 'data-remote' => 'true', 'data-method' => :post, :class => comment_liked_class(comment), :rel => "nofollow"}
      =comment_likes(comment)
  .comment
    =raw sanitize(formatted_comment(comment.body))
    - if can_edit_comment?(comment)
      .edit-comment.hidden
        =form_for [comment.commentable, comment] do |f|
          =f.text_area :comment, :label => false, :rows => 5
          %input{:type => "submit", :value => "Save", :class => "button save"}
          %input{:type => "button", :value => "Cancel", :class => "button cancel"}
  %ul.edit-del.cf
    - if signed_in?
      %li.hidden.show-for-user{"data-user" => comment.user.username}
        %a.edit{:href => '#', :onclick => 'return false;'}
          Edit
      %li.hidden.show-for-user{"data-user" => comment.user.username}
        %a.delete{:href => protip_comment_path(comment.commentable.try(:public_id), comment.id), 'data-method' => :delete}
          Delete
      %li.remove-for-user{"data-user" => comment.user.username}
        %a.reply{:href => "#add-comment", :rel => "nofollow"}
          Reply
{'fraction_non_alphanumeric': 0.18795794839120739, 'fraction_numerical': 0.0006371455877668047, 'mean_word_length': 3.460227272727273, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 57, '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': '1993559', 'n_tokens_mistral': 1052, 'n_tokens_neox': 1053, 'n_words': 173}