<commit_before>module Sworn
  class Configuration
    # A hash of consumer keys and their secrets
    attr_accessor :consumers

    # Maximum timestamp drift allowed
    attr_accessor :max_drift

    # A Proc that takes an OAuth options hash and returns true if the request
    # is replayed, and false if it is not
    attr_reader :replay_protector

    def replay_protector=(*args)
      klass, *parameters = args.flatten
      @replay_protector = klass.new(parameters)
    end

    # A hash of access tokens and their secrets
    attr_accessor :tokens

    def initialize
      @consumers        = Hash.new
      @max_drift        = 30
      @replay_protector = Sworn::ReplayProtector::Custom, lambda { |_| false }
      @tokens           = Hash.new
    end
  end
end<commit_msg>Really fixing the default configuration<commit_after>module Sworn
  class Configuration
    # A hash of consumer keys and their secrets
    attr_accessor :consumers

    # Maximum timestamp drift allowed
    attr_accessor :max_drift

    # A Proc that takes an OAuth options hash and returns true if the request
    # is replayed, and false if it is not
    attr_reader :replay_protector

    def replay_protector=(*args)
      klass, *parameters = args.flatten
      @replay_protector = klass.new(parameters)
    end

    # A hash of access tokens and their secrets
    attr_accessor :tokens

    def initialize
      self.consumers        = Hash.new
      self.max_drift        = 30
      self.tokens           = Hash.<PASSWORD>
      self.replay_protector = Sworn::ReplayProtector::Custom, lambda { |_| false }
    end
  end
end
{'fraction_non_alphanumeric': 0.05703657780533168, 'fraction_numerical': 0.0024798512089274642, 'mean_word_length': 2.6765375854214124, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2070225', 'n_tokens_mistral': 476, 'n_tokens_neox': 456, 'n_words': 157}