<commit_before>include T('default/module')

def init
  super
  sections.place(:subclasses).before(:children)
  sections.delete(:children)
  sections.place([:constructor_details, [T('method_details')]]).before(:methodmissing)
end

def constructor_details
  ctors = object.meths(:inherited => true, :included => true)
  return unless @ctor = ctors.find {|o| o.name == :initialize }
  erb(:constructor_details)
end

def subclasses
  return if object.path == "Object" # don't show subclasses for Object
  if !defined? @@subclasses
    @@subclasses = {}
    list = run_verifier Registry.all(:class)
    list.each do |o| 
      (@@subclasses[o.superclass.path] ||= []) << o if o.superclass
    end
  end
  
  @subclasses = @@subclasses[object.path]
  return if @subclasses.nil? || @subclasses.empty?<commit_msg>Show child namespaces in class documentation.<commit_after>include T('default/module')

def init
  super
  sections.place(:subclasses).before(:children)
  sections.place([:constructor_details, [T('method_details')]]).before(:methodmissing)
end

def constructor_details
  ctors = object.meths(:inherited => true, :included => true)
  return unless @ctor = ctors.find {|o| o.name == :initialize }
  erb(:constructor_details)
end

def subclasses
  return if object.path == "Object" # don't show subclasses for Object
  if !defined? @@subclasses
    @@subclasses = {}
    list = run_verifier Registry.all(:class)
    list.each do |o| 
      (@@subclasses[o.superclass.path] ||= []) << o if o.superclass
    end
  end
  
  @subclasses = @@subclasses[object.path]
  return if @subclasses.nil? || @subclasses.empty?
{'fraction_non_alphanumeric': 0.14321140731556106, 'fraction_numerical': 0.0, 'mean_word_length': 4.508532423208191, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4491056', 'n_tokens_mistral': 531, 'n_tokens_neox': 508, 'n_words': 121}