<commit_before>Spree::Address.class_eval do
  include AddressDisplay

  has_one :enterprise, dependent: :restrict
  belongs_to :country, class_name: "Spree::Country"

  after_save :touch_enterprise

  geocoded_by :geocode_address

  delegate :name, to: :state, prefix: true, allow_nil: true

  def geocode_address
    render_address([address1, address2, zipcode, city, country.andand.name, state.andand.name])
  end

  def full_address
    render_address([address1, address2, city, zipcode, state.andand.name])
  end<commit_msg>Replace deprecated :restrict option in address_decorator.rb<commit_after>Spree::Address.class_eval do
  include AddressDisplay

  has_one :enterprise, dependent: :restrict_with_exception
  belongs_to :country, class_name: "Spree::Country"

  after_save :touch_enterprise

  geocoded_by :geocode_address

  delegate :name, to: :state, prefix: true, allow_nil: true

  def geocode_address
    render_address([address1, address2, zipcode, city, country.andand.name, state.andand.name])
  end

  def full_address
    render_address([address1, address2, city, zipcode, state.andand.name])
  end
{'fraction_non_alphanumeric': 0.09131602506714413, 'fraction_numerical': 0.007162041181736795, 'mean_word_length': 5.615384615384615, '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': '6798939', 'n_tokens_mistral': 374, 'n_tokens_neox': 362, 'n_words': 86}