<commit_before>
<%= form_for(@parent) do |f| %>
  <div id=error_explanation>
  <% if @parent.errors.any? %>
  <ul>
    <% @parent.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
  </ul>
  </div>
  <% end %>

  <%= f.fields_for :items, Item.new do |item_builder| %>
    <%= item_builder.label :name %>
    <%= item_builder.text_field :name %>
    <%= item_builder.label :description %>
    <%= item_builder.text_field :description %>
    <%= item_builder.label :url %>
    <%= item_builder.text_field :url %>
  <% end %>

  <%= f.submit "Add the item to #{@parent.name}" %>
<% end %><commit_msg>added the ability to edit the item by changing to instance variable<commit_after>
<%= form_for(@parent) do |f| %>
  <div id=error_explanation>
  <% if @parent.errors.any? %>
  <ul>
    <% @parent.errors.full_messages.each do |msg| %>
      <li><%= msg %></li>
    <% end %>
  </ul>
  </div>
  <% end %>

  <%= f.fields_for :items, @item do |item_builder| %>
    <%= item_builder.label :name %>
    <%= item_builder.text_field :name %>
    <%= item_builder.label :description %>
    <%= item_builder.text_field :description %>
    <%= item_builder.label :url %>
    <%= item_builder.text_field :url %>
  <% end %>

  <%= f.submit "Add the item to #{@parent.name}" %>
<% end %>
{'fraction_non_alphanumeric': 0.2063125481139338, 'fraction_numerical': 0.0, 'mean_word_length': 3.207119741100324, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '5976710', 'n_tokens_mistral': 532, 'n_tokens_neox': 464, 'n_words': 99}