<commit_before>require 'inputs/basic'

module Formtastic
  module Inputs
    module NumericInput
      include Formtastic::Inputs::Base
      include Formtastic::Inputs::Basic
      
      # Outputs a label and standard Rails text field inside the wrapper.
      def numeric_input(method, options)
        basic_input_helper(:text_field, :numeric, method, options)
      end
    end
  end
end<commit_msg>Use ValidationHelper#range_options_for in #numeric_input and return number_field with range-aware options.<commit_after>require 'inputs/basic'

module Formtastic
  module Inputs
    module NumericInput
      include Formtastic::Inputs::Base
      include Formtastic::Inputs::Basic
      
      # Outputs a label and standard Rails text field inside the wrapper.
      def numeric_input(method, options)
        basic_input_helper(:number_field, :numeric, method, range_options_for(method, options))
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.06344086021505377, 'fraction_numerical': 0.0, 'mean_word_length': 3.6318407960199006, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4317580', 'n_tokens_mistral': 257, 'n_tokens_neox': 255, 'n_words': 77}