<commit_before><% if @current_user.admin? %>
  <% if (controller.controller_name == 'assignments' &&
         controller.action_name != 'index' &&
         controller.action_name != 'new' &&
         controller.action_name != 'batch_runs' &&
         controller.action_name != 'summary') ||
        controller.controller_name == 'criteria' ||
        controller.controller_name == 'annotation_categories' ||
        controller.controller_name == 'tags' ||
        controller.controller_name == 'automated_tests' ||
        controller.controller_name == 'exam_templates' %>

    <ul class='sub_sub'>
      <% if !@assignment.nil? && !@assignment.id.nil? %>
        <% if controller.controller_name != 'assignments' ||
              (controller.controller_name == 'assignments' &&
               controller.action_name != 'new' ) %>
          <li class='<%= "active" if controller.controller_name == 'assignments' %>'>
            <%= link_to t('menu.properties'), edit_assignment_path(@assignment) %>
          </li>
          <li class='<%= "active" if controller.controller_name == 'tags' %>'>
            <%= link_to Tag.model_name.human.pluralize,
                        assignment_tags_path(@assignment) %>
          </li>
          <li <% if controller.controller_name == 'criteria'%>
              class='active'
              <% end %>>
            <%= link_to MarkingScheme.model_name.human.pluralize,
                        assignment_criteria_path(@assignment.id) %>
          </li>
          <li class='<%= "active" if controller.controller_name == 'annotation_categories' %>'>
            <%= link_to Annotation.model_name.human.pluralize,<commit_msg>menu: Fix heading for Criteria in assignments submenu.<commit_after><% if @current_user.admin? %>
  <% if (controller.controller_name == 'assignments' &&
         controller.action_name != 'index' &&
         controller.action_name != 'new' &&
         controller.action_name != 'batch_runs' &&
         controller.action_name != 'summary') ||
        controller.controller_name == 'criteria' ||
        controller.controller_name == 'annotation_categories' ||
        controller.controller_name == 'tags' ||
        controller.controller_name == 'automated_tests' ||
        controller.controller_name == 'exam_templates' %>

    <ul class='sub_sub'>
      <% if !@assignment.nil? && !@assignment.id.nil? %>
        <% if controller.controller_name != 'assignments' ||
              (controller.controller_name == 'assignments' &&
               controller.action_name != 'new' ) %>
          <li class='<%= "active" if controller.controller_name == 'assignments' %>'>
            <%= link_to t('menu.properties'), edit_assignment_path(@assignment) %>
          </li>
          <li class='<%= "active" if controller.controller_name == 'tags' %>'>
            <%= link_to Tag.model_name.human.pluralize,
                        assignment_tags_path(@assignment) %>
          </li>
          <li <% if controller.controller_name == 'criteria'%>
              class='active'
              <% end %>>
            <%= link_to Criterion.model_name.human.pluralize,
                        assignment_criteria_path(@assignment.id) %>
          </li>
          <li class='<%= "active" if controller.controller_name == 'annotation_categories' %>'>
            <%= link_to Annotation.model_name.human.pluralize,
{'fraction_non_alphanumeric': 0.1508761508761509, 'fraction_numerical': 0.0, 'mean_word_length': 2.4901554404145076, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 43, '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': '5923459', 'n_tokens_mistral': 971, 'n_tokens_neox': 926, 'n_words': 154}