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

  /**
   * Abstract base class for appenders
   *
   */
  class LogAppender extends Object {

    /**
     * Fgt die Daten an eine Textdatei an
     *
     * @access public
     * @param  mixed args Variablen
     */ 
    function append() {
    }
 
    /**
     * (Insert method's description here)
     *
     * @access  
     * @param   
     * @return  
     */   
    function finalize() {
    
    }
    
    /**
     * Gibt eine Variable schn lesbar zurck
     *
     * @access public
     * @param  mixed var Variable jeglichen Types
     * @return string Ein Printout der Variable
     */
    function varSource($var) {
      if (is_a($var, 'Object')) return $var->toString();
      return is_string($var) ? $var : var_export($var, 1);
    }
  }
?>
<commit_msg>- Fix, complete and translate API doc<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$
 */

  /**
   * Abstract base class for appenders
   *
   * @see      xp://util.log.LogCategory#addAppender
   * @purpose  Base class
   */
  class LogAppender extends Object {

    /**
     * Append data
     *
     * @model   abstract
     * @access  public
     * @param   mixed* args
     */ 
    function append() { }
 
    /**
     * Finalize this appender. This method is called
     *
     * @model   abstract
     * @access  public
     */   
    function finalize() { }
    
    /**
     * Retrieve a readable representation of a variable
     *
     * @access  protected
     * @param   mixed var
     * @return  string
     */
    function varSource($var) {
      if (is_a($var, 'Object')) return $var->toString();
      return is_string($var) ? $var : var_export($var, 1);
    }
  }
?>

{'fraction_non_alphanumeric': 0.1222980659840728, 'fraction_numerical': 0.0011376564277588168, 'mean_word_length': 1.8279742765273312, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5094070', 'n_tokens_mistral': 567, 'n_tokens_neox': 546, 'n_words': 155}