<commit_before>module Protobuf
  module ActiveRecord
    class Railtie < Rails::Railtie
      config.protobuf_active_record = Protobuf::ActiveRecord.config

      ActiveSupport.on_load(:active_record) do
        if Protobuf::ActiveRecord.config.autoload
          on_inherit do
            include Protobuf::ActiveRecord::Model
          end
        end
      end
    end
  end
end<commit_msg>Check autoloading inside the on_inherit hook<commit_after>module Protobuf
  module ActiveRecord
    class Railtie < Rails::Railtie
      config.protobuf_active_record = Protobuf::ActiveRecord.config

      ActiveSupport.on_load(:active_record) do
        on_inherit do
          include Protobuf::ActiveRecord::Model if Protobuf::ActiveRecord.config.autoload
        end
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.05815423514538559, 'fraction_numerical': 0.0, 'mean_word_length': 2.979899497487437, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2540661', 'n_tokens_mistral': 232, 'n_tokens_neox': 213, 'n_words': 49}