<commit_before><?php
class BaseController extends Controller
{
	protected $ssdb;
	
	function init($ctx){
		$conf = App::$config['ssdb'];
		$this->ssdb = new SimpleSSDB($conf['host'], $conf['port']);
		
		$req = $_GET + $_POST;
		if(isset($req['size'])){
			$ctx->size = intval($req['size']);
			if($ctx->size > 0){
				setcookie('psa_size', $ctx->size, time() + 86400 * 30, '/');
				$_COOKIE['size'] = $ctx->size;
			}
		}
		if(isset($_COOKIE['size'])){
			$ctx->size = intval($req['size']);
		}else{
			$ctx->size = 0;
		}
		if($ctx->size <= 0){
			$ctx->size = 10;
		}
	}
}
<commit_msg>udpate<commit_after><?php
class BaseController extends Controller
{
	protected $ssdb;
	
	function init($ctx){
		$conf = App::$config['ssdb'];
		$this->ssdb = new SimpleSSDB($conf['host'], $conf['port']);
		
		$req = $_GET + $_POST;
		if(isset($req['size'])){
			$ctx->size = intval($req['size']);
			if($ctx->size > 0){
				setcookie('psa_size', $ctx->size, time() + 86400 * 30, '/');
				$_COOKIE['size'] = $ctx->size;
			}
		}
		if(isset($_COOKIE['psa_size'])){
			$ctx->size = intval($_COOKIE['psa_size']);
		}else{
			$ctx->size = 0;
		}
		if($ctx->size <= 0){
			$ctx->size = 10;
		}
	}
}

{'fraction_non_alphanumeric': 0.25528317836010145, 'fraction_numerical': 0.02028740490278952, 'mean_word_length': 3.7171314741035855, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, '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': '1856556', 'n_tokens_mistral': 557, 'n_tokens_neox': 474, 'n_words': 80}