<commit_before>module Kernel

  def __send__(*args)
    Ruby.primitive :object_send
    raise RuntimeError, "send failed"
  end

  def class
    Ruby.primitive :object_class
    raise PrimitiveFailure, "Object#class failed."
  end

  def clone
    Ruby.primitive :object_clone
    raise TypeError, "unable to clone"
  end

  def dup
    Ruby.primitive :object_dup
    raise TypeError, "unable to dup"
  end

  def equal?(other)
    Ruby.primitive :object_equal
    raise PrimitiveFailure, "Object#equal? failed."
  end

  def eql?(other) # HACK dup of equal?
    Ruby.primitive :object_equal
    raise PrimitiveFailure, "Object#eql? failed."
  end

  def extend(*mods)
    metaclass.include(*mods)
    self
  end

  def freeze
    Ruby.primitive :object_freeze
    raise PrimitiveFailure, "primitive failed"
  end

  def frozen?
    Ruby.primitive :object_frozen_p
    raise PrimitiveFailure, "primitive failed"
  end

  def hash
    Ruby.primitive :object_hash
    raise PrimitiveFailure, "Object#hash failed."
  end

  def inspect
    "#<#{self.class.name}"
  end

  # Returns true if the given Class is either the class or superclass of the
  # object or, when given a Module, if the Module has been included in
  # object's class or one of its superclasses. Returns false otherwise. If the
  # argument is not a Class or Module, a TypeError is raised.
  def kind_of?(cls)
    Ruby.primitive :object_kind_of
    raise TypeError, 'kind_of? requires a Class or Module argument'
  end

  def method_missing(meth, *args)
    raise NoMethodError, "Unable to send #{meth} on #{self}"
  end

  def object_id
    Ruby.primitive :object_id
    raise PrimitiveFailure, "Object#object_id failed."
  end

  def raise(cls, str, junk=nil)
    Rubinius::VM.write_error "Fatal error in bootstrap/core:\n  "
    Rubinius::VM.write_error str
    Rubinius::VM.write_error "\n"
    Process.exit 1
  end

  def respond_to?(meth,include_private=false)
    meth = meth.to_sym<commit_msg>Better error message while loading runtime kernel.<commit_after>module Kernel

  def __send__(*args)
    Ruby.primitive :object_send
    raise RuntimeError, "send failed"
  end

  def class
    Ruby.primitive :object_class
    raise PrimitiveFailure, "Object#class failed."
  end

  def clone
    Ruby.primitive :object_clone
    raise TypeError, "unable to clone"
  end

  def dup
    Ruby.primitive :object_dup
    raise TypeError, "unable to dup"
  end

  def equal?(other)
    Ruby.primitive :object_equal
    raise PrimitiveFailure, "Object#equal? failed."
  end

  def eql?(other) # HACK dup of equal?
    Ruby.primitive :object_equal
    raise PrimitiveFailure, "Object#eql? failed."
  end

  def extend(*mods)
    metaclass.include(*mods)
    self
  end

  def freeze
    Ruby.primitive :object_freeze
    raise PrimitiveFailure, "primitive failed"
  end

  def frozen?
    Ruby.primitive :object_frozen_p
    raise PrimitiveFailure, "primitive failed"
  end

  def hash
    Ruby.primitive :object_hash
    raise PrimitiveFailure, "Object#hash failed."
  end

  def inspect
    "#<#{self.class.name}"
  end

  # Returns true if the given Class is either the class or superclass of the
  # object or, when given a Module, if the Module has been included in
  # object's class or one of its superclasses. Returns false otherwise. If the
  # argument is not a Class or Module, a TypeError is raised.
  def kind_of?(cls)
    Ruby.primitive :object_kind_of
    raise TypeError, 'kind_of? requires a Class or Module argument'
  end

  def method_missing(meth, *args)
    raise NoMethodError, "Unable to send #{meth} on #{self}"
  end

  def object_id
    Ruby.primitive :object_id
    raise PrimitiveFailure, "Object#object_id failed."
  end

  def raise(cls, str, junk=nil)
    Rubinius::VM.write_error "Fatal error loading runtime kernel:\n  "
    Rubinius::VM.write_error str
    Rubinius::VM.write_error "\n"
    Process.exit 1
  end

  def respond_to?(meth,include_private=false)
    meth = meth.to_sym
{'fraction_non_alphanumeric': 0.07847082494969819, 'fraction_numerical': 0.0005030181086519115, 'mean_word_length': 3.3799559471365637, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6480926', 'n_tokens_mistral': 1292, 'n_tokens_neox': 1255, 'n_words': 412}