<commit_before><%
  js_bundle :speed_grader
  css_bundle :speed_grader
  js_env({
    :RUBRIC_ASSESSMENT => {
      :assessor_id => @current_user.id.to_s,
      :assessment_type => can_do(@assignment, @current_user, :grade) ? "grading" : "peer_review"
    }
  })
  @show_left_side = false
  @show_embedded_chat = false
  @body_classes << 'ic-no-flex-layout full-width'
  @can_edit_anything = !@context.completed?
%>
<% content_for :page_title, t(:page_title, "%{assignment_name}, SpeedGrader, %{course_name}", :assignment_name => @assignment.title, :course_name => @context.name) %>
<h4 id="speed_grader_loading">
  <%= t(:loading, "loading...") %>
</h4>
<h1 class="screenreader-only"><%= t('page_header_title', "SpeedGrader") %></h1>
<div id=gradebook_header_container><div id="gradebook_header" style="display:none;">
  <%= form_tag({ :controller => :gradebooks, :course_id => @context.id, :action => :update_submission }) do %>
    <div class="left">
      <% if service_enabled?(:avatars) %>
         <div id="avatar">
          <img src="/images/blank.png" id="avatar_image" alt=""/>
        </div>
      <% end %>
      <a href="#" class="prev"><%= t('links.previous', "Previous") %></a>
      <div id="combo_box_container"></div>
      <a href="#" class="next"><%= t('links.next', "Next") %></a>
      <div id='x_of_x_students'>
        <span id='x_of_x_students_frd'></span><br>
        <a href="<%= polymorphic_url([@context, 'gradebook']) %>" id="speed_grader_gradebook_link">
          <%= t('links.gradebook', "Gradebook") %>
        </a>
        <a href="<%= context_url(@context, :context_url) %>"><%= t('links.course_home', "Course Home") %></a>
      </div>
    </div>
    <div class="right">
      <a data-muted="<%= @assignment.muted? ? "true" : "false" %>" id="mute_link" href="#"><span class="ui-icon ui-icon-volume-<%= @assignment.muted? ? "on" : "off" %>"></span><span class=mute_label><%= @assignment.muted? ? t("gradebook.unmute_assignment", "Unmute Assignment") : t("gradebook.mute_assignment", "Mute Assignment") %></span></a>
      <a id="settings_link" href="#"><span class="ui-icon ui-icon-wrench"></span><%= t('links.settings', "Settings") %></a>
      <% if help_link %>
        | <%= help_link %>
      <% end %>
      <div>
        <span id="x_of_x_graded"></span>
        <span id='average_score_wrapper' style='display:none; padding-left: 10px;'><%= before_label(:average, "Avg") %> <span id='average_score'>0.0</span></span>
      </div>
    </div>
    <div class='center'>
      <a id="assignment_url" href="<%= context_url(@context, :context_assignment_url, @assignment.id) %>"><%= @assignment.title %></a>
      (<span id="context_title" ><%= @context.short_name %></span>)
      <div class="due_at"><%= translated_due_date(@assignment) %></div>
    </div>
  <% end %>
</div></div>
<div id="moderation_bar">
  <div id="moderation_bar_content">
    <div id="moderation_tabs" class="ui-tabs-minimal">
      <ul>
        <li data-pg-index="0"><a href="#dummy_container">
          <span class="mark_title"><%= t('1st Reviewer') %></span>
          <span class="mark_grade"></span>
        </a></li>
        <li data-pg-index="1"><a href="#dummy_container">
          <span class="mark_title"><%= t('2nd Reviewer') %></span>
          <span class="mark_grade"></span>
        </a></li>
        <li data-pg-index="final"><a href="#dummy_container">
          <span class="mark_title"><%= t('Moderator') %></span>
          <span class="mark_grade"></span>
        </a></li>
      </ul>
      <div id="dummy_container"></div>
    </div>
    <div id="new_mark_container" class="inline-block al-dropdown__container">
      <a id="new_mark_dropdown_link" href="#dummy_container" class="al-trigger" data-popup-within="#iframe_holder" tabindex="0">
        <%= t('Add Review') %>
        <i class="icon-mini-arrow-down"></i>
      </a>
      <ul id="new_mark_dropdown" class="al-options" role="menu" tabindex="0" aria-hidden="true" aria-expanded="false" aria-activedescendant="new_mark_dropdown_link1">
        <li role="presentation">
          <a href="#" id="new_mark_link" tabindex="-1" role="menuitem"><%= t('Add 2nd Review') %></a>
        </li>
        <li role="presentation">
          <a href="#" id="new_mark_final_link" tabindex="-1" role="menuitem"><%= t('Add Moderator Review (New)') %></a>
        </li>
        <li role="presentation">
          <a href="#" id="new_mark_copy_link1" tabindex="-1" role="menuitem"><%= t('Add Moderator Review (Copy 1st)') %></a>
        </li>
        <li role="presentation">
          <a href="#" id="new_mark_copy_link2" tabindex="-1" role="menuitem"><%= t('Add Moderator Review (Copy 2nd)') %></a>
        </li>
      </ul>
    </div>
  </div>
</div>
<div id="full_width_container" style="display:none">
  <div id="left_side" class="full_height">
    <div id="left_side_inner">
      <div id="no_annotation_warning" class="alert speedgrader_alert">
        <a class="dismiss_alert close" href="#">×</a>
        <%= t :no_annotation, "Annotations are not available for this document" %><commit_msg>fix moderated grading dropdown<commit_after><%
  js_bundle :speed_grader
  css_bundle :speed_grader
  js_env({
    :RUBRIC_ASSESSMENT => {
      :assessor_id => @current_user.id.to_s,
      :assessment_type => can_do(@assignment, @current_user, :grade) ? "grading" : "peer_review"
    }
  })
  @show_left_side = false
  @show_embedded_chat = false
  @body_classes << 'ic-no-flex-layout full-width'
  @can_edit_anything = !@context.completed?
%>
<% content_for :page_title, t(:page_title, "%{assignment_name}, SpeedGrader, %{course_name}", :assignment_name => @assignment.title, :course_name => @context.name) %>
<h4 id="speed_grader_loading">
  <%= t(:loading, "loading...") %>
</h4>
<h1 class="screenreader-only"><%= t('page_header_title', "SpeedGrader") %></h1>
<div id=gradebook_header_container><div id="gradebook_header" style="display:none;">
  <%= form_tag({ :controller => :gradebooks, :course_id => @context.id, :action => :update_submission }) do %>
    <div class="left">
      <% if service_enabled?(:avatars) %>
         <div id="avatar">
          <img src="/images/blank.png" id="avatar_image" alt=""/>
        </div>
      <% end %>
      <a href="#" class="prev"><%= t('links.previous', "Previous") %></a>
      <div id="combo_box_container"></div>
      <a href="#" class="next"><%= t('links.next', "Next") %></a>
      <div id='x_of_x_students'>
        <span id='x_of_x_students_frd'></span><br>
        <a href="<%= polymorphic_url([@context, 'gradebook']) %>" id="speed_grader_gradebook_link">
          <%= t('links.gradebook', "Gradebook") %>
        </a>
        <a href="<%= context_url(@context, :context_url) %>"><%= t('links.course_home', "Course Home") %></a>
      </div>
    </div>
    <div class="right">
      <a data-muted="<%= @assignment.muted? ? "true" : "false" %>" id="mute_link" href="#"><span class="ui-icon ui-icon-volume-<%= @assignment.muted? ? "on" : "off" %>"></span><span class=mute_label><%= @assignment.muted? ? t("gradebook.unmute_assignment", "Unmute Assignment") : t("gradebook.mute_assignment", "Mute Assignment") %></span></a>
      <a id="settings_link" href="#"><span class="ui-icon ui-icon-wrench"></span><%= t('links.settings', "Settings") %></a>
      <% if help_link %>
        | <%= help_link %>
      <% end %>
      <div>
        <span id="x_of_x_graded"></span>
        <span id='average_score_wrapper' style='display:none; padding-left: 10px;'><%= before_label(:average, "Avg") %> <span id='average_score'>0.0</span></span>
      </div>
    </div>
    <div class='center'>
      <a id="assignment_url" href="<%= context_url(@context, :context_assignment_url, @assignment.id) %>"><%= @assignment.title %></a>
      (<span id="context_title" ><%= @context.short_name %></span>)
      <div class="due_at"><%= translated_due_date(@assignment) %></div>
    </div>
  <% end %>
</div></div>
<div id="moderation_bar">
  <div id="moderation_bar_content">
    <div id="moderation_tabs" class="ui-tabs-minimal">
      <ul>
        <li data-pg-index="0"><a href="#dummy_container">
          <span class="mark_title"><%= t('1st Reviewer') %></span>
          <span class="mark_grade"></span>
        </a></li>
        <li data-pg-index="1"><a href="#dummy_container">
          <span class="mark_title"><%= t('2nd Reviewer') %></span>
          <span class="mark_grade"></span>
        </a></li>
        <li data-pg-index="final"><a href="#dummy_container">
          <span class="mark_title"><%= t('Moderator') %></span>
          <span class="mark_grade"></span>
        </a></li>
      </ul>
      <div id="dummy_container"></div>
    </div>
    <div id="new_mark_container">
      <a id="new_mark_dropdown_link" href="#dummy_container" class="al-trigger" data-popup-within="#full_width_container" tabindex="0">
        <%= t('Add Review') %>
        <i class="icon-mini-arrow-down"></i>
      </a>
      <ul id="new_mark_dropdown" class="al-options" role="menu" tabindex="0" aria-hidden="true" aria-expanded="false" aria-activedescendant="new_mark_dropdown_link1">
        <li role="presentation">
          <a href="#" id="new_mark_link" tabindex="-1" role="menuitem"><%= t('Add 2nd Review') %></a>
        </li>
        <li role="presentation">
          <a href="#" id="new_mark_final_link" tabindex="-1" role="menuitem"><%= t('Add Moderator Review (New)') %></a>
        </li>
        <li role="presentation">
          <a href="#" id="new_mark_copy_link1" tabindex="-1" role="menuitem"><%= t('Add Moderator Review (Copy 1st)') %></a>
        </li>
        <li role="presentation">
          <a href="#" id="new_mark_copy_link2" tabindex="-1" role="menuitem"><%= t('Add Moderator Review (Copy 2nd)') %></a>
        </li>
      </ul>
    </div>
  </div>
</div>
<div id="full_width_container" style="display:none">
  <div id="left_side" class="full_height">
    <div id="left_side_inner">
      <div id="no_annotation_warning" class="alert speedgrader_alert">
        <a class="dismiss_alert close" href="#">×</a>
        <%= t :no_annotation, "Annotations are not available for this document" %>
{'fraction_non_alphanumeric': 0.21664034741413343, 'fraction_numerical': 0.00473746545598105, 'mean_word_length': 3.717411545623836, 'pattern_counts': {'":': 0, '<': 317, '<?xml version=': 0, '>': 329, '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': '7138574', 'n_tokens_mistral': 3690, 'n_tokens_neox': 3525, 'n_words': 649}