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

<% if logged_in? && current_user.person && !Person.admins.empty? -%>
  <% if Seek::Config.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 => "#{Seek::Config.application_name} feedback", :id => "feedback" %></span>
  <% end %>
<% end -%>

<% if admin_logged_in? -%>
  <%= image_tag_for_key "admin", admin_path, "Admin", {:id=>"adminmode"}, "Admin" -%>
<% end -%>

<% if Seek::Config.solr_enabled -%>
  <% tooltip_text="Checking this box allows external resources to be includes in the search.<br/> This means the search will take longer, but will include results from other sites" -%>
  <% form_tag '/search/' do -%>
    <div id="search_box">
      <%= text_field_tag :search_query, @search_query -%>
      <%= select_tag :search_type, options_for_select(search_type_options,@search_type)  %>
      <span title='<%= tooltip_title_attrib(tooltip_text) -%>'><%= check_box_tag :include_external_search -%>External</span>
      <%= submit_tag "Go" -%>
    </div>
  <% end  -%>
<% end %>

<commit_msg>showing of external search checkbox honours configuration setting for whether it is enabled or not<commit_after><% @search_query="" unless @search_query %>
<% @search_type="All" unless @search_type %>

<% if logged_in? && current_user.person && !Person.admins.empty? -%>
  <% if Seek::Config.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 => "#{Seek::Config.application_name} feedback", :id => "feedback" %></span>
  <% end %>
<% end -%>

<% if admin_logged_in? -%>
  <%= image_tag_for_key "admin", admin_path, "Admin", {:id=>"adminmode"}, "Admin" -%>
<% end -%>

<% if Seek::Config.solr_enabled -%>
  <% form_tag '/search/' do -%>
    <div id="search_box">
      <%= text_field_tag :search_query, @search_query -%>
      <%= select_tag :search_type, options_for_select(search_type_options,@search_type)  %>
      <% if Seek::Config.external_search_enabled %>
        <% tooltip_text="Checking this box allows external resources to be includes in the search.<br/> This means the search will take longer, but will include results from other sites" -%>
        <span title='<%= tooltip_title_attrib(tooltip_text) -%>'><%= check_box_tag :include_external_search -%>External</span>
      <% end %>
      <%= submit_tag "Go" -%>
    </div>
  <% end  -%>
<% end %>


{'fraction_non_alphanumeric': 0.1969433831191386, 'fraction_numerical': 0.0013893713094824591, 'mean_word_length': 4.636007827788649, 'pattern_counts': {'":': 0, '<': 63, '<?xml version=': 0, '>': 73, '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': '4316197', 'n_tokens_mistral': 1068, 'n_tokens_neox': 981, 'n_words': 203}