<commit_before><?php
session_start();

$fail = false;
$theName = "";

if (isset($_POST["name"]) && $_POST["name"] != "") {
    $theName = $_POST["name"];
} else {
    $fail = true;
}
//echo($password);
if (isset($_POST["password"]) && $_POST["password"] != "") {
    $password = $_POST["password"];
} else {
    $fail = true;
}

$strSearch = "'";
$strSearch2 = "*";
$strSearch3 = "\"";

$pos = stripos($theName, $strSearch);
$pos2 = stripos($theName, $strSearch2);
$pos3 = stripos($theName, $strSearch3);

if ($pos === false && $pos2 === false && $pos3 === false) {
} else {
    $fail = true;
}

$strSearch = "'";
//$strSearch2 = "*";
$strSearch3 = "\"";

$pos = stripos($PasswordOne, $strSearch);
//$pos2 = stripos($passwordOne, $strSearch2);
$pos3 = stripos($PasswordOne, $strSearch3);

if ($pos === false && $pos3 === false) {
} else {
    $fail = true;
}

$validName = 0;
$validPass = 0;
$rank = 0;<commit_msg>edited strippos<commit_after><?php
session_start();

$fail = false;
$theName = "";

if (isset($_POST["name"]) && $_POST["name"] != "") {
    $theName = $_POST["name"];
} else {
    $fail = true;
}
//echo($password);
if (isset($_POST["password"]) && $_POST["password"] != "") {
    $password = $_POST["password"];
} else {
    $fail = true;
}

$strSearch = "'";
$strSearch2 = "*";
$strSearch3 = "\"";

$pos = stripos($theName, $strSearch);
$pos2 = stripos($theName, $strSearch2);
$pos3 = stripos($theName, $strSearch3);

if ($pos === false && $pos2 === false && $pos3 === false) {
} else {
    $fail = true;
}

$strSearch = "'";
//$strSearch2 = "*";
$strSearch3 = "\"";

$pos = stripos($Password, $strSearch);
//$pos2 = stripos($passwordOne, $strSearch2);
$pos3 = stripos($Password, $strSearch3);

if ($pos === false && $pos3 === false) {
} else {
    $fail = true;
}

$validName = 0;
$validPass = 0;
$rank = 0;
{'fraction_non_alphanumeric': 0.2576754385964912, 'fraction_numerical': 0.019736842105263157, 'mean_word_length': 4.33625730994152, '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': '2047110', 'n_tokens_mistral': 701, 'n_tokens_neox': 694, 'n_words': 140}