<commit_before><?php
   $sucesspagelocation  = 'Location: /sucess_page.html';
   $errorpafelocation = 'Location: /error_page.php?err_msg=';
    include 'db_connection.php';

$name = $_POST["name"];
$password = $_POST["<PASSWORD>"];
$user_type = $_POST["user_type"];
$emailorid = $_POST["emailorid"];

if($user_type == "Student"){
    $query = 'INSERT INTO Student_table (Id,Name,Password) VALUES ('.$emailorid.',"'.$name.'","'.$password.'")';

    if (mysqli_query($conn, $query)) {
        header($sucesspagelocation);
        exit;

    } else {
       
        header($errorpafelocation."Signup failed, pleaase try again later \n" );
        exit;
}


} else if ($user_type == "Teacher") {
     $query2 = 'INSERT INTO Teacher_Table (Email,Name,Password)
                    VALUES ("'.$emailorid.'","'.$name.'","'.$password.'")';
if (mysqli_query($conn, $query2)) {
      header($sucesspagelocation);
     exit;
} else {
    header($errorpafelocation);
    exit;
}
                     
}else {
    //do nothing
   header($errorpafelocation);
    exit;<commit_msg>and testing...<commit_after><?php
   $sucesspagelocation  = 'Location: /sucess_page.html';
   $errorpafelocation = 'Location: /error_page.php?err_msg=';
    include 'db_connection.php';

$name = $_POST["name"];
$password = $_POST["<PASSWORD>"];
$user_type = $_POST["user_type"];
$emailorid = $_POST["emailorid"];

if($user_type == "Student"){
    $query = 'INSERT INTO Student_table (Id,Name,Password) VALUES ('.$emailorid.',"'.$name.'","'.$password.'")';

    if (mysqli_query($conn, $query)) {
        header($sucesspagelocation);
        exit;

    } else {
        $errorr =  mysql_errno($conn) . ": " . mysql_error($conn) . "\n";
        //echo $errorr;
        header($errorpafelocation."Signup failed, pleaase try again later \n".$errorr );
        exit;
}


} else if ($user_type == "Teacher") {
     $query2 = 'INSERT INTO Teacher_Table (Email,Name,Password)
                    VALUES ("'.$emailorid.'","'.$name.'","'.$password.'")';
if (mysqli_query($conn, $query2)) {
      header($sucesspagelocation);
     exit;
} else {
    header($errorpafelocation);
    exit;
}
                     
}else {
    //do nothing
   header($errorpafelocation);
    exit;
{'fraction_non_alphanumeric': 0.19122257053291536, 'fraction_numerical': 0.0017913121361397223, 'mean_word_length': 3.160148975791434, 'pattern_counts': {'":': 1, '<': 7, '<?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': '5295633', 'n_tokens_mistral': 769, 'n_tokens_neox': 757, 'n_words': 134}