<commit_before><?php
/**
 * @package server-infra
 * @subpackage config
 */
setlocale(LC_ALL, 'en_US.UTF-8');

require_once __DIR__ . '/../infra/kEnvironment.php';

/**
 * Manages all Kaltura configurations
 * @package server-infra
 * @subpackage Configuration
 */
class kConf extends kEnvironment
{
	const APC_CACHE_MAP = 'kConf';
	const CACHE_VERSION_KEY = '__config_cache_version';
	
	protected static $initialized = false;
	
	protected static function init()
	{
		if (self::$initialized) 
			return;
		
		self::$initialized = true;<commit_msg>fwr: disabling load of external entities in XML for the system to protect from XXE<commit_after><?php
/**
 * @package server-infra
 * @subpackage config
 */
setlocale(LC_ALL, 'en_US.UTF-8');
libxml_disable_entity_loader(true);

require_once __DIR__ . '/../infra/kEnvironment.php';

/**
 * Manages all Kaltura configurations
 * @package server-infra
 * @subpackage Configuration
 */
class kConf extends kEnvironment
{
	const APC_CACHE_MAP = 'kConf';
	const CACHE_VERSION_KEY = '__config_cache_version';
	
	protected static $initialized = false;
	
	protected static function init()
	{
		if (self::$initialized) 
			return;
		
		self::$initialized = true;
{'fraction_non_alphanumeric': 0.12010008340283569, 'fraction_numerical': 0.0016680567139282735, 'mean_word_length': 4.555555555555555, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4114088', 'n_tokens_mistral': 397, 'n_tokens_neox': 376, 'n_words': 96}