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

  $package= 'xp.runtime';
 
  uses('util.cmd.Console');

  /**
   * Displays XP version and runtime information
   *
   * @purpose  Tool
   */
  class xpruntimeVersion extends Object {
    
    /**
     * Main
     *
     * @param   string[] args
     */
    public static function main(array $args) {
      Console::writeLinef(
        'XP %s { PHP %s & ZE %s } @ %s', 
        trim(ClassLoader::getDefault()->getResource('VERSION')),
        phpversion(),
        zend_version(),
        php_uname()
      );
      Console::writeLine('Copyright (c) 2001-2012 the XP group');
      foreach (ClassLoader::getLoaders() as $delegate) {
        Console::writeLine($delegate);
      }
      exit(1);
    }<commit_msg>- Use xp::version() core functionality<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  $package= 'xp.runtime';
 
  uses('util.cmd.Console');

  /**
   * Displays XP version and runtime information
   *
   * @purpose  Tool
   */
  class xpruntimeVersion extends Object {
    
    /**
     * Main
     *
     * @param   string[] args
     */
    public static function main(array $args) {
      Console::writeLinef(
        'XP %s { PHP %s & ZE %s } @ %s', 
        xp::version(),
        phpversion(),
        zend_version(),
        php_uname()
      );
      Console::writeLine('Copyright (c) 2001-2012 the XP group');
      foreach (ClassLoader::getLoaders() as $delegate) {
        Console::writeLine($delegate);
      }
      exit(1);
    }
{'fraction_non_alphanumeric': 0.14722753346080306, 'fraction_numerical': 0.011472275334608031, 'mean_word_length': 2.1717171717171717, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '7241883', 'n_tokens_mistral': 525, 'n_tokens_neox': 480, 'n_words': 120}