<commit_before># frozen_string_literal: true

module Heroics
  # Attempts to load configuration, provides defaults, and provide helpers to access that data
  class Configuration
    attr_reader :base_url, :cache_path, :module_name, :schema, :options

    def self.defaults
      @defaults ||= Configuration.new
    end

    def initialize
      @options = {}
      @options[:cache] = 'Moneta.new(:Memory)'

      yield self if block_given?
    end<commit_msg>Handle case where headers are not provided in config<commit_after># frozen_string_literal: true

module Heroics
  # Attempts to load configuration, provides defaults, and provide helpers to access that data
  class Configuration
    attr_reader :base_url, :cache_path, :module_name, :schema, :options

    def self.defaults
      @defaults ||= Configuration.new
    end

    def initialize
      @options = {}
      @options[:cache] = 'Moneta.new(:Memory)'
      @options[:default_headers] = {}

      yield self if block_given?
    end
{'fraction_non_alphanumeric': 0.08542713567839195, 'fraction_numerical': 0.0, 'mean_word_length': 3.5688073394495414, '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': '2857658', 'n_tokens_mistral': 282, 'n_tokens_neox': 271, 'n_words': 90}