<commit_before>module Resque
  module Plugins
    module EnqueueLogger
      
      def self.logger=(logger)
        @@logger = logger
      end
      
      def self.logger
        @@logger
      end
      
      def before_enqueue_logger(*args)
        @@logger.info "Resque enqueue: #{self} #{args} at #{Time.now}" unless @@logger.nil?
      ensure
        true # ensure logging doesn't prevent the job from getting enqueued
      end
      
    end
  end
end<commit_msg>Switching from before_enqueue to after_enqueue, which should be a more accurate indicator the job was actually enqueued<commit_after>module Resque
  module Plugins
    module EnqueueLogger
      
      def self.logger=(logger)
        @@logger = logger
      end
      
      def self.logger
        @@logger
      end
      
      def after_enqueue_logger(*args)
        @@logger.info "Resque enqueue: #{self} #{args} at #{Time.now}" unless @@logger.nil?
      end
      
    end
  end
end
{'fraction_non_alphanumeric': 0.07780082987551867, 'fraction_numerical': 0.0, 'mean_word_length': 2.083067092651757, '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': '913264', 'n_tokens_mistral': 283, 'n_tokens_neox': 273, 'n_words': 86}