<commit_before>module Reform::Form::ActiveModel
  def self.included(base)
    base.class_eval do
      extend ClassMethods
    end
  end

  module ClassMethods
    def model(*args)
      @model_options  = args  # FIXME: make inheritable!
      main_model      = args.last[:on]

      delegate main_model, :to => :model  # #song => model.song
      delegate "persisted?", :to_key, :to_param, :to => main_model  # #to_key => song.to_key

      alias_method args.first, main_model # #hit => model.song.
    end

    def property(name, options={})<commit_msg>change Reform::Form::ActiveModel::ClassMethods.model, use symbol for delegation<commit_after>module Reform::Form::ActiveModel
  def self.included(base)
    base.class_eval do
      extend ClassMethods
    end
  end

  module ClassMethods
    def model(*args)
      @model_options  = args  # FIXME: make inheritable!
      main_model      = args.last[:on]

      delegate main_model, :to => :model  # #song => model.song
      delegate :persisted?, :to_key, :to_param, :to => main_model  # #to_key => song.to_key

      alias_method args.first, main_model # #hit => model.song.
    end

    def property(name, options={})
{'fraction_non_alphanumeric': 0.1148936170212766, 'fraction_numerical': 0.0, 'mean_word_length': 3.185053380782918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5808168', 'n_tokens_mistral': 384, 'n_tokens_neox': 364, 'n_words': 92}