<commit_before><html>
<head>
<title>Jew are so funny</title>
  <link href='http://fonts.googleapis.com/css?family=Nova+Square' rel='stylesheet' type='text/css'>
  <link href="/css/index.css" rel="stylesheet">
<!-- Bootstrap core CSS -->
	<link href="/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
	<link href="jumbotron.css" rel="stylesheet">
	<link href="/css/sticky-footer.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
//	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js">
//	</script>
//	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js">
//	</script>
<![endif]-->
</head>

<body>
<div class="masthead">

      <?php

        include ("masthead.php");

      ?>
    </div>

<!-- Main jumbotron for a primary marketing message or call to action -->
	<div class="jumbotron">
		<div class="container">
			<h1>Birthday Calculator</h1>
			<p>This project is to take a Get Request, and a SQL query and do 				something with them.</p>
		</div>
	</div>
<br>

<?php
//get request  
  $date = $_GET['date'];

  if (!isset($date)) die("SET A DATE ASSHOLE");
  if ($date < 19200101 OR $date > 20191207) die("WRONG DATE ASSHOLE");

//SQL query and record return  
	$conn = new PDO('sqlite:itt.sqlite');
	$sql = 'SELECT * FROM charts WHERE date='.$date;
	$stmt = $conn->query($sql);
	$row = $stmt->fetchObject();
	

//	$loc = $conn->query($sql)->fetchAll(),true;

//echo print_r($loc);
//echo "<pre>".print_r($conn->query($sql)->fetchAll(),true)."</pre><br />";
//$result = $conn->query($sql)->fetchAll(),true;

//Coverts results into something readable and alterable in HTML/CSS
foreach ($array as $key => $value) {
	$bday as $row => "date";
    $self = $row["self"];
    $feel = $row["feel"];
    $talk = $row["talk"];
    $love = $row["love"];
    $does = $row["does"];
    $grow = $row["grow"];
    $pull = $row["pull"];
    $obox = $row["obox"];
    $spur = $row["spur"];
    $stop = $row["love"];
}	

//echo "<div class="mesa">"."<p>".$date."</p>"."</div>";
  		
//$result = $conn->query($sql)->fetchAll(),true);<commit_msg>PDO object statement adjustments.<commit_after><html>
<head>
<title>Jew are so funny</title>
  <link href='http://fonts.googleapis.com/css?family=Nova+Square' rel='stylesheet' type='text/css'>
  <link href="/css/index.css" rel="stylesheet">
<!-- Bootstrap core CSS -->
	<link href="/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
	<link href="jumbotron.css" rel="stylesheet">
	<link href="/css/sticky-footer.css" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy this line! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->

<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
//	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js">
//	</script>
//	<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js">
//	</script>
<![endif]-->
</head>

<body>
<div class="masthead">

      <?php

        include ("masthead.php");

      ?>
    </div>

<!-- Main jumbotron for a primary marketing message or call to action -->
	<div class="jumbotron">
		<div class="container">
			<h1>Birthday Calculator</h1>
			<p>This project is to take a Get Request, and a SQL query and do 				something with them.</p>
		</div>
	</div>
<br>

<?php
//get request  
  $date = $_GET['date'];

  if (!isset($date)) die("SET A DATE ASSHOLE");
  if ($date < 19200101 OR $date > 20191207) die("WRONG DATE ASSHOLE");

//SQL query and record return  
	$conn = new PDO('sqlite:itt.sqlite');
	$sql = 'SELECT * FROM charts WHERE date='.$date;
	$stmt = $conn->query($sql);
	$row = $stmt->fetchObject();
	

//	$loc = $conn->query($sql)->fetchAll(),true;

//echo print_r($loc);
//echo "<pre>".print_r($conn->query($sql)->fetchAll(),true)."</pre><br />";
//$result = $conn->query($sql)->fetchAll(),true;

//Coverts results into something readable and alterable in HTML/CSS
foreach ($array as $key => $value) {
	$bday = $row["date"];
    $self = $row["self"];
    $feel = $row["feel"];
    $talk = $row["talk"];
    $love = $row["love"];
    $does = $row["does"];
    $grow = $row["grow"];
    $pull = $row["pull"];
    $obox = $row["obox"];
    $spur = $row["spur"];
    $stop = $row["love"];
}	

//echo "<div class="mesa">"."<p>".$date."</p>"."</div>";
  		
//$result = $conn->query($sql)->fetchAll(),true);
{'fraction_non_alphanumeric': 0.23414634146341465, 'fraction_numerical': 0.013573700954400848, 'mean_word_length': 3.6009756097560977, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 118, 'https://': 4, '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': '66777', 'n_tokens_mistral': 1785, 'n_tokens_neox': 1677, 'n_words': 402}