<commit_before><% if logged_in? && current_user.is_admin? -%>
  <div style="float: left; width: 150px;">&nbsp;</div>
	<div style="float: right; width: 150px; font-weight: bold; color: white;">
	  <%= icon "lock", nil, "Admin mode", nil, "Admin mode" -%>
	</div>
<% end -%>

<% if logged_in? and SOLR_ENABLED %>
  <% form_tag '/search/' do -%>
    <%= text_field_tag :query %>
    <%= select_tag :type, "<option>All</option><option>People</option><option>Institutions</option><option>Projects</option>"  %>
  <%= submit_tag "Go"  %>
  <% end  -%>
<% end %>
<commit_msg>hide search bar during registration processes - the search bar only appears if logged in and associated with profile<commit_after><% if logged_in? && current_user.is_admin? -%>
  <div style="float: left; width: 150px;">&nbsp;</div>
	<div style="float: right; width: 150px; font-weight: bold; color: white;">
	  <%= icon "lock", nil, "Admin mode", nil, "Admin mode" -%>
	</div>
<% end -%>

<% if SOLR_ENABLED && logged_in? && current_user.person %>
  <% form_tag '/search/' do -%>
    <%= text_field_tag :query %>
    <%= select_tag :type, "<option>All</option><option>People</option><option>Institutions</option><option>Projects</option>"  %>
  <%= submit_tag "Go"  %>
  <% end  -%>
<% end %>

{'fraction_non_alphanumeric': 0.21094369547977795, 'fraction_numerical': 0.00951625693893735, 'mean_word_length': 4.463203463203463, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '5271069', 'n_tokens_mistral': 489, 'n_tokens_neox': 448, 'n_words': 105}