<commit_before>require 'alki/settings'
require 'alki/service_delegator'

module Alki
  class Application
    attr_reader :settings

    def configure(&blk)
      self.instance_exec(&blk)
    end

    def initialize(settings={},root = Settings.new)
      unless root.is_a? Settings
        raise ArgumentError.new("Argument must be a settings object")
      end
      @group = root
      @settings = settings
      @stack = [@group]
    end

    def current_group
      @stack.last
    end
<commit_msg>Allow settings to be looked up via lookup<commit_after>require 'alki/settings'
require 'alki/service_delegator'

module Alki
  class Application
    def configure(&blk)
      self.instance_exec(&blk)
    end

    def initialize(settings={},root = Settings.new)
      unless root.is_a? Settings
        raise ArgumentError.new("Argument must be a settings object")
      end
      @group = root
      root.set :settings, settings
      @stack = [@group]
    end

    def current_group
      @stack.last
    end

{'fraction_non_alphanumeric': 0.08506429277942631, 'fraction_numerical': 0.0, 'mean_word_length': 2.748148148148148, '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': '81935', 'n_tokens_mistral': 297, 'n_tokens_neox': 291, 'n_words': 84}