<commit_before><%# the local variable 'related_identifier' should be passed in to this partial when there are multiple per page %>
<% form_id = unique_form_id(related_identifier) %>
<%= form_for(related_identifier, url: path, remote: true, authenticity_token: true, html: { id: form_id, class: 'c-input__inline' }) do |f| %>
  <% my_suffix = field_suffix(related_identifier) %>
  <%#= render "datacite/shared/error_messages", :target => @related_identifier %>
  <div class="c-input">
    <%= f.label "relation_type_id_#{my_suffix}", "Relationship", class: 'c-input__label' %>
    <%= f.select(:relation_type_id, StashDatacite::RelationType.all.map{|r| [r.relation_type, r.id]}, {prompt: "select relationship"}, {id: "related_identifier_relation_type_id_#{my_suffix}", class: "js-relation_type c-input__select"}) %>
  </div>
  <div class="c-input">
    <%= f.label "type_id_#{my_suffix}", "ID Type", class: 'c-input__label' %>
    <%= f.select(:related_identifier_type_id, StashDatacite::RelatedIdentifierType.all.map{|r| [r.related_identifier_type, r.id ]}, {prompt: "identifier_type"}, {id: "related_identifier_type_id_#{my_suffix}", class: "js-related_identifier_type c-input__select"}) %>
  </div>
  <div class="c-input">
    <%= f.label "#{my_suffix}", "Identifier", class: 'c-input__label' %>
    <%= f.text_field :related_identifier, size: 40, id: "related_identifier_#{my_suffix}", class: "js-related_identifier c-input__text"  %>
  </div>
  <%= link_to 'remove', stash_datacite.related_identifiers_delete_path(related_identifier.id || 'new'), method: :delete, remote: true, data: { confirm: 'Are you sure?' }, class: 'remove_record t-describe__remove-button o-button__remove' %>
    <%= f.hidden_field :resource_id %>
    <%= f.hidden_field :id %>
    <%= hidden_field_tag(:form_id, form_id) %>
<% end %><commit_msg>add default values for related identifier type and relation type<commit_after><%# the local variable 'related_identifier' should be passed in to this partial when there are multiple per page %>
<% form_id = unique_form_id(related_identifier) %>
<%= form_for(related_identifier, url: path, remote: true, authenticity_token: true, html: { id: form_id, class: 'c-input__inline' }) do |f| %>
  <% my_suffix = field_suffix(related_identifier) %>
  <%#= render "datacite/shared/error_messages", :target => @related_identifier %>
  <div class="c-input">
    <%= f.label "relation_type_id_#{my_suffix}", "Relationship", class: 'c-input__label' %>
    <%= f.select(:relation_type_id, StashDatacite::RelationType.all.map{|r| [r.relation_type, r.id]}, {}, {id: "related_identifier_relation_type_id_#{my_suffix}", class: "js-relation_type c-input__select"}) %>
  </div>
  <div class="c-input">
    <%= f.label "type_id_#{my_suffix}", "ID Type", class: 'c-input__label' %>
    <%= f.select(:related_identifier_type_id, StashDatacite::RelatedIdentifierType.all.map{|r| [r.related_identifier_type, r.id ]}, {}, {id: "related_identifier_type_id_#{my_suffix}", class: "js-related_identifier_type c-input__select"}) %>
  </div>
  <div class="c-input">
    <%= f.label "#{my_suffix}", "Identifier", class: 'c-input__label' %>
    <%= f.text_field :related_identifier, size: 40, id: "related_identifier_#{my_suffix}", class: "js-related_identifier c-input__text"  %>
  </div>
  <%= link_to 'remove', stash_datacite.related_identifiers_delete_path(related_identifier.id || 'new'), method: :delete, remote: true, data: { confirm: 'Are you sure?' }, class: 'remove_record t-describe__remove-button o-button__remove' %>
    <%= f.hidden_field :resource_id %>
    <%= f.hidden_field :id %>
    <%= hidden_field_tag(:form_id, form_id) %>
<% end %>
{'fraction_non_alphanumeric': 0.17448559670781894, 'fraction_numerical': 0.0010973936899862826, 'mean_word_length': 6.079611650485437, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 49, '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': '7057260', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1238, 'n_words': 246}