<commit_before>require 'end_view'
require 'inflecto'
require 'delegate'

module EndView
  module Form
    class SimpleForm < SimpleDelegator
      include EndView.new(__FILE__)

      def self.render(*args)
        new(*args).render
      end

      def initialize(obj, auth_token, attributes)
        super(Form.builder(obj, auth_token))
        @attributes = attributes
      end

      private

      def label(attribute)
        Inflecto.humanize(attribute.to_s)
      end
    end
  end
end

__END__
<commit_msg>Simple form opts<commit_after>require 'end_view'
require 'inflecto'
require 'delegate'

module EndView
  module Form
    class SimpleForm < SimpleDelegator
      include EndView.new(__FILE__)

      def self.render(*args)
        new(*args).render
      end

      def initialize(obj, auth_token, attributes, opts = {})
        super(Form.builder(obj, auth_token, opts))
        @attributes = attributes
      end

      private

      def label(attribute)
        Inflecto.humanize(attribute.to_s)
      end
    end
  end
end

__END__

{'fraction_non_alphanumeric': 0.07889733840304182, 'fraction_numerical': 0.0, 'mean_word_length': 2.5938566552901023, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3606578', 'n_tokens_mistral': 320, 'n_tokens_neox': 312, 'n_words': 78}