<commit_before><form id ="sportform" method="post">
	<label for='formSport'>Select a sport</label><br>
	<select name="formSport"><option value="%">All Sports</option><option value="vb">Volleyball</option><option value="Basketball">Basketball</option><option value="fb">Football</option><option value="sc">Soccer</option> </select>
	<select name="formPrivate"><option value="%">Public & Private</option><option value="0">Public</option><option value="1">Private</option></select>
	<input type="text" name="gamename" placeholder="Game Name">
	<input class='btn btn-info btn-xs' type="submit" name="formSubmit" value="Submit" >
</form>

<?php
include_once("/db/sql_functions.php");
$varcount = 0;
if ($varcount == 0) 
	{
		$varcount = 1;
		$varSport = "%";
		$varPrivate = "%";
		$varName = "%";
		$rows = browseGame($varSport,$varPrivate,$varName);

	}
if(isset($_POST['formSubmit'])) 
	{
		$varcount = $varcount + 1;
		$varSport = $_POST['formSport'];
		$varPrivate = $_POST['formPrivate'];
		$varName = $_POST['gamename'];
		if($varName == NULL)
		{
			$varName = "%";
		}
		//echo $varSport,$varPrivate,$varName;
		$rows = browseGame($varSport,$varPrivate,$varName);
	}
		echo '<table class="table table-striped"> <th>Game Name</th> <th>Sport</th> <th>Start Time</th> <th>Private?</th> <th>View Game</th>';
		if(!empty($rows))
			{
			foreach ($rows as $row) {
		       echo "<tr>";
		       echo "<td>".$row["Name"]."</td>";
		       echo "<td>".$row["Sport"]."</td>";
		       echo "<td>".$row["DateAndTime"]."</td>";
		       if ($row["Private"] == 0)
		       {
		       echo "<td> No </td>";
		   		}
		   		else
		   		{
		   		echo "<td> Yes </td>";
		   		}	
		       echo "<td> <a href=\"index.php?page=browse&Game_ID=".$row["Game_ID"]."\">View</a></td>";
		       //index.php?page=browse&Game_ID=".$row["Game_ID"]."
		       echo "</tr>";
		   		}
			}
	   echo "</table>";

	
?><commit_msg>Minor Fix to Browse<commit_after><form id ="sportform" method="post">
	<label for='formSport'>Select a sport</label><br>
	<select name="formSport"><option value="%">All Sports</option><option value="Volleyball">Volleyball</option><option value="Basketball">Basketball</option><option value="Football">Football</option><option value="Soccer">Soccer</option> </select>
	<select name="formPrivate"><option value="%">Public & Private</option><option value="0">Public</option><option value="1">Private</option></select>
	<input type="text" name="gamename" placeholder="Game Name">
	<input class='btn btn-info btn-xs' type="submit" name="formSubmit" value="Submit" >
</form>

<?php
include_once("/db/sql_functions.php");
$varcount = 0;
if ($varcount == 0) 
	{
		$varcount = 1;
		$varSport = "%";
		$varPrivate = "%";
		$varName = "%";
		echo $varSport,$varPrivate,$varName;
		$rows = browseGame($varSport,$varPrivate,$varName);

	}
if(isset($_POST['formSubmit'])) 
	{
		$varcount = $varcount + 1;
		$varSport = $_POST['formSport'];
		$varPrivate = $_POST['formPrivate'];
		$varName = $_POST['gamename'];
		if($varName == NULL)
		{
			$varName = "%";
		}
		echo $varSport,$varPrivate,$varName;
		$rows = browseGame($varSport,$varPrivate,$varName);
	}
		echo '<table class="table table-striped"> <th>Game Name</th> <th>Sport</th> <th>Start Time</th> <th>Private?</th> <th>View Game</th>';
		if(!empty($rows))
			{
			foreach ($rows as $row) {
		       echo "<tr>";
		       echo "<td>".$row["Name"]."</td>";
		       echo "<td>".$row["Sport"]."</td>";
		       echo "<td>".$row["DateAndTime"]."</td>";
		       if ($row["Private"] == 0)
		       {
		       echo "<td> No </td>";
		   		}
		   		else
		   		{
		   		echo "<td> Yes </td>";
		   		}	
		       echo "<td> <a href=\"index.php?page=browse&Game_ID=".$row["Game_ID"]."\">View</a></td>";
		       //index.php?page=browse&Game_ID=".$row["Game_ID"]."
		       echo "</tr>";
		   		}
			}
	   echo "</table>";

	
?>
{'fraction_non_alphanumeric': 0.2349288486416559, 'fraction_numerical': 0.0036222509702457956, 'mean_word_length': 3.844611528822055, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, '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': '6756845', 'n_tokens_mistral': 1525, 'n_tokens_neox': 1358, 'n_words': 231}