<commit_before>%script{type: "text/javascript", src: "/js/sifter.min.js"}
%script{type: "text/javascript", src: "/js/microplugin.min.js"}
%script{type: "text/javascript", src: "/js/selectize.min.js"}
%script{type: "text/javascript", src: "/js/selectize-fast-click.js"}
%script{type: "text/javascript", src: "/js/hoc-survey-2014.js"}
%link{rel: "stylesheet", type: "text/css", href: "/css/selectize.bootstrap3.css"}/

%form{:id=>"hoc-survey-form", role: "form", onsubmit: "event.preventDefault();"}
  #error_message

  .form-group
    %label.control-label{for: "teacher-name"} Your name
    %div
      %input#tacher-name.form-control{name: "teacher_name_s", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "email"} Email address
    %div
      %input#email.form-control{name: "email_s", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "event_country"} Country
    %div
      %select#event-country.form-control{name: "country_s", type: "select", required: true}
        %option{value: nil, selected: true}
        -DB[:geography_countries].all().map{|i| i[:name_s]}.sort.each do |country|
          %option{value: country}= country

  .form-group
    %label.control-label{for: "teacher-description"} Which best describes you?
    %div
      %select#teacher-description.form-control{name: "teacher_description_s", type: "select", required: true}
        %option{value: nil, selected: true}
        -HocSurvey2014.teacher_descriptions.each  do |label|
          %option{value: label}= label

  .form-group
    %label.control-label{for: "event-location-type"} Where was your Hour of Code event?
    %div
      %select#event-location-type.form-control{name: "event_location_type_s", type: "select", required: true}
        %option{value: nil, selected: true}
        -HocSurvey2014.event_location_types.each  do |label|
          %option{value: label}= label

  .form-group
    %label.control-label{for: "students-number-total"} How many students did you organize the Hour of Code for?
    %div
      %input#students-number-total.form-control{name: "students_number_total_i", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "students-number-girls"} How many of the students were girls?
    %div
      %input#students-number-girls.form-control{name: "students_number_girls_i", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "students-number-ethnicity"} In total, how many of the students were Hispanic, African American, or Native American?
    %div
      %input#students-number-ethnicity.form-control{name: "students_number_ethnicity_i", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "students-grade-levels"} What grade levels were the students? (Choose all that apply)
    %div
      %select#students-grade-levels.form-control{name: "students_grade_levels_ss", type: "select", multiple: true, required: true}
        %option{value: nil, selected: true}
        -HocSurvey2014.students_grade_levels.each  do |label|
          %option{value: label}= label

  .form-group
    %label.control-label{for: "event-tutorials"} Which tutorial did you use? (Choose all that apply)<commit_msg>Made yes/no questions radio buttons.<commit_after>%script{type: "text/javascript", src: "/js/sifter.min.js"}
%script{type: "text/javascript", src: "/js/microplugin.min.js"}
%script{type: "text/javascript", src: "/js/selectize.min.js"}
%script{type: "text/javascript", src: "/js/selectize-fast-click.js"}
%script{type: "text/javascript", src: "/js/hoc-survey-2014.js"}
%link{rel: "stylesheet", type: "text/css", href: "/css/selectize.bootstrap3.css"}/

%form{:id=>"hoc-survey-form", role: "form", onsubmit: "event.preventDefault();"}
  #error_message

  .form-group
    %label.control-label{for: "teacher-name"} Your name
    %div
      %input#tacher-name.form-control{name: "teacher_name_s", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "email"} Email address
    %div
      %input#email.form-control{name: "email_s", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "event_country"} Country
    %div
      %select#event-country.form-control{name: "country_s", type: "select", required: true}
        %option{value: nil, selected: true}
        -DB[:geography_countries].all().map{|i| i[:name_s]}.sort.each do |country|
          %option{value: country}= country

  .form-group
    %label.control-label{for: "teacher-description"} Which best describes you?
    %div
      %select#teacher-description.form-control{name: "teacher_description_s", type: "select", required: true}
        %option{value: nil, selected: true}
        -HocSurvey2014.teacher_descriptions.each  do |label|
          %option{value: label}= label

  .form-group
    %label.control-label{for: "event-location-type"} Where was your Hour of Code event?
    %div
      %select#event-location-type.form-control{name: "event_location_type_s", type: "select", required: true}
        %option{value: nil, selected: true}
        -HocSurvey2014.event_location_types.each  do |label|
          %option{value: label}= label

  .form-group
    %label.control-label{for: "students-number-total"} For how many students did you organize the Hour of Code?
    %div
      %input#students-number-total.form-control{name: "students_number_total_i", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "students-number-girls"} How many of the students were girls (approximately)?
    %div
      %input#students-number-girls.form-control{name: "students_number_girls_i", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "students-number-ethnicity"} In total, how many of the students were Hispanic, African American, or Native American (approximately)?
    %div
      %input#students-number-ethnicity.form-control{name: "students_number_ethnicity_i", placeholder: "", type: "text", required: true}/

  .form-group
    %label.control-label{for: "students-grade-levels"} What grade levels were the students? (Choose all that apply)
    %div
      %select#students-grade-levels.form-control{name: "students_grade_levels_ss", type: "select", multiple: true, required: true}
        %option{value: nil, selected: true}
        -HocSurvey2014.students_grade_levels.each  do |label|
          %option{value: label}= label

  .form-group
    %label.control-label{for: "event-tutorials"} Which tutorial did you use? (Choose all that apply)
{'fraction_non_alphanumeric': 0.1545850217619691, 'fraction_numerical': 0.00510280654359898, 'mean_word_length': 4.067680608365019, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3832031', 'n_tokens_mistral': 2218, 'n_tokens_neox': 2141, 'n_words': 485}