<commit_before><?php

class kAuthDataCache
{
	CONST DEFAULT_TIME_IN_CACHE_FOR_AUTH_CACHED_DATA = 60*30; //half an hour

	/**
	 * @var kBaseCacheWrapper $cache
	 */
	private $cache;

	/**
	* @var int $ttl
	*/
	private $ttl;

	function __construct()
	{
		$this->cache = kCacheManager::getSingleLayerCache(kCacheManager::CACHE_TYPE_AUTH_CACHED_DATA);
		$this->ttl = kConf::get('AuthCachedDataDuration','local', self::DEFAULT_TIME_IN_CACHE_FOR_AUTH_CACHED_DATA);
	}

	/**
	 * will return cache-key for the auth data
	 * @param string $dataId
	 * @return string
	 */<commit_msg>Naos-14.1.0-PLAT-8940-Facebook const fix since onstant Scalar Expressions only work from php 5.6<commit_after><?php

class kAuthDataCache
{
	CONST DEFAULT_TIME_IN_CACHE_FOR_AUTH_CACHED_DATA = 1800; //half an hour

	/**
	 * @var kBaseCacheWrapper $cache
	 */
	private $cache;

	/**
	* @var int $ttl
	*/
	private $ttl;

	function __construct()
	{
		$this->cache = kCacheManager::getSingleLayerCache(kCacheManager::CACHE_TYPE_AUTH_CACHED_DATA);
		$this->ttl = kConf::get('AuthCachedDataDuration','local', self::DEFAULT_TIME_IN_CACHE_FOR_AUTH_CACHED_DATA);
	}

	/**
	 * will return cache-key for the auth data
	 * @param string $dataId
	 * @return string
	 */
{'fraction_non_alphanumeric': 0.1270358306188925, 'fraction_numerical': 0.014657980456026058, 'mean_word_length': 4.769953051643192, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1677229', 'n_tokens_mistral': 469, 'n_tokens_neox': 439, 'n_words': 87}