<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  /**
   * (Insert class' description here)
   *
   * @ext      extension
   * @see      reference
   * @purpose  purpose
   */
  class RemoteInvocationHandler extends Object {
    var
      $oid= NULL;

    /**
     * (Insert method's description here)
     *
     * @access  
     * @param   
     * @return  
     */
    function &newInstance($oid, &$handler) {
      $i= &new RemoteInvocationHandler();
      $i->oid= $oid;
      $i->handler= &$handler;
      return $i;
    }
    
    /**
     * Processes a method invocation on a proxy instance and returns
     * the result.
     *
     * @access  public
     * @param   lang.reflect.Proxy proxy
     * @param   string method the method name
     * @param   mixed* args an array of arguments
     * @return  mixed
     */
    function invoke(&$proxy, $method, $args) { 
      return $this->handler->invoke($this->oid, $method, $args);
    }
  
  } implements(__FILE__, 'lang.reflect.InvocationHandler');
?><commit_msg>- QA: Add/complete api docs<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  /**
   * Invocation handler for client stubs
   *
   * @see      xp://lang.reflect.InvocationHandler
   * @purpose  InvocationHandler
   */
  class RemoteInvocationHandler extends Object {
    var
      $oid      = NULL,
      $handler  = NULL;

    /**
     * Retrieve a new instance 
     *
     * @model   static
     * @access  public
     * @param   string oid
     * @param   &ProtocolHandler handler
     * @return  &RemoteInvocationHandler
     */
    function &newInstance($oid, &$handler) {
      with ($i= &new RemoteInvocationHandler()); {
        $i->oid= $oid;
        $i->handler= &$handler;
      }

      return $i;
    }
    
    /**
     * Processes a method invocation on a proxy instance and returns
     * the result.
     *
     * @access  public
     * @param   lang.reflect.Proxy proxy
     * @param   string method the method name
     * @param   mixed* args an array of arguments
     * @return  mixed
     */
    function invoke(&$proxy, $method, $args) { 
      return $this->handler->invoke($this->oid, $method, $args);
    }
  
  } implements(__FILE__, 'lang.reflect.InvocationHandler');
?>
{'fraction_non_alphanumeric': 0.1256567425569177, 'fraction_numerical': 0.0, 'mean_word_length': 2.079514824797844, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '415468', 'n_tokens_mistral': 709, 'n_tokens_neox': 686, 'n_words': 191}