<commit_before><%
# Parameters:
# field_name
# metadata_path: to be aligned with metadata schema of Datacite
# objects: use to populate some field taken from seek asset
# description: some explanation how to input the content
%>

<div class="metadata">
  <span class="label">
    <%= label_tag "#{field_name}".capitalize.pluralize %>
  </span>

  <span class="description">
    <%= description %>
  </span>

  <table id="<%= table_id %>" class="field">
    <% objects.each_with_index do |object, index| %>
        <tr id='<%= field_name %>_<%= index %>'>
          <td>
            <%= text_field_tag "#{metadata_path}[#{index}]", object, :size => 40 %>
          </td><commit_msg>fix a mistake<commit_after><%
# Parameters:
# field_name
# metadata_path: to be aligned with metadata schema of Datacite
# objects: use to populate some field taken from seek asset
# description: some explanation how to input the content
%>

<div class="metadata">
  <span class="label">
    <%= label_tag "#{field_name}".capitalize.pluralize %>
  </span>

  <span class="description">
    <%= description %>
  </span>

  <table id="<%= field_name %>" class="field">
    <% objects.each_with_index do |object, index| %>
        <tr id='<%= field_name %>_<%= index %>'>
          <td>
            <%= text_field_tag "#{metadata_path}[#{index}]", object, :size => 40 %>
          </td>
{'fraction_non_alphanumeric': 0.16862170087976538, 'fraction_numerical': 0.002932551319648094, 'mean_word_length': 3.5652173913043477, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '3131688', 'n_tokens_mistral': 460, 'n_tokens_neox': 423, 'n_words': 121}