<commit_before><table class="grades" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
  <%if ctrl=='review' && @assignment.varying_rubrics_by_round? %>
      <% reviews = reviews.select{|response| response.round == round}.reverse.uniq{|response| response.map_id}.sort_by{|response| response.map_id} %>
  <%end%>
	<tr><th style="text-align:center;">&nbsp;</th>
		<% for i in 0...reviews.size%>
			<th style="text-align:center;"><%= collabel %>&nbsp;<%=i+1%>&nbsp;</th>
		<% end %>
	</tr>
	<% if controller.action_name != "view_my_scores" %>
	<tr class="head"><td align="right"><b><%= rowlabel %></b></td>	    	
		<% for review in reviews %>
           <td align="center">                       
           <% if prefix %>         
             <a href="#<%= prefix+"_"+review.map.reviewer.name %>"><%= review.map.reviewer.fullname %></a>&nbsp;<%=link_to image_tag("/assets/delete_icon.png", :border => 0), {:controller => 'response', :action => 'delete', :id => review.id, :return => 'instructor'} %>
		   <% else %>
		     <%= link_to review.map.reviewer.fullname, :controller=>ctrl, :action => caction, :id=> review.id%>
		   <% end %>
		   </td>	    
	    <% end %>
	</tr>
	<% end %>

	<tr class="head">
	<td align="right"><b>Average score</b></td>

		<% for review in reviews %>
		   <td align="center">
             <% score = Answer.get_total_score(:response => [review], :questions => @questions[symbol], :q_types => Array.new) %>

             <% if controller.action_name != "view_my_scores" %>
               <input type="hidden" id="mailer_<%= review.map.reviewer.fullname %>_grade" name="mailer[<%= review.map.reviewer.fullname %>_grade]" value="<%= score  %>">
             <% end %>
             <%if score==-1%>
               <%= sprintf("--") %>% &nbsp;
             <%else%>
               <%= sprintf("%.2f",score) %>% &nbsp;
             <%end%>
	  	   </td>
	    <% end %>
	</tr>
  &nbsp;
  <tr class="head">
    <td align="right"><b>Reputation</b></td>

    <% for review in reviews %>

        <td align="center">
            <%reputation = Participant.find(review.map.reviewer.id) %>

          <%if @assignment.lauw == true %>
            <%=reputation.Lauw%>
          <%else%>
            <%=reputation.Hamer%>
          <%end%>
        </td>
    <% end %>
  </tr>

</table><commit_msg>Add color scheme to the instructor rview reputation page<commit_after><table class="grades" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
  <%if ctrl=='review' && @assignment.varying_rubrics_by_round? %>
      <% reviews = reviews.select{|response| response.round == round}.reverse.uniq{|response| response.map_id}.sort_by{|response| response.map_id} %>
  <%end%>
	<tr><th style="text-align:center;">&nbsp;</th>
		<% for i in 0...reviews.size%>
			<th style="text-align:center;"><%= collabel %>&nbsp;<%=i+1%>&nbsp;</th>
		<% end %>
	</tr>
	<% if controller.action_name != "view_my_scores" %>
	<tr class="head"><td align="right"><b><%= rowlabel %></b></td>	    	
		<% for review in reviews %>
           <td align="center">                       
           <% if prefix %>         
             <a href="#<%= prefix+"_"+review.map.reviewer.name %>"><%= review.map.reviewer.fullname %></a>&nbsp;<%=link_to image_tag("/assets/delete_icon.png", :border => 0), {:controller => 'response', :action => 'delete', :id => review.id, :return => 'instructor'} %>
		   <% else %>
		     <%= link_to review.map.reviewer.fullname, :controller=>ctrl, :action => caction, :id=> review.id%>
		   <% end %>
		   </td>	    
	    <% end %>
	</tr>
	<% end %>

	<tr class="head">
	<td align="right"><b>Average score</b></td>

		<% for review in reviews %>
		   <td align="center">
             <% score = Answer.get_total_score(:response => [review], :questions => @questions[symbol], :q_types => Array.new) %>

             <% if controller.action_name != "view_my_scores" %>
               <input type="hidden" id="mailer_<%= review.map.reviewer.fullname %>_grade" name="mailer[<%= review.map.reviewer.fullname %>_grade]" value="<%= score  %>">
             <% end %>
             <%if score==-1%>
               <%= sprintf("--") %>% &nbsp;
             <%else%>
               <%= sprintf("%.2f",score) %>% &nbsp;
             <%end%>
	  	   </td>
	    <% end %>
	</tr>
  &nbsp;
  <tr class="head">
    <td align="right"><b>Reputation</b></td>

    <% for review in reviews %>

        <td align="center">
            <%reputation = Participant.find(review.map.reviewer.id) %>

          <%if @assignment.lauw == true %>
              <p style = "
              <% if reputation.Lauw < 0.2 %>
                  background-color:red; width:20px;
                  <%elsif reputation.Lauw >= 0.2 && @participant.Lauw <= 0.4 %>
                  background-color:yellow; width:20px;
                  <%elsif  reputation.Lauw > 0.4 && @participant.Lauw <= 0.6 %>
                  background-color:orange; width:20px;
                  <%elsif  reputation.Lauw > 0.6 && @participant.Hamer <= 0.8   %>
                  background-color:lightgreen; width:20px;
                  <%else%>
                  background-color:green; width:20px;
                  <%end%>
              ">
            <%=reputation.Lauw%>
          <%else%>
              <p style = "
              <% if reputation.Hamer < 0.5 %>
                  background-color:red; width:20px;
                  <%elsif reputation.Hamer >= 0.5 && @participant.Hamer <= 1 %>
                  background-color:yellow; width:20px;
                  <%elsif  reputation.Hamer > 1 && @participant.Hamer <= 1.5 %>
                  background-color:orange; width:20px;
                  <%elsif  reputation.Hamer > 1.5 && @participant.Hamer <= 2   %>
                  background-color:lightgreen; width:20px;
                  <%else%>
                  background-color:green; width:20px;
                  <%end%>
              ">
            <%=reputation.Hamer%>
          <%end%>
        </td>
    <% end %>
  </tr>

</table>
{'fraction_non_alphanumeric': 0.2023198011599006, 'fraction_numerical': 0.012427506213753107, 'mean_word_length': 2.153605015673981, 'pattern_counts': {'":': 0, '<': 175, '<?xml version=': 0, '>': 195, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '6330730', 'n_tokens_mistral': 2223, 'n_tokens_neox': 1910, 'n_words': 347}