<commit_before>Spree::Order.class_eval do
  attr_accessible :delivery_date

  validate :delivery_date, :presence => true, :allow_nil => false
  validate :delivery_date_cannot_be_in_the_past

  def delivery_date_must_be_past_today
    if !delivery_date.blank? and !(delivery_date > Date.today)
      errors.add(:delivery_date, "can't be in the past")
    end
  end
end<commit_msg>Renamed method<commit_after>Spree::Order.class_eval do
  attr_accessible :delivery_date

  validate :delivery_date, :presence => true, :allow_nil => false
  validate :delivery_date_must_be_past_today

  def delivery_date_must_be_past_today
    if !delivery_date.blank? and !(delivery_date > Date.today)
      errors.add(:delivery_date, "can't be in the past")
    end
  end
end
{'fraction_non_alphanumeric': 0.0873015873015873, 'fraction_numerical': 0.0, 'mean_word_length': 5.204918032786885, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '492887', 'n_tokens_mistral': 278, 'n_tokens_neox': 260, 'n_words': 56}