<commit_before><!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Rubyric
    <%= '- ' + @exercise.name if @exercise %>
  </title>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= yield(:javascript) %>
</head>

<body>

<%= render :template => 'layouts/top' %>

<div class="container-fluid">
  <div class="row-fluid">
    <!-- Left navigation -->
    <div class="span2 leftnavicolumn">
      <% if @course and !@course.new_record? %>
        <ul class="naviButtons">
          <li><%= link_to @course.name, course_path(@course) %></li>
          <% if @is_teacher || is_admin?(current_user) %>
            <ul>
              <li><%= link_to 'Settings', edit_course_path(@course) %></li>
            </ul>
          <% end %>
        </ul>

        <% if @course_instance and !@course_instance.new_record? %>
          <!-- Selected instance -->
          <ul class="naviButtons">
            <li><%= link_to @course_instance.name, course_instance_path(@course_instance) %></li>
            <% if @is_teacher || is_admin?(current_user) %>
              <ul>
                <li><%= link_to 'Settings', edit_course_instance_path(@course_instance) %></li>
              </ul>
            <% end %>
          </ul>

          <% if @exercise and !@exercise.new_record?%>
            <!-- Selected exercise -->
            <ul class="naviButtons">
              <li><%= link_to @exercise.name, exercise_path(@exercise) %></li>
              <% if @is_teacher || is_admin?(current_user) %>
                <ul>
                  <li><%= link_to 'Settings', edit_exercise_path(@exercise) %></li>
                  <li><%= link_to 'Rubric', edit_exercise_rubric_path(@exercise) %></li>
                  <li><%= link_to 'Submissions', exercise_path(@exercise) %></li>
                  <li><%= link_to 'Statistics', exercise_statistics_path(@exercise) %></li>
                  <li><%= link_to 'Results', exercise_results_path(@exercise) %></li>
                </ul>
              <% end %>
            </ul>
          <% else %>
            <!-- List of exercises-->
            <ul class="naviButtons">
              <li>Exercises</li>
              <% @course_instance.exercises.each do |exercise| %>
                <ul>
                  <li><%= link_to exercise.name, exercise_path(exercise) %></li>
                </ul>
              <% end %>
            </ul>
          <% end %>
        <% else %>
          <!-- List of instances -->
          <ul class="naviButtons">
            <li>Instances</li>
            <% @course.course_instances.each do |instance| %>
              <ul>
                <li><%= link_to instance.name, course_instance_path(instance) %></li>
              </ul>
            <% end %>
          </ul>
        <% end %>
      <% end %>
    </div>

    <!-- Content -->
    <div class="span8">
      <!-- Flash messages -->
      <% if flash[:warning] %>
        <p class="flash flashWarning"><%= flash[:warning] %></p>
      <% end %>

      <% if flash[:success] %>
        <p class="flash flashSuccess"><%= flash[:success] %></p>
      <% end %>

      <% if flash[:error] %>
        <p class="flash flashError"><%= flash[:error] %></p>
      <% end %>

      <%= yield  %>
    </div>

    <div class="span2 helpcolumn"><commit_msg>Adding icons to left navi menu<commit_after><!DOCTYPE html>
<html>
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Rubyric
    <%= '- ' + @exercise.name if @exercise %>
  </title>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag "application", :media => "all" %>
  <%= javascript_include_tag "application" %>
  <%= yield(:javascript) %>
</head>

<body>

<%= render :template => 'layouts/top' %>

<div class="container-fluid">
  <div class="row-fluid">
    <!-- Left navigation -->
    <div class="span2 leftnavicolumn">
        <% if @course and !@course.new_record? %>
          <ul class="nav nav-list">
            <li class="nav-header">Course</li>
            <li><%= link_to @course.name, course_path(@course) %></li>
            <% if @is_teacher || is_admin?(current_user) %>
              <li><%= link_to edit_course_path(@course) do %><i class="icon-wrench"></i> Settings<% end %></li>
            <% end %>


            <% if @course_instance and !@course_instance.new_record? %>
              <!-- Selected instance -->
              <li class="nav-header">Instance</li>
              <li><%= link_to @course_instance.name, course_instance_path(@course_instance) %></li>
              <% if @is_teacher || is_admin?(current_user) %>
                <li><%= link_to edit_course_instance_path(@course_instance) do %><i class="icon-wrench"></i> Settings<% end %></li>
              <% end %>

              <% if @exercise and !@exercise.new_record?%>
                <!-- Selected exercise -->
                <li class="nav-header">Exercise</li>
                <li><%= link_to @exercise.name, exercise_path(@exercise) %></li>
                <% if @is_teacher || is_admin?(current_user) %>
                  <li><%= link_to edit_exercise_path(@exercise) do %><i class="icon-wrench"></i> Settings<% end %></li>
                  <li><%= link_to edit_exercise_rubric_path(@exercise) do %><i class="icon-th-list"></i> Rubric<% end %></li>
                  <li><%= link_to exercise_path(@exercise) do %><i class="icon-folder-open"></i> Submissions<% end %></li>
                  <li><%= link_to exercise_statistics_path(@exercise) do %><i class="icon-tasks"></i> Statistics<% end %></li>
                  <li><%= link_to exercise_results_path(@exercise) do %><i class="icon-list-alt"></i> Results<% end %></li>
                <% end %>
              <% else %>
                <!-- List of exercises-->
                <li class="nav-header">Exercises</li>
                <% @course_instance.exercises.each do |exercise| %>
                  <li><%= link_to exercise.name, exercise_path(exercise) %></li>
                <% end %>
              <% end %>
            <% else %>
              <!-- List of instances -->
              <li class="nav-header">Instances</li>
              <% @course.course_instances.each do |instance| %>
                <ul>
                  <li><%= link_to instance.name, course_instance_path(instance) %></li>
                </ul>
              <% end %>
            <% end %>

          </ul>
        <% end %>

      </ul> <!-- / nav nav-list -->
    </div> <!-- / left column -->

    <!-- Content -->
    <div class="span8">
      <!-- Flash messages -->
      <% if flash[:warning] %>
        <p class="flash flashWarning"><%= flash[:warning] %></p>
      <% end %>

      <% if flash[:success] %>
        <p class="flash flashSuccess"><%= flash[:success] %></p>
      <% end %>

      <% if flash[:error] %>
        <p class="flash flashError"><%= flash[:error] %></p>
      <% end %>

      <%= yield  %>
    </div>

    <div class="span2 helpcolumn">
{'fraction_non_alphanumeric': 0.19157685762904142, 'fraction_numerical': 0.0011344299489506524, 'mean_word_length': 1.9572327044025157, 'pattern_counts': {'":': 0, '<': 261, '<?xml version=': 0, '>': 265, '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': '5510672', 'n_tokens_mistral': 2343, 'n_tokens_neox': 2092, 'n_words': 432}