<commit_before>module ExpressTemplates
  module Components
    module Forms
      class Submit < FormComponent

        has_option :button_class, 'The css class of the input button.'
        has_option :value, 'The value of the submit tag.  Text show in button.',
                           default: 'Save'

        contains -> {
          submit_tag(value, input_attributes)
        }

        before_build -> {
          # if we are not part of a form, we don't get a default id
          begin
            super()
          rescue
            add_class(config[:class])
            remove_class('submit')
          end
        }

        def value
          config[:value]
        end

      end
    end
  end
end
<commit_msg>Fix submit for config[:wrapper_class] change to form_component<commit_after>module ExpressTemplates
  module Components
    module Forms
      class Submit < FormComponent

        has_option :button_class, 'The css class of the input button.'
        has_option :value, 'The value of the submit tag.  Text show in button.',
                           default: 'Save'

        contains -> {
          submit_tag(value, input_attributes)
        }

        before_build -> {
          # if we are not part of a form, we don't get a default id
          begin
            super()
          rescue
            add_class(config[:wrapper_class])
            remove_class('submit')
          end
        }

        def value
          config[:value]
        end

      end
    end
  end
end

{'fraction_non_alphanumeric': 0.06411103767349637, 'fraction_numerical': 0.0, 'mean_word_length': 1.5445378151260505, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3513898', 'n_tokens_mistral': 396, 'n_tokens_neox': 383, 'n_words': 134}