<commit_before><%= simple_form_for @resource, html: { role: "form" } do |f| %>
  <% attrs_for_form.each do |attr| %>
    <div class="form-group">
      <% if @resource_class.column_names.include? attr.to_s %>
        <%= f.input attr, error: false, input_html: { class: "form-control" } %>
      <% else %>
        <%= f.association attr, error: false, input_html: { class: "form-control chosen" } %>
      <% end %>
    </div>
  <% end %>
  <%= f.button :submit, class: "btn btn-default" %>
<% end %><commit_msg>Check for association first<commit_after><%= simple_form_for @resource, html: { role: "form" } do |f| %>
  <% attrs_for_form.each do |attr| %>
    <div class="form-group">
      <% if @resource_class.reflect_on_association(attr) %>
        <%= f.association attr, error: false, input_html: { class: "form-control chosen" } %>
      <% else %>
        <%= f.input attr, error: false, input_html: { class: "form-control" } %>
      <% end %>
    </div>
  <% end %>
  <%= f.button :submit, class: "btn btn-default" %>
<% end %>
{'fraction_non_alphanumeric': 0.19768563162970107, 'fraction_numerical': 0.0, 'mean_word_length': 3.135458167330677, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '7235821', 'n_tokens_mistral': 393, 'n_tokens_neox': 355, 'n_words': 84}