<commit_before>module Onebox
  module Engine
    def self.included(object)
      object.extend(ClassMethods)
    end

    def self.engines
      constants.select do |constant|
        constant.to_s =~ /Onebox$/
      end.map(&method(:const_get))
    end

    attr_reader :url
    attr_reader :cache
    attr_reader :timeout
    attr_reader :view

    def initialize(link, cache = nil, timeout = nil)
      @url = link
      @cache = cache || Onebox.defaults.cache
      @timeout = timeout || Onebox.defaults.timeout<commit_msg>Readding the view instance variable.<commit_after>module Onebox
  module Engine
    def self.included(object)
      object.extend(ClassMethods)
    end

    def self.engines
      constants.select do |constant|
        constant.to_s =~ /Onebox$/
      end.map(&method(:const_get))
    end

    attr_reader :url
    attr_reader :cache
    attr_reader :timeout
    attr_reader :view

    def initialize(link, cache = nil, timeout = nil)
      @url = link
      @cache = cache || Onebox.defaults.cache
      @timeout = timeout || Onebox.defaults.timeout
      @view = View.new(template_name, true)
{'fraction_non_alphanumeric': 0.09545049063336307, 'fraction_numerical': 0.0, 'mean_word_length': 2.702970297029703, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6303221', 'n_tokens_mistral': 341, 'n_tokens_neox': 332, 'n_words': 84}