<commit_before>module Resque
  module Plugins
    module RateLimitedQueue
      class BaseApiQueue
        extend Resque::Plugins::RateLimitedQueue
        def self.perform(klass, *params)
          find_class(klass).perform(*params)
        end

        def self.enqueue(klass, *params)<commit_msg>Enqueue actual jobs so that ResqueSolo canmanage them<commit_after>module Resque
  module Plugins
    module RateLimitedQueue
      class BaseApiQueue
        extend Resque::Plugins::RateLimitedQueue
        def self.perform(klass, *params)
          # find_class(klass).perform(*params)
          Resque.enqueue_to @queue, klass, *params # Enqueue so that ResqueSolo can take effect
        end

        def self.enqueue(klass, *params)
{'fraction_non_alphanumeric': 0.07201086956521739, 'fraction_numerical': 0.0, 'mean_word_length': 3.0494505494505493, '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': '2651009', 'n_tokens_mistral': 209, 'n_tokens_neox': 211, 'n_words': 53}