<commit_before><div id="student_selector">
<span class="left">
  <% if !previous_grouping.nil?%>
    <%= link_to "Previous Submission", :action => 'next_grouping', :id => previous_grouping.id %>
  <% else %>
     <span class="disable"> Previous Submission </span>
  <% end %>
</span>
  <span class="middle">
  	<%= link_to_remote "Notes", 
	:url => { :controller => 'note' , :action => 'notes_dialog', :id => @result.id, :noteable_id => group.grouping_ids, :noteable_type => 'Grouping' , :action_to => 'note_message', :controller_to => 'results'} %> 
	|
    <%= h(group.group_name)%> 
    
    (Marking Status: 
     <%=  select_tag "marking_state", options_for_select(["unmarked", "partial", "complete"],[result.marking_state]), :disabled => @result.released_to_students %>
     <%= observe_field :marking_state, :url => {:controller => 'results', :action => 'update_marking_state', :id => result.id}, :on => 'changed', :with => "value"%>
    
    <em>Total Mark:</em>
    <span id="current_mark_div"><%= h(result.total_mark) %></span> / 
    <span id="total_mark_div"><%= h(assignment.total_mark) %></span>)
   <% if @current_user.admin? %>
     | Released:
        <%= check_box_tag "released", true, result.released_to_students, :disabled => result.marking_state != Result::MARKING_STATES[:complete] %>
        <%= observe_field :released, :url => {:controller => 'results', :action => 'set_released_to_students', :id => result.id}, :on => 'changed', :success => "window.onbeforeunload=null;",:with => "value" %>
     |
    <% end %>
  </span> 
  
  <span class="right">

<% if !next_grouping.nil? %>
   <%= link_to "Next Submission", :action => 'next_grouping', :id => @next_grouping.id%>
<% else %><commit_msg>Should have passed in assignment id not the result id.<commit_after><div id="student_selector">
<span class="left">
  <% if !previous_grouping.nil?%>
    <%= link_to "Previous Submission", :action => 'next_grouping', :id => previous_grouping.id %>
  <% else %>
     <span class="disable"> Previous Submission </span>
  <% end %>
</span>
  <span class="middle">
  	<%= link_to_remote "Notes", 
	:url => { :controller => 'note' , :action => 'notes_dialog', :id => @grouping.assignment_id, :noteable_id => group.grouping_ids, :noteable_type => 'Grouping' , :action_to => 'note_message', :controller_to => 'results'} %> 
	|
    <%= h(group.group_name)%> 
    
    (Marking Status: 
     <%=  select_tag "marking_state", options_for_select(["unmarked", "partial", "complete"],[result.marking_state]), :disabled => @result.released_to_students %>
     <%= observe_field :marking_state, :url => {:controller => 'results', :action => 'update_marking_state', :id => result.id}, :on => 'changed', :with => "value"%>
    
    <em>Total Mark:</em>
    <span id="current_mark_div"><%= h(result.total_mark) %></span> / 
    <span id="total_mark_div"><%= h(assignment.total_mark) %></span>)
   <% if @current_user.admin? %>
     | Released:
        <%= check_box_tag "released", true, result.released_to_students, :disabled => result.marking_state != Result::MARKING_STATES[:complete] %>
        <%= observe_field :released, :url => {:controller => 'results', :action => 'set_released_to_students', :id => result.id}, :on => 'changed', :success => "window.onbeforeunload=null;",:with => "value" %>
     |
    <% end %>
  </span> 
  
  <span class="right">

<% if !next_grouping.nil? %>
   <%= link_to "Next Submission", :action => 'next_grouping', :id => @next_grouping.id%>
<% else %>
{'fraction_non_alphanumeric': 0.20625358577165806, 'fraction_numerical': 0.0, 'mean_word_length': 4.56140350877193, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 119, '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': '3134855', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1181, 'n_words': 231}