<commit_before><?php

if (isset($_GET["r"])) {
	http_response_code($_GET["r"]);
	unset($_GET["r"]);
}

if (count($_GET)) {
	foreach ($_GET as $key => $value) {
		echo isset($_SERVER[$key]) ? $_SERVER[$key] : $_REQUEST[$key];
	}
} else {
	echo ltrim($_SERVER["PATH_INFO"], "/");
}

//phpinfo();<commit_msg>Add input (upload) echo for POST/PUT testing<commit_after><?php

if (isset($_GET["r"])) {
	http_response_code($_GET["r"]);
	unset($_GET["r"]);
}

if (count($_GET)) {
	foreach ($_GET as $key => $value) {
		echo isset($_SERVER[$key]) ? $_SERVER[$key] : $_REQUEST[$key];
	}
} else {
	$input = file_get_contents('php://input');
	if ($input) echo $input; else echo ltrim($_SERVER["PATH_INFO"], "/");
}

//phpinfo();
{'fraction_non_alphanumeric': 0.2601398601398601, 'fraction_numerical': 0.0, 'mean_word_length': 5.691588785046729, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1775842', 'n_tokens_mistral': 276, 'n_tokens_neox': 276, 'n_words': 52}