<commit_before>module Munge
  class Runner
    class << self
      def method_missing(method, config_path, rules_path, *args)
        runner = new(config_path, rules_path)
        runner.public_send(method, *args)
      end

      def respond_to_missing?(method, *)
        if instance_methods.include?(method)
          true
        else
          super
        end
      end
    end

    def initialize(config_path, rules_path)
      @app = app = Munge::Application.new(config_path)

      binding.eval(File.read(rules_path), rules_path)
    end

    def write
      @app.write
    end
  end
end
<commit_msg>application prints what it creates<commit_after>module Munge
  class Runner
    class << self
      def method_missing(method, config_path, rules_path, *args)
        runner = new(config_path, rules_path)
        runner.public_send(method, *args)
      end

      def respond_to_missing?(method, *)
        if instance_methods.include?(method)
          true
        else
          super
        end
      end
    end

    def initialize(config_path, rules_path)
      @app = app = Munge::Application.new(config_path)

      binding.eval(File.read(rules_path), rules_path)
    end

    def write
      @app.write do |item|
        puts "#{item.route}"
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.08217054263565891, 'fraction_numerical': 0.0, 'mean_word_length': 2.235588972431078, 'pattern_counts': {'":': 0, '<': 7, '<?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': '1414479', 'n_tokens_mistral': 395, 'n_tokens_neox': 391, 'n_words': 93}