<commit_before><h2>Answers</h2>
<b>Quiz Score: <%= @quiz_score %>%</b><br><br>

<% i = 1 %>
<% @questions.each do |question| %>
  <b>Question <%= i %>: </b><%= label_tag "#{question.id}", question.txt %> <br>
  <% question_type = QuestionType.find_by_question_id(question.id) %>


  <% if question_type.q_type.eql? 'MCR' %>
    <% QuizQuestionChoice.where(question_id: question.id).each do |answer|  %>
      <% if(answer.iscorrect) %>
        Correct answer is: <b><%= p answer.txt  %></b>
      <% end %>
    <% end %>
    <br>
    Your answer is: <b><%= p Score.where(response_id: @response.id, question_id:  question.id).first.comments  %></b><br><br>

  <% elsif question_type.q_type.eql? 'MCC' %>
    <%= p 'Correct answer is: '%>
    <br>
    <% QuizQuestionChoice.where(question_id: question.id).each do |answer|  %>
      <% if(answer.iscorrect) %>
        <b><%= p answer.txt  %></b>
        <br>
      <% end %>
    <% end %><br>

    Your answer is:<br/>
    <% Score.where(response_id: @response.id, question_id: question.id).each do |answer| %>
      <b><%= p answer.comments %></b><br>
    <% end %><br>

  <% elsif(question_type.q_type == 'TF') %>
    Correct Answer is: <b><%=QuizQuestionChoice.find_by_question_id(question.id).txt%></b><br/>
    Your answer is: <b><%= p Score.where(response_id: @response.id, question_id:  question.id).first.comments %></b><br><br>


  <% elsif(question_type.q_type == 'Essay') %>
    Your Answer is: <b><%= p Score.where(response_id: @response.id, question_id:  question.id).first.comments %></b><br><br>

  <% end %><hr>
  <% i += 1 %>
<% end %>
<%= link_to "Back", student_quizzes_path(:id => @response_map.reviewer_id) %><commit_msg>Fix finished quiz display. #551<commit_after><h2>Answers</h2>
<b>Quiz Score: <%= @quiz_score %>%</b><br><br>

<% i = 1 %>
<% @questions.each do |question| %>
  <b>Question <%= i %>: </b><%= label_tag "#{question.id}", question.txt %> <br>
  <% question_type = QuestionType.find_by_question_id(question.id) %>


  <% if question_type.q_type.eql? 'MCR' %>
    <% QuizQuestionChoice.where(question_id: question.id).each do |answer|  %>
      <% if(answer.iscorrect) %>
        <b><%= p answer.txt  %></b> -- Correct <br>
      <%else%>
        <%= p answer.txt  %><br>
      <% end %>
    <% end %>
    <br>
    Your answer is: <b><%= p Score.where(response_id: @response.id, question_id:  question.id).first.comments  %></b><br><br>

  <% elsif question_type.q_type.eql? 'MCC' %>
    <%= p 'Correct answer is: '%>
    <br>
    <% QuizQuestionChoice.where(question_id: question.id).each do |answer|  %>
      <% if(answer.iscorrect) %>
        <b><%= p answer.txt  %></b> -- Correct <br>
      <%else%>
        <%= p answer.txt  %><br>
      <% end %>
    <% end %><br>

    Your answer is:<br/>
    <% Score.where(response_id: @response.id, question_id: question.id).each do |answer| %>
      <b><%= p answer.comments %></b><br>
    <% end %>
    <br>

  <% elsif(question_type.q_type == 'TF') %>
    Correct Answer is: <b><%=QuizQuestionChoice.find_by_question_id(question.id).txt%></b><br/>
    Your answer is: <b><%= p Score.where(response_id: @response.id, question_id:  question.id).first.comments %></b><br><br>
  <% end %><hr>
  <% i += 1 %>
<% end %>
<%= link_to "Back", student_quizzes_path(:id => @response_map.reviewer_id) %>
{'fraction_non_alphanumeric': 0.2226233453670277, 'fraction_numerical': 0.003309265944645006, 'mean_word_length': 3.380764163372859, 'pattern_counts': {'":': 0, '<': 144, '<?xml version=': 0, '>': 146, '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': '4619476', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1243, 'n_words': 240}