<commit_before>module Spree
  module Auth
    # Singleton class to access the shipping configuration object (ActiveShippingConfiguration.first by default) and it's preferences.
    #
    # Usage:
    #   Spree::Auth::Config[:foo]                  # Returns the foo preference
    #   Spree::Auth::Config[]                      # Returns a Hash with all the tax preferences
    #   Spree::Auth::Config.instance               # Returns the configuration object (AuthConfiguration.first)
    #   Spree::Auth::Config.set(preferences_hash)  # Set the spree auth preferences as especified in +preference_hash+
    class Config
      include Singleton
      include Spree::PreferenceAccess

      class << self
        def instance
          return nil unless ActiveRecord::Base.connection.tables.include?('configurations')
          Spree::AuthConfiguration.find_or_create_by_name('Default spree_auth configuration')
        end
      end
    end
  end
end<commit_msg>[auth] fix reference to Spree::Configuration table<commit_after>module Spree
  module Auth
    # Singleton class to access the shipping configuration object (ActiveShippingConfiguration.first by default) and it's preferences.
    #
    # Usage:
    #   Spree::Auth::Config[:foo]                  # Returns the foo preference
    #   Spree::Auth::Config[]                      # Returns a Hash with all the tax preferences
    #   Spree::Auth::Config.instance               # Returns the configuration object (AuthConfiguration.first)
    #   Spree::Auth::Config.set(preferences_hash)  # Set the spree auth preferences as especified in +preference_hash+
    class Config
      include Singleton
      include Spree::PreferenceAccess

      class << self
        def instance
          return nil unless ActiveRecord::Base.connection.tables.include?('spree_configurations')
          Spree::AuthConfiguration.find_or_create_by_name('Default spree_auth configuration')
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.07422470767666497, 'fraction_numerical': 0.0, 'mean_word_length': 2.84375, 'pattern_counts': {'":': 0, '<': 7, '<?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': '217008', 'n_tokens_mistral': 496, 'n_tokens_neox': 484, 'n_words': 146}