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

  uses(
    'rdbms.DriverManager',
    'util.cmd.Console'
  );

  /**
   * (Insert class' description here)
   *
   * @ext      extension
   * @see      reference
   * @purpose  purpose
   */
  class SQLRunner extends Object {
    
    public static function main(array $args) {
      $db= DriverManager::getConnection($args[0]);
      try {
        $db->connect();
        $tran= $db->begin(new Transaction('process'));

        while ($sql= Console::$in->readLine()) {<commit_msg>- Add "! Started" output to ensure client process has been forked correctly<commit_after><?php
/* This class is part of the XP framework
 *
 * $Id$ 
 */

  uses(
    'rdbms.DriverManager',
    'util.cmd.Console'
  );

  /**
   * SQL Runner used inside deadlock tests
   *
   * @see   xp://net.xp_framework.unittest.rdbms.integration.AbstractDeadlockTest
   */
  class SQLRunner extends Object {
    
    /**
     * Entry point
     *
     * @param   string[] args
     */
    public static function main(array $args) {
      $db= DriverManager::getConnection($args[0]);
      try {
        $db->connect();
        $tran= $db->begin(new Transaction('process'));

        Console::$out->writeLine('! Started');
        while ($sql= Console::$in->readLine()) {
{'fraction_non_alphanumeric': 0.1508718726307809, 'fraction_numerical': 0.001516300227445034, 'mean_word_length': 2.4828496042216357, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '6002665', 'n_tokens_mistral': 417, 'n_tokens_neox': 407, 'n_words': 100}