<commit_before>module Expansions
  extend self

  def expand(title = "Expansion",&block)
    Expansions::Expansion.instance.instance_eval(&block)
  end

  def glob(path)
    items = Dir.glob(path, File::FNM_DOTMATCH)
    items.each{|item| yield item if block_given?}
    return items
  end

  def configure(configuration_hash)
    configatron.configure_from_hash(configure_from_hash)
  end

  def disable_logging
    Expansions::Log.disable
  end

  def enable_logging
    Expansions::Log.enable
  end
<commit_msg>Updated the code<commit_after>module Expansions
  extend self

  def expand(title = "Expansion",&block)
    Expansions::Expansion.instance.instance_eval(&block)
  end

  def glob(path)
    items = Dir.glob(path, File::FNM_DOTMATCH)
    items.each{|item| yield item if block_given?}
    return items
  end

  def configure(configuration_hash)
    configatron.configure_from_hash(configuration_hash)
  end

  def disable_logging
    Expansions::Log.disable
  end

  def enable_logging
    Expansions::Log.enable
  end

{'fraction_non_alphanumeric': 0.08349514563106795, 'fraction_numerical': 0.0, 'mean_word_length': 4.180904522613066, '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': '2333984', 'n_tokens_mistral': 347, 'n_tokens_neox': 328, 'n_words': 70}