<commit_before><div id="task_box">
  <ul id="left_nav">
    <li><%= link_to "Home", root_url%></li>
    <%if session[:user_object].allowed? "authorizations", "sidebar" %>
    <li><a href="#">Manage Authorizations</a>
      <ul>
        <%if session[:user_object].allowed? "authorizations", "index" %>
          <li><%= link_to "Authorizations", :controller => "authorizations", :action => "index" %></li>
        <%end%>  
        <%if session[:user_object].allowed? "ca_managements", "index" %>
          <li><%= link_to "Controllers/Actions", :controller => "ca_managements", :action => "index" %></li>
        <%end%>  
        <%if session[:user_object].allowed? "service_roles", "index" %>
          <li><%= link_to "Service Role Management", :controller => "service_roles", :action => "index" %></li>
        <%end%>
      </ul>
    <%end%>
    <%if session[:user_object].allowed? "enrollments", "sidebar" %>
    <li><a href="#">Manage Enrollments</a>
      <ul>
        <li><%= link_to "Course Instructors", section_roles_url(:enrollment => 'instructors') %></li>
        <li><%= link_to "Guest Instructors", section_roles_url(:enrollment => 'designers')%></li>
        <li><%= link_to "Teaching Assistants/Graders", section_roles_url(:enrollment => 'graders')%></li>
        <li><%= link_to "Students", section_roles_url(:enrollment => 'students') %></li>
      </ul>
    </li>
    <%end%>
    <%if session[:user_object].allowed? "courses", "sidebar" %>
	  <li><a href="#">Manage Courses</a>
      <ul>
        <%if session[:user_object].allowed? "sections", "prep_index" %>
      	 <li><%= link_to "Create/Delete Prep Areas", :controller => "sections", :action => "prep_index",:prep => 'Prep'%></li>
        <%end%>
        <%if session[:user_object].allowed? "sections", "index" %>
      	 <li><%= link_to "Create/Delete Course", :controller => "sections", :action => "index" %></li>
        <%end%>
        <%if session[:user_object].allowed? "sections", "enable_index" %>
      	 <li><%= link_to "Enable Blackboard Learn Course", :controller => "sections", :action => "enable_index" %></li>
        <%end%>
        <li><%= link_to "Reset Course", :controller => "sections", :action => "reset_index" %></li>
      </ul>
    </li>
    <%end%>
    <%if session[:user_object].allowed? "help_desk", "sidebar" %>
    <li><a href="#">Help Desk</a>
      <ul>
        <%if session[:user_object].allowed? "tlp_admin", "index" %>
          <li><%= link_to "Edit HTML/CSS", :controller => "tlp_admin", :action => "index" %></li>
        <%end%>

        <%if session[:user_object].allowed? "institution_roles", "index" %>
          <li><%= link_to "Institution Role Listings", :controller => "institution_roles", :action => "index", :role => "lrncrt" %></li>
        <%end%>
      </ul>
    </li>
    <%end%>
    <%if session[:user_object].allowed? "sso", "sidebar" %>
	   <li><%= link_to "Single Signon", :controller => "sso", :action => "index" %></li>
    <%end%>
    <%if session[:user_object].allowed? "logs", "sidebar" %>
      <li><%= link_to "View Logs", :controller => "logs", :action => "index" %></li>
    <%end%>
    <%if session[:user_object].allowed? "tpextract", "sidebar" %>
      <li><%= link_to 'TurningPoint Extract', :controller=>'tpextract', :action => "index" %></li>
    <%end%>
  </ul>
</div>

<commit_msg>Do not display reset course on menu if user is not an admin<commit_after><div id="task_box">
  <ul id="left_nav">
    <li><%= link_to "Home", root_url%></li>
    <%if session[:user_object].allowed? "authorizations", "sidebar" %>
    <li><a href="#">Manage Authorizations</a>
      <ul>
        <%if session[:user_object].allowed? "authorizations", "index" %>
          <li><%= link_to "Authorizations", :controller => "authorizations", :action => "index" %></li>
        <%end%>  
        <%if session[:user_object].allowed? "ca_managements", "index" %>
          <li><%= link_to "Controllers/Actions", :controller => "ca_managements", :action => "index" %></li>
        <%end%>  
        <%if session[:user_object].allowed? "service_roles", "index" %>
          <li><%= link_to "Service Role Management", :controller => "service_roles", :action => "index" %></li>
        <%end%>
      </ul>
    <%end%>
    <%if session[:user_object].allowed? "enrollments", "sidebar" %>
    <li><a href="#">Manage Enrollments</a>
      <ul>
        <li><%= link_to "Course Instructors", section_roles_url(:enrollment => 'instructors') %></li>
        <li><%= link_to "Guest Instructors", section_roles_url(:enrollment => 'designers')%></li>
        <li><%= link_to "Teaching Assistants/Graders", section_roles_url(:enrollment => 'graders')%></li>
        <li><%= link_to "Students", section_roles_url(:enrollment => 'students') %></li>
      </ul>
    </li>
    <%end%>
    <%if session[:user_object].allowed? "courses", "sidebar" %>
	  <li><a href="#">Manage Courses</a>
      <ul>
        <%if session[:user_object].allowed? "sections", "prep_index" %>
      	 <li><%= link_to "Create/Delete Prep Areas", :controller => "sections", :action => "prep_index",:prep => 'Prep'%></li>
        <%end%>
        <%if session[:user_object].allowed? "sections", "index" %>
      	 <li><%= link_to "Create/Delete Course", :controller => "sections", :action => "index" %></li>
        <%end%>
        <%if session[:user_object].allowed? "sections", "enable_index" %>
      	 <li><%= link_to "Enable Blackboard Learn Course", :controller => "sections", :action => "enable_index" %></li>
        <%end%>
        <%if session[:user_object].allowed? "authorizations", "sidebar" %>
        <li><%= link_to "Reset Course", :controller => "sections", :action => "reset_index" %></li>
        <%end%>
      </ul>
    </li>
    <%end%>
    <%if session[:user_object].allowed? "help_desk", "sidebar" %>
    <li><a href="#">Help Desk</a>
      <ul>
        <%if session[:user_object].allowed? "tlp_admin", "index" %>
          <li><%= link_to "Edit HTML/CSS", :controller => "tlp_admin", :action => "index" %></li>
        <%end%>

        <%if session[:user_object].allowed? "institution_roles", "index" %>
          <li><%= link_to "Institution Role Listings", :controller => "institution_roles", :action => "index", :role => "lrncrt" %></li>
        <%end%>
      </ul>
    </li>
    <%end%>
    <%if session[:user_object].allowed? "sso", "sidebar" %>
	   <li><%= link_to "Single Signon", :controller => "sso", :action => "index" %></li>
    <%end%>
    <%if session[:user_object].allowed? "logs", "sidebar" %>
      <li><%= link_to "View Logs", :controller => "logs", :action => "index" %></li>
    <%end%>
    <%if session[:user_object].allowed? "tpextract", "sidebar" %>
      <li><%= link_to 'TurningPoint Extract', :controller=>'tpextract', :action => "index" %></li>
    <%end%>
  </ul>
</div>


{'fraction_non_alphanumeric': 0.22620973672598912, 'fraction_numerical': 0.0, 'mean_word_length': 3.473684210526316, 'pattern_counts': {'":': 0, '<': 221, '<?xml version=': 0, '>': 281, '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': '1773243', 'n_tokens_mistral': 2444, 'n_tokens_neox': 2289, 'n_words': 507}