<commit_before><?php
require_once __DIR__ . '/vendor/autoload.php';

if ($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
    $level = \PWE\Core\PWELogger::DEBUG;
    $logfile = "/tmp/taurus-pwe.log";
    $tempdir = "/tmp";
} else {
    $level = \PWE\Core\PWELogger::WARNING;
    $logfile = "/home/gettauru/logs/pwe.log";
    $tempdir = "/home/gettauru/tmp";
}

\PWE\Core\PWELogger::setStdErr($logfile);
\PWE\Core\PWELogger::setStdOut($logfile);
\PWE\Core\PWELogger::setLevel($level);


/** @var $PWECore PWE\Core\PWECore */
$PWECore->setRootDirectory(__DIR__);
$PWECore->setXMLDirectory($PWECore->getDataDirectory());
$PWECore->setTempDirectory($tempdir);

require_once __DIR__."/updates.php";<commit_msg>Polish local website settings<commit_after><?php
require_once __DIR__ . '/vendor/autoload.php';

if ($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
    // local debugging settings
    $level = \PWE\Core\PWELogger::DEBUG;
    $tempdir = sys_get_temp_dir();
    $logfile = "/tmp/taurus-pwe.log";
} else { // our real website settings
    $level = \PWE\Core\PWELogger::WARNING;
    $tempdir = "/home/gettauru/tmp";
    $logfile = "/home/gettauru/logs/pwe.log";
}

\PWE\Core\PWELogger::setStdErr($logfile);
\PWE\Core\PWELogger::setStdOut($logfile);
\PWE\Core\PWELogger::setLevel($level);


/** @var $PWECore PWE\Core\PWECore */
$PWECore->setRootDirectory(__DIR__);
$PWECore->setXMLDirectory($PWECore->getDataDirectory());
$PWECore->setTempDirectory($tempdir);

if ($_SERVER['SERVER_ADDR'] == $_SERVER['REMOTE_ADDR']) {
    $PWECore->getModulesManager()->setRegistryFile($tempdir.'/taurus.xml');
}

require_once __DIR__."/updates.php";
{'fraction_non_alphanumeric': 0.19720873786407767, 'fraction_numerical': 0.0, 'mean_word_length': 5.130111524163569, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '5059408', 'n_tokens_mistral': 632, 'n_tokens_neox': 636, 'n_words': 75}