<commit_before>module RequireNested
  # See also: include_concern
  def require_nested(name)
    return if const_defined?(name, false)

    filename = "#{self}::#{name}".underscore
    filename = name.to_s.underscore if self == Object
    if Rails.application.config.cache_classes
      autoload name, filename
    else
      require_dependency filename
    end

    # If the nested constant has a top-level constant with the same name, then both
    # must be defined at the same time, otherwise the Rails autoloader can get
    # confused.<commit_msg>Raise exception if nested file will never be found<commit_after>module RequireNested
  # See also: include_concern
  def require_nested(name)
    return if const_defined?(name, false)

    filename = "#{self}::#{name}".underscore
    filename = name.to_s.underscore if self == Object
    if Rails.application.config.cache_classes
      raise LoadError, "No such file to load -- #{filename}" unless ActiveSupport::Dependencies.search_for_file(filename)
      autoload name, filename
    else
      require_dependency filename
    end

    # If the nested constant has a top-level constant with the same name, then both
    # must be defined at the same time, otherwise the Rails autoloader can get
    # confused.
{'fraction_non_alphanumeric': 0.07193675889328063, 'fraction_numerical': 0.0, 'mean_word_length': 3.6036363636363635, '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': '3495826', 'n_tokens_mistral': 358, 'n_tokens_neox': 344, 'n_words': 127}