<commit_before>class Module
  alias :__const_get__ :const_get

  # const_get resolves namespaces and top level constants!
  #
  # @param [String] path
  # @return [Module]
  def const_get(path)
    top = self
    paths = path.to_s.split("::")
    if path.to_s.start_with?("::")
      top = Object
      paths.shift
    end
    paths.reduce(top) { |klass, name| klass.__const_get__(name) }
  end
end<commit_msg>std: Updated const_get to accept a second parameter top<commit_after>class Module
  alias :__const_get__ :const_get

  # const_get resolves namespaces and top level constants!
  #
  # @param [String] path
  # @param [Boolean] inherit
  # @return [Module]
  def const_get(path, *inherit)
    top = self
    paths = path.to_s.split("::")
    if path.to_s.start_with?("::")
      top = Object
      paths.shift
    end
    paths.reduce(top) { |klass, name| klass.__const_get__(name, *inherit) }
  end
end
{'fraction_non_alphanumeric': 0.11964873765093303, 'fraction_numerical': 0.0, 'mean_word_length': 3.322274881516588, 'pattern_counts': {'":': 4, '<': 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': '1556566', 'n_tokens_mistral': 315, 'n_tokens_neox': 316, 'n_words': 82}