<commit_before>-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

%li.comment{data:{guid:comment.id}, class: ("hidden" if(defined? hidden))}
  .content
    .media
      .media-left
        = person_image_link(comment.author, size: :thumb_small, class: "media-object")
      .media-body
        .from.pull-left
          = person_link(comment.author)
          .info
            %span
              = timeago(comment.created_at ? comment.created_at : Time.now)
        .remove_comment
          .pull-right
            - if user_signed_in? && comment.author == current_user.person
              = link_to(raw("<i class='entypo-trash'></i>"), comment_path(comment), method: :delete,
                          data: { confirm: "#{t('are_you_sure')}" }, class: "remove")

    %div{class: direction_for(comment.text)}
      = comment.message.markdownified
<commit_msg>Add guid as id attribute to mobile comments<commit_after>-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

%li.comment{id: comment.guid, data:{guid:comment.id}, class: ("hidden" if(defined? hidden))}
  .content
    .media
      .media-left
        = person_image_link(comment.author, size: :thumb_small, class: "media-object")
      .media-body
        .from.pull-left
          = person_link(comment.author)
          .info
            %span
              = timeago(comment.created_at ? comment.created_at : Time.now)
        .remove_comment
          .pull-right
            - if user_signed_in? && comment.author == current_user.person
              = link_to(raw("<i class='entypo-trash'></i>"), comment_path(comment), method: :delete,
                          data: { confirm: "#{t('are_you_sure')}" }, class: "remove")

    %div{class: direction_for(comment.text)}
      = comment.message.markdownified

{'fraction_non_alphanumeric': 0.13163163163163163, 'fraction_numerical': 0.009009009009009009, 'mean_word_length': 2.452504317789292, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6256772', 'n_tokens_mistral': 624, 'n_tokens_neox': 603, 'n_words': 137}