<commit_before>module Typhoid
  class QueuedRequest
    attr_accessor :name, :request, :target, :klass
    attr_accessor :on_complete

    def initialize(hydra, name, req, target)
      self.name = name
      self.request = Request.new(req.request_uri, req.options)
      self.klass = req.klass
      self.target = target
      hydra.queue(self.request)
    end

    def on_complete
      self.request.on_complete do
        yield self if block_given?
      end
    end

    def status
      response.code
    end

    def response
      self.request.response
    end

    def klass
      @klass
    end
  end
end<commit_msg>don't use self unless necessary<commit_after>module Typhoid
  class QueuedRequest
    attr_accessor :name, :request, :target, :klass
    attr_accessor :on_complete

    def initialize(hydra, name, req, target)
      self.name = name
      self.request = Request.new(req.request_uri, req.options)
      self.klass = req.klass
      self.target = target
      hydra.queue(request)
    end

    def on_complete
      request.on_complete do
        yield self if block_given?
      end
    end

    def status
      response.code
    end

    def response
      request.response
    end
  end
end
{'fraction_non_alphanumeric': 0.06655710764174198, 'fraction_numerical': 0.0, 'mean_word_length': 2.2830188679245285, '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': '7365084', 'n_tokens_mistral': 381, 'n_tokens_neox': 374, 'n_words': 101}