<commit_before>module Merb::Template

  class Builder
    def self.compile_template(path, name, mod)
      path = File.expand_path(path)
      config = (Merb::Plugins.config[:builder] || { }).inject({}) do |c, (k, v)|
        c[k.to_sym] = v
        c
      end.merge :filename => path
      
      method = mod.is_a?(Module) ? :module_eval : :instance_eval
      mod.send(method, %{
        def #{name}(_builder_locals = {})
          @_engine = 'builder'
          xml = ::Builder::XmlMarkup.new :indent => 2
          self.instance_eval %{#{File.read(path)}}
          xml.target!
        end
      })
      
      name    
    end
  
    module Mixin; end
    Merb::Template.register_extensions(self, %w[builder]) 
  end
end<commit_msg>Clean up unused code<commit_after>module Merb::Template

  class Builder
    def self.compile_template(path, name, mod)
      path = File.expand_path(path)
      method = mod.is_a?(Module) ? :module_eval : :instance_eval
      mod.send(method, %{
        def #{name}
          @_engine = 'builder'
          xml = ::Builder::XmlMarkup.new :indent => 2
          self.instance_eval %{#{File.read(path)}}
          xml.target!
        end
      })
      
      name    
    end
  
    module Mixin; end
    Merb::Template.register_extensions(self, %w[builder]) 
  end
end
{'fraction_non_alphanumeric': 0.13216195569136746, 'fraction_numerical': 0.0015278838808250573, 'mean_word_length': 2.171912832929782, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1999041', 'n_tokens_mistral': 425, 'n_tokens_neox': 419, 'n_words': 87}