<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$
 */
 
  uses(
    'org.apache.HttpScriptletRequest',
    'xml.soap.SOAPMessage'
  );
  
  /**
   * Wraps SOAP Rpc Router request
   *
   * @see xml.soap.rpc.SoapRpcRouter
   * @see org.apache.HttpScriptletRequest
   */
  class SoapRpcRequest extends HttpScriptletRequest {
  
    /**
     * Retrieve SOAP message from request
     *
     * @access  public
     * @return  &xml.soap.SOAPMessage message object
     */
    function &getMessage() {
      static $m;
      
      if (!isset($m)) {
        $m= SOAPMessage::fromString($this->getData());
        list(
          $m->action, 
          $m->method
        )= explode('#', str_replace('"', '', $this->getHeader('SOAPAction')));
      }
      return $m;
    }
  }
?>
<commit_msg>- Add reference operator (&) to avoid copies<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$
 */
 
  uses(
    'org.apache.HttpScriptletRequest',
    'xml.soap.SOAPMessage'
  );
  
  /**
   * Wraps SOAP Rpc Router request
   *
   * @see xml.soap.rpc.SoapRpcRouter
   * @see org.apache.HttpScriptletRequest
   */
  class SoapRpcRequest extends HttpScriptletRequest {
  
    /**
     * Retrieve SOAP message from request
     *
     * @access  public
     * @return  &xml.soap.SOAPMessage message object
     */
    function &getMessage() {
      static $m;
      
      if (!isset($m)) {
        $m= &SOAPMessage::fromString($this->getData());
        list(
          $m->action, 
          $m->method
        )= explode('#', str_replace('"', '', $this->getHeader('SOAPAction')));
      }
      return $m;
    }
  }
?>

{'fraction_non_alphanumeric': 0.14951573849878935, 'fraction_numerical': 0.0, 'mean_word_length': 2.1366223908918407, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '3217605', 'n_tokens_mistral': 556, 'n_tokens_neox': 550, 'n_words': 112}