<commit_before>require "yml_reader/version"

module YmlReader

  def yml_directory=(directory)
    @yml_directory = directory
  end

  def yml_directory
    return @yml_directory if @yml_directory
    return default_directory if self.respond_to? :default_directory
    nil
  end

  def load(filename)
    YAML.load_file "#{@yml_directory}/#{filename}"
  end
  
end<commit_msg>assign yml file contants to @yml<commit_after>require "yml_reader/version"

module YmlReader

  def yml_directory=(directory)
    @yml_directory = directory
  end

  def yml_directory
    return @yml_directory if @yml_directory
    return default_directory if self.respond_to? :default_directory
    nil
  end

  def load(filename)
    @yml = YAML.load_file "#{@yml_directory}/#{filename}"
  end
  
end
{'fraction_non_alphanumeric': 0.07840616966580977, 'fraction_numerical': 0.0, 'mean_word_length': 4.193333333333333, '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': '1021772', 'n_tokens_mistral': 266, 'n_tokens_neox': 247, 'n_words': 61}