<commit_before>module Glysellin
  class ShippingMethod < ActiveRecord::Base
    include Adjustment

    self.table_name = "glysellin_shipping_methods"

    has_many :orders, inverse_of: :shipping_method
    has_many :order_adjustments, as: :adjustment

    has_many :shipments, dependent: :destroy

    scope :ordered, -> { order("name ASC") }

    def carrier order
      Glysellin.shipping_carriers[identifier].new(order)
    end

    private

    def adjustment_value_for order
      carrier(order).calculate
    end
  end
end<commit_msg>Update shipping_method.rb<commit_after>module Glysellin
  class ShippingMethod < ActiveRecord::Base
    include Adjustment

    self.table_name = "glysellin_shipping_methods"

    has_many :order_adjustments, as: :adjustment

    has_many :shipments, dependent: :destroy

    scope :ordered, -> { order("name ASC") }

    def carrier order
      Glysellin.shipping_carriers[identifier].new(order)
    end

    private

    def adjustment_value_for order
      carrier(order).calculate
    end
  end
end
{'fraction_non_alphanumeric': 0.07574304889741132, 'fraction_numerical': 0.0, 'mean_word_length': 3.681614349775785, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3733225', 'n_tokens_mistral': 339, 'n_tokens_neox': 308, 'n_words': 72}