<commit_before>require "action_mailer/inline/version"
require "action_mailer/base"

module ActionMailer
  module Inline
    def self.delivering_email(message)
      
    end
  end
end

ActionMailer::Base.register_interceptor(ActionMailer::Inline)
<commit_msg>Cleaned up Inline<commit_after>require "action_mailer/inline/version"
require "action_mailer/base"

module ActionMailer
  module Inline
    autoload :Processor, 'action_mailer/inline/processor'
    autoload :Premailer, 'action_mailer/inline/premailer'

    # delivering_email hook within Mail
    #
    # This is where the whole process kicks off.
    def self.delivering_email(message)
      # If the email contains a html part or is only html
      if message.html_part || (message.content_type =~ /text\/html/ && message)
        Inline::Processor.inline!(message)
      end
    end
  end
end

ActionMailer::Base.register_interceptor(ActionMailer::Inline)

{'fraction_non_alphanumeric': 0.08387799564270153, 'fraction_numerical': 0.0, 'mean_word_length': 4.162921348314606, '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': '7290996', 'n_tokens_mistral': 290, 'n_tokens_neox': 285, 'n_words': 66}