<commit_before>- content_for(:javascript) do
  = javascript_include_tag(:questions)

%header.page-header.qheader
  %h1= @question.subject

.container
  .row
    .col-md-7
      #question.question
        .box
          %a.pull-left.thumbnail{:href => user_path(@question.user)}
            = image_tag(@question.user.avatar_url(32), :width => 32, :height => 32)
          .status.full
            %span created
            %span= time_ago_in_words(@question.created_at)
            %span ago by
            %span= link_to(@question.user.name, user_path(@question.user))
            - if @question.updated_at > @question.created_at + 1.minute
              %span= "(updated #{time_ago_in_words(@question.updated_at)} ago)"

          .clearfix
          .bodytext
            - if owner_logged_in?(@question)
              .hidden.editable
                = simple_form_for([@group, @question]) do |f|
                  = f.input(:body, :as => :text, :label => false, :input_html => { :rows => 5, :class => 'wysiwyg' })
                  = f.submit('Update', :class => 'btn btn-inverse')
                  %button.btn.btn-default.cancel Cancel
            .content
              - if @question.body.empty? && owner_logged_in?(@question)
                %em Add description
              - else
                = post_format(@question.body)
          .clearfix

      #answers
        %h3
          - if @question.answers.any?
            = pluralize(@question.answers.size, 'Answers')
          - else
            Awaiting Answers
        %ul.unstyled.answers
          - @question.answers.each do |answer|
            %li.answer{:id => "answer-#{answer.id}"}
              .box
                .pull-left
                  .vote{:'data-url' => vote_group_answer_path(@group, answer)}
                    %a.up{:href => '#', :'data-value' => 1, :class => upvote_class(answer)}
                      %span.glyphicon.glyphicon-chevron-up
                    %a.down{:href => '#', :'data-value' => -1, :class => downvote_class(answer)}
                      %span.glyphicon.glyphicon-chevron-down
                %a.pull-left.thumbnail{:href => user_path(answer.user)}= image_tag(answer.user.avatar_url(32), :width => 32, :height => 32)
                .status
                  .points.pull-right= answer.points
                  - if logged_in? && @question.user == current_user
                    = form_tag(mark_group_answer_path(@group, answer)) do
                      = link_to('#', :title => 'Mark this solution as correct', :class => 'accept-answer') do
                        .mark.pull-right.interactive{:class => answer.accepted? ? 'active' : ''}
                          %span.glyphicon.glyphicon-ok
                  - elsif answer.accepted?
                    .mark.pull-right
                      %span.glyphicon.glyphicon-ok

                  %span answered
                  %span= "#{time_ago_in_words(answer.created_at)} ago"
                  %span= "by #{link_to(answer.user.name, user_path(answer.user))}"
                  - if answer.updated_at > answer.created_at + 1.minute
                    %em (updated)

                .clearfix
                - if answer.accepted?
                  .solution
                    This answer was marked as correct.
                .bodytext
                  - if owner_logged_in?(answer)
                    .hidden.editable
                      = simple_form_for([@group, answer]) do |f|
                        = f.input(:body, :as => :text, :label => false, :input_html => { :rows => 3, :class => 'wysiwyg' })
                        = f.submit('Update', :class => 'btn btn-inverse')
                        %button.btn.btn-default.cancel Cancel
                  .content= post_format(answer.body)
                .clearfix

                .actions<commit_msg>fix broken link<commit_after>- content_for(:javascript) do
  = javascript_include_tag(:questions)

%header.page-header.qheader
  %h1= @question.subject

.container
  .row
    .col-md-7
      #question.question
        .box
          %a.pull-left.thumbnail{:href => user_path(@question.user)}
            = image_tag(@question.user.avatar_url(32), :width => 32, :height => 32)
          .status.full
            %span created
            %span= time_ago_in_words(@question.created_at)
            %span ago by
            %span= link_to(@question.user.name, user_path(@question.user))
            - if @question.updated_at > @question.created_at + 1.minute
              %span= "(updated #{time_ago_in_words(@question.updated_at)} ago)"

          .clearfix
          .bodytext
            - if owner_logged_in?(@question)
              .hidden.editable
                = simple_form_for([@group, @question]) do |f|
                  = f.input(:body, :as => :text, :label => false, :input_html => { :rows => 5, :class => 'wysiwyg' })
                  = f.submit('Update', :class => 'btn btn-inverse')
                  %button.btn.btn-default.cancel Cancel
            .content
              - if @question.body.empty? && owner_logged_in?(@question)
                %em Add description
              - else
                = post_format(@question.body)
          .clearfix

      #answers
        %h3
          - if @question.answers.any?
            = pluralize(@question.answers.size, 'Answers')
          - else
            Awaiting Answers
        %ul.unstyled.answers
          - @question.answers.each do |answer|
            %li.answer{:id => "answer-#{answer.id}"}
              .box
                .pull-left
                  .vote{:'data-url' => vote_group_answer_path(@group, answer)}
                    %a.up{:href => '#', :'data-value' => 1, :class => upvote_class(answer)}
                      %span.glyphicon.glyphicon-chevron-up
                    %a.down{:href => '#', :'data-value' => -1, :class => downvote_class(answer)}
                      %span.glyphicon.glyphicon-chevron-down
                %a.pull-left.thumbnail{:href => user_path(answer.user)}= image_tag(answer.user.avatar_url(32), :width => 32, :height => 32)
                .status
                  .points.pull-right= answer.points
                  - if logged_in? && @question.user == current_user
                    = form_tag(mark_group_answer_path(@group, answer)) do
                      = link_to('#', :title => 'Mark this solution as correct', :class => 'accept-answer') do
                        .mark.pull-right.interactive{:class => answer.accepted? ? 'active' : ''}
                          %span.glyphicon.glyphicon-ok
                  - elsif answer.accepted?
                    .mark.pull-right
                      %span.glyphicon.glyphicon-ok

                  %span answered
                  %span= "#{time_ago_in_words(answer.created_at)} ago by"
                  %span= link_to(answer.user.name, user_path(answer.user))
                  - if answer.updated_at > answer.created_at + 1.minute
                    %em (updated)

                .clearfix
                - if answer.accepted?
                  .solution
                    This answer was marked as correct.
                .bodytext
                  - if owner_logged_in?(answer)
                    .hidden.editable
                      = simple_form_for([@group, answer]) do |f|
                        = f.input(:body, :as => :text, :label => false, :input_html => { :rows => 3, :class => 'wysiwyg' })
                        = f.submit('Update', :class => 'btn btn-inverse')
                        %button.btn.btn-default.cancel Cancel
                  .content= post_format(answer.body)
                .clearfix

                .actions
{'fraction_non_alphanumeric': 0.13150006516356053, 'fraction_numerical': 0.00547373908510361, 'mean_word_length': 1.4988603060892218, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 65, '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': '3378467', 'n_tokens_mistral': 2306, 'n_tokens_neox': 2139, 'n_words': 387}