<commit_before>require 'puppet'
require 'fizzgig/matchers'
require 'fizzgig/function_stubs'
require 'lspace'

class Puppet::Resource::TypeCollection
  alias_method :find_or_load_real, :find_or_load
  def find_or_laod(namespaces, name, type)
    $stderr.puts "Resourcing #{name} #{type} in #{namespaces}"
    find_or_load_real(namespaces,name,type)
  end
end

module Fizzgig
  def self.instantiate(type,title,params,options = {})
    LSpace.with(:function_stubs => options[:stubs]) do
      setup_fizzgig({modulepath: options[:modulepath],manifestdir: options[:manifestdir]})
      compiler = make_compiler(options[:facts])
      scope = compiler.newscope(nil)<commit_msg>remove monkey-patch which was only ever used for debugging<commit_after>require 'puppet'
require 'fizzgig/matchers'
require 'fizzgig/function_stubs'
require 'lspace'

module Fizzgig
  def self.instantiate(type,title,params,options = {})
    LSpace.with(:function_stubs => options[:stubs]) do
      setup_fizzgig({modulepath: options[:modulepath],manifestdir: options[:manifestdir]})
      compiler = make_compiler(options[:facts])
      scope = compiler.newscope(nil)
{'fraction_non_alphanumeric': 0.12038664323374342, 'fraction_numerical': 0.0, 'mean_word_length': 6.301282051282051, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7007299', 'n_tokens_mistral': 383, 'n_tokens_neox': 372, 'n_words': 69}