<commit_before><script>

function microtaskChanged() {
  if (jQuery('#assignment_microtask').is(':checked')) {

  } else {

  }
}

//This function replaces whitespace ' ' in assignment name by '_' and assign to directory path field value
$(function() {
    $("#assignment_form_assignment_name").change(function() {
        filename = $( "#assignment_form_assignment_name" ).val().replace(/ /g,"_").replace(/[/\\?%*:|"<>/$&!#%^@]/g, '');;
        $('#assignment_form_assignment_directory_path').val(filename);
    });
});
//E2138 added function
function autogenerate_submission(){
  assignment_form.assignment.directory_path = assignment_form.assignment.name;
}

</script>

<table id='assignment_general_info_table' class="borderless">
<tr class='heading'>
<th width="0%"></th>
<th width="100%"></th>
</tr>

<%= hidden_field_tag('assignment_form[assignment][instructor_id]', @assignment_form.assignment.instructor_id) %>
<%= hidden_field_tag('assignment_form[assignment][course_id]', @assignment_form.assignment.course_id) %>
<%= hidden_field_tag('assignment_form[assignment][id]', @assignment_form.assignment.id) %>

<tr>
<td style='padding:5px'><%= label_tag('assignment_form[assignment][name]', 'Assignment name:') %></td>
<td style='padding:5px'><%= text_field_tag('assignment_form[assignment][name]', @assignment_form.assignment.name, :style => 'width:250px', class: 'form-control') %></td>
</tr>

<tr>
<td style='padding:5px'><%= label_tag('assignment_form[assignment][course_id]', 'Course:') %></td>
<td style='padding:5px'><%= select('assignment_form[assignment]', 'course_id', course_options(@assignment_form.assignment.instructor), {:selected => @assignment_form.assignment.course_id}, {:class => "form-control", :style => 'width: 250px'}) %></td>
</tr>

<tr><div class="form-inline">
<td style='padding:5px'><%= label_tag('assignment_form[assignment][directory_path]', 'Submission directory:') %></td>
<td style='padding:5px'><%= text_field_tag('assignment_form[assignment][directory_path]', @assignment_form.assignment.directory_path, :style => 'width:250px', class: 'form-control') %>  (Mandatory field. No space or special chars. <br/> Directory name will be auto-generated if not provided. In the form of assignment_[assignment_id].)
  <img src="/assets/info.png" title='- DO NOT change this filed for an on-going assignment. This may cause lost of student submitted file.'>
</td></div>
</tr>

<tr>
<td style='padding:5px'><%= label_tag('assignment_form[assignment][spec_location]', 'Description URL: ') %></td>
<td style='padding:5px'><%= text_field_tag('assignment_form[assignment][spec_location]', @assignment_form.assignment.spec_location, :style => 'width:250px', class: 'form-control') %></td>
</tr>
</table>

<br/>
<hr/>

<table id='assignment_general_setting_table' class="borderless table-not-full-width">
<tr class='heading'>
<th width=82%></th>
<th width=100%></th>
  </tr>

  <tr>
    <td style='padding:5px' id='assignment_access'>
      <p><input name="assignment_form[assignment][private]" type="hidden" value="false"/>
        <%= check_box_tag('assignment_form[assignment][private]', 'true', @assignment_form.assignment.private? || !params[:private].to_i.zero?) %>
        <%= label_tag('assignment_form[assignment][private]', 'Private assignment') %></p>
    </td>
  </tr>

  <tr>
    <td style='padding:5px' id='assignment_team_assignment_field'>
      <div class="form-inline">
        <span style='padding:5px' class="form-inline" id='assignment_team_count_field' <%= 'hidden' unless @assignment_form.assignment.team_assignment?%>>
          <!--Teammate reviews fields-->
          <input name="assignment_form[assignment][show_teammate_reviews]" type="hidden" value="false"/>
          <%= label_tag('assignment_form[assignment][max_team_size]', 'Maximum number of members per team:') %>
          <%= text_field_tag('assignment_form[assignment][max_team_size]', @assignment_form.assignment.max_team_size, {:style => 'width:50px;', class: 'form-control', :onChange => 'maxTeamSizeFieldChanged()'}) %>
        </span>
      </div>
      <span id='assignment_show_teammate_reviews' class="form-inline" <%= 'hidden' unless @assignment_form.assignment.team_assignment?%>>
        <%= check_box_tag('assignment_form[assignment][show_teammate_reviews]', 'true', @assignment_form.assignment.show_teammate_reviews) %>
        <%= label_tag('assignment_form[assignment][show_teammate_reviews]', 'Show teammate reviews?') %>
      </span>
      &nbsp;&nbsp;&nbsp;&nbsp;
      <!--Maximum number of members per team-->
    <br>      
  </tr>
<commit_msg>Remove maxTeamSizeFieldChanged call<commit_after><script>

function microtaskChanged() {
  if (jQuery('#assignment_microtask').is(':checked')) {

  } else {

  }
}

//This function replaces whitespace ' ' in assignment name by '_' and assign to directory path field value
$(function() {
    $("#assignment_form_assignment_name").change(function() {
        filename = $( "#assignment_form_assignment_name" ).val().replace(/ /g,"_").replace(/[/\\?%*:|"<>/$&!#%^@]/g, '');;
        $('#assignment_form_assignment_directory_path').val(filename);
    });
});
//E2138 added function
function autogenerate_submission(){
  assignment_form.assignment.directory_path = assignment_form.assignment.name;
}

</script>

<table id='assignment_general_info_table' class="borderless">
<tr class='heading'>
<th width="0%"></th>
<th width="100%"></th>
</tr>

<%= hidden_field_tag('assignment_form[assignment][instructor_id]', @assignment_form.assignment.instructor_id) %>
<%= hidden_field_tag('assignment_form[assignment][course_id]', @assignment_form.assignment.course_id) %>
<%= hidden_field_tag('assignment_form[assignment][id]', @assignment_form.assignment.id) %>

<tr>
<td style='padding:5px'><%= label_tag('assignment_form[assignment][name]', 'Assignment name:') %></td>
<td style='padding:5px'><%= text_field_tag('assignment_form[assignment][name]', @assignment_form.assignment.name, :style => 'width:250px', class: 'form-control') %></td>
</tr>

<tr>
<td style='padding:5px'><%= label_tag('assignment_form[assignment][course_id]', 'Course:') %></td>
<td style='padding:5px'><%= select('assignment_form[assignment]', 'course_id', course_options(@assignment_form.assignment.instructor), {:selected => @assignment_form.assignment.course_id}, {:class => "form-control", :style => 'width: 250px'}) %></td>
</tr>

<tr><div class="form-inline">
<td style='padding:5px'><%= label_tag('assignment_form[assignment][directory_path]', 'Submission directory:') %></td>
<td style='padding:5px'><%= text_field_tag('assignment_form[assignment][directory_path]', @assignment_form.assignment.directory_path, :style => 'width:250px', class: 'form-control') %>  (Mandatory field. No space or special chars. <br/> Directory name will be auto-generated if not provided. In the form of assignment_[assignment_id].)
  <img src="/assets/info.png" title='- DO NOT change this filed for an on-going assignment. This may cause lost of student submitted file.'>
</td></div>
</tr>

<tr>
<td style='padding:5px'><%= label_tag('assignment_form[assignment][spec_location]', 'Description URL: ') %></td>
<td style='padding:5px'><%= text_field_tag('assignment_form[assignment][spec_location]', @assignment_form.assignment.spec_location, :style => 'width:250px', class: 'form-control') %></td>
</tr>
</table>

<br/>
<hr/>

<table id='assignment_general_setting_table' class="borderless table-not-full-width">
<tr class='heading'>
<th width=82%></th>
<th width=100%></th>
  </tr>

  <tr>
    <td style='padding:5px' id='assignment_access'>
      <p><input name="assignment_form[assignment][private]" type="hidden" value="false"/>
        <%= check_box_tag('assignment_form[assignment][private]', 'true', @assignment_form.assignment.private? || !params[:private].to_i.zero?) %>
        <%= label_tag('assignment_form[assignment][private]', 'Private assignment') %></p>
    </td>
  </tr>

  <tr>
    <td style='padding:5px' id='assignment_team_assignment_field'>
      <div class="form-inline">
        <span style='padding:5px' class="form-inline" id='assignment_team_count_field' <%= 'hidden' unless @assignment_form.assignment.team_assignment?%>>
          <!--Teammate reviews fields-->
          <input name="assignment_form[assignment][show_teammate_reviews]" type="hidden" value="false"/>
          <%= label_tag('assignment_form[assignment][max_team_size]', 'Maximum number of members per team:') %>
          <%= text_field_tag('assignment_form[assignment][max_team_size]', @assignment_form.assignment.max_team_size, {:style => 'width:50px;', class: 'form-control'}) %>
        </span>
      </div>
      <span id='assignment_show_teammate_reviews' class="form-inline" <%= 'hidden' unless @assignment_form.assignment.team_assignment?%>>
        <%= check_box_tag('assignment_form[assignment][show_teammate_reviews]', 'true', @assignment_form.assignment.show_teammate_reviews) %>
        <%= label_tag('assignment_form[assignment][show_teammate_reviews]', 'Show teammate reviews?') %>
      </span>
      &nbsp;&nbsp;&nbsp;&nbsp;
      <!--Maximum number of members per team-->
    <br>      
  </tr>

{'fraction_non_alphanumeric': 0.19037199124726478, 'fraction_numerical': 0.008315098468271335, 'mean_word_length': 6.231803797468355, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 192, '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': '6709812', 'n_tokens_mistral': 3173, 'n_tokens_neox': 3044, 'n_words': 514}