<commit_before>module OnePageCheckout
  class OrderSummaryWidget < Apotomo::Widget
    include Spree::Core::Engine.routes.url_helpers

    helper Spree::BaseHelper
    helper Spree::OrdersHelper

    responds_to_event :shipping_address_updated, with: :redraw, passing: :root
    responds_to_event :shipping_method_updated, with: :redraw, passing: :root

    def initialize(parent, id, options = {})
      super(parent, id, options)

      @order = options.fetch(:order)
    end

    def display
      render
    end

    def redraw
      order.reload

      replace state: :display
    end

    private
<commit_msg>Removes unnecessary module include from OrderSummaryWidget<commit_after>module OnePageCheckout
  class OrderSummaryWidget < Apotomo::Widget
    helper Spree::BaseHelper
    helper Spree::OrdersHelper

    responds_to_event :shipping_address_updated, with: :redraw, passing: :root
    responds_to_event :shipping_method_updated, with: :redraw, passing: :root

    def initialize(parent, id, options = {})
      super(parent, id, options)

      @order = options.fetch(:order)
    end

    def display
      render
    end

    def redraw
      order.reload

      replace state: :display
    end

    private

{'fraction_non_alphanumeric': 0.07686017988552739, 'fraction_numerical': 0.0, 'mean_word_length': 3.3870967741935485, 'pattern_counts': {'":': 0, '<': 5, '<?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': '975052', 'n_tokens_mistral': 367, 'n_tokens_neox': 355, 'n_words': 93}