<commit_before># ERM: Embedded Ruby Macro
# Write code that writes code

require "erubis"

require "erm/config"
require "erm/core"

module Erm
  @options = Erm.default_options.merge(Erm.config_options).merge(Erm.command_line_options)

  class << self
    def method_missing(name, *args, &block)
      key = name.to_s.sub(/\?$/, '')
      @options.has_key?(key) ? @options[key] : super
    end
  end
end

module Erubis
  class Context
    def include(fragment, params = nil)
      content, params = import("#{Erm.includes}/#{fragment}.erm", params || {})
      content
    end
  end
end
<commit_msg>render included page<commit_after># ERM: Embedded Ruby Macro
# Write code that writes code

require "erubis"

require "erm/config"
require "erm/core"

module Erm
  @options = Erm.default_options.merge(Erm.config_options).merge(Erm.command_line_options)

  class << self
    def method_missing(name, *args, &block)
      key = name.to_s.sub(/\?$/, '')
      @options.has_key?(key) ? @options[key] : super
    end
  end
end

module Erubis
  class Context
    def include(fragment, params = nil)
      render(*import("#{Erm.includes}/#{fragment}.erm", params || {}))
    end
  end
end

{'fraction_non_alphanumeric': 0.13644067796610168, 'fraction_numerical': 0.0, 'mean_word_length': 3.595330739299611, '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': '3766847', 'n_tokens_mistral': 409, 'n_tokens_neox': 411, 'n_words': 99}