<commit_before>-# Render only the calculator settings and not the surrounding form
- enterprise_fee_set = ModelSet.new(EnterpriseFee, EnterpriseFee.where(:id => enterprise_fee.id))
- form = nil
= form_for enterprise_fee_set, :as => :enterprise_fee_set, :url => '' do |form|
  = form.fields_for :collection do |f|
    - form = capture do
      - if !enterprise_fee.new_record?
        .calculator-settings
          = f.fields_for :calculator do |calculator_form|
            = preference_fields(enterprise_fee.calculator, calculator_form)
= form
<commit_msg>Don't render teh bits we dont wants<commit_after>-# Render only the calculator settings and not the surrounding form
- enterprise_fee_set = ModelSet.new(EnterpriseFee, EnterpriseFee.where(:id => enterprise_fee.id))
- calculator_form_string = nil
- form_for enterprise_fee_set, :as => :enterprise_fee_set, :url => '' do |form|
  - form.fields_for :collection do |f|
    - calculator_form_string = capture do
      - if !enterprise_fee.new_record?
        .calculator-settings
          = f.fields_for :calculator do |calculator_form|
            = preference_fields(enterprise_fee.calculator, calculator_form)

= calculator_form_string

{'fraction_non_alphanumeric': 0.0980720871751886, 'fraction_numerical': 0.0, 'mean_word_length': 4.059322033898305, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5935118', 'n_tokens_mistral': 378, 'n_tokens_neox': 361, 'n_words': 88}