<commit_before>Spree::Product.class_eval do

  attr_accessible :discounted_amount
  delegate_belongs_to :master, :discounted_amount

end<commit_msg>Made discount related methods available on product instances.<commit_after>Spree::Product.class_eval do

  attr_accessible :discounted_amount

  delegate_belongs_to :master,
                      :discounted_amount,
                      :display_price_without_discounted_amount,
                      :price_without_discounted_amount,
                      :discount_as_percentage,
                      :discount_as_money,
                      :discounted?

end
{'fraction_non_alphanumeric': 0.05228758169934641, 'fraction_numerical': 0.0, 'mean_word_length': 2.5028571428571427, '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': '1065543', 'n_tokens_mistral': 176, 'n_tokens_neox': 162, 'n_words': 27}