<commit_before><?php
include 'base.php';

$db = PDODatabaseObject();

$password = <PASSWORD>($_POST["password"]);
$username = $_POST["username"];
$email = $_POST["email"];

$count = $db->prepare("SELECT COUNT(*) FROM users WHERE username=:username OR email:=email");
$count->execute(array(':username' => $username, ':email' => $email));
$numofrows = $count->fetchColumn();

if ($rows > 0) {
    echo 'username or email already taken.';
    return;
}

$insertuser = $db->prepare("INSERT INTO users VALUES(:username,:email,:password)");
$insertuser->execute(array(':username' => $username, ':email' => $email, ':password' => $password));
$affected_rows = $insertuser->rowCount();

if ($affected_rows == 1) echo 'success';
else echo 'something weird went wrong';<commit_msg>Typo caused signup error<commit_after><?php
include 'base.php';

$db = PDODatabaseObject();

$password = <PASSWORD>($_POST["password"]);
$username = $_POST["username"];
$email = $_POST["email"];

$count = $db->prepare("SELECT COUNT(*) FROM users WHERE username=:username OR email=:email");
$count->execute(array(':username' => $username, ':email' => $email));
$numofrows = $count->fetchColumn();

if ($rows > 0) {
    echo 'username or email already taken.';
    return;
}

$insertuser = $db->prepare("INSERT INTO users VALUES(:username,:email,:password)");
$insertuser->execute(array(':username' => $username, ':email' => $email, ':password' => $password));
$affected_rows = $insertuser->rowCount();

if ($affected_rows == 1) echo 'success';
else echo 'something weird went wrong';
{'fraction_non_alphanumeric': 0.20991629104958145, 'fraction_numerical': 0.0025756600128783, 'mean_word_length': 6.77, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 29, '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': '4753719', 'n_tokens_mistral': 504, 'n_tokens_neox': 482, 'n_words': 122}