<commit_before><?php
/**
 * 系统目录。
 */
$global_config_path = realpath(dirname(__FILE__) . '/../config.inc.php');
if (file_exists($global_config_path)) {
	require_once($global_config_path);
}
/*- WEB系统根目录 -*/
if (!defined('ROOT')) {
	exit();
}

/*模型和模型表单引擎库的根目录*/
define('ModelEngineRoot', str_replace('\\', '/', dirname(__FILE__)) . '/');
/*'jQuery文件上传插件服务器端类的路径*/
define('jQueryFileUploadLibPath', ROOT . 'libs/jquery-file-upload-8.7.1/');

if (!isset($context)) {
	require_once(ROOT . "inc/core/ioc/applicationcontextfactory.class.php");
	$applicationContextFactory = ApplicationContextFactory::getIntance();
	$context = $applicationContextFactory->create();<commit_msg>在常量使用前先判断是否已经定义。<commit_after><?php
/**
 * 系统目录。
 */
$global_config_path = realpath(dirname(__FILE__) . '/../config.inc.php');
if (file_exists($global_config_path)) {
	require_once($global_config_path);
}
/*- WEB系统根目录 -*/
if (!defined('ROOT')) {
	exit();
}

/*模型和模型表单引擎库的根目录*/
if (!defined(ModelEngineRoot)) {
	define('ModelEngineRoot', str_replace('\\', '/', dirname(__FILE__)) . '/');
}
/*'jQuery文件上传插件服务器端类的路径*/
if (!defined(ModelEngineRoot)) {
	define('jQueryFileUploadLibPath', ROOT . 'libs/jquery-file-upload-8.7.1/');
}

if (!isset($context)) {
	require_once(ROOT . "inc/core/ioc/applicationcontextfactory.class.php");
	$applicationContextFactory = ApplicationContextFactory::getIntance();
	$context = $applicationContextFactory->create();
{'fraction_non_alphanumeric': 0.205363443895554, 'fraction_numerical': 0.004234297812279464, 'mean_word_length': 6.271794871794872, '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': '5372942', 'n_tokens_mistral': 540, 'n_tokens_neox': 566, 'n_words': 59}