<commit_before>  <% form_tag({}, {:name => "student_search_form"}) do %>
    <fieldset>
      <div class="form_row">
        <label for="search_criteria_grade" class="fake_label">Grade</label>
        <%= select(:search_criteria,:grade,@grades) %>
        <%= observe_field 'search_criteria_grade', :url => grade_search_students_path ,:with=>'grade'%>
      </div>
      <div class="form_row">
        <label for="search_criteria_user_id" class="fake_label">Group Member</label>
        <%= collection_select(:search_criteria,:user_id,@users,:id,:fullname ) %>
        <%= observe_field 'search_criteria_user_id', :url => member_search_students_path, 
          :with=>"'user=' +escape(value) + '&grade=' + escape($('search_criteria_grade').value)" %>
      </div>
      <div class="form_row">
        <label for="search_criteria_group_id" class="fake_label">Student Group</label>
        <%= collection_select(:search_criteria,:group_id,@groups,:id,:title) %>
      </div>
      <div class="form_row">
        <label for="search_criteria_last_name" class="fake_label">Last Name</label>
        <%= text_field(:search_criteria, :last_name) %> 
        <%=help_popup("Put in the beginning of the last name you want to search.   This can now be combined with the other search options.")  %>
      </div>
      <div class="form_row">
        <div id="student_fake_left" class="fake_label">
          Select Student(s) by
        </div>
        <div id="#student_fake_right">
  	  <%= radio_button_tag('search_criteria[search_type]', :list_all, :checked => true) %><label for="search_criteria_search_type_list_all">List all students</label><br />
          <%= radio_button_tag('search_criteria[search_type]', :flagged_intervention) %><label for="search_criteria_search_type_flagged_intervention">List only students flagged for intervention</label>
          <%=help_popup("You can limit your selection by checking the flags you want.     Clicking Ignore or Custom will limit you to ignored/custom flags, clicking the other flags will only show those that are checked.")  %> 
          <div class="small_bump_right">
            <%= flag_select  %> 
          </div>
          <%= radio_button_tag('search_criteria[search_type]', :active_intervention) %><label for="search_criteria_search_type_active_intervention">List only students in an active intervention</label>
          <div class = "small_bump_right">
           <%= active_intervention_select %> 
         </div>
          <%= radio_button_tag('search_criteria[search_type]', :no_intervention) %><label for="search_criteria_search_type_no_intervention">List only students not in an active intervention</label>
        </div>
      </div>
      <br clear ="both" />
      <div class ="form_row">
        <%= submit_tag "Search for Students", :name => 'search', :class=> "submit" %>
      </div><commit_msg>Fix label for search<commit_after>  <% form_tag({}, {:name => "student_search_form"}) do %>
    <fieldset>
      <div class="form_row">
        <label for="search_criteria_grade" class="fake_label">Grade</label>
        <%= select(:search_criteria,:grade,@grades) %>
        <%= observe_field 'search_criteria_grade', :url => grade_search_students_path ,:with=>'grade'%>
      </div>
      <div class="form_row">
        <label for="search_criteria_user_id" class="fake_label">Group Member</label>
        <%= collection_select(:search_criteria,:user_id,@users,:id,:fullname ) %>
        <%= observe_field 'search_criteria_user_id', :url => member_search_students_path, 
          :with=>"'user=' +escape(value) + '&grade=' + escape($('search_criteria_grade').value)" %>
      </div>
      <div class="form_row">
        <label for="search_criteria_group_id" class="fake_label">Student Group</label>
        <%= collection_select(:search_criteria,:group_id,@groups,:id,:title) %>
      </div>
      <div class="form_row">
        <label for="search_criteria_last_name" class="fake_label">Last Name</label>
        <%= text_field(:search_criteria, :last_name) %> 
        <%=help_popup("Put in the beginning of the last name you want to search.   This can now be combined with the other search options.")  %>
      </div>
      <div class="form_row">
        <div id="student_fake_left" class="fake_label">
          Select <br /> Student(s) by
        </div>
        <div id="#student_fake_right">
  	  <%= radio_button_tag('search_criteria[search_type]', :list_all, :checked => true) %><label for="search_criteria_search_type_list_all">List all students</label><br />
          <%= radio_button_tag('search_criteria[search_type]', :flagged_intervention) %><label for="search_criteria_search_type_flagged_intervention">List only students flagged for intervention</label>
          <%=help_popup("You can limit your selection by checking the flags you want.     Clicking Ignore or Custom will limit you to ignored/custom flags, clicking the other flags will only show those that are checked.")  %> 
          <div class="small_bump_right">
            <%= flag_select  %> 
          </div>
          <%= radio_button_tag('search_criteria[search_type]', :active_intervention) %><label for="search_criteria_search_type_active_intervention">List only students in an active intervention</label>
          <div class = "small_bump_right">
           <%= active_intervention_select %> 
         </div>
          <%= radio_button_tag('search_criteria[search_type]', :no_intervention) %><label for="search_criteria_search_type_no_intervention">List only students not in an active intervention</label>
        </div>
      </div>
      <br clear ="both" />
      <div class ="form_row">
        <%= submit_tag "Search for Students", :name => 'search', :class=> "submit" %>
      </div>
{'fraction_non_alphanumeric': 0.14313110181311017, 'fraction_numerical': 0.0, 'mean_word_length': 3.808885163453479, 'pattern_counts': {'":': 0, '<': 114, '<?xml version=': 0, '>': 130, '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': '1537495', 'n_tokens_mistral': 1810, 'n_tokens_neox': 1731, 'n_words': 363}