<commit_before><?php


global $raw_cookie;
global $raw_query;
global $mirrorconfig;
global $privateconfig;
global $debug_common;
global $dbhandle;

#parse_str(preg_replace("/; */","&",$_SERVER["HTTP_COOKIE"]),$raw_cookie);
parse_str($_SERVER["QUERY_STRING"], $raw_query);

## Only uncomment if debugging. Has a demonstrated
## XSS and injection issue.  Thanks to Arbor for
## demonstrating (privately) this issue.
# if ($_SERVER["PHP_SELF"] == "/common.php") {
#  $debug_common = 1;
#  print "<pre><code>";
#  print htmlspecialchars(var_export($_SERVER));
#  print "</code></pre>";
# }

if (get_magic_quotes_gpc()) {
    function stripslashes_gpc(&$value)
    {
        $value = stripslashes($value);
    }
    array_walk_recursive($_GET, 'stripslashes_gpc');
    array_walk_recursive($_POST, 'stripslashes_gpc');
    array_walk_recursive($_COOKIE, 'stripslashes_gpc');
    array_walk_recursive($_REQUEST, 'stripslashes_gpc');
}

function param_val($name, $regex)
{
    global $raw_query;
    if (!isset($raw_query[$name])) {<commit_msg>wrap get_magic_quotes_gpc<commit_after><?php


global $raw_cookie;
global $raw_query;
global $mirrorconfig;
global $privateconfig;
global $debug_common;
global $dbhandle;

#parse_str(preg_replace("/; */","&",$_SERVER["HTTP_COOKIE"]),$raw_cookie);
parse_str($_SERVER["QUERY_STRING"], $raw_query);

## Only uncomment if debugging. Has a demonstrated
## XSS and injection issue.  Thanks to Arbor for
## demonstrating (privately) this issue.
# if ($_SERVER["PHP_SELF"] == "/common.php") {
#  $debug_common = 1;
#  print "<pre><code>";
#  print htmlspecialchars(var_export($_SERVER));
#  print "</code></pre>";
# }


try {
    if (get_magic_quotes_gpc()) {
        function stripslashes_gpc(&$value)
        {
            $value = stripslashes($value);
        }
        array_walk_recursive($_GET, 'stripslashes_gpc');
        array_walk_recursive($_POST, 'stripslashes_gpc');
        array_walk_recursive($_COOKIE, 'stripslashes_gpc');
        array_walk_recursive($_REQUEST, 'stripslashes_gpc');
    }
} catch (Exception $e) {
    // Do nothing.
}


function param_val($name, $regex)
{
    global $raw_query;
    if (!isset($raw_query[$name])) {
{'fraction_non_alphanumeric': 0.16238532110091744, 'fraction_numerical': 0.0009174311926605505, 'mean_word_length': 4.991758241758242, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, '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': '889598', 'n_tokens_mistral': 783, 'n_tokens_neox': 759, 'n_words': 143}