<commit_before>
<h1>Search Results</h1>
<ul>
<li><a href="#collections">Matched Collections</a></li>
<li><a href="#metrics">Matched Maturity Indicator Tests</a></li>
</ul>


<a name="metrics"><H3>Maturity Indicator Tests matching search terms</H3></a>

<div style="padding-left: 50px;">

<% @metrics.each do |metric| %>
    <strong>Test Name:</strong>
    <%= metric.name %>
  </p>
  <div style="padding-left: 50px;">

  <p>
    <strong>Indicator Identifier:</strong>
    Metric #<a href="<%= metric_url(metric.id)  %>"><%= metric.id %></a>
  </p>

  <p>
    <div style="width: 300px;">
    <strong>Description:</strong>
    <%= metric.description %>
    </div>
  </p>
    
  <p>
    <strong>Tests Principle:</strong>
    <a href="http://purl.org/fair-ontology#<%= metric.principle %>"><%= metric.principle %></a>
  </p>
  
  <p>
    <strong>Tests Maturity Indicator Metric:</strong>
    <a href="<%= metric.test_of_metric %>"><%= metric.test_of_metric %></a>
  </p>
  
  <p>
    <strong>Test Interface URL (SmartAPI):</strong>
    <a href='<%= metric.smarturl %>'><%= metric.smarturl %></a>
  </p>
  
  <p>
    <strong>Deprecated?:</strong>
      <% if metric.deprecated == true %>
      <span style="color:red;">
      <% end %>
      <%= metric.deprecated %>
      <% if metric.deprecated == true %>
      </span>
      <% end %>
  
  </p>
  </div>
<br/><br/>
<% end %>
</div>

<hr/>


<a name="collections"><H3>Collections matching search terms</H3></a>

<div style="padding-left: 50px;">

<% @collections.each do |collection| %>

<p>
  <strong>Name:</strong>
  <%= collection.name %>
</p>

<p>
  <strong>Description:</strong>
  <div style="width: 300px;">
  <%= collection.description %>
  </div>
</p>

<p>
  <strong>Contact:</strong>
  <a href="https://orcid.org/<%= collection.contact %>"><%= collection.contact %></a>
</p>

<p>
  <strong>Organization:</strong>
  <%= collection.organization %>
</p>

<p>
  <strong>Includes the following FAIR Maturity Indicator Tests:</strong>
  <div style="padding-left: 30px;">

  <% collection.metrics.each do |m| %>
  
        <p></p><span style='text-indent: 30px;'></span><a href="<%= url_for m %>"><%= m.id %> : <%= m.name %></a></span>
  
  <% end %>

  </div>
  <% end %>
</div>


<br>

<%= link_to 'Home', about_path %> <commit_msg>better formatting for human-readable search results<commit_after>
<h1>Search Results</h1>
<ul>
<li><a href="#collections">Matched Collections</a></li>
<li><a href="#metrics">Matched Maturity Indicator Tests</a></li>
</ul>

<a name="collections"><H3>Collections matching search terms</H3></a>

<div style="padding-left: 50px;">
<% unless @collections.any? %>
  <strong>NO MATCHES</strong>
<% end %>

<% @collections.each do |collection| %>

<p>
  <strong>Name:</strong>
  <%= collection.name %>
</p>

<p>
  <strong>Description:</strong>
  <div style="width: 300px;">
  <%= collection.description %>
  </div>
</p>

<p>
  <strong>Contact:</strong>
  <a href="https://orcid.org/<%= collection.contact %>"><%= collection.contact %></a>
</p>

<p>
  <strong>Organization:</strong>
  <%= collection.organization %>
</p>

<p>
  <strong>Includes the following FAIR Maturity Indicator Tests:</strong>
  <div style="padding-left: 30px;">

  <% collection.metrics.each do |m| %>
  
        <p></p><span style='text-indent: 30px;'></span><a href="<%= url_for m %>"><%= m.id %> : <%= m.name %></a></span>
  
  <% end %>

  </div>
  <% end %>
</div>


<br/><br/>

<hr/>


<a name="metrics"><H3>Maturity Indicator Tests matching search terms</H3></a>

<div style="padding-left: 50px;">
<% unless @metrics.any? %>
  <strong>NO MATCHES</strong>
<% end %>

<% @metrics.each do |metric| %>
    <strong>Test Name:</strong>
    <%= metric.name %>
  </p>
  <div style="padding-left: 50px;">

  <p>
    <strong>Indicator Identifier:</strong>
    Metric #<a href="<%= metric_url(metric.id)  %>"><%= metric.id %></a>
  </p>

  <p>
    <div style="width: 300px;">
    <strong>Description:</strong>
    <%= metric.description %>
    </div>
  </p>
    
  <p>
    <strong>Tests Principle:</strong>
    <a href="http://purl.org/fair-ontology#<%= metric.principle %>"><%= metric.principle %></a>
  </p>
  
  <p>
    <strong>Tests Maturity Indicator Metric:</strong>
    <a href="<%= metric.test_of_metric %>"><%= metric.test_of_metric %></a>
  </p>
  
  <p>
    <strong>Test Interface URL (SmartAPI):</strong>
    <a href='<%= metric.smarturl %>'><%= metric.smarturl %></a>
  </p>
  
  <p>
    <strong>Deprecated?:</strong>
      <% if metric.deprecated == true %>
      <span style="color:red;">
      <% end %>
      <%= metric.deprecated %>
      <% if metric.deprecated == true %>
      </span>
      <% end %>
  
  </p>
  </div>
<br/><br/>
<% end %>
</div>

<br/><br/>

<hr/>



<br/>
<%= link_to 'Home', about_path %> 
{'fraction_non_alphanumeric': 0.2381650607457059, 'fraction_numerical': 0.009216589861751152, 'mean_word_length': 3.4009216589861753, 'pattern_counts': {'":': 0, '<': 278, '<?xml version=': 0, '>': 278, 'https://': 2, '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': '7662003', 'n_tokens_mistral': 1974, 'n_tokens_neox': 1779, 'n_words': 354}