<commit_before><%= render 'page/required_field' %>
<%= simple_form_for(@shelf) do |f| -%>
  <%= f.error_messages -%>

  <div class="field">
    <%= f.label :name -%><br />
    <%= f.text_field :name, :class => 'short_name' -%>
  </div>

  <div class="field">
    <%= f.label :display_name -%><br />
    <%= f.text_area :display_name, :class => 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label :note -%><br />
    <%= f.text_area :note, :class => 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label t('activerecord.models.library') -%><br />
    <select id="library_id" name="library_id">
      <%- @libraries.each do |library| -%>
        <option value="<%= library.name -%>"<%= " selected='selected'" if @shelf.library == library -%>><%= library.display_name.localize -%></option>
      <%- end -%>
    </select>
  </div>

  <div class="field">
    <%= f.label :open_access -%><br />
    <%= f.check_box :open_acess -%>
  </div>
  
  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%><commit_msg>refs 2766 modified to create shelf<commit_after><%= render 'page/required_field' %>
<%= simple_form_for(@shelf) do |f| -%>
  <%= f.error_messages -%>

  <div class="field">
    <%= f.label :name -%><br />
    <%= f.text_field :name, :class => 'short_name' -%>
  </div>

  <div class="field">
    <%= f.label :display_name -%><br />
    <%= f.text_area :display_name, :class => 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label :note -%><br />
    <%= f.text_area :note, :class => 'resource_textarea' -%>
  </div>

  <div class="field">
    <%= f.label t('activerecord.models.library') -%><br />
    <select id="library_id" name="library_id">
      <%- @libraries.each do |library| -%>
        <option value="<%= library.name -%>"<%= " selected='selected'" if @shelf.library == library -%>><%= library.display_name.localize -%></option>
      <%- end -%>
    </select>
  </div>

  <div class="field">
    <%= f.label :open_access -%><br />
    <%= f.check_box :open_access -%>
  </div>
  
  <div class="actions">
    <%= f.submit %>
  </div>
<%- end -%>
{'fraction_non_alphanumeric': 0.24835371589840075, 'fraction_numerical': 0.0018814675446848542, 'mean_word_length': 2.9831460674157304, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 89, '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': '2992014', 'n_tokens_mistral': 883, 'n_tokens_neox': 814, 'n_words': 151}