<commit_before>require "judopay/version"
require File.expand_path('../judopay/api', __FILE__)
require File.expand_path('../judopay/payment', __FILE__)
require File.expand_path('../judopay/transaction', __FILE__)
require File.expand_path('../judopay/response', __FILE__)

module Judopay
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end

  class Configuration
    attr_accessor :api_version, 
                  :api_token,
                  :api_secret,
                  :format, 
                  :endpoint_url,
                  :user_agent

    def initialize
      # Set defaults
      @api_version = '4.0.0'
      @format = 'json'
      @endpoint_url = 'https://partnerapi.judopay-sandbox.com'
      @user_agent = 'Judopay Ruby SDK gem v' + Judopay::VERSION<commit_msg>Judopay.configure will now just use the default values if called without a block<commit_after>require "judopay/version"
require File.expand_path('../judopay/api', __FILE__)
require File.expand_path('../judopay/payment', __FILE__)
require File.expand_path('../judopay/transaction', __FILE__)
require File.expand_path('../judopay/response', __FILE__)

module Judopay
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration) if block_given?
  end

  class Configuration
    attr_accessor :api_version, 
                  :api_token,
                  :api_secret,
                  :format, 
                  :endpoint_url,
                  :user_agent

    def initialize
      # Set defaults
      @api_version = '4.0.0'
      @format = 'json'
      @endpoint_url = 'https://partnerapi.judopay-sandbox.com'
      @user_agent = 'Judopay Ruby SDK gem v' + Judopay::VERSION
{'fraction_non_alphanumeric': 0.1054921152800435, 'fraction_numerical': 0.0032626427406199023, 'mean_word_length': 2.607843137254902, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4575136', 'n_tokens_mistral': 566, 'n_tokens_neox': 537, 'n_words': 119}