<commit_before><?php

class Session
{

    /**
     * @param $varName
     * @return bool
     */
    static function getAndNullify ($varName)
    {
        
        $val = self::get ($varName);
        self::nullify ($varName);
        return $val;
        
    }

    /**
     * @param $varName
     * @return bool
     */
    static function get ($varName)
    {

        return isset ($_SESSION[$varName]) 
        	? $_SESSION[$varName] 
        	: false;

    }

    /**
     * @param $varName
     * @param $value
     */
    static function set ($varName, $value)
    {

        $_SESSION[$varName] = $value;

    }


    /**
     * @param $varName
     */
    static function nullify ($varName)
    {

        $_SESSION[$varName] = null;

    }
    
}
<commit_msg>add option to push values to an array<commit_after><?php

class Session
{

    /**
     * @param $varName
     * @return bool
     */
    static function getAndNullify ($varName)
    {
        
        $val = self::get ($varName);
        self::nullify ($varName);
        return $val;
        
    }

    /**
     * @param $varName
     * @return bool
     */
    static function get ($varName)
    {

        return isset ($_SESSION[$varName]) 
        	? $_SESSION[$varName] 
        	: false;

    }

    /**
     * @param $varName
     * @param $value
     */
    static function set ($varName, $value)
    {

        $_SESSION[$varName] = $value;

    }
    
    /**
     * @param $key
     * @param $value
     */
	static function push ( $key, $value )
	{
		
		array_push ( $_SESSION [$key], $value );
		
	}

    /**
     * @param $varName
     */
    static function nullify ($varName)
    {

        $_SESSION[$varName] = null;

    }
    
}

{'fraction_non_alphanumeric': 0.14327146171693736, 'fraction_numerical': 0.0, 'mean_word_length': 1.5109170305676856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3491564', 'n_tokens_mistral': 583, 'n_tokens_neox': 554, 'n_words': 120}