<commit_before>	<?php include 'header.php'; ?>  
	<?php if ($SD == '') { $SD = 3; } ?>
   <div class="container">

      <!-- Static navbar -->
      <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?SD='.$SD.'"><img src="logo-sq.png" height="50px" width="50px"></a>'; } else { echo '<a href="index.php?SD=0"><img src="logo-sq.png" height="50px" width="50px"></a>'; } ?>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
              <li class="active"><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?SD='.$SD.'">Home</a>'; } else { echo '<a href="index.php?SD=0">Home</a>';  } ?></li>
              <li class="active">
                <?php if ($SD == '3' OR $SD == '') { echo '<a href ="calendar.php?&SD='.$SD.'">Calendar</a>';}
                      else { echo '<a href ="calendar.php?SD='.$SD.'">Calendar</a>';}
                ?>
              <li class="active"><?php echo '<a href="search.php?SD='.$SD.'">Search</a></li>'; ?>
			  <li class="dropdown active">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                	<?php if ($SD == '0') { echo 'No Spoilers'; } ?>
                	<?php if ($SD == '1') { echo 'Deck Names Only'; } ?>
                	<?php if ($SD == '2') { echo 'Player Names Only'; } ?>
                	<?php if ($SD == '3') { echo 'Full Spoilers'; } ?>
                <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
					<li><?php echo '<a href ="index.php?SD=0">No Spoilers</a>'; ?></li>
					<li><?php echo '<a href ="index.php?SD=1">Deck Names Only</a>'; ?></li>
					<li><?php echo '<a href ="index.php?SD=2">Player Names Only</a>'; ?></li>
					<li><?php echo '<a href ="index.php?SD=3">All Spoilers</a>'; ?></li>
				</ul>
              </li>
			    <li class="dropdown active">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Formats <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=standard&SD='.$SD.'">Standard</a>'; }
					else { echo '<a href="index.php?formattype=standard&SD='.$SD.'">Standard</a>'; } ?></li>
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=modern&SD='.$SD.'">Modern</a>'; }
					else { echo '<a href="index.php?formattype=modern&SD='.$SD.'">Modern</a>'; } ?></li>
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=legacy&SD='.$SD.'">Legacy</a>'; }
					else { echo '<a href="index.php?formattype=legacy&SD='.$SD.'">Legacy</a>'; } ?></li>
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=vintage&SD='.$SD.'">Vintage</a>'; }
					else { echo '<a href="index.php?formattype=vintage&SD='.$SD.'">Vintage</a>'; } ?></li>
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=limited&SD='.$SD.'">Limited</a>'; }
					else { echo '<a href="index.php?formattype=limited&SD='.$SD.'">Limited</a>'; } ?></li>
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=block&SD='.$SD.'">Block</a>'; }
					else { echo '<a href="index.php?formattype=block&SD='.$SD.'">Block</a>'; } ?></li>
					<li><?php if ($SD == '3' OR $SD == '') { echo '<a href ="index.php?formattype=mixed&SD='.$SD.'">Mixed</a>'; }
					else { echo '<a href="index.php?formattype=mixed&SD='.$SD.'">Mixed</a>'; } ?></li>
				  
                 </ul>
              </li>
			  
			  
			  
				<li class="dropdown active">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Streams <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
<li><?php 
// Workaround needs to be fixed 

$url = parse_url(getenv("CLEARDB_DATABASE_URL"));
<commit_msg>Cleaning code<commit_after>	<?php include 'header.php'; ?>  
	<?php if ($SD == '') { $SD = 3; } ?>
   <div class="container">

      <!-- Static navbar -->
      <nav class="navbar navbar-default" role="navigation">
        <div class="container-fluid">
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <?php echo '<a href ="index.php?SD='.$SD.'"><img src="logo-sq.png" height="50px" width="50px"></a>'; ?>
          </div>
          <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
              <li class="active"><?php echo '<a href ="index.php?SD='.$SD.'">Home</a>'; ?></li>
              <li class="active">
                <?php echo '<a href ="calendar.php?SD='.$SD.'">Calendar</a>'; ?>
              <li class="active"><?php echo '<a href="search.php?SD='.$SD.'">Search</a></li>'; ?>
			  <li class="dropdown active">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                	<?php if ($SD == '0') { echo 'No Spoilers'; } ?>
                	<?php if ($SD == '1') { echo 'Deck Names Only'; } ?>
                	<?php if ($SD == '2') { echo 'Player Names Only'; } ?>
                	<?php if ($SD == '3') { echo 'Full Spoilers'; } ?>
                <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
					<li><?php echo '<a href ="index.php?SD=0">No Spoilers</a>'; ?></li>
					<li><?php echo '<a href ="index.php?SD=1">Deck Names Only</a>'; ?></li>
					<li><?php echo '<a href ="index.php?SD=2">Player Names Only</a>'; ?></li>
					<li><?php echo '<a href ="index.php?SD=3">All Spoilers</a>'; ?></li>
				</ul>
              </li>
			    <li class="dropdown active">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Formats <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
					<li><?php echo '<a href ="index.php?formattype=standard&SD='.$SD.'">Standard</a>'; ?></li>
					<li><?php echo '<a href ="index.php?formattype=modern&SD='.$SD.'">Modern</a>'; ?></li>
					<li><?php echo '<a href ="index.php?formattype=legacy&SD='.$SD.'">Legacy</a>'; ?></li>
					<li><?php echo '<a href="index.php?formattype=vintage&SD='.$SD.'">Vintage</a>'; ?></li>
					<li><?php echo '<a href ="index.php?formattype=limited&SD='.$SD.'">Limited</a>'; ?></li>
					<li><?php echo '<a href ="index.php?formattype=block&SD='.$SD.'">Block</a>'; ?></li>
					<li><?php echo '<a href ="index.php?formattype=mixed&SD='.$SD.'">Mixed</a>'; ?></li>
				  
                 </ul>
              </li>
		
				<li class="dropdown active">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Streams <span class="caret"></span></a>
                <ul class="dropdown-menu" role="menu">
<li><?php 
// Workaround needs to be fixed 

$url = parse_url(getenv("CLEARDB_DATABASE_URL"));

{'fraction_non_alphanumeric': 0.25098839433745695, 'fraction_numerical': 0.005356459635250606, 'mean_word_length': 2.7629558541266794, 'pattern_counts': {'":': 0, '<': 266, '<?xml version=': 0, '>': 264, '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': '1298039', 'n_tokens_mistral': 2807, 'n_tokens_neox': 2615, 'n_words': 554}