<commit_before>Spree::Product.class_eval do
  delegate_belongs_to :master, :stock_threshold
  attr_accessible :stock_threshold

  def stock_warning?
    return true if !stock_threshold.nil? and on_hand > stock_threshold
    false
  end

end<commit_msg>changed value order to match question<commit_after>Spree::Product.class_eval do
  delegate_belongs_to :master, :stock_threshold
  attr_accessible :stock_threshold

  def stock_warning?
    return false if !stock_threshold.nil? and on_hand > stock_threshold
    true
  end

end
{'fraction_non_alphanumeric': 0.056818181818181816, 'fraction_numerical': 0.0, 'mean_word_length': 5.2976190476190474, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3207618', 'n_tokens_mistral': 164, 'n_tokens_neox': 159, 'n_words': 42}