<commit_before>require 'configuration/yaml'

class TmuxPowerline
  def initialize(configuration_loader)
    if configuration_loader.nil?
      raise ArgumentError, "The configuration loader can't be nil"
    end
    @configuration_loader = configuration_loader
  end
end
<commit_msg>Define a default configuration loader and add a method to load the configuration<commit_after>require 'configuration/yaml'

class TmuxPowerline
  def initialize(configuration_loader=Configuration::Yaml.new)
    if configuration_loader.nil?
      raise ArgumentError, "The configuration loader can't be nil"
    end
    @configuration_loader = configuration_loader
  end

  def load_config(config)
    @configuration_loader.load_config(config)
  end
end

{'fraction_non_alphanumeric': 0.057065217391304345, 'fraction_numerical': 0.0, 'mean_word_length': 5.040983606557377, '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': '6029071', 'n_tokens_mistral': 195, 'n_tokens_neox': 190, 'n_words': 58}