<commit_before>- likes = comment.likes
%div.comment{id: "comment-#{comment.id}"}
  .medium-user-avatar.avatar-canvas
    - if comment.user.avatar_url
      = image_tag comment.user.avatar_url(:medium)
    - else
      %span.medium-user-initials.initials-decoration
        = comment.user.avatar_initials
  .comment-container.with-avatar
    .comment-username
      =link_to comment.user_name, "#", "title" => comment.user_name,
        "data-content" => "#{render 'users/name_popover', user: comment.user, group: comment.group}",
        class: "comment-user-name"
    .comment-body~ markdown(comment.body)
    .comment-time
      = time_ago_in_words(comment.created_at) + " ago"
      - if can? :like, comment
        = " · "
        - if likes.find_by_user_id(current_user.id).nil?
          = link_to "Like", like_comment_path(comment), method: :post
        - else<commit_msg>Try to fix encoding issue.<commit_after>- likes = comment.likes
%div.comment{id: "comment-#{comment.id}"}
  .medium-user-avatar.avatar-canvas
    - if comment.user.avatar_url
      = image_tag comment.user.avatar_url(:medium)
    - else
      %span.medium-user-initials.initials-decoration
        = comment.user.avatar_initials
  .comment-container.with-avatar
    .comment-username
      =link_to comment.user_name, "#", "title" => comment.user_name,
        "data-content" => "#{render 'users/name_popover', user: comment.user, group: comment.group}",
        class: "comment-user-name"
    .comment-body~ markdown(comment.body.to_s.force_encoding("UTF-8"))
    .comment-time
      = time_ago_in_words(comment.created_at) + " ago"
      - if can? :like, comment
        = " · "
        - if likes.find_by_user_id(current_user.id).nil?
          = link_to "Like", like_comment_path(comment), method: :post
        - else
{'fraction_non_alphanumeric': 0.14428412874583796, 'fraction_numerical': 0.0005549389567147614, 'mean_word_length': 2.9452954048140043, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5985047', 'n_tokens_mistral': 607, 'n_tokens_neox': 604, 'n_words': 95}