<commit_before><?php
  class Binford extends Object { 
    var $poweredBy= 6100;
    
    function __construct($params= NULL) {
      Object::__construct($params);  
    }
    
    function setPoweredBy($p) {
      if (!($x= log10($p / 6.1)) || (floor($x) != $x)) {
        return throw(E_ILLEGAL_ARGUMENT_EXCEPTION, $p.' not allowed');
      }
      $this->poweredBy= $p;
    }
    
    function getPoweredBy() {
      return $this->poweredBy;
    }
    
    function getHeader() {
      return 'X-Binford: '.$this->poweredBy.' (more power)';
    }
  }
?><commit_msg>-Doku<commit_after><?php
/*
 * $Id$
 *
 * Diese Klasse ist Bestandteil des XP-Frameworks
 * (c) 2001 <NAME>, Schlund+Partner AG
 *
 * @see http://doku.elite.schlund.de/projekte/xp/skeleton/
 *
 */

  /**
   * Hrrhrr, diese Klasse luft mit Benzin!
   *
   * @purpose Die Klasse fr mehr Power
   * @see     http://www.binford.de/
   */
  class Binford extends Object { 
    var $poweredBy= 6100;
    
    /**
     * Constructor
     */
   function __construct($params= NULL) {
      Object::__construct($params);  
    }
    
    /**
     * Die Power setzen
     *
     * @access  public
     * @param   int p Power
     * @throws  IllegalArgumentException, wenn p einen unzulssigen Wert enthlt
     */
    function setPoweredBy($p) {
      if (!($x= log10($p / 6.1)) || (floor($x) != $x)) {
        return throw(E_ILLEGAL_ARGUMENT_EXCEPTION, $p.' not allowed');
      }
      $this->poweredBy= $p;
    }
   
    /**
     * Power zurckgeben
     *
     * @access  public
     * @return  int Power
     */
    function getPoweredBy() {
      return $this->poweredBy;
    }
    
    /**
     * Passenden X-Header zurckgeben
     *
     * @access  public
     * @return  string Header
     */
    function getHeader() {
      return 'X-Binford: '.$this->poweredBy.' (more power)';
    }
  }
?>
{'fraction_non_alphanumeric': 0.15086206896551724, 'fraction_numerical': 0.010775862068965518, 'mean_word_length': 2.054276315789474, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '3690279', 'n_tokens_mistral': 668, 'n_tokens_neox': 657, 'n_words': 137}