<commit_before>require './lib/dynamic_mustache.rb'
require 'yaml'

module Chintz
  class Parser

    def initialize
      @deps = {}
    end

    def prepare element_name

      element = load_yaml element_name
      raise "Manifest must provide a Name" unless element["name"]
      return unless element['dependencies']

      resolve_dependencies element['dependencies']
      @deps
    end

    def load_yaml name
      yaml_path = Dir.glob("chintz/**/#{name}.yaml").first
      YAML.load_file yaml_path
    end
<commit_msg>tidy up<commit_after>require './lib/dynamic_mustache.rb'
require 'yaml'

module Chintz
  class Parser

    def initialize
      @deps = {}
    end

    def prepare element_name
      element = load_yaml element_name
      raise "Manifest must provide a Name" unless element["name"]
      return unless element['dependencies']
      resolve_dependencies element['dependencies']
    end

    def load_yaml name
      yaml_path = Dir.glob("chintz/**/#{name}.yaml").first
      YAML.load_file yaml_path
    end

{'fraction_non_alphanumeric': 0.08994197292069632, 'fraction_numerical': 0.0, 'mean_word_length': 2.935361216730038, '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': '3894453', 'n_tokens_mistral': 316, 'n_tokens_neox': 297, 'n_words': 82}