<commit_before>#export_options{:style => "display: none; width: 40%; position: relative"}
  %div{:style => 'background-color: #fff; border: solid 2px; padding: 15px; margin: 3px; border-color: #000'}
    %b Include these repeating aspects in the export:
    %br
    - form_tag(path, :method => :get) do
      -# When the export_options "window" is open we may be looking at a restricted view (in fact, that's all there is in the search screen)
      -# based on an earlier GET.  We need to capture the previous GETs paramaters (which are also in the current GET) and hide them in this
      -# form
      - params.delete(:controller)
      - params.delete(:commit)
      - params.delete(:action)
      - params.each_pair do |key, value|
        - if value.is_a?(Array)
          - value.each do |value_element|
            = hidden_field_tag("#{key}[]", value_element)
        - else
          = hidden_field_tag(key, value)
      %label.horiz
        = check_box_tag("export_options[]", "contacts", false, :onclick => "$('contact_code_field_options').toggle();")
        %span Contacts
      %label.horiz
        = check_box_tag("export_options[]", "places", false, :onclick => "$('place_code_field_options').toggle();")
        %span Place Exposures
      %label.horiz
        = check_box_tag("export_options[]", "labs", false, :onclick => "$('lab_code_field_options').toggle();")
        %span Lab Results
      %label.vert
        = check_box_tag("export_options[]", "treatments", false, :onclick => "$('treatment_code_field_options').toggle();")
        %span Treatments
      %b Additional Options:<commit_msg>Fix for bug 737744: Export to CSV fails in IE7<commit_after>#export_options{:style => "display: none; width: 40%; position: relative"}
  %div{:style => 'background-color: #fff; border: solid 2px; padding: 15px; margin: 3px; border-color: #000'}
    %b Include these repeating aspects in the export:
    %br
    - form_tag(path, :method => :post) do
      -# When the export_options "window" is open we may be looking at a restricted view (in fact, that's all there is in the search screen)
      -# based on an earlier GET.  We need to capture the previous GETs paramaters (which are also in the current GET) and hide them in this
      -# form
      - params.delete(:controller)
      - params.delete(:commit)
      - params.delete(:action)
      - params.each_pair do |key, value|
        - if value.is_a?(Array)
          - value.each do |value_element|
            = hidden_field_tag("#{key}[]", value_element)
        - else
          = hidden_field_tag(key, value)
      %label.horiz
        = check_box_tag("export_options[]", "contacts", false, :onclick => "$('contact_code_field_options').toggle();")
        %span Contacts
      %label.horiz
        = check_box_tag("export_options[]", "places", false, :onclick => "$('place_code_field_options').toggle();")
        %span Place Exposures
      %label.horiz
        = check_box_tag("export_options[]", "labs", false, :onclick => "$('lab_code_field_options').toggle();")
        %span Lab Results
      %label.vert
        = check_box_tag("export_options[]", "treatments", false, :onclick => "$('treatment_code_field_options').toggle();")
        %span Treatments
      %b Additional Options:
{'fraction_non_alphanumeric': 0.1393141457440294, 'fraction_numerical': 0.0076546233925290875, 'mean_word_length': 3.1777493606138107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '2890077', 'n_tokens_mistral': 1016, 'n_tokens_neox': 981, 'n_words': 280}