<commit_before><% if @search.query.present? %>
  <% @title = "Searching for '#{@search.query}'" %>

  <p class="type">Songs &amp; lyrics matching '<%= @search.query %>'</p>

  <% if @search.songs.present? %>
    <% @search.songs.each do |song| %>
      <p>
        <%= link_to song.name, song %>
      </p>
    <% end %>
  <% else %>
    <p>
      No songs were found matching this term.
    </p>
  <% end %>

  <p class="type">Venues matching '<%= @search.query %>'</p>

  <% if @search.venues.present? %>
    <%= render @search.venues %>
  <% else %>
    <p>
      No venues were found matching this term.
    </p>
  <% end %>

  <p class="type">Shows matching '<%= @search.query %>'</p>

  <% if @search.shows.present? %>
    <div data-highlight="<%= @search.query %>">
      <%= render @search.shows %>
    </div>
  <% else %>
    <p>
      No shows were found matching this term.
    </p>
  <% end %>
<% else %>
  <% @title = "Searching for something?" %><commit_msg>Cache the searched shows<commit_after><% if @search.query.present? %>
  <% @title = "Searching for '#{@search.query}'" %>

  <p class="type">Songs &amp; lyrics matching '<%= @search.query %>'</p>

  <% if @search.songs.present? %>
    <% @search.songs.each do |song| %>
      <p>
        <%= link_to song.name, song %>
      </p>
    <% end %>
  <% else %>
    <p>
      No songs were found matching this term.
    </p>
  <% end %>

  <p class="type">Venues matching '<%= @search.query %>'</p>

  <% if @search.venues.present? %>
    <%= render @search.venues %>
  <% else %>
    <p>
      No venues were found matching this term.
    </p>
  <% end %>

  <p class="type">Shows matching '<%= @search.query %>'</p>

  <% if @search.shows.present? %>
    <div data-highlight="<%= @search.query %>">
      <% cache @search.shows do %>
        <%= render @search.shows %>
      <% end %>
    </div>
  <% else %>
    <p>
      No shows were found matching this term.
    </p>
  <% end %>
<% else %>
  <% @title = "Searching for something?" %>
{'fraction_non_alphanumeric': 0.21713147410358566, 'fraction_numerical': 0.0, 'mean_word_length': 2.4578313253012047, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '3931085', 'n_tokens_mistral': 801, 'n_tokens_neox': 695, 'n_words': 177}