<commit_before>require 'erb'
require 'tilt'
require 'tilt/erb'
require_relative './html'
module Turnout
  module MaintenancePage
    class Erb < Turnout::MaintenancePage::HTML

      def content
        Tilt.new(File.expand_path(path)).render(nil, {reason: reason}.merge(@options))
      end

      def self.extension
        'html.erb'
      end
    end
  end
end
<commit_msg>use self when rendering with Tilt<commit_after>require 'erb'
require 'tilt'
require 'tilt/erb'
require_relative './html'
module Turnout
  module MaintenancePage
    class Erb < Turnout::MaintenancePage::HTML

      def content
        Tilt.new(File.expand_path(path)).render(self, {reason: reason}.merge(@options))
      end

      def self.extension
        'html.erb'
      end
    end
  end
end

{'fraction_non_alphanumeric': 0.1032258064516129, 'fraction_numerical': 0.0, 'mean_word_length': 3.0842105263157893, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5610821', 'n_tokens_mistral': 251, 'n_tokens_neox': 244, 'n_words': 61}