<commit_before>- klass = cycle('even', 'odd')

.post-container{class: [klass, reply.is_a?(Post) ? 'post-post' : (reply.is_a?(Reply) ? 'post-reply' : '')]}
  - if reply.is_a?(Reply) && reply.id.present?
    <a name="reply-#{reply.id}"></a>
  - if reply.id.present? && logged_in? && !@unread.nil?
    - if reply.id == @unread.id && reply.class == @unread.class
      <a name="unread"></a>
  .padding-10
    .post-info-box
      - if reply.icon
        .post-icon
          = link_to icon_path(reply.icon) do
            = icon_tag reply.icon
      .post-info-text
        - if reply.character
          .post-character
            = link_to reply.character.name, character_path(reply.character)
          - if reply.character.screenname
            .post-screenname= reply.character.screenname
        - else
          .dark.spacer
        .post-author
          = link_to reply.user.username, user_path(reply.user)
    .post-edit-box
      - if reply.id.present?
        = link_to post_or_reply_link(reply) do
          = image_tag "/images/link.png", title: 'Permalink', alt: 'Permalink'
      - if reply.id.present? && reply.editable_by?(current_user)
        = link_to path_for(reply, 'edit_%s') do
          = image_tag "/images/pencil.png"
        = link_to path_for(reply, '%s'), method: :delete, confirm: 'Are you sure you wish to delete this reply?' do
          = image_tag "/images/cross.png"
    .post-content
      = sanitize((reply.content.include?("<p>") || reply.content[/<br ?\/?>/]) ? reply.content : reply.content.gsub("\n","<br/>")).html_safe<commit_msg>Fix the delete text to say 'post' instead of 'reply' if it's a post<commit_after>- klass = cycle('even', 'odd')

.post-container{class: [klass, reply.is_a?(Post) ? 'post-post' : (reply.is_a?(Reply) ? 'post-reply' : '')]}
  - if reply.is_a?(Reply) && reply.id.present?
    <a name="reply-#{reply.id}"></a>
  - if reply.id.present? && logged_in? && !@unread.nil?
    - if reply.id == @unread.id && reply.class == @unread.class
      <a name="unread"></a>
  .padding-10
    .post-info-box
      - if reply.icon
        .post-icon
          = link_to icon_path(reply.icon) do
            = icon_tag reply.icon
      .post-info-text
        - if reply.character
          .post-character
            = link_to reply.character.name, character_path(reply.character)
          - if reply.character.screenname
            .post-screenname= reply.character.screenname
        - else
          .dark.spacer
        .post-author
          = link_to reply.user.username, user_path(reply.user)
    .post-edit-box
      - if reply.id.present?
        = link_to post_or_reply_link(reply) do
          = image_tag "/images/link.png", title: 'Permalink', alt: 'Permalink'
      - if reply.id.present? && reply.editable_by?(current_user)
        = link_to path_for(reply, 'edit_%s') do
          = image_tag "/images/pencil.png"
        = link_to path_for(reply, '%s'), method: :delete, confirm: "Are you sure you wish to delete this #{reply.is_a?(Reply) ? 'reply' : 'post'}?" do
          = image_tag "/images/cross.png"
    .post-content
      = sanitize((reply.content.include?("<p>") || reply.content[/<br ?\/?>/]) ? reply.content : reply.content.gsub("\n","<br/>")).html_safe
{'fraction_non_alphanumeric': 0.1676461490875348, 'fraction_numerical': 0.0012372409526755336, 'mean_word_length': 2.429480381760339, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '99282', 'n_tokens_mistral': 1094, 'n_tokens_neox': 1103, 'n_words': 208}