<commit_before>require 'active_record/mti/version'
require 'active_record'
require 'active_record/connection_handling'
require 'active_record/mti/schema_dumper'
require 'active_record/mti/inheritance'
require 'active_record/mti/model_schema'
require 'active_record/mti/query_methods'
require 'active_record/mti/calculations'
require 'active_record/mti/connection_adapters/postgresql/schema_statements'

require 'active_record/mti/railtie' if defined?(Rails::Railtie)

module ActiveRecord
  module MTI

    def self.root
      @root ||= Pathname.new(File.expand_path('../../', File.dirname(__FILE__)))
    end

    def self.load
      ::ActiveRecord::Base.send :include, Inheritance
      ::ActiveRecord::Base.send :include, ActiveRecord::MTI::ModelSchema
      ::ActiveRecord::Relation.send :include, QueryMethods
      ::ActiveRecord::Relation.send :include, ActiveRecord::MTI::Calculations
      ::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send :include, ConnectionAdapters::PostgreSQL::SchemaStatements
      ::ActiveRecord::SchemaDumper.send :include, ActiveRecord::MTI::SchemaDumper
    end
  end
end<commit_msg>Standardize module injection<commit_after>require 'active_record/mti/version'
require 'active_record'
require 'active_record/connection_handling'
require 'active_record/mti/schema_dumper'
require 'active_record/mti/inheritance'
require 'active_record/mti/model_schema'
require 'active_record/mti/query_methods'
require 'active_record/mti/calculations'
require 'active_record/mti/connection_adapters/postgresql/schema_statements'

require 'active_record/mti/railtie' if defined?(Rails::Railtie)

module ActiveRecord
  module MTI

    def self.root
      @root ||= Pathname.new(File.expand_path('../../', File.dirname(__FILE__)))
    end

    def self.load
      ::ActiveRecord::Base.send                                  :include, Inheritance
      ::ActiveRecord::Base.send                                  :include, ModelSchema
      ::ActiveRecord::Relation.send                              :include, QueryMethods
      ::ActiveRecord::Relation.send                              :include, Calculations
      ::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.send :include, ConnectionAdapters::PostgreSQL::SchemaStatements
      ::ActiveRecord::SchemaDumper.send                          :include, SchemaDumper
    end
  end
end
{'fraction_non_alphanumeric': 0.1058873358746294, 'fraction_numerical': 0.0, 'mean_word_length': 4.068669527896995, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6477568', 'n_tokens_mistral': 694, 'n_tokens_neox': 673, 'n_words': 111}