<commit_before>require "migration_comments/version"

require 'migration_comments/active_record/schema_dumper'
require 'migration_comments/active_record/connection_adapters/comment_definition'
require 'migration_comments/active_record/connection_adapters/column_definition'
require 'migration_comments/active_record/connection_adapters/column'
require 'migration_comments/active_record/connection_adapters/table'
require 'migration_comments/active_record/connection_adapters/table_definition'
require 'migration_comments/active_record/connection_adapters/abstract_adapter'
require 'migration_comments/active_record/connection_adapters/mysql_adapter'
require 'migration_comments/active_record/connection_adapters/mysql2_adapter'
require 'migration_comments/active_record/connection_adapters/postgresql_adapter'
require 'migration_comments/active_record/connection_adapters/sqlite_adapter'

module MigrationComments
  def self.setup
    base_names = %w(SchemaDumper) +
      %w(ColumnDefinition Column Table TableDefinition AbstractAdapter).map{|name| "ConnectionAdapters::#{name}"}

    base_names.each do |base_name|
      ar_class = "ActiveRecord::#{base_name}".constantize<commit_msg>fix for abstract schema definitions that haven't yet autoloaded<commit_after>require "migration_comments/version"

require 'migration_comments/active_record/schema_dumper'
require 'migration_comments/active_record/connection_adapters/comment_definition'
require 'migration_comments/active_record/connection_adapters/column_definition'
require 'migration_comments/active_record/connection_adapters/column'
require 'migration_comments/active_record/connection_adapters/table'
require 'migration_comments/active_record/connection_adapters/table_definition'
require 'migration_comments/active_record/connection_adapters/abstract_adapter'
require 'migration_comments/active_record/connection_adapters/mysql_adapter'
require 'migration_comments/active_record/connection_adapters/mysql2_adapter'
require 'migration_comments/active_record/connection_adapters/postgresql_adapter'
require 'migration_comments/active_record/connection_adapters/sqlite_adapter'

require 'active_record/connection_adapters/abstract_adapter'

module MigrationComments
  def self.setup
    base_names = %w(SchemaDumper) +
      %w(ColumnDefinition Column Table TableDefinition AbstractAdapter).map{|name| "ConnectionAdapters::#{name}"}

    base_names.each do |base_name|
      ar_class = "ActiveRecord::#{base_name}".constantize
{'fraction_non_alphanumeric': 0.07695406929895246, 'fraction_numerical': 0.0008058017727639, 'mean_word_length': 10.084821428571429, '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': '1650014', 'n_tokens_mistral': 718, 'n_tokens_neox': 689, 'n_words': 91}