<commit_before>require 'simple_form'
begin
  require 'nested_form/builder_mixin'
rescue LoadError
end


module FormTranslation
  module ViewHelper
    def simple_translated_form_for(object, *args, &block)
      options = args.extract_options!
        orig_simple_form_for(object,
          *(args << options.merge(builder: FormTranslation::CustomFormBuilder)),
          &block)
    end

    if defined?(FormTranslation::NestedCustomFormBuilder)
      def simple_translated_nested_form_for(object, *args, &block)
        options = args.extract_options!
        orig_simple_form_for(object,
          *(args << options.merge(builder: FormTranslation::NestedCustomFormBuilder)),
          &block)
      end
    end
  end
end<commit_msg>fix wrong method call<commit_after>require 'simple_form'
begin
  require 'nested_form/builder_mixin'
rescue LoadError
end


module FormTranslation
  module ViewHelper
    def simple_translated_form_for(object, *args, &block)
      options = args.extract_options!
        simple_form_for(object,
          *(args << options.merge(builder: FormTranslation::CustomFormBuilder)),
          &block)
    end

    if defined?(FormTranslation::NestedCustomFormBuilder)
      def simple_translated_nested_form_for(object, *args, &block)
        options = args.extract_options!
        simple_form_for(object,
          *(args << options.merge(builder: FormTranslation::NestedCustomFormBuilder)),
          &block)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.08594815825375171, 'fraction_numerical': 0.0, 'mean_word_length': 3.642405063291139, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, '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': '7040489', 'n_tokens_mistral': 420, 'n_tokens_neox': 413, 'n_words': 84}