<commit_before>require 'blankslate'

module RubyPython
  #An object to be used as a base class for Proxy classes.
  #It is necessary to define this because no such class exists in Ruby
  #1.8.x
  class BlankObject < BlankSlate
#    instance_methods.each do |m|
#      undef_method m.to_sym unless m.to_s =~ /^(__)|(object_id)|(.*?$)/
#    end
    class << self
      def hide(name)
        if instance_methods.include?(name) and
          name.to_s !~ /^(__|instance_eval)/
            @hidden_methods ||= {}
          @hidden_methods[name.to_sym] = instance_method(name)
          undef_method name
        end
      end
    end

    instance_methods.each { |m| hide(m) }
  end
end
<commit_msg>Updated blankslate behavior to remove a warning in 1.9.1<commit_after>require 'blankslate'

module RubyPython
  #An object to be used as a base class for Proxy classes.
  #It is necessary to define this because no such class exists in Ruby
  #1.8.x
  class BlankObject < BlankSlate
    class << self
      def hide(name)
        if instance_methods.include?(name) and
          name.to_s !~ /^(__|instance_eval|object_id)/
            @hidden_methods ||= {}
          @hidden_methods[name.to_sym] = instance_method(name)
          undef_method name
        end
      end
    end

    instance_methods.each { |m| hide(m) }
  end
end

{'fraction_non_alphanumeric': 0.09495101733232857, 'fraction_numerical': 0.0052750565184626974, 'mean_word_length': 2.5603217158176945, 'pattern_counts': {'":': 0, '<': 9, '<?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': '4414046', 'n_tokens_mistral': 432, 'n_tokens_neox': 421, 'n_words': 127}