<commit_before><fieldset id="submission_type_fields">
  <div class="form-column-left">
    <label for="assignment_submission_type">
      {{#t "submission_type"}}Submission Type{{/t}}
    </label>
  </div>
  <div class="form-column-right">
    <div class="border border-trbl border-round">
      {{!-- Submission type accepted --}}
      <select id="assignment_submission_type" name="submission_type"
        aria-controls="assignment_online_submission_types,assignment_external_tool_settings,assignment_group_selector,assignment_peer_reviews_fields"
        {{disabledIfIncludes frozenAttributes "submission_types"}}>
        {{#if defaultToolName}}
        <option value="default_external_tool" {{selectedIf isDefaultTool}}>
          {{defaultToolName}}
        </option>
        {{/if}}
        <option value="none" {{selectedIf defaultToNone}}>
          {{#t "submission_types.no_submission"}}No Submission{{/t}}
        </option>
        <option value="online" {{selectedIf defaultToOnline}}>
          {{#t "submission_types.online"}}Online{{/t}}
        </option>
        <option value="on_paper" {{selectedIf defaultToOnPaper}}>
          {{#t "submission_types.on_paper"}}On Paper{{/t}}
        </option>
        <option value="external_tool" {{selectedIf isGenericExternalTool}}>
          {{#t "submission_types.external_tool"}}External Tool{{/t}}
        </option>
        {{#if submissionTypeSelectionTools}}
        {{#each submissionTypeSelectionTools}}
        <option value="external_tool_placement_{{this.id}}" {{selectedIf this.id ../selectedSubmissionTypeToolId}}>
          {{this.base_title}}
        </option>
        {{/each}}
        {{/if}}
      </select>
      {{#if submissionTypesFrozen}}
      <input type="hidden" name="submission_type" value="{{submissionType}}" />
      {{/if}}

      {{!-- Online submission types --}}
      <div id="assignment_online_submission_types" aria-enabled="{{isOnlineSubmission}}"
        style="{{hiddenUnless isOnlineSubmission}}">

        <div class="subtitle">
          <strong>
            {{#t 'online_entry_options'}}Online Entry Options{{/t}}
          </strong>
        </div>

        <label class="checkbox" for="assignment_text_entry">
          {{checkbox "acceptsOnlineTextEntries"
          id="assignment_text_entry"
          name="online_submission_types[online_text_entry]"
          aria-label=(t "Online Submission Type - Text Entry")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_text_entry"}}Text Entry{{/t}}
        </label>

        <label class="checkbox" for="assignment_online_url">
          {{checkbox "acceptsOnlineURL"
          id="assignment_online_url"
          name="online_submission_types[online_url]"
          aria-label=(t "Online Submission Type - Website URL")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_url"}}Website URL{{/t}}
        </label>
        {{#if kalturaEnabled}}
        <label class="checkbox" for="assignment_media_recording">
          {{checkbox "acceptsMediaRecording"
          id="assignment_media_recording"
          name="online_submission_types[media_recording]"
          aria-label=(t "Online Submission Type - Media Recordings")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_media_recordings"}}Media Recordings{{/t}}
        </label>
        {{/if}}
        <label class="checkbox" for="assignment_annotated_document">
          {{checkbox "acceptsAnnotatedDocument"
          id="assignment_annotated_document"
          name="online_submission_types[student_annotation]"
          aria-controls="restrict_file_extensions_container"
          aria-label=(t "Online Submission Type - Student Annotation")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allows_annotated_document"}}Student Annotation{{/t}}
        </label>
        <div id="assignment_annotated_document_info" style="{{hiddenUnless acceptsAnnotatedDocument}}">
          {{#t}}Consider selecting multiple submission types to accommodate students who may not be able to create
          annotations.{{/t}}
        </div>
        <div id="annotated_document_chooser_container" class="nested" aria-expanded="{{acceptsAnnotatedDocument}}"
          style="{{hiddenUnless acceptsAnnotatedDocument}}; padding: 0 0 0 42px;">
        </div>
        <input type="hidden" name="annotatable_attachment_id" id="annotatable_attachment_id" />
        <label class="checkbox" for="assignment_online_upload">
          {{checkbox "acceptsOnlineUpload"
          id="assignment_online_upload"
          name="online_submission_types[online_upload]"
          aria-controls="restrict_file_extensions_container"
          aria-label=(t "Online Submission Type - File Uploads")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_file_uploads"}}File Uploads{{/t}}
        </label>

        {{!-- Online submission restrict file types? --}}
        <div id="restrict_file_extensions_container" class="nested" aria-expanded="{{acceptsOnlineUpload}}"
          style="{{hiddenUnless acceptsOnlineUpload}}">

          <label class="checkbox" for="assignment_restrict_file_extensions">
            {{checkbox "restrictFileExtensions"
            id="assignment_restrict_file_extensions"
            name="restrict_file_extensions"
            aria-controls="allowed_extensions_container"
            aria-label=(t "Online Submission Type - File Uploads - Restrict Upload File Types")
            disabled=submissionTypesFrozen}}
            {{#t "labels.restrict_file_extensions"}}
            Restrict Upload File Types
            {{/t}}
          </label>

          {{!-- Online submission allowed extensions --}}
          <div id="allowed_extensions_container" aria-expanded="{{restrictFileExtensions}}"
            style="{{hiddenUnless restrictFileExtensions}}" class="nested">
            <label for="assignment_allowed_extensions" class="hidden-readable">
              {{#t "labels.allowed_extensions"}}Allowed File Extensions{{/t}}
            </label>

            <input
              id="assignment_allowed_extensions"
              name="allowed_extensions"
              type="text"
              maxlength="254"
              placeholder="{{#t "labels.allowed_extensions"}}Allowed File Extensions{{/t}}"
              aria-labelledby="explanation_nest"
              value="{{join allowedExtensions " ,"}}"
              {{disabledIfIncludes frozenAttributes "submission_types"}} />
            <div id="explanation_nest" class="explanation nest"><commit_msg>fix spacing around commas between file extensions<commit_after><fieldset id="submission_type_fields">
  <div class="form-column-left">
    <label for="assignment_submission_type">
      {{#t "submission_type"}}Submission Type{{/t}}
    </label>
  </div>
  <div class="form-column-right">
    <div class="border border-trbl border-round">
      {{!-- Submission type accepted --}}
      <select id="assignment_submission_type" name="submission_type"
        aria-controls="assignment_online_submission_types,assignment_external_tool_settings,assignment_group_selector,assignment_peer_reviews_fields"
        {{disabledIfIncludes frozenAttributes "submission_types"}}>
        {{#if defaultToolName}}
        <option value="default_external_tool" {{selectedIf isDefaultTool}}>
          {{defaultToolName}}
        </option>
        {{/if}}
        <option value="none" {{selectedIf defaultToNone}}>
          {{#t "submission_types.no_submission"}}No Submission{{/t}}
        </option>
        <option value="online" {{selectedIf defaultToOnline}}>
          {{#t "submission_types.online"}}Online{{/t}}
        </option>
        <option value="on_paper" {{selectedIf defaultToOnPaper}}>
          {{#t "submission_types.on_paper"}}On Paper{{/t}}
        </option>
        <option value="external_tool" {{selectedIf isGenericExternalTool}}>
          {{#t "submission_types.external_tool"}}External Tool{{/t}}
        </option>
        {{#if submissionTypeSelectionTools}}
        {{#each submissionTypeSelectionTools}}
        <option value="external_tool_placement_{{this.id}}" {{selectedIf this.id ../selectedSubmissionTypeToolId}}>
          {{this.base_title}}
        </option>
        {{/each}}
        {{/if}}
      </select>
      {{#if submissionTypesFrozen}}
      <input type="hidden" name="submission_type" value="{{submissionType}}" />
      {{/if}}

      {{!-- Online submission types --}}
      <div id="assignment_online_submission_types" aria-enabled="{{isOnlineSubmission}}"
        style="{{hiddenUnless isOnlineSubmission}}">

        <div class="subtitle">
          <strong>
            {{#t 'online_entry_options'}}Online Entry Options{{/t}}
          </strong>
        </div>

        <label class="checkbox" for="assignment_text_entry">
          {{checkbox "acceptsOnlineTextEntries"
          id="assignment_text_entry"
          name="online_submission_types[online_text_entry]"
          aria-label=(t "Online Submission Type - Text Entry")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_text_entry"}}Text Entry{{/t}}
        </label>

        <label class="checkbox" for="assignment_online_url">
          {{checkbox "acceptsOnlineURL"
          id="assignment_online_url"
          name="online_submission_types[online_url]"
          aria-label=(t "Online Submission Type - Website URL")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_url"}}Website URL{{/t}}
        </label>
        {{#if kalturaEnabled}}
        <label class="checkbox" for="assignment_media_recording">
          {{checkbox "acceptsMediaRecording"
          id="assignment_media_recording"
          name="online_submission_types[media_recording]"
          aria-label=(t "Online Submission Type - Media Recordings")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_media_recordings"}}Media Recordings{{/t}}
        </label>
        {{/if}}
        <label class="checkbox" for="assignment_annotated_document">
          {{checkbox "acceptsAnnotatedDocument"
          id="assignment_annotated_document"
          name="online_submission_types[student_annotation]"
          aria-controls="restrict_file_extensions_container"
          aria-label=(t "Online Submission Type - Student Annotation")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allows_annotated_document"}}Student Annotation{{/t}}
        </label>
        <div id="assignment_annotated_document_info" style="{{hiddenUnless acceptsAnnotatedDocument}}">
          {{#t}}Consider selecting multiple submission types to accommodate students who may not be able to create
          annotations.{{/t}}
        </div>
        <div id="annotated_document_chooser_container" class="nested" aria-expanded="{{acceptsAnnotatedDocument}}"
          style="{{hiddenUnless acceptsAnnotatedDocument}}; padding: 0 0 0 42px;">
        </div>
        <input type="hidden" name="annotatable_attachment_id" id="annotatable_attachment_id" />
        <label class="checkbox" for="assignment_online_upload">
          {{checkbox "acceptsOnlineUpload"
          id="assignment_online_upload"
          name="online_submission_types[online_upload]"
          aria-controls="restrict_file_extensions_container"
          aria-label=(t "Online Submission Type - File Uploads")
          disabled=submissionTypesFrozen}}
          {{#t "labels.allow_file_uploads"}}File Uploads{{/t}}
        </label>

        {{!-- Online submission restrict file types? --}}
        <div id="restrict_file_extensions_container" class="nested" aria-expanded="{{acceptsOnlineUpload}}"
          style="{{hiddenUnless acceptsOnlineUpload}}">

          <label class="checkbox" for="assignment_restrict_file_extensions">
            {{checkbox "restrictFileExtensions"
            id="assignment_restrict_file_extensions"
            name="restrict_file_extensions"
            aria-controls="allowed_extensions_container"
            aria-label=(t "Online Submission Type - File Uploads - Restrict Upload File Types")
            disabled=submissionTypesFrozen}}
            {{#t "labels.restrict_file_extensions"}}
            Restrict Upload File Types
            {{/t}}
          </label>

          {{!-- Online submission allowed extensions --}}
          <div id="allowed_extensions_container" aria-expanded="{{restrictFileExtensions}}"
            style="{{hiddenUnless restrictFileExtensions}}" class="nested">
            <label for="assignment_allowed_extensions" class="hidden-readable">
              {{#t "labels.allowed_extensions"}}Allowed File Extensions{{/t}}
            </label>

            <input
              id="assignment_allowed_extensions"
              name="allowed_extensions"
              type="text"
              maxlength="254"
              placeholder="{{#t "labels.allowed_extensions"}}Allowed File Extensions{{/t}}"
              aria-labelledby="explanation_nest"
              value="{{join allowedExtensions ", "}}"
              {{disabledIfIncludes frozenAttributes "submission_types"}} />
            <div id="explanation_nest" class="explanation nest">
{'fraction_non_alphanumeric': 0.1289050652107977, 'fraction_numerical': 0.001213224143160449, 'mean_word_length': 3.0124733799817465, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, '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': '4044387', 'n_tokens_mistral': 3669, 'n_tokens_neox': 3552, 'n_words': 629}