<commit_before>require 'valle/configuration'
require 'active_record'

module Valle
  extend Configuration

  autoload :BoundMapper, 'valle/bound_mapper'
  autoload :BoundsManager, 'valle/bounds_manager'
  autoload :ValidationSetter, 'valle/validation_setter'
end<commit_msg>using engine if rails defined<commit_after>require 'valle/configuration'

module Valle
  extend Configuration

  # core
  autoload :BoundMapper, 'valle/bound_mapper'
  autoload :BoundsManager, 'valle/bounds_manager'
  autoload :ValidationSetter, 'valle/validation_setter'

  # hooks
  autoload :Hooks, 'valle/hooks'
end

# load Rails/Railtie
begin
  require 'rails'
rescue LoadError
  #do nothing
end

# if not using Railtie, call `Valle::Hooks.init` directly
# TODO [AK 09/12/12] move this block to initializers
if defined? Rails
  require 'valle/railtie'
  require 'valle/engine'
end
{'fraction_non_alphanumeric': 0.08731082654249127, 'fraction_numerical': 0.006984866123399301, 'mean_word_length': 5.515151515151516, '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': '1717906', 'n_tokens_mistral': 301, 'n_tokens_neox': 285, 'n_words': 75}