<commit_before>module PgSequencer
  class Railtie < Rails::Railtie
    initializer "pg_sequencer.load_adapter" do
      ActiveSupport.on_load :active_record do
        require 'pg_sequencer/connection_adapters/postgresql_adapter'
        
        ActiveRecord::ConnectionAdapters.module_eval do
          include PgSequencer::ConnectionAdapters::PostgreSQLAdapter
        end
      
        ActiveRecord::SchemaDumper.class_eval do
          include PgSequencer::SchemaDumper
        end
        
      end

  #     if defined?(ActiveRecord::Migration::CommandRecorder)
  #       ActiveRecord::Migration::CommandRecorder.class_eval do
  #         include PgSequencer::Migration::CommandRecorder
  #       end
  #     end
  # 
  #     # PgSequencer::Adapter.load!
  #   end
  
    end # initializer
  end
end

require 'active_record'<commit_msg>remove some debug statements to figure out why the :active_record hook wasn't firing<commit_after>module PgSequencer
  class Railtie < Rails::Railtie
    initializer "pg_sequencer.load_adapter" do
      ActiveSupport.on_load :active_record do
        require 'pg_sequencer/connection_adapters/postgresql_adapter'
        
        ActiveRecord::ConnectionAdapters.module_eval do
          include PgSequencer::ConnectionAdapters::PostgreSQLAdapter
        end
      
        ActiveRecord::SchemaDumper.class_eval do
          include PgSequencer::SchemaDumper
        end
        
      end

  #     if defined?(ActiveRecord::Migration::CommandRecorder)
  #       ActiveRecord::Migration::CommandRecorder.class_eval do
  #         include PgSequencer::Migration::CommandRecorder
  #       end
  #     end
  # 
  #     # PgSequencer::Adapter.load!
  #   end
  
    end # initializer
  end
end

# require 'active_record'
{'fraction_non_alphanumeric': 0.06871095968199886, 'fraction_numerical': 0.0, 'mean_word_length': 2.8304347826086955, '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': '3191689', 'n_tokens_mistral': 517, 'n_tokens_neox': 505, 'n_words': 91}