<commit_before>require 'rbconfig'
require 'find'
require 'ftools'

include Config

# this was adapted from rdoc's install.rb by ways of Log4r

$sitedir = CONFIG["sitelibdir"]
unless $sitedir
  version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
  $libdir = File.join(CONFIG["libdir"], "ruby", version)
  $sitedir = $:.find {|x| x =~ /site_ruby/ }
  if !$sitedir
    $sitedir = File.join($libdir, "site_ruby")
  elsif $sitedir !~ Regexp.quote(version)
    $sitedir = File.join($sitedir, version)
  end
end

makedirs = %w{ active_record/associations active_record/connection_adapters active_record/support active_record/vendor }
makedirs.each {|f| File::makedirs(File.join($sitedir, *f.split(/\//)))}

# deprecated files that should be removed
# deprecated = %w{ }

# files to install in library path
files = %w-
 active_record.rb
 active_record/aggregations.rb
 active_record/associations.rb
 active_record/associations/association_collection.rb
 active_record/associations/has_and_belongs_to_many_association.rb
 active_record/associations/has_many_association.rb
 active_record/base.rb
 active_record/callbacks.rb
 active_record/connection_adapters/abstract_adapter.rb
 active_record/connection_adapters/mysql_adapter.rb
 active_record/connection_adapters/postgresql_adapter.rb
 active_record/connection_adapters/sqlite_adapter.rb
 active_record/deprecated_associations.rb
 active_record/fixtures.rb
 active_record/observer.rb
 active_record/reflection.rb
 active_record/support/class_attribute_accessors.rb
 active_record/support/class_inheritable_attributes.rb<commit_msg>Added mixins to install.rb<commit_after>require 'rbconfig'
require 'find'
require 'ftools'

include Config

# this was adapted from rdoc's install.rb by ways of Log4r

$sitedir = CONFIG["sitelibdir"]
unless $sitedir
  version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
  $libdir = File.join(CONFIG["libdir"], "ruby", version)
  $sitedir = $:.find {|x| x =~ /site_ruby/ }
  if !$sitedir
    $sitedir = File.join($libdir, "site_ruby")
  elsif $sitedir !~ Regexp.quote(version)
    $sitedir = File.join($sitedir, version)
  end
end

makedirs = %w{ active_record/associations active_record/connection_adapters active_record/support active_record/vendor active_record/mixins }
makedirs.each {|f| File::makedirs(File.join($sitedir, *f.split(/\//)))}

# deprecated files that should be removed
# deprecated = %w{ }

# files to install in library path
files = %w-
 active_record.rb
 active_record/aggregations.rb
 active_record/associations.rb
 active_record/associations/association_collection.rb
 active_record/associations/has_and_belongs_to_many_association.rb
 active_record/associations/has_many_association.rb
 active_record/base.rb
 active_record/callbacks.rb
 active_record/connection_adapters/abstract_adapter.rb
 active_record/connection_adapters/mysql_adapter.rb
 active_record/connection_adapters/postgresql_adapter.rb
 active_record/connection_adapters/sqlite_adapter.rb
 active_record/deprecated_associations.rb
 active_record/fixtures.rb
 active_record/observer.rb
 active_record/reflection.rb
 active_record/mixins/list.rb
 active_record/mixins/touch.rb
 active_record/support/class_attribute_accessors.rb
 active_record/support/class_inheritable_attributes.rb
{'fraction_non_alphanumeric': 0.10552298673248997, 'fraction_numerical': 0.000617093489663684, 'mean_word_length': 6.094091903719913, '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': '2606764', 'n_tokens_mistral': 1103, 'n_tokens_neox': 1072, 'n_words': 187}