<commit_before><% query ||= nil %>
<% text = query.present? ? highlight(experiment.name, query.strip.split(/\s+/)) : experiment.name %>

<% if experiment.archived? %>
  <span class="label label-warning"><%=t "search.index.archived" %></span>
  <% if can_view_experiment(experiment) and can_restore_experiment(experiment.project) %>
    <a href="/">
      <%= text %>
    </a>
  <% else %>
    <%= text %>
  <% end %>
<% else %>
  <% if can_view_experiment(experiment) %>
    <a href="<%= experiment_path(experiment) %>">
      <%= text %><commit_msg>fixed search result link for experiment [fixes SCI-347]<commit_after><% query ||= nil %>
<% text = query.present? ? highlight(experiment.name, query.strip.split(/\s+/)) : experiment.name %>

<% if experiment.archived? %>
  <span class="label label-warning"><%=t "search.index.archived" %></span>
  <% if can_view_experiment(experiment) and can_restore_experiment(experiment.project) %>
    <a href="/">
      <%= text %>
    </a>
  <% else %>
    <%= text %>
  <% end %>
<% else %>
  <% if can_view_experiment(experiment) %>
    <a href="<%= canvas_experiment_path(experiment) %>">
      <%= text %>
{'fraction_non_alphanumeric': 0.20974760661444736, 'fraction_numerical': 0.0026109660574412533, 'mean_word_length': 3.893617021276596, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '1369823', 'n_tokens_mistral': 435, 'n_tokens_neox': 382, 'n_words': 73}