<commit_before>

<h1>Books</h1>

<%= form_tag nil, method: :get do %>

    <div class="field">
      <%= label_tag 'Topics' %>
      <%= text_field_tag "topics" %>
    </div>

  <div class="field">
    <%= submit_tag "Search", class: "button" %>
  </div>

<% end %>




<table class="tablesorter">
  <thead>
    <tr>
      <th>Title</th>
      <th>Isbn</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <%= render @books %>
  </tbody>
</table>

<br>

<%= link_to 'New Book', new_book_path %><commit_msg>Search form maintains search string<commit_after>

<h1>Books</h1>

<%= form_tag nil, method: :get do %>

    <div class="field">
      <%= label_tag 'Topics' %>
      <%= text_field_tag "topics", params['topics'] %>
    </div>

  <div class="field">
    <%= submit_tag "Search", class: "button" %>
  </div>

<% end %>




<table class="tablesorter">
  <thead>
    <tr>
      <th>Title</th>
      <th>Isbn</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <%= render @books %>
  </tbody>
</table>

<br>

<%= link_to 'New Book', new_book_path %>
{'fraction_non_alphanumeric': 0.22232472324723246, 'fraction_numerical': 0.005535055350553505, 'mean_word_length': 2.7157534246575343, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, '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': '3842086', 'n_tokens_mistral': 476, 'n_tokens_neox': 427, 'n_words': 89}