<commit_before><?php
/**
 * Sticky session store
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

namespace Skeleton\Core\Web\Session;

use Skeleton\Core\Config;

class Sticky {

	/**
	 * Session object
	 *
	 * @access private
	 * @var Web_Session $session
	 */
	private static $sticky_session = null;

	/**
	 * Module
	 *
	 * @var string $module
	 * @access private
	 */
	public $module = null;

	/**
	 * Contructor
	 *
	 * @access private
	 * @param string $username
	 * @param string $password
	 */
	public function __construct() {
	}

	/**
	 * Set
	 *
	 * @access public
	 * @param string $key
	 * @param string $value
	 */
	public function __set($key, $value) {
		$application = \Skeleton\Core\Application::get();
		if (!isset($_SESSION[$application->config->sticky_session_name])) {
			$_SESSION[$application->config->sticky_session_name] = [];
		}
		$_SESSION[$application->Config->sticky_session_name][$key] = ['counter' => 0, 'data' => $value];
	}

	/**
	 * Get
	 *
	 * @access public
	 * @param string $key
	 * @param bool $remove_after_get
	 */
	public function __get($key) {
		$application = \Skeleton\Core\Application::get();
		if (!isset($_SESSION[$application->config->sticky_session_name][$key])) {<commit_msg>bugfix: setting sticky session used incorrect config<commit_after><?php
/**
 * Sticky session store
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

namespace Skeleton\Core\Web\Session;

use Skeleton\Core\Config;

class Sticky {

	/**
	 * Session object
	 *
	 * @access private
	 * @var Web_Session $session
	 */
	private static $sticky_session = null;

	/**
	 * Module
	 *
	 * @var string $module
	 * @access private
	 */
	public $module = null;

	/**
	 * Contructor
	 *
	 * @access private
	 * @param string $username
	 * @param string $password
	 */
	public function __construct() {
	}

	/**
	 * Set
	 *
	 * @access public
	 * @param string $key
	 * @param string $value
	 */
	public function __set($key, $value) {
		$application = \Skeleton\Core\Application::get();
		if (!isset($_SESSION[$application->config->sticky_session_name])) {
			$_SESSION[$application->config->sticky_session_name] = [];
		}
		$_SESSION[$application->config->sticky_session_name][$key] = ['counter' => 0, 'data' => $value];
	}

	/**
	 * Get
	 *
	 * @access public
	 * @param string $key
	 * @param bool $remove_after_get
	 */
	public function __get($key) {
		$application = \Skeleton\Core\Application::get();
		if (!isset($_SESSION[$application->config->sticky_session_name][$key])) {
{'fraction_non_alphanumeric': 0.17345750873108265, 'fraction_numerical': 0.0007760962359332557, 'mean_word_length': 3.6283662477558347, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 41, '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': '963074', 'n_tokens_mistral': 916, 'n_tokens_neox': 822, 'n_words': 186}