<commit_before><?php
/**
 * @package Scheduler
 * @subpackage Debug
 */

if(strtoupper(PHP_SAPI) != 'CGI-FCGI' && strtoupper(PHP_SAPI) != 'CLI')
{
	echo 'This script must be executed using CLI';
	exit;
}

chdir(dirname( __FILE__ ) . "/../");

require_once("bootstrap.php");

$iniDir = "batch_config.ini";		// should be the full file path

$kdebuger = new KGenericDebuger($iniDir);
$kdebuger->run('KScheduleHelper');<commit_msg>qnd: batch - use absolute path when including bootstrap.php<commit_after><?php
/**
 * @package Scheduler
 * @subpackage Debug
 */

if(strtoupper(PHP_SAPI) != 'CGI-FCGI' && strtoupper(PHP_SAPI) != 'CLI')
{
	echo 'This script must be executed using CLI';
	exit;
}

chdir(dirname( __FILE__ ) . "/../");

require_once(__DIR__ . "/../bootstrap.php");

$iniDir = "batch_config.ini";		// should be the full file path

$kdebuger = new KGenericDebuger($iniDir);
$kdebuger->run('KScheduleHelper');
{'fraction_non_alphanumeric': 0.1772428884026258, 'fraction_numerical': 0.0, 'mean_word_length': 4.71875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4876859', 'n_tokens_mistral': 337, 'n_tokens_neox': 335, 'n_words': 73}