<commit_before><?php
/**
* @package   yoo_master2
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

use Warp\Warp;
use Warp\Autoload\ClassLoader;
use Warp\Config\Repository;

global $warp;

if (!$warp) {

    require_once(__DIR__.'/warp/src/Warp/Autoload/ClassLoader.php');

    // set loader
    $loader = new ClassLoader;
    $loader->add('Warp', __DIR__.'/warp/src');
    $loader->add('Warp\Joomla', __DIR__.'/warp/systems/joomla/src');
    $loader->register();

    // set config
    $config = new Repository;
    $config->load(__DIR__.'/warp/config.php');
    $config->load(__DIR__.'/warp/systems/joomla/config.php');
    $config->load(__DIR__.'/config.php');

    // set warp
    $warp = new Warp(compact('loader', 'config'));
    $warp['system']->init();

	// check if we need to backup and ftp the DB
	require_once(__DIR__.'/bgms.php');
	$currtime = time();
	if ($currtime > get_backup_timestamp() + 3600*24*2) {
		// backup about once in 2 days (when page is accessed)
		takeDbBackup("bgmsDb-$currtime.sql", $currtime);
	}
}

return $warp;<commit_msg>Commented out backup from PHP. Do it externally as a Windows service using third-party tool named MySQLBackupFTP.<commit_after><?php
/**
* @package   yoo_master2
* @author    YOOtheme http://www.yootheme.com
* @copyright Copyright (C) YOOtheme GmbH
* @license   http://www.gnu.org/licenses/gpl.html GNU/GPL
*/

use Warp\Warp;
use Warp\Autoload\ClassLoader;
use Warp\Config\Repository;

global $warp;

if (!$warp) {

    require_once(__DIR__.'/warp/src/Warp/Autoload/ClassLoader.php');

    // set loader
    $loader = new ClassLoader;
    $loader->add('Warp', __DIR__.'/warp/src');
    $loader->add('Warp\Joomla', __DIR__.'/warp/systems/joomla/src');
    $loader->register();

    // set config
    $config = new Repository;
    $config->load(__DIR__.'/warp/config.php');
    $config->load(__DIR__.'/warp/systems/joomla/config.php');
    $config->load(__DIR__.'/config.php');

    // set warp
    $warp = new Warp(compact('loader', 'config'));
    $warp['system']->init();

	// check if we need to backup and ftp the DB
	require_once(__DIR__.'/bgms.php');
	$currtime = time();
	if (0 && $currtime > get_backup_timestamp() + 3600*24*2) { // TODO Backup commented: do it externally
		// backup about once in 2 days (when page is accessed)
		takeDbBackup("bgmsDb-$currtime.sql", $currtime);
	}
}

return $warp;
{'fraction_non_alphanumeric': 0.17518248175182483, 'fraction_numerical': 0.007704785077047851, 'mean_word_length': 3.611214953271028, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4416137', 'n_tokens_mistral': 929, 'n_tokens_neox': 903, 'n_words': 184}