<commit_before><% active_item = active_menu_item %>
<section id="kmaps-search" role="search">
  <!-- BEGIN Input section -->
  <section class="input-section" style="display:none">
<%= form_for @search_form, url: search_features_path, remote: true do |form| %>
    <div class="search-group">
      <!-- typeahead search -->
<div class="kmap-typeahead-picker">
  <label class="flyout-search-label"><span>Search:</span></label>
    <%=     text_field_tag "kmaps-explorer-search-term", "",  class: 'kmap-search-term form-control form-text', placeholder: 'Enter Search...', autocomplete: :off %>
  <span class="icon shanticon-magnify"></span>
  <button type="button" class="btn searchreset" aria-label="Clear search text" style="display: none;"><span class="icon"></span></button>
</div>
      <!-- END - typeahead search -->
	  <div class="form-group">
<%=     link_to '#', class: 'advanced-link toggle-link' do %>
          <span class="icon"></span><%= ts(:advanced) %>
<%      end %>
	  </div>
<%=   javascript_on_load do %>
        $('.advanced-link').click ( function () {
          $(this).toggleClass("show-advanced",'fast');
          $(".advanced-view").slideToggle('fast');
          $(".advanced-view").toggleClass("show-options");
        });
<%    end %>
    </div>
	<section class="advanced-view" style="<%= 'display:none;' unless current_show_advanced_search  %>">
	   <div class="form-group" id="searchScopeGroup">
       <label><span>Filter:</span> search scope</label>
        <div>
<%=       form.radio_button :scope, 'full_text' %>
<%=       form.label :scope, ts('search.full_text'), value: 'full_text' %>
<%=       form.radio_button :scope, 'name' %>
<%=       form.label :scope, FeatureName.model_name.human.titleize.s, value: 'name'%>
        </div>
        <div>
          <%=       form.radio_button :match, 'contains' %>
          <%= form.label :match, ts('search.contains'), value: 'contains' %>
<%=       form.radio_button :match, 'begins' %>
<%=       form.label :match, ts('search.begins'), value: 'begins' %>
<%=       form.radio_button :match, 'exactly' %>
<%=       form.label :match, ts('search.exactly'), value: 'exactly' %>
        </div>
        <div id="search-note" style='display:none'><p>'Starts with' and 'Exactly' filters are case sensitive</p></div>
        <hr />
<hr>
    <div id='goto-fid' class="input-group">
      <input type="text" class="form-control" placeholder="Go to <%= Feature.human_attribute_name(:pid).s %>...">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
    </div><!-- /input-group -->
      </div>
	</section>
<%  end %>
<%= javascript_on_load do %>
  $("#kmaps-explorer-search-term").focusin(function(){
   $(".view-section .nav.nav-tabs a[href='.listview']").tab("show");
  });
  $("#kmaps-explorer-search-term").flyoutKmapsTypeahead({
    hostname: "<%= Feature.config.url %>",
    hostname_assets: "<%= Flare.config.asset_url %>",
    domain: '<%= Feature.uid_prefix %>',
    filters_domain: '<%= Feature.uid_prefix %>',
    root_kmap_path: null,
    features_path: "<%= (defined?(admin) && admin) ? admin_features_path : features_path %>/"
  });
<% end %>
  </section>
  <!-- END input section -->
  <!-- BEGIN view section -->
  <section class="view-section">
    <ul class="nav nav-tabs"><commit_msg>Fixes bug on typeahead search on fly-out for Subjects<commit_after><% active_item = active_menu_item %>
<section id="kmaps-search" role="search">
  <!-- BEGIN Input section -->
  <section class="input-section" style="display:none">
<%= form_for @search_form, url: search_features_path, remote: true do |form| %>
    <div class="search-group">
      <!-- typeahead search -->
<div class="kmap-typeahead-picker">
  <label class="flyout-search-label"><span>Search:</span></label>
    <%=     text_field_tag "kmaps-explorer-search-term", "",  class: 'kmap-search-term form-control form-text', placeholder: 'Enter Search...', autocomplete: :off %>
  <span class="icon shanticon-magnify"></span>
  <button type="button" class="btn searchreset" aria-label="Clear search text" style="display: none;"><span class="icon"></span></button>
</div>
      <!-- END - typeahead search -->
	  <div class="form-group">
<%=     link_to '#', class: 'advanced-link toggle-link' do %>
          <span class="icon"></span><%= ts(:advanced) %>
<%      end %>
	  </div>
<%=   javascript_on_load do %>
        $('.advanced-link').click ( function () {
          $(this).toggleClass("show-advanced",'fast');
          $(".advanced-view").slideToggle('fast');
          $(".advanced-view").toggleClass("show-options");
        });
<%    end %>
    </div>
	<section class="advanced-view" style="<%= 'display:none;' unless current_show_advanced_search  %>">
	   <div class="form-group" id="searchScopeGroup">
       <label><span>Filter:</span> search scope</label>
        <div>
<%=       form.radio_button :scope, 'full_text' %>
<%=       form.label :scope, ts('search.full_text'), value: 'full_text' %>
<%=       form.radio_button :scope, 'name' %>
<%=       form.label :scope, FeatureName.model_name.human.titleize.s, value: 'name'%>
        </div>
        <div>
          <%=       form.radio_button :match, 'contains' %>
          <%= form.label :match, ts('search.contains'), value: 'contains' %>
<%=       form.radio_button :match, 'begins' %>
<%=       form.label :match, ts('search.begins'), value: 'begins' %>
<%=       form.radio_button :match, 'exactly' %>
<%=       form.label :match, ts('search.exactly'), value: 'exactly' %>
        </div>
        <div id="search-note" style='display:none'><p>'Starts with' and 'Exactly' filters are case sensitive</p></div>
        <hr />
<hr>
    <div id='goto-fid' class="input-group">
      <input type="text" class="form-control" placeholder="Go to <%= Feature.human_attribute_name(:pid).s %>...">
      <span class="input-group-btn">
        <button class="btn btn-default" type="button">Go!</button>
      </span>
    </div><!-- /input-group -->
      </div>
	</section>
<%  end %>
<%= javascript_on_load do %>
  $("#kmaps-explorer-search-term").focusin(function(){
   $(".view-section .nav.nav-tabs a[href='.listview']").tab("show");
  });
  $("#kmaps-explorer-search-term").flyoutKmapsTypeahead({
    hostname: "<%= Feature.config.url %>",
    hostname_assets: "<%= Flare.config.asset_url %>",
    domain: '<%= Feature.uid_prefix %>',
    filters_domain: '<%= Feature.uid_prefix %>',
    root_kmap_path: null,
    features_path: "<%= (defined?(admin) && admin) ? admin_features_path : features_path %>/%%ID%%"
  });
<% end %>
  </section>
  <!-- END input section -->
  <!-- BEGIN view section -->
  <section class="view-section">
    <ul class="nav nav-tabs">
{'fraction_non_alphanumeric': 0.21292719167904903, 'fraction_numerical': 0.0, 'mean_word_length': 3.4282894736842104, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 0, '>': 167, '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': '6417437', 'n_tokens_mistral': 2307, 'n_tokens_neox': 2159, 'n_words': 410}