<commit_before><i>All fields but 'title' are optional, but the more fields added, the better the chance of trading a book</i><br />

<%= form_for ([ @user, @book ]) do |f|  %>

  <div class="field">
    <%= f.label :title  %><br />
    <%= f.text_field :title, :size => "50" %>
  </div>  

  <div class="field">
    <%= f.label :author_last_name %><br />
    <%= f.text_field :author_last_name %>
  </div>

  <div class="field">
    <%= f.label :author_first_name %><br />
    <%= f.text_field :author_first_name %>
  </div>

  <div class="field">
    <%= f.label :ISBN %><br />
    <%= f.text_field :isbn %>
  </div>

  <div class="radio_field">
    <p><strong>Condition</strong></p>
    <%= f.label :condition, 'Like New', :value => 'Like new' %>
    <%= f.radio_button :condition, "Like New" %><br />
    <%= f.label :condition, 'Good', :value => 'Good' %>
    <%= f.radio_button :condition, "Good" %><br />
    <%= f.label :condition, 'Fair', :value => 'Fair' %>
    <%= f.radio_button :condition, "Fair" %><br />
  </div>

  <div class="text_area">
    <%= f.label :description%><br />
    <%= f.text_area :description, :size => "50" %>
  </div>

  <div class="checkboxes">
  Genre(s): <%= f.collection_check_boxes :genre_ids, Genre.base_genres, :id, :name, :item_wrapper_class => "inline" %>
  </div>

  <div class="text_area"><commit_msg>reverted books _form partial checkbox<commit_after><i>All fields but 'title' are optional, but the more fields added, the better the chance of trading a book</i><br />

<%= form_for ([ @user, @book ]) do |f|  %>

  <div class="field">
    <%= f.label :title  %><br />
    <%= f.text_field :title, :size => "50" %>
  </div>  

  <div class="field">
    <%= f.label :author_last_name %><br />
    <%= f.text_field :author_last_name %>
  </div>

  <div class="field">
    <%= f.label :author_first_name %><br />
    <%= f.text_field :author_first_name %>
  </div>

  <div class="field">
    <%= f.label :ISBN %><br />
    <%= f.text_field :isbn %>
  </div>

  <div class="radio_field">
    <p><strong>Condition</strong></p>
    <%= f.label :condition, 'Like New', :value => 'Like new' %>
    <%= f.radio_button :condition, "Like New" %><br />
    <%= f.label :condition, 'Good', :value => 'Good' %>
    <%= f.radio_button :condition, "Good" %><br />
    <%= f.label :condition, 'Fair', :value => 'Fair' %>
    <%= f.radio_button :condition, "Fair" %><br />
  </div>

  <div class="text_area">
    <%= f.label :description%><br />
    <%= f.text_area :description, :size => "50" %>
  </div>

  <div class="checkboxes">
  Genre(s): <%= f.collection_check_boxes :genre_ids, Genre.all, :id, :name, :item_wrapper_class => "inline" %>
  </div>

  <div class="text_area">
{'fraction_non_alphanumeric': 0.2261640798226164, 'fraction_numerical': 0.0029563932002956393, 'mean_word_length': 3.359098228663446, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 111, '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': '4528619', 'n_tokens_mistral': 1096, 'n_tokens_neox': 1008, 'n_words': 231}