<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id: XmlRpcClient.class.php 5378 2005-07-25 12:58:56Z jens $ 
 */

  uses('org.json.rpc.JsonMessage');

  /**
   * This is a Json-RPC client
   *
   * @see       http://json-rpc.org/wiki/specification
   * @see       http://json.org/
   * @purpose   Json RPC Client base class
   */
  class JsonClient extends Object {
    var
      $transport  = NULL,
      $message    = NULL,
      $answer     = NULL;

    /**
     * Constructor.
     *
     * @access  public
     * @param   &scriptlet.rpc.transport.GenericHttpTransport transport
     */
    function __construct(&$transport) {
      $this->transport= &$transport;
    }
    
    /**
     * Set trace for debugging
     *
     * @access  public
     * @param   &util.log.LogCategory cat
     */
    function setTrace(&$cat) {
      $this->transport->setTrace($cat);
    }
    
    /**
     * Invoke a method on a XML-RPC server
     *
     * @access  public
     * @param   string method
     * @param   mixed vars
     * @return  mixed answer
     * @throws  lang.IllegalArgumentException
     * @throws  xml.xmlrpc.XmlRpcFaultException
     */
    function invoke() {
      static $serial= 1000;
      if (!is('scriptlet.rpc.transport.GenericHttpTransport', $this->transport))
        return throw(new IllegalArgumentException('Transport must be a scriptlet.rpc.transport.GenericHttpTransport'));
    
      $this->transport->setMessageClass(XPClass::forName('org.json.rpc.JsonMessage'));
      $args= func_get_args();
      $method= 
      
      $this->message= &new JsonMessage();<commit_msg>- remove incomplete line # found by <NAME><commit_after><?php
/* This class is part of the XP framework
 *
 * $Id: XmlRpcClient.class.php 5378 2005-07-25 12:58:56Z jens $ 
 */

  uses('org.json.rpc.JsonMessage');

  /**
   * This is a Json-RPC client
   *
   * @see       http://json-rpc.org/wiki/specification
   * @see       http://json.org/
   * @purpose   Json RPC Client base class
   */
  class JsonClient extends Object {
    var
      $transport  = NULL,
      $message    = NULL,
      $answer     = NULL;

    /**
     * Constructor.
     *
     * @access  public
     * @param   &scriptlet.rpc.transport.GenericHttpTransport transport
     */
    function __construct(&$transport) {
      $this->transport= &$transport;
    }
    
    /**
     * Set trace for debugging
     *
     * @access  public
     * @param   &util.log.LogCategory cat
     */
    function setTrace(&$cat) {
      $this->transport->setTrace($cat);
    }
    
    /**
     * Invoke a method on a XML-RPC server
     *
     * @access  public
     * @param   string method
     * @param   mixed vars
     * @return  mixed answer
     * @throws  lang.IllegalArgumentException
     * @throws  xml.xmlrpc.XmlRpcFaultException
     */
    function invoke() {
      static $serial= 1000;
      if (!is('scriptlet.rpc.transport.GenericHttpTransport', $this->transport))
        return throw(new IllegalArgumentException('Transport must be a scriptlet.rpc.transport.GenericHttpTransport'));
    
      $this->transport->setMessageClass(XPClass::forName('org.json.rpc.JsonMessage'));
      $args= func_get_args();
      
      $this->message= &new JsonMessage();
{'fraction_non_alphanumeric': 0.1277249002149217, 'fraction_numerical': 0.013509364445809026, 'mean_word_length': 2.2612612612612613, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '7252350', 'n_tokens_mistral': 1040, 'n_tokens_neox': 982, 'n_words': 220}