<commit_before><?php
session_start();
?>

<html>
	<head>
		<title>Test</title>
	</head>

	<body>
		<?php
			// Display the inputed username and password
			$username = $_POST["username"];
			$password = $_POST["password"];

		  // Connect to database
		  $link = mysqli_connect('localhost', 'tpusater', 'evilspirit')
		    or die('Could not connect: ' . mysql_error());
		  echo 'Connected successfully!';

		  mysqli_select_db($link, 'tpusater') or die('Could not select database');
			
			// Performing SQL query
			$query = "SELECT username, password FROM Users WHERE username = '" . $username ."'";
			$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());
			// Printing results in HTML
			echo "<table>\n";
			while ($tuple = mysqli_fetch_array($result, MYSQL_ASSOC)) {
 			echo "\t<tr>\n";
 			foreach ($tuple as $col_value) {
			 	echo "\t\t<td>$col_value</td>\n";
			 }
			 echo "\t</tr>\n";
			}
			echo "</table>\n";
			// Free resultset
			mysqli_free_result($result);
			// Closing connection
			mysqli_close($link);
		?>
	</body>

</html><commit_msg>getting php results<commit_after><?php
session_start();
?>

<html>
	<head>
		<title>Test</title>
	</head>

	<body>
		<?php
			// Display the inputed username and password
			$username = $_POST["username"];
			$password = $_POST["password"];

		  // Connect to database
		  $link = mysqli_connect('localhost', 'tpusater', 'evilspirit')
		    or die('Could not connect: ' . mysql_error());
		  echo 'Connected successfully!';

		  mysqli_select_db($link, 'tpusater') or die('Could not select database');
			
			// Performing SQL query
			$query = "SELECT username, password, userType FROM Users WHERE username = '" . $username ."'";
			$result = mysqli_query($link, $query) or die('Query failed: ' . mysql_error());

			$query_array = mysqli_fetch_array($result, MYSQLI_BOTH);

			echo $query_array[0,0] . $query_array[0,1] . $query_array[0,2];
			
			// Free resultset
			mysqli_free_result($result);
			// Closing connection
			mysqli_close($link);
		?>
	</body>

</html>
{'fraction_non_alphanumeric': 0.16941747572815535, 'fraction_numerical': 0.002912621359223301, 'mean_word_length': 3.5197368421052633, 'pattern_counts': {'":': 0, '<': 29, '<?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': '2313392', 'n_tokens_mistral': 807, 'n_tokens_neox': 685, 'n_words': 165}