<commit_before>= form_for(@student, url: request.original_url, method: 'post', html:{id: 'application-detail-form'}) do |student|
  header.header-toolbar
    .site-width
      h1
        a href="/admin/district/application/#{@student.id}"
          =="Application ##{@student.confirmation_code}"
      - url_root = '/admin/district/application'
      = student.submit 'Save', id: 'application-detail-form-submit-button', class: "save"
  .page
    .site-width
      - if @are_errors
        #application-detail-errors.notice
          h1 Please correct the following errors:
          ul
            = render 'model_errors', model_obj: @student
            - @student.contact_people.each do |contact_person|
              = render 'model_errors', model_obj: contact_person
            - @student.student_races.each do |race|
              = render 'model_errors', model_obj: race
      - if @was_saved
	      == "Updated!"
      / STUDENT INFO
      section#application-student-info
        h2 Student information
        fieldset.fieldset-name
          legend Full name
          .field
            = student.label :first_name, 'First'
            = student.text_field :first_name, required: "true"
          .field
            = student.label :middle_name, 'Middle'
            = student.text_field :middle_name
          .field
            = student.label :last_name, 'Last'
            = student.text_field :last_name, required: "true"
        fieldset
          legend Gender
          .field.field-radiobutton
            = student.label :gender_male do
              = student.radio_button :gender, "male", required: "true"
              == "Male"
          .field.field-radiobutton
            = student.label :gender_female do
              = student.radio_button :gender, "female"
              == "Female"
        .field.field-width-medium
          = student.label :birthday, 'Date of birth', required: "true"
          = student.date_field :birthday
        fieldset.fieldset-address
          legend=="Birth location"
          .field.field-city
            = student.label :birth_city, 'City', required: "true"
            = student.text_field :birth_city
          .field.field-state
            = student.label :birth_state, 'State', required: "true"
            = student.text_field :birth_state
          .field.field-zip
            = student.label :birth_country, 'Country', required: "true"
            = student.text_field :birth_country
        fieldset
          legend Is this student Hispanic or Latino?
          .field.field-radiobutton
            = student.label :is_hispanic_true do
              = student.radio_button :is_hispanic, true, required: "true"
              == " "
              == "Yes"
          .field.field-radiobutton
            = student.label :is_hispanic_false do
              = student.radio_button :is_hispanic, false
              == " "
              == "No"
        fieldset
          legend Races
          p.note Select one or more
          - Races::ALL.each do |race|
            / TODO Should use .field-checkbox, but the style currently hides the checkboxes for some reason
            .field.field-checkbox<commit_msg>Fix 'birthdate for the student is cut off in the edit screen'<commit_after>= form_for(@student, url: request.original_url, method: 'post', html:{id: 'application-detail-form'}) do |student|
  header.header-toolbar
    .site-width
      h1
        a href="/admin/district/application/#{@student.id}"
          =="Application ##{@student.confirmation_code}"
      - url_root = '/admin/district/application'
      = student.submit 'Save', id: 'application-detail-form-submit-button', class: "save"
  .page
    .site-width
      - if @are_errors
        #application-detail-errors.notice
          h1 Please correct the following errors:
          ul
            = render 'model_errors', model_obj: @student
            - @student.contact_people.each do |contact_person|
              = render 'model_errors', model_obj: contact_person
            - @student.student_races.each do |race|
              = render 'model_errors', model_obj: race
      - if @was_saved
	      == "Updated!"
      / STUDENT INFO
      section#application-student-info
        h2 Student information
        fieldset.fieldset-name
          legend Full name
          .field
            = student.label :first_name, 'First'
            = student.text_field :first_name, required: "true"
          .field
            = student.label :middle_name, 'Middle'
            = student.text_field :middle_name
          .field
            = student.label :last_name, 'Last'
            = student.text_field :last_name, required: "true"
        fieldset
          legend Gender
          .field.field-radiobutton
            = student.label :gender_male do
              = student.radio_button :gender, "male", required: "true"
              == "Male"
          .field.field-radiobutton
            = student.label :gender_female do
              = student.radio_button :gender, "female"
              == "Female"
        .field.field-width-large
          = student.label :birthday, 'Date of birth', required: "true"
          = student.date_field :birthday
        fieldset.fieldset-address
          legend=="Birth location"
          .field.field-city
            = student.label :birth_city, 'City', required: "true"
            = student.text_field :birth_city
          .field.field-state
            = student.label :birth_state, 'State', required: "true"
            = student.text_field :birth_state
          .field.field-zip
            = student.label :birth_country, 'Country', required: "true"
            = student.text_field :birth_country
        fieldset
          legend Is this student Hispanic or Latino?
          .field.field-radiobutton
            = student.label :is_hispanic_true do
              = student.radio_button :is_hispanic, true, required: "true"
              == " "
              == "Yes"
          .field.field-radiobutton
            = student.label :is_hispanic_false do
              = student.radio_button :is_hispanic, false
              == " "
              == "No"
        fieldset
          legend Races
          p.note Select one or more
          - Races::ALL.each do |race|
            / TODO Should use .field-checkbox, but the style currently hides the checkboxes for some reason
            .field.field-checkbox
{'fraction_non_alphanumeric': 0.10160511142278324, 'fraction_numerical': 0.0009350163627863488, 'mean_word_length': 1.8499111900532859, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '820814', 'n_tokens_mistral': 1786, 'n_tokens_neox': 1734, 'n_words': 410}