<commit_before>Spree::Order.class_eval do
  has_one :source, class_name: 'Spree::Hominid::OrderSource'

  after_save :notify_mail_chimp, if: :completed?

private
  def notify_mail_chimp
    Spree::Hominid::OrderNotice.new(self)
  end
end<commit_msg>Updates order to user spree hook instead of filter<commit_after>Spree::Order.class_eval do
  has_one :source, class_name: 'Spree::Hominid::OrderSource'

  register_update_hook :notify_mail_chimp

private
  def notify_mail_chimp
    Spree::Hominid::OrderNotice.new(self) if completed?
  end
end
{'fraction_non_alphanumeric': 0.0940959409594096, 'fraction_numerical': 0.0, 'mean_word_length': 6.647887323943662, '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': '2996680', 'n_tokens_mistral': 197, 'n_tokens_neox': 191, 'n_words': 39}