<commit_before><%= "<% form_for([#{model.rails_backvar_tuple.join(',')}]) do |f| %" + ">" %>
<%= "<%= f.error_messages %" + ">" %>
<% model.fields.each do |k, v| %>
  <div>
    <%= "    <%= f.label :#{k} %" + ">" %>
    <%= model.rails_field_string(k, v) %>
  </div>
<% end %>

<% keys_in_path = model.resource_tuple.map {|x| x.s + "_id" } %>
<% model.foreign_keys.uniq.reject {|x| keys_in_path.member?(x) }.each do |key| %>
  <div>
    <%= "    <%= f.label :#{key[0..-4]} %" + ">" %>
    <%= model.rails_field_string(key, "foreign_key") %>
  </div>
<% end %>

  <div>
    <%= "<%= f.submit 'Submit' %" + ">" %>
  </div>
<%= "<% end %" + ">" %><commit_msg>removed some of the worst nastiness in the ERB templates by using %%><commit_after><%= "<% form_for([#{model.rails_backvar_tuple.join(',')}]) do |f| %%>" %>
<%= "<%= f.error_messages %%>" %>
<% model.fields.each do |k, v| %>
  <div>
    <%= "    <%= f.label :#{k} %%>" %>
    <%= model.rails_field_string(k, v) %>
  </div>
<% end %>

<% keys_in_path = model.resource_tuple.map {|x| x.s + "_id" } %>
<% model.foreign_keys.uniq.reject {|x| keys_in_path.member?(x) }.each do |key| %>
  <div>
    <%= "    <%= f.label :#{key[0..-4]} %%>" %>
    <%= model.rails_field_string(key, "foreign_key") %>
  </div>
<% end %>

  <div>
    <%= "<%= f.submit 'Submit' %%>" %>
  </div>
<%= "<% end %%>" %>
{'fraction_non_alphanumeric': 0.3072916666666667, 'fraction_numerical': 0.002976190476190476, 'mean_word_length': 3.297124600638978, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 54, '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': '5313749', 'n_tokens_mistral': 647, 'n_tokens_neox': 576, 'n_words': 90}