<commit_before><div class="relative">
  <%= link_to t("shared.advanced_search.title"), "#advanced_search_form", id: 'js-advanced-search-title', class: "advanced-search small" %>
</div>

<div class="row advanced-search-form">
  <%= form_tag search_path, id: "advanced_search_form", method: :get do %>
    <div id='js-advanced-search' data-advanced-search-terms=<%= @advanced_search_terms.present? %> style="display: none">

      <div class="small-12 column">
        <label for="search">
          <%= t("shared.advanced_search.general") %>
        </label>
        <%= text_field_tag "search", params[:search],
                           placeholder: t("shared.advanced_search.general_placeholder") %>
      </div>

      <div class="small-12 large-3 column">
        <label for="advanced_search_official_level"><%= t("shared.advanced_search.author_type") %></label>
        <%= select_tag('advanced_search[official_level]', official_level_search_options,
                      include_blank: t("shared.advanced_search.author_type_blank")) %>
      </div>

      <div class="small-12 large-9">
        <div class="small-12 large-4 column">
          <label for="js-advanced-search-date-min"><%= t("shared.advanced_search.date") %></label>
          <%= select_tag('advanced_search[date_min]', date_range_options,
                        include_blank: t("shared.advanced_search.date_range_blank"),
                        id: 'js-advanced-search-date-min') %>
        </div>

        <div id='js-custom-date' class='small-12 large-8 column' style="display: none">
          <div class="row">
            <div class='small-12 large-6 column'>
              <label for="advanced_search_date_min">
                <%= t("shared.advanced_search.from") %> (<%= t("shared.advanced_search.date_placeholder") %>)
              </label>
              <%= text_field_tag 'advanced_search[date_min]',
                                  params[:advanced_search].try(:[], :date_min),
                                  type: "date",
                                  placeholder: t("shared.advanced_search.date_placeholder"),
                                  class: 'js-calendar' %>
            </div>
            <div class='small-12 large-6 column'>
              <label for="advanced_search_date_max">
                <%= t("shared.advanced_search.to") %> (<%= t("shared.advanced_search.date_placeholder") %>)
              </label>
              <%= text_field_tag 'advanced_search[date_max]',
                                  params[:advanced_search].try(:[], :date_max),
                                  type: "date",
                                  placeholder: t("shared.advanced_search.date_placeholder"),
                                  class: 'js-calendar' %>
            </div>
          </div>
        </div>
      </div>

      <div class="small-12 medium-3 column end clear">
        <%= submit_tag t("shared.advanced_search.search"), class: 'button expanded' %>
      </div>

    </div>
  <% end %>
</div><commit_msg>removes placeholder on input date<commit_after><div class="relative">
  <%= link_to t("shared.advanced_search.title"), "#advanced_search_form", id: 'js-advanced-search-title', class: "advanced-search small" %>
</div>

<div class="row advanced-search-form">
  <%= form_tag search_path, id: "advanced_search_form", method: :get do %>
    <div id='js-advanced-search' data-advanced-search-terms=<%= @advanced_search_terms.present? %> style="display: none">

      <div class="small-12 column">
        <label for="search">
          <%= t("shared.advanced_search.general") %>
        </label>
        <%= text_field_tag "search", params[:search],
                           placeholder: t("shared.advanced_search.general_placeholder") %>
      </div>

      <div class="small-12 large-3 column">
        <label for="advanced_search_official_level"><%= t("shared.advanced_search.author_type") %></label>
        <%= select_tag('advanced_search[official_level]', official_level_search_options,
                      include_blank: t("shared.advanced_search.author_type_blank")) %>
      </div>

      <div class="small-12 large-9">
        <div class="small-12 large-4 column">
          <label for="js-advanced-search-date-min"><%= t("shared.advanced_search.date") %></label>
          <%= select_tag('advanced_search[date_min]', date_range_options,
                        include_blank: t("shared.advanced_search.date_range_blank"),
                        id: 'js-advanced-search-date-min') %>
        </div>

        <div id='js-custom-date' class='small-12 large-8 column' style="display: none">
          <div class="row">
            <div class='small-12 large-6 column'>
              <label for="advanced_search_date_min">
                <%= t("shared.advanced_search.from") %> (<%= t("shared.advanced_search.date_placeholder") %>)
              </label>
              <%= text_field_tag 'advanced_search[date_min]',
                                  params[:advanced_search].try(:[], :date_min),
                                  type: "date",
                                  class: 'js-calendar' %>
            </div>
            <div class='small-12 large-6 column'>
              <label for="advanced_search_date_max">
                <%= t("shared.advanced_search.to") %> (<%= t("shared.advanced_search.date_placeholder") %>)
              </label>
              <%= text_field_tag 'advanced_search[date_max]',
                                  params[:advanced_search].try(:[], :date_max),
                                  type: "date",
                                  class: 'js-calendar' %>
            </div>
          </div>
        </div>
      </div>

      <div class="small-12 medium-3 column end clear">
        <%= submit_tag t("shared.advanced_search.search"), class: 'button expanded' %>
      </div>

    </div>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.15664288141352362, 'fraction_numerical': 0.00781515460414543, 'mean_word_length': 2.103321033210332, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7475432', 'n_tokens_mistral': 1809, 'n_tokens_neox': 1626, 'n_words': 275}