<commit_before>.community
  .row
    .twelve.columns
      = render partial: "shared/forem_sidebar", locals: {active_forum: @forum}

      .forum-container.nine.columns
        .row
          %header.cf
            .nine.columns
              %h3.forum-title
                %i.icon-chevron-left
                = link_to @forum.name, forem.forum_path(@forum)
            .three.columns
              - if user_signed_in?
                - if !@topic.subscriber?(forem_user.id)
                  %span.button= link_to "Subscribe", forem.subscribe_forum_topic_path(@forum, @topic)
                - else
                  %span.button.active= link_to "Unsubscribe", forem.unsubscribe_forum_topic_path(@forum, @topic)
        .row
          .discussions.twelve.columns
            - if @topic.pending_review?
              .row.moderation-message
                #topic_moderation.moderation
                  = t(".pending_review")
                  - if forem_admin_or_moderator?(@topic.forum)
                    = form_for @topic, :url => forem.moderate_forum_topic_path(@topic.forum, @topic), :method => :put do |f|
                      = render "forem/moderation/options", :f => f
            .topic-view
              .one.columns.avatar
                = image_tag @topic.user.avatar.url(:thumb)
              .eleven.columns.topic-info
                .topic-title= link_to @topic.subject, forem.forum_topic_path(@topic.forum, @topic)
                %p.sub-text 
                  = distance_of_time_in_words_to_now(@topic.last_post_at)
                  ago by
                  = link_to @topic.user, main_app.user_path(@topic.user)
                  to <a href="#">Anime Discussion</a>
                %p.topic-body= forem_format @first_post.text

              .row
                .toolbar
                  %ul
                    - post = @first_post
                    - if forem_user
                      - if can?(:reply, post.topic)
                        - if post.topic.can_be_replied_to?
                          %li.reply-button 
                            <i class="icon-reply"></i> 
                            = link_to t('Reply', :scope => 'forem.topic'), forem.new_topic_post_path(post.topic, :reply_to_id => post.id)

                      - if post.topic.can_be_replied_to?
                        %li.quote-button 
                          <i class="icon-quote-left"></i> 
                          = link_to t('Quote', :scope => 'forem.topic'), forem.new_topic_post_path(post.topic, :reply_to_id => post.id, :quote => true)

                      - if post.owner_or_admin?(forem_user)
                        - if can?(:edit_post, post.topic.forum)
                          %li.edit-button 
                            <i class="icon-pencil"></i>
                            = link_to t('Edit', :scope => 'forem.post'), forem.edit_topic_post_path(post.topic, post)
                        %li.delete-button 
                          <i class="icon-trash"></i> 
                          = link_to t('Delete', :scope => 'forem.topic'), forem.topic_post_path(post.topic, post), :method => :delete, :confirm => t("are_you_sure")

        - if @posts.length > 1
          .reply-header.twelve.columns
            %h3 
              %span= pluralize @posts_count, "Reply"
      
      - if @posts.length > 1
        .forum-container.replies.nine.columns
          - if params[:page].nil? or params[:page].to_i == 1
            = render @posts[1..-1]
          - else
            = render @posts
          %p= paginate @posts


/ <div id='topic' class='#{'un' unless @topic.locked?}locked'>
/ #{render :partial => 'forem/topics/head', :locals => { :topic => @topic }}
/ %menu
/   - if @topic.can_be_replied_to? && can?(:reply, @topic)
/     = link_to t(".reply"), forem.new_topic_post_path(@topic)
/   - if @topic.user == forem_user || forem_admin?
/     = link_to t(".delete"), forem.forum_topic_path(@forum, @topic), :method => :delete, :confirm => t("are_you_sure")
/   - if forem_user
/     - if !@topic.subscriber?(forem_user.id)
/       = link_to t(".subscribe"), forem.subscribe_forum_topic_path(@forum, @topic)<commit_msg>Placing form below posts<commit_after>.community
  .row
    .twelve.columns
      = render partial: "shared/forem_sidebar", locals: {active_forum: @forum}

      .forum-container.nine.columns
        .row
          %header.cf
            .nine.columns
              %h3.forum-title
                %i.icon-chevron-left
                = link_to @forum.name, forem.forum_path(@forum)
            .three.columns
              - if user_signed_in?
                - if !@topic.subscriber?(forem_user.id)
                  %span.button= link_to "Subscribe", forem.subscribe_forum_topic_path(@forum, @topic)
                - else
                  %span.button.active= link_to "Unsubscribe", forem.unsubscribe_forum_topic_path(@forum, @topic)
        .row
          .discussions.twelve.columns
            - if @topic.pending_review?
              .row.moderation-message
                #topic_moderation.moderation
                  = t(".pending_review")
                  - if forem_admin_or_moderator?(@topic.forum)
                    = form_for @topic, :url => forem.moderate_forum_topic_path(@topic.forum, @topic), :method => :put do |f|
                      = render "forem/moderation/options", :f => f
            .topic-view
              .one.columns.avatar
                = image_tag @topic.user.avatar.url(:thumb)
              .eleven.columns.topic-info
                .topic-title= link_to @topic.subject, forem.forum_topic_path(@topic.forum, @topic)
                %p.sub-text 
                  = distance_of_time_in_words_to_now(@topic.last_post_at)
                  ago by
                  = link_to @topic.user, main_app.user_path(@topic.user)
                  to <a href="#">Anime Discussion</a>
                %p.topic-body= forem_format @first_post.text

              .row
                .toolbar
                  %ul
                    - post = @first_post
                    - if forem_user
                      - if can?(:reply, post.topic)
                        - if post.topic.can_be_replied_to?
                          %li.reply-button 
                            <i class="icon-reply"></i> 
                            = link_to t('Reply', :scope => 'forem.topic'), forem.new_topic_post_path(post.topic, :reply_to_id => post.id)

                      - if post.topic.can_be_replied_to?
                        %li.quote-button 
                          <i class="icon-quote-left"></i> 
                          = link_to t('Quote', :scope => 'forem.topic'), forem.new_topic_post_path(post.topic, :reply_to_id => post.id, :quote => true)

                      - if post.owner_or_admin?(forem_user)
                        - if can?(:edit_post, post.topic.forum)
                          %li.edit-button 
                            <i class="icon-pencil"></i>
                            = link_to t('Edit', :scope => 'forem.post'), forem.edit_topic_post_path(post.topic, post)
                        %li.delete-button 
                          <i class="icon-trash"></i> 
                          = link_to t('Delete', :scope => 'forem.topic'), forem.topic_post_path(post.topic, post), :method => :delete, :confirm => t("are_you_sure")

        - if @posts.length > 1
          .reply-header.twelve.columns
            %h3 
              %span= pluralize @posts_count, "Reply"

      - if @posts.length > 1
        .forum-container.replies.nine.columns
          - if params[:page].nil? or params[:page].to_i == 1
            = render @posts[1..-1]
          - else
            = render @posts
          .reply-header.twelve.columns
            %h3 
              %span Share Your Thoughts
          .reply-form.twelve.columns
            .two.columns
              %p :)
            .ten.columns

          %p= paginate @posts


/ <div id='topic' class='#{'un' unless @topic.locked?}locked'>
/ #{render :partial => 'forem/topics/head', :locals => { :topic => @topic }}
/ %menu
/   - if @topic.can_be_replied_to? && can?(:reply, @topic)
/     = link_to t(".reply"), forem.new_topic_post_path(@topic)
/   - if @topic.user == forem_user || forem_admin?
/     = link_to t(".delete"), forem.forum_topic_path(@forum, @topic), :method => :delete, :confirm => t("are_you_sure")
/   - if forem_user
/     - if !@topic.subscriber?(forem_user.id)
/       = link_to t(".subscribe"), forem.subscribe_forum_topic_path(@forum, @topic)
{'fraction_non_alphanumeric': 0.13128000936877854, 'fraction_numerical': 0.0017566459772807121, 'mean_word_length': 1.5363825363825363, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 63, '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': '1671939', 'n_tokens_mistral': 2692, 'n_tokens_neox': 2531, 'n_words': 428}