<commit_before><h2>Reviews for "<%= @assignment.name %>"</h2>

<!-- Added the feature to find the reviews and meta-reviews left for students by E1839 @<NAME> -->
<% if @assignment.num_reviews_allowed.nil? || @assignment.num_reviews_allowed == -1%>
    <h4>Your instructor expects you to do <%= @assignment.num_reviews_required %> reviews. You are not allowed to do any extra reviews. </h4>

<% elsif @assignment.num_reviews_allowed == @assignment.num_reviews_required %>
    <h4>You should perform exactly <%= @assignment.num_reviews_allowed %> reviews </h4>
<% else %>

    <h4>You may perform between <%= @assignment.num_reviews_required %> and <%= @assignment.num_reviews_allowed %> reviews</h4>
<% end %>
<h4>You are required to do <%= @assignment.num_reviews_required %> reviews</h4>
<h4> Number of reviews left: <%= @assignment.num_reviews_allowed - @num_reviews_completed %></h4>

<% if check_reviewable_topics(@assignment) or @assignment.get_current_stage(@topic_id) == "Finished" %>
    <%= render :partial => 'responses', :locals => {:mappings => @review_mappings, :title => 'Review'} %>
    <!-- Temporary fix for Staggered Deadline assignment issue preventing students from reviewing 04-23-19 -->
    <!-- We need to perform the same check, but on the topic that is being reviewed and not the topic that the reviewer wrote on -->
    <% if @assignment.staggered_deadline? or @assignment.number_of_current_round(@topic_id) == 1 or (@assignment.number_of_current_round(@topic_id) > 1 and @assignment.allow_selecting_additional_reviews_after_1st_round) %>
      <% if @assignment.dynamic_reviewer_assignment? %>
          <% if @num_reviews_in_progress >= Assignment.max_outstanding_reviews %>
              <br><br>
              <span>Note: You can't have more than 2 outstanding reviews. You must complete one of your outstanding reviews before selecting another.</span>
          <% elsif @assignment.num_reviews && @assignment.num_reviews >= 0 && @num_reviews_total >= @assignment.num_reviews%>
              <br><br>
              <span>Note: You can't do more than <%=@assignment.num_reviews%> reviews according to assignment policy.</span>
          <%else %>
            <%= render :partial => 'set_dynamic_review', :locals => {:assignment => @assignment, :participant => @participant} %>
          <% end %>

      <% end %>
    <% end %>
<% else %>
    <p><em>Reviews cannot be performed at this time</em></p ><commit_msg>Adding a quick change so I can merge the branches<commit_after><h2>Reviews for "<%= @assignment.name %>"</h2>

<!-- Added the feature to find the reviews and meta-reviews left for students by E1839 @<NAME> -->
<% if @assignment.num_reviews_allowed.nil? || @assignment.num_reviews_allowed == -1%>
    <h4>Your instructor expects you to do <%= @assignment.num_reviews_required %> reviews. You are not allowed to do any extra reviews. </h4>

<% elsif @assignment.num_reviews_allowed == @assignment.num_reviews_required %>
    <h4>You should perform exactly <%= @assignment.num_reviews_allowed %> reviews </h4>
<% else %>

    <h4>You may perform between <%= @assignment.num_reviews_required %> and <%= @assignment.num_reviews_allowed %> reviews</h4>
<% end %>
<h4>You are required to do <%= @assignment.num_reviews_required %> reviews</h4>
<h4> Number of reviews left: <%= @assignment.num_reviews_allowed - @num_reviews_completed %></h4>

<% if check_reviewable_topics(@assignment) or @assignment.get_current_stage(@topic_id) == "Finished" %>
    <%= @review_mappings.count %>
    <%= render :partial => 'responses', :locals => {:mappings => @review_mappings, :title => 'Review'} %>
    <!-- Temporary fix for Staggered Deadline assignment issue preventing students from reviewing 04-23-19 -->
    <!-- We need to perform the same check, but on the topic that is being reviewed and not the topic that the reviewer wrote on -->
    <% if @assignment.staggered_deadline? or @assignment.number_of_current_round(@topic_id) == 1 or (@assignment.number_of_current_round(@topic_id) > 1 and @assignment.allow_selecting_additional_reviews_after_1st_round) %>
      <% if @assignment.dynamic_reviewer_assignment? %>
          <% if @num_reviews_in_progress >= Assignment.max_outstanding_reviews %>
              <br><br>
              <span>Note: You can't have more than 2 outstanding reviews. You must complete one of your outstanding reviews before selecting another.</span>
          <% elsif @assignment.num_reviews && @assignment.num_reviews >= 0 && @num_reviews_total >= @assignment.num_reviews%>
              <br><br>
              <span>Note: You can't do more than <%=@assignment.num_reviews%> reviews according to assignment policy.</span>
          <%else %>
            <%= render :partial => 'set_dynamic_review', :locals => {:assignment => @assignment, :participant => @participant} %>
          <% end %>

      <% end %>
    <% end %>
<% else %>
    <p><em>Reviews cannot be performed at this time</em></p >
{'fraction_non_alphanumeric': 0.13746467501009285, 'fraction_numerical': 0.011303996770286637, 'mean_word_length': 4.0355691056910565, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 132, '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': '6255724', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1481, 'n_words': 412}