<commit_before><?php
namespace core\system;

use Packages\PHPDAO\DAOFactory;
use core\classes\SysApp;
use core\classes\SysComponent;
use core\components\ConfigComponent;
use core\components\DAOComponent;
use core\components\InfoComponent;
use core\components\RouteComponent;

class Lucent
{
	public static $app;

	//Current Controller
	public static $currentController;
	//Current Action
	public static $currentAction;


	/*
	 * @author farZa
	 * @throws \ErrorException
	 * Запуск приложения
	 */
	public static function run()
	{
		header('Content-Type: text/html; charset=utf-8');
		self::init();

		$controller = self::$app->components->route->getController();
		$action = self::$app->components->route->getAction();

		$controller->$action();
	}

	private static function init()
	{


		self::$app = new SysApp();
		self::$app->components = new SysComponent();
		self::$app->components->info = new InfoComponent();
		self::$app->components->route = new RouteComponent();
		self::$app->components->config = new ConfigComponent();
		self::$app->components->dao = new DAOComponent();

		self::$app->components->config->setConfig('main');
		self::$app->db = self::$app->components->dao->createGenerator(DAOFactory::MYSQL)->getDaoObject('generalDAO');

	}

}<commit_msg>todo dao data from config<commit_after><?php
namespace core\system;

use Packages\PHPDAO\DAOFactory;
use core\classes\SysApp;
use core\classes\SysComponent;
use core\components\ConfigComponent;
use core\components\DAOComponent;
use core\components\InfoComponent;
use core\components\RouteComponent;

class Lucent
{
	public static $app;

	//Current Controller
	public static $currentController;
	//Current Action
	public static $currentAction;


	/*
	 * @author farZa
	 * @throws \ErrorException
	 * Запуск приложения
	 */
	public static function run()
	{
		header('Content-Type: text/html; charset=utf-8');
		self::init();

		$controller = self::$app->components->route->getController();
		$action = self::$app->components->route->getAction();

		$controller->$action();
	}

	private static function init()
	{


		self::$app = new SysApp();
		self::$app->components = new SysComponent();
		self::$app->components->info = new InfoComponent();
		self::$app->components->route = new RouteComponent();
		self::$app->components->config = new ConfigComponent();
		self::$app->components->dao = new DAOComponent();

		self::$app->components->config->setConfig('main');
		// todo Нужно брать генератор и ДАО объект из конфига
		self::$app->db = self::$app->components->dao->createGenerator(DAOFactory::MYSQL)->getDaoObject('generalDAO');

	}

}
{'fraction_non_alphanumeric': 0.16129032258064516, 'fraction_numerical': 0.0007680491551459293, 'mean_word_length': 5.129411764705883, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 51, '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': '6306500', 'n_tokens_mistral': 835, 'n_tokens_neox': 814, 'n_words': 165}