<commit_before><%
    show_attributes = (params[:action] == "edit")
    show_attributes = show_attributes || !bioportal_search_enabled?

    attributes_display = show_attributes ? 'block' : 'none'
%>

<% if bioportal_search_enabled? %>
    <div id="organism-search">
      <%= render :partial=>"search_bioportal" %>
    </div>
<% end %>
<commit_msg>added an alert to suggest getting api key<commit_after><%
    show_attributes = (params[:action] == "edit")
    show_attributes = show_attributes || !bioportal_search_enabled?

    attributes_display = show_attributes ? 'block' : 'none'
%>

<% if bioportal_search_enabled? %>
    <div id="organism-search">
      <%= render :partial=>"search_bioportal" %>
    </div>
<% elsif admin_logged_in? %>
    <div class="alert alert-warning" role="alert">
      If you wish to add the ability to search the NCBI taxonomy, please register with http://bioportal.bioontology.org to get an API key.<br/>
      You can then add the API key under Server admin -> Site configuration -> Additional settings
    </div>
<% end %>

{'fraction_non_alphanumeric': 0.13679245283018868, 'fraction_numerical': 0.0, 'mean_word_length': 4.052380952380952, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '1765802', 'n_tokens_mistral': 339, 'n_tokens_neox': 322, 'n_words': 87}