<commit_before><h1>Dashboard</h1>
<% @semesters.each do |semester| %>
  <table>
    <caption><%= semester.academic_term %> <%= semester.academic_year %></caption>
    <tr>
      <th>Class</th>
      <th>Professor</th>
      <th>Interest</th>
    </tr>
    <% semester.offering.each do |offering| %>
      <tr>
        <td><%= offering.course.course_number %></td>
        <td><%= offering.professor %></td>
        <td>x/<%= offering.capacity %></td>
      </tr>
    <% end %>
  </table>
<% end %>
<br/>
<br/>

<h3>New Semester</h3>
<%= form_tag() do %>
  <%= label_tag(:year, "School Year:") %>
  <%= text_field_tag(:year) %><br/>
  <%= label_tag(:term, "Term:") %>
  <%= text_field_tag(:term) %><br/>
  <%= hidden_field_tag(:request, "newSemester") %>
  <%= submit_tag("New Semester") %>
<% end %>
<br/>
  
<h3>New Course</h3>
<%= form_tag() do %>
  <%= label_tag(:course_number, "Course Number:") %>
  <%= text_field_tag(:course_number) %><br/>
  <%= label_tag(:title, "Title:") %>
  <%= text_field_tag(:title) %><br/>
  <%= label_tag(:description, "Description:") %>
  <%= text_field_tag(:description) %><br/>
  <%= check_box_tag(:required, true) %>
  <%= label_tag(:required, "Course is required") %><br/>
  <%= hidden_field_tag(:request, "newCourse") %>
  <%= submit_tag("New Course") %>
<% end %>
<br/> 

<h3>New Offering</h3>
<%= form_tag() do %>
  <%= label_tag(:professor, "Professor:") %>
  <%= text_field_tag(:professor) %><br/>
  <%= label_tag(:time, "Time:") %>
  <%= text_field_tag(:time) %><br/>
  <%= label_tag(:capacity, "Capacity:") %>
  <%= number_field_tag(:capacity, 25, min: 0, step: 1) %><br/>
  <%= label_tag(:course, "Course:") %>
  <%= collection_select(nil, :course, Course.order(:course_number), :id, :title)%><br/>
  <%= label_tag(:semester, "Semester:") %>
  <%= collection_select(nil, :semester, Semester.order(:academic_year), :id, :getName)%><br/>
  <%= hidden_field_tag(:request, "newOffering") %><commit_msg>make dashboard into two colums<commit_after><h1>Dashboard</h1>
<% semesterCount = 1 %>
<% @semesters.each do |semester| %>
  <table>
    <caption><h3><%= semester.academic_term %> <%= semester.academic_year %></h3></caption>
    <tr>
      <th>Class</th>
      <th>Professor</th>
      <th>Interest</th>
    </tr>
    <% semester.offering.each do |offering| %>
      <tr>
        <td><%= offering.course.course_number %></td>
        <td><%= offering.professor %></td>
        <td>x/<%= offering.capacity %></td>
      </tr>
    <% end %>
  </table>
  <% if semesterCount % 2 == 0 %>
    <br/>
    <br/>
  <% end; semesterCount += 1 %>
<% end %>
<br/>
<br/>

<h3>New Semester</h3>
<%= form_tag() do %>
  <%= label_tag(:year, "School Year:") %>
  <%= text_field_tag(:year) %><br/>
  <%= label_tag(:term, "Term:") %>
  <%= text_field_tag(:term) %><br/>
  <%= hidden_field_tag(:request, "newSemester") %>
  <%= submit_tag("New Semester") %>
<% end %>
<br/>

<h3>New Course</h3>
<%= form_tag() do %>
  <%= label_tag(:course_number, "Course Number:") %>
  <%= text_field_tag(:course_number) %><br/>
  <%= label_tag(:title, "Title:") %>
  <%= text_field_tag(:title) %><br/>
  <%= label_tag(:description, "Description:") %>
  <%= text_field_tag(:description) %><br/>
  <%= check_box_tag(:required, true) %>
  <%= label_tag(:required, "Course is required") %><br/>
  <%= hidden_field_tag(:request, "newCourse") %>
  <%= submit_tag("New Course") %>
<% end %>
<br/>

<h3>New Offering</h3>
<%= form_tag() do %>
  <%= label_tag(:professor, "Professor:") %>
  <%= text_field_tag(:professor) %><br/>
  <%= label_tag(:time, "Time:") %>
  <%= text_field_tag(:time) %><br/>
  <%= label_tag(:capacity, "Capacity:") %>
  <%= number_field_tag(:capacity, 25, min: 0, step: 1) %><br/>
  <%= label_tag(:course, "Course:") %>
  <%= collection_select(nil, :course, Course.order(:course_number), :id, :title)%><br/>
  <%= label_tag(:semester, "Semester:") %>
  <%= collection_select(nil, :semester, Semester.order(:academic_year), :id, :getName)%><br/>
  <%= hidden_field_tag(:request, "newOffering") %>
{'fraction_non_alphanumeric': 0.2556577965680179, 'fraction_numerical': 0.0074608306391444916, 'mean_word_length': 4.306068601583114, 'pattern_counts': {'":': 0, '<': 178, '<?xml version=': 0, '>': 178, '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': '5427372', 'n_tokens_mistral': 1751, 'n_tokens_neox': 1530, 'n_words': 253}