<commit_before><?php

/**
 *
 * @param string $label
 * @param mixed $data
 */
function set_persistant_value($label, $data){
	$_SESSION['__persisted'][$label] = $data;
}

/**
 *
 * @param mixed $data
 */
function set_persistant_values($data){
	$_SESSION['__persisted'] = $data;
}

/**
 *
 * @param string $label
 * @return mixed
 */
function get_persistant_value($label){
	return isset($_SESSION['__persisted'][$label]) ? $_SESSION['__persisted'][$label] : null;
}

/**
 *
 * @return array
 */
function get_persistant_values(){
	return isset($_SESSION['__persisted']) ? (array)$_SESSION['__persisted'] : array();
}

/**
 *
 * @return array
 */
function get_clean_persistant_values(){
	$values = get_persistant_values();
	clean_persistant_values();
	return $values;
}

/**
 * 
 */
function clean_persistant_values(){
	unset($_SESSION['__persisted']);
}<commit_msg>persist threw warning if session wasn't set, not it doesn't<commit_after><?php

/**
 *
 * @param string $label
 * @param mixed $data
 */
function set_persistant_value($label, $data){
	$_SESSION['__persisted'][$label] = $data;
}

/**
 *
 * @param mixed $data
 */
function set_persistant_values($data){
	$_SESSION['__persisted'] = $data;
}

/**
 *
 * @param string $label
 * @return mixed
 */
function get_persistant_value($label){
	return isset($_SESSION['__persisted'][$label]) ? $_SESSION['__persisted'][$label] : null;
}

/**
 *
 * @return array
 */
function get_persistant_values(){
	return isset($_SESSION['__persisted']) ? (array)$_SESSION['__persisted'] : array();
}

/**
 *
 * @return array
 */
function get_clean_persistant_values(){
	$values = get_persistant_values();
	clean_persistant_values();
	return $values;
}

/**
 *
 */
function clean_persistant_values(){
	if(isset($_SESSION['__persisted']))
		unset($_SESSION['__persisted']);
}
{'fraction_non_alphanumeric': 0.1890547263681592, 'fraction_numerical': 0.0, 'mean_word_length': 5.510791366906475, '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': '7107088', 'n_tokens_mistral': 612, 'n_tokens_neox': 612, 'n_words': 110}