<commit_before><% @search_query="" unless @search_query %>
<% @search_type="All" unless @search_type %>

<% if logged_in? && current_user.person -%>
  <% if EMAIL_ENABLED %>
    <%= image_tag_for_key("feedback",feedback_path,"Feedback",{:id=>"feedback"},"Provide Feedback") %>
  <% else %>
    <span class="icon"><%= mail_to Person.admins.first.email, (image("feedback") + "Provide Feedback"), :cc => Person.admins[1..-1].collect{|a| a.email}.join(",") , :subject => "SysMO-SEEK feedback", :id => "feedback" %></span>    
  <% end %>
<% end -%>

<% if logged_in? && current_user.is_admin? && current_user.person -%>
  <%= image_tag_for_key "admin", admin_path, "Admin", {:id=>"adminmode"}, "Admin" -%>
<% end -%>

<% if SOLR_ENABLED && logged_in? && current_user.person -%>

  <% form_tag '/search/' do -%>
    <div id="search_box">
      <%= text_field_tag :search_query, @search_query,:size=>30 %>
      <%= select_tag :search_type, options_for_select(search_type_options,@search_type)  %>
      <%= submit_tag "Go"  %>
    </div>
  <% end  -%>
<% end %>
<commit_msg>disable search button after submit, and change to searching ...<commit_after><% @search_query="" unless @search_query %>
<% @search_type="All" unless @search_type %>

<% if logged_in? && current_user.person -%>
  <% if EMAIL_ENABLED %>
    <%= image_tag_for_key("feedback",feedback_path,"Feedback",{:id=>"feedback"},"Provide Feedback") %>
  <% else %>
    <span class="icon"><%= mail_to Person.admins.first.email, (image("feedback") + "Provide Feedback"), :cc => Person.admins[1..-1].collect{|a| a.email}.join(",") , :subject => "SysMO-SEEK feedback", :id => "feedback" %></span>    
  <% end %>
<% end -%>

<% if logged_in? && current_user.is_admin? && current_user.person -%>
  <%= image_tag_for_key "admin", admin_path, "Admin", {:id=>"adminmode"}, "Admin" -%>
<% end -%>

<% if SOLR_ENABLED && logged_in? && current_user.person -%>

  <% form_tag '/search/' do -%>
    <div id="search_box">
      <%= text_field_tag :search_query, @search_query,:size=>30 %>
      <%= select_tag :search_type, options_for_select(search_type_options,@search_type)  %>
      <%= submit_tag "Go", :disable_with=>"Searching ..."  -%>
    </div>
  <% end  -%>
<% end %>

{'fraction_non_alphanumeric': 0.2224223322827555, 'fraction_numerical': 0.0036019810895992796, 'mean_word_length': 4.48641975308642, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 62, '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': '914442', 'n_tokens_mistral': 882, 'n_tokens_neox': 809, 'n_words': 138}