<commit_before>require "arrthorizer/version"

module Arrthorizer
  autoload :ArrthorizerException,     "arrthorizer/arrthorizer_exception"

  autoload :Repository,               "arrthorizer/repository"

  autoload :Role,                     "arrthorizer/role"
  autoload :ContextRole,              "arrthorizer/context_role"
  autoload :GenericRole,              "arrthorizer/generic_role"

  autoload :Permission,               "arrthorizer/permission"
  autoload :PrivilegeSet,             "arrthorizer/privilege_set"

  autoload :ContextBuilder,           "arrthorizer/context_builder"
  autoload :Context,                  "arrthorizer/context"

  autoload :Rails,                    "arrthorizer/rails"

  def self.configure(&block)
    self.tap(&block)
  end
end<commit_msg>When loaded in a Rails environment, automatically load Arrthorizer::Rails and ControllerConcerns<commit_after>require "arrthorizer/version"

module Arrthorizer
  autoload :ArrthorizerException,     "arrthorizer/arrthorizer_exception"

  autoload :Repository,               "arrthorizer/repository"

  autoload :Role,                     "arrthorizer/role"
  autoload :ContextRole,              "arrthorizer/context_role"
  autoload :GenericRole,              "arrthorizer/generic_role"

  autoload :Permission,               "arrthorizer/permission"
  autoload :PrivilegeSet,             "arrthorizer/privilege_set"

  autoload :ContextBuilder,           "arrthorizer/context_builder"
  autoload :Context,                  "arrthorizer/context"

  autoload :Rails,                    "arrthorizer/rails"

  if defined?(::Rails)
    require 'arrthorizer/rails'
  end

  def self.configure(&block)
    self.tap(&block)
  end
end
{'fraction_non_alphanumeric': 0.08142940831868775, 'fraction_numerical': 0.0, 'mean_word_length': 2.6340425531914895, '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': '6299433', 'n_tokens_mistral': 554, 'n_tokens_neox': 501, 'n_words': 92}