<commit_before>= form_for [@group, resource], :html => { :class => 'form-horizontal' } do |f|

  = render 'basic_fields', :f => f

  - Server.data_types.each do |type|
    = f.fields_for type do |data|
      = render "#{type}/fields", :f => data

  .new_section_links
    - Server.data_types.each do |type|
      = link_to_add_fields "Add #{type}", f, type, "#{type}/fields"

  .form-actions
    = f.submit nil, :class => 'btn btn-primary'<commit_msg>Replace new section options with bootstrap dropdown buttons<commit_after>= form_for [@group, resource], :html => { :class => 'form-horizontal' } do |f|

  = render 'basic_fields', :f => f

  - Server.data_types.each do |type|
    = f.fields_for type do |data|
      = render "#{type}/fields", :f => data

  .new_section_links
    .btn-group
      = link_to '#', :class => ['btn', 'btn-warning', 'dropdown-toggle'], 'data-toggle' => 'dropdown' do
        New Section
        %span.caret

      %ul.dropdown-menu
        - Server.data_types.each do |type|
          %li= link_to_add_fields "Add #{type}", f, type, "#{type}/fields"

  .form-actions
    = f.submit nil, :class => 'btn btn-primary'
{'fraction_non_alphanumeric': 0.17307692307692307, 'fraction_numerical': 0.0, 'mean_word_length': 3.0602836879432624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '343336', 'n_tokens_mistral': 396, 'n_tokens_neox': 382, 'n_words': 100}