<commit_before>require 'rubypython/rubypyapi/py_error'
require 'rubypython/rubypyapi/py_object'
require 'rubypython/rubypyapi/ptor'

module RubyPyApi

  #This is the object that the end user will most often be interacting
  #with. It holds a reference to an object in the Python VM an delegates
  #method calls to it, wrapping and returning the results. The user should
  #not worry about reference counting of this object an instance
  #will decrement its objects reference count when it is garbage collected.
  #
  #Note: All RubyPyProxy objects become invalid when the Python interpreter
  #is halted.
  class RubyPyProxy 

    attr_reader :pObject

    def initialize(pObject)
      if pObject.kind_of? RubyPyApi::PyObject
        @pObject = pObject
      else
        @pObject = RubyPyApi::PyObject.new pObject
      end
    end

    def _setAttr(name, *args) #:nodoc:
      @pObject.setAttr(name, args[0])
    end
<commit_msg>Changed RubyPyProxy to inherit from BlankObject.<commit_after>require 'rubypython/rubypyapi/py_error'
require 'rubypython/rubypyapi/py_object'
require 'rubypython/rubypyapi/ptor'
require 'rubypython/blankobject.rb'

module RubyPyApi

  #This is the object that the end user will most often be interacting
  #with. It holds a reference to an object in the Python VM an delegates
  #method calls to it, wrapping and returning the results. The user should
  #not worry about reference counting of this object an instance
  #will decrement its objects reference count when it is garbage collected.
  #
  #Note: All RubyPyProxy objects become invalid when the Python interpreter
  #is halted.
  class RubyPyProxy < BlankObject

    attr_reader :pObject

    def initialize(pObject)
      if pObject.kind_of? RubyPyApi::PyObject
        @pObject = pObject
      else
        @pObject = RubyPyApi::PyObject.new pObject
      end
    end

    def _setAttr(name, *args) #:nodoc:
      @pObject.setAttr(name, args[0])
    end

{'fraction_non_alphanumeric': 0.061601642710472276, 'fraction_numerical': 0.001026694045174538, 'mean_word_length': 3.6404761904761904, 'pattern_counts': {'":': 0, '<': 4, '<?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': '2735823', 'n_tokens_mistral': 592, 'n_tokens_neox': 574, 'n_words': 216}