<commit_before><?php
        ini_set('display_errors', 1);
        include("../../php/signal.class.php");
        include("../../php/auth.php");
        include ('../php/rds.php');
        $conn = new mysqli($dbhost, $username, $password, $dbname);
        if ($conn->connect_error) {
            die("Connection failed: " . $conn->connect_error);
        }

        $username = $_GET["userName"];
        echo $username;
        $stmt = $conn->prepare('SELECT username, authkey FROM setupusers WHERE username=?');
		$stmt->bind_param('s', $username);
        $stmt->execute();
		$res = $stmt->get_result();
        
		if($res->num_rows == 1){
            echo "hello";
            $row = $res->fetch_assoc();
            $key = $row['authkey'];
            auth::sendmail_register($username, $key);
        }
        else{
            trigger_error("error");
        }
		$stmt->close();
        
?>

<html>
    <head>
        <title>Registration either complete or incorrect</title>
    </head><commit_msg>trying new include statements<commit_after><?php
        ini_set('display_errors', 1);
        include("../../php/signal.class.php");
        include("../../php/auth.php");
        include('../../php/rds.php' );

        $conn = new mysqli($dbhost, $username, $password, $dbname);
        if ($conn->connect_error) {
            die("Connection failed: " . $conn->connect_error);
        }

        $username = $_GET["userName"];
        echo $username;
        $stmt = $conn->prepare('SELECT username, authkey FROM setupusers WHERE username=?');
		$stmt->bind_param('s', $username);
        $stmt->execute();
		$res = $stmt->get_result();
        
		if($res->num_rows == 1){
            echo "hello";
            $row = $res->fetch_assoc();
            $key = $row['authkey'];
            auth::sendmail_register($username, $key);
        }
        else{
            trigger_error("error");
        }
		$stmt->close();
        
?>

<html>
    <head>
        <title>Registration either complete or incorrect</title>
    </head>
{'fraction_non_alphanumeric': 0.18534906588003933, 'fraction_numerical': 0.0019665683382497543, 'mean_word_length': 2.037313432835821, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 33, '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': '2318571', 'n_tokens_mistral': 618, 'n_tokens_neox': 600, 'n_words': 113}