<commit_before>require 'erb'

class SchemaFiles

  SchemaTemplate  = File.join(File.dirname(__FILE__), "3MFcoreSpec_1.1.xsd.template")
  SchemaLocation  = File.join(File.dirname(__FILE__), "xml.xsd")

  class << self

    def open(file)
      @@template ||= File.open(file, "r") do |file|
        file.read
      end

      yield(SchemaFiles.render(@@template))

    end

    def render(template)
       @@xsd_content ||= ERB.new(template).result( binding )
    end

  end


end<commit_msg>render method dont need parameter<commit_after>require 'erb'

class SchemaFiles

  SchemaTemplate  = File.join(File.dirname(__FILE__), "3MFcoreSpec_1.1.xsd.template")
  SchemaLocation  = File.join(File.dirname(__FILE__), "xml.xsd")

  class << self

    def open(file)
      @@template ||= File.open(file, "r") do |file|
        file.read
      end

      yield(SchemaFiles.render)

    end

    def render
       @@xsd_content ||= ERB.new(@@template).result( binding )
    end

  end


end
{'fraction_non_alphanumeric': 0.1326530612244898, 'fraction_numerical': 0.006122448979591836, 'mean_word_length': 3.070539419087137, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5771869', 'n_tokens_mistral': 346, 'n_tokens_neox': 319, 'n_words': 65}