<commit_before>require 'active_job/retriable'

module ActiveJob
  extend ActiveSupport::Autoload

  autoload :Retriable
end

# ActiveJob deserialization monkey patch
# NOTE this will be removed once Rails 5 is released
unless ActiveJob::Base.instance_methods.include?(:deserialize)
  module ActiveJob
    class Base
      def self.deserialize(job_data)
        job               = super(job_data)
        job.retry_attempt = job_data['retry_attempt'] if job.respond_to?(:retry_attempt=)
        job
      end
    end
  end
end
<commit_msg>Remove Rails 4 monkey patch (#2)<commit_after>require 'active_job/retriable'

module ActiveJob
  extend ActiveSupport::Autoload

  autoload :Retriable
end

{'fraction_non_alphanumeric': 0.07060518731988473, 'fraction_numerical': 0.004322766570605188, 'mean_word_length': 3.86013986013986, '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': '4792760', 'n_tokens_mistral': 221, 'n_tokens_neox': 211, 'n_words': 56}