<commit_before><div class="box">
  <div class="legend">
    Search
  </div>

  <%= form_tag "/search", :method => :get do %>
    <div class="boxline">
      <%= text_field_tag "q", @search.q, { :size => 40 }.
        merge(@search.q.present? ? {} : { :autofocus => "autofocus" }) %>
      <input type="submit" value="Search">
    </div>

    <div class="boxline">
      <label class="required">Include:</label>

      <%= radio_button_tag "what", "all", @search.what == "all" %>
        <label for="search_what_all" class="normal">All</label>

      &nbsp;

      <%= radio_button_tag "what", "stories", @search.what == "stories" %>
        <label for="search_what_stories" class="normal">Stories</label>

      &nbsp;

      <%= radio_button_tag "what", "comments", @search.what == "comments" %>
        <label for="search_what_comments" class="normal">Comments</label>

      <br>

      <label class="required">Order By:</label>

      <%= radio_button_tag "order", "relevance", @search.order == "relevance" %>
        <label for="search_order_relevance" class="normal">Relevance</label>

      &nbsp;

      <%= radio_button_tag "order", "newest", @search.order == "newest" %>
        <label for="search_order_newest" class="normal">Newest</label>

      &nbsp;

      <%= radio_button_tag "order", "points", @search.order == "points" %>
        <label for="search_order_points" class="normal">Points</label>
    </div>
  <% end %>
</div>

<% if @search.results.any? %>
  <div class="box">
    <p><commit_msg>search: fix radio button labels<commit_after><div class="box">
  <div class="legend">
    Search
  </div>

  <%= form_tag "/search", :method => :get do %>
    <div class="boxline">
      <%= text_field_tag "q", @search.q, { :size => 40 }.
        merge(@search.q.present? ? {} : { :autofocus => "autofocus" }) %>
      <input type="submit" value="Search">
    </div>

    <div class="boxline">
      <label class="required">Include:</label>

      <%= radio_button_tag "what", "all", @search.what == "all" %>
        <label for="what_all" class="normal">All</label>

      &nbsp;

      <%= radio_button_tag "what", "stories", @search.what == "stories" %>
        <label for="what_stories" class="normal">Stories</label>

      &nbsp;

      <%= radio_button_tag "what", "comments", @search.what == "comments" %>
        <label for="what_comments" class="normal">Comments</label>

      <br>

      <label class="required">Order By:</label>

      <%= radio_button_tag "order", "relevance", @search.order == "relevance" %>
        <label for="order_relevance" class="normal">Relevance</label>

      &nbsp;

      <%= radio_button_tag "order", "newest", @search.order == "newest" %>
        <label for="order_newest" class="normal">Newest</label>

      &nbsp;

      <%= radio_button_tag "order", "points", @search.order == "points" %>
        <label for="order_points" class="normal">Points</label>
    </div>
  <% end %>
</div>

<% if @search.results.any? %>
  <div class="box">
    <p>
{'fraction_non_alphanumeric': 0.20353097934710193, 'fraction_numerical': 0.0013324450366422385, 'mean_word_length': 3.283880171184023, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 85, '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': '903480', 'n_tokens_mistral': 1069, 'n_tokens_neox': 984, 'n_words': 189}