<commit_before>require 'admin_data/rails_version_check'
require 'will_paginate'

module AdminData
  extend ActiveSupport::Autoload

  LIBPATH = File.dirname(__FILE__)

  autoload :Configuration
  autoload :Util
  autoload :Config
  autoload :ActiveRecordUtil

  class << self
    # A configuration object that acts like a hash.
    # See AdminData::Configuration for details.
    attr_accessor :configuration

    # Call this method to modify defaults in initializer.
    #
    # @example
    #   AdminData.config do |config|
    #     config.number_of_records_per_page = 20
    #   end
    def config
      self.configuration ||= Configuration.new
      block_given? ? yield(self.configuration) : self.configuration
    end
  end

end

if Rails.version >= '3.0'
  require 'admin_data/railtie'
else
  raise "Please see documentation at http://github.com/neerajdotname/admin_data/wiki to find out how to use this gem with rails 2.3.x"
end

# move date_validation to inside admin_data
require 'admin_data_date_validation'<commit_msg> functionality moved to another file<commit_after>require 'admin_data/rails_version_check'
require 'will_paginate'

module AdminData
  extend ActiveSupport::Autoload

  LIBPATH = File.dirname(__FILE__)

  autoload :Configuration
  autoload :Util
  autoload :Config
  autoload :ActiveRecordUtil

  class << self
    # A configuration object that acts like a hash.
    # See AdminData::Configuration for details.
    attr_accessor :configuration

    # Call this method to modify defaults in initializer.
    #
    # @example
    #   AdminData.config do |config|
    #     config.number_of_records_per_page = 20
    #   end
    def config
      self.configuration ||= Configuration.new
      block_given? ? yield(self.configuration) : self.configuration
    end
  end

end

require 'admin_data/railtie'

# move date_validation to inside admin_data
require 'admin_data_date_validation'
{'fraction_non_alphanumeric': 0.06952430737062205, 'fraction_numerical': 0.004181913225300575, 'mean_word_length': 3.7027027027027026, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 4, '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': '7415285', 'n_tokens_mistral': 581, 'n_tokens_neox': 559, 'n_words': 162}