<commit_before><?php

require_once(dirname(__FILE__).'/../config/kConf.php');
 
function checkCache()
{
	$start_time = microtime(true);

	$uri = $_SERVER["REQUEST_URI"];
	$protocol = (@$_SERVER['HTTPS'] == 'on') ? "https" : "http";

	if (strpos($uri, "/partnerservices2") !== false)
	{
		$params = $_GET + $_POST;
		unset($params['ks']);
		unset($params['kalsig']);
		$params['uri'] = $_SERVER['PATH_INFO'];
		ksort($params);<commit_msg>add isset to HTTPS header check to prevent notice in log<commit_after><?php

require_once(dirname(__FILE__).'/../config/kConf.php');
 
function checkCache()
{
	$start_time = microtime(true);

	$uri = $_SERVER["REQUEST_URI"];
	$protocol = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? "https" : "http";

	if (strpos($uri, "/partnerservices2") !== false)
	{
		$params = $_GET + $_POST;
		unset($params['ks']);
		unset($params['kalsig']);
		$params['uri'] = $_SERVER['PATH_INFO'];
		ksort($params);
{'fraction_non_alphanumeric': 0.23516949152542374, 'fraction_numerical': 0.00211864406779661, 'mean_word_length': 5.702127659574468, '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': '4967842', 'n_tokens_mistral': 356, 'n_tokens_neox': 342, 'n_words': 60}