<commit_before><%= content_input as: :hidden, key: :type, value: component.type, component_idx: component_idx %>
<%= content_input as: :hidden, key: :id, value: component.id, component_idx: component_idx %>
<%= content_input as: :hidden, key: '_destroy', class: 'destroy', component_idx: component_idx %>

<% component.content_attributes.each do |attribute| %>
  <% css_class = !attribute_errors(component, attribute).nil? ? 'error' : '' %>
  <div class="row <%= css_class %>">
    <%= render 'cms/content_attributes/' + attribute.type_name + '_field', object: component, attribute: attribute, component_idx: component_idx %>
  </div>
<% end %><commit_msg>added template as component hidden field<commit_after><%= content_input as: :hidden, key: :type, value: component.type, component_idx: component_idx %>
<%= content_input as: :hidden, key: :id, value: component.id, component_idx: component_idx %>
<%= content_input as: :hidden, key: '_destroy', class: 'destroy', component_idx: component_idx %>
<%= content_input as: :hidden, key: :template, value: component.class.template, component_idx: component_idx %>

<% component.content_attributes.each do |attribute| %>
  <% css_class = !attribute_errors(component, attribute).nil? ? 'error' : '' %>
  <div class="row <%= css_class %>">
    <%= render 'cms/content_attributes/' + attribute.type_name + '_field', object: component, attribute: attribute, component_idx: component_idx %>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.16540317022742937, 'fraction_numerical': 0.0, 'mean_word_length': 6.296482412060302, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 24, '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': '3100751', 'n_tokens_mistral': 465, 'n_tokens_neox': 427, 'n_words': 114}