<commit_before>.panel.panel-default.moderationbox{data: { id: report.id }}
  .panel-heading
    %img.img-rounded.answerbox--img{src: gravatar_url(report.user)}
    = user_screen_name report.user
    reported a
    = report.type.sub('Reports::', '')
    %span{title: report.created_at, data: { toggle: :tooltip, placement: :bottom }}
      = time_ago_in_words(report.created_at)
    ago
  .panel-body
    %p
      - if report.type == 'Reports::User'
        = user_screen_name report.target
      - else
        = report.target.content
    %p
      %b
        Reason:
      %br
      - (report.reason || "No reason provided.").lines.each do |reason|
        - next unless reason.strip.length > 0
        = reason.strip
        %br
    .row
      .col-md-6.col-sm-4.col-xs-6.text-left
        %a.btn.btn-primary{href: content_url(report)}
          View reported
          = report.type.sub('Reports::', '')<commit_msg>Show 'View reported User' in addition to the other buttons if reason.target.user is present<commit_after>.panel.panel-default.moderationbox{data: { id: report.id }}
  .panel-heading
    %img.img-rounded.answerbox--img{src: gravatar_url(report.user)}
    = user_screen_name report.user
    reported a
    = report.type.sub('Reports::', '')
    %span{title: report.created_at, data: { toggle: :tooltip, placement: :bottom }}
      = time_ago_in_words(report.created_at)
    ago
  .panel-body
    %p
      - if report.type == 'Reports::User'
        = user_screen_name report.target
      - else
        = report.target.content
    %p
      %b
        Reason:
      %br
      - (report.reason || "No reason provided.").lines.each do |reason|
        - next unless reason.strip.length > 0
        = reason.strip
        %br
    .row
      .col-md-6.col-sm-4.col-xs-6.text-left
        %a.btn.btn-primary{href: content_url(report)}
          View reported
          = report.type.sub('Reports::', '')
        - if report.target.respond_to? :user and not report.target.user.nil?
          %a.btn.btn-primary{href: show_user_profile_path(report.target.user.screen_name)}
            View reported User
{'fraction_non_alphanumeric': 0.13879677877783042, 'fraction_numerical': 0.0037896731406916154, 'mean_word_length': 2.3417721518987342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5891118', 'n_tokens_mistral': 696, 'n_tokens_neox': 685, 'n_words': 128}