<commit_before><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */
 
  /**
   * SQL-Exceptions
   * 
   * @purpose  Exception
   */
  class SQLException extends Exception {
    var 
      $sql  = '',
      $code = 0;

    /**
     * Constructor
     *
     * @access  public
     * @param   string message
     * @param   string sql default NULL the SQL query string sent
     * @param   int code default -1
     */
    function __construct($message, $sql= NULL, $code= -1) {
      parent::__construct($message);
      $this->sql= $sql;
      $this->code= $code;
    }
    
    /**
     * Retrieve string representation of the stack trace
     *
     * @access  publuc
     * @return  string
     */
    function getStackTrace() {
      return parent::getStackTrace().($this->sql 
        ? "  Code ".$this->code.", SQL [\n".$this->sql."\n  ]\n"
        : ''
      );
    }
  }
?><commit_msg>- 8tung baby: Think first, then commit!<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */
 
  /**
   * SQL-Exceptions
   * 
   * @purpose  Exception
   */
  class SQLException extends Exception {
    var 
      $sql  = '',
      $code = 0;

    /**
     * Constructor
     *
     * @access  public
     * @param   string message
     * @param   string sql default NULL the SQL query string sent
     * @param   int code default -1
     */
    function __construct($message, $sql= NULL, $code= -1) {
      parent::__construct($message);
      $this->sql= $sql;
      $this->code= $code;
    }
    
    /**
     * Retrieve string representation of the stack trace
     *
     * @access  publuc
     * @return  string
     */
    function toString() {
      return parent::toString().($this->sql 
        ? "  Code ".$this->code.", SQL [\n".$this->sql."\n  ]\n"
        : ''
      );
    }
  }
?>
{'fraction_non_alphanumeric': 0.14802631578947367, 'fraction_numerical': 0.003837719298245614, 'mean_word_length': 1.7651515151515151, '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': '3614097', 'n_tokens_mistral': 597, 'n_tokens_neox': 573, 'n_words': 152}