<commit_before>= div_for(post, class: ['post']) do
  div.user
    h5 = link_to_user(post.creator)

  div.contents
    h4.title
      a = format_inline_text(post.title)
      div.pull-right
        .timestamp
          => format_datetime(post.created_at)

    = format_block_text(post.text)

    - if defined?(show_buttons)
      div.info
        div.pull-right
          .btn-group
            - if can? :reply_topic, @topic
              = link_to reply_course_forum_topic_post_path(current_course, @forum, @topic, post),
                        title: t('.reply'), class: ['btn', 'btn-primary'] do
                = fa_icon 'mail-reply'.freeze
            - if can? :edit, post
              = edit_button(edit_course_forum_topic_post_path(current_course, @forum, @topic, post))
            - if can? :delete, post
              = delete_button(course_forum_topic_post_path(current_course, @forum, @topic, post))
<commit_msg>Fix forum posts' HTML formatting.<commit_after>= div_for(post, class: ['post']) do
  div.user
    h5 = link_to_user(post.creator)

  div.contents
    h4.title
      a = format_inline_text(post.title)
      div.pull-right
        .timestamp
          => format_datetime(post.created_at)

    = format_html(post.text)

    - if defined?(show_buttons)
      div.info
        div.pull-right
          .btn-group
            - if can? :reply_topic, @topic
              = link_to reply_course_forum_topic_post_path(current_course, @forum, @topic, post),
                        title: t('.reply'), class: ['btn', 'btn-primary'] do
                = fa_icon 'mail-reply'.freeze
            - if can? :edit, post
              = edit_button(edit_course_forum_topic_post_path(current_course, @forum, @topic, post))
            - if can? :delete, post
              = delete_button(course_forum_topic_post_path(current_course, @forum, @topic, post))

{'fraction_non_alphanumeric': 0.11563169164882227, 'fraction_numerical': 0.0021413276231263384, 'mean_word_length': 2.2560975609756095, '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': '7310515', 'n_tokens_mistral': 601, 'n_tokens_neox': 579, 'n_words': 112}