<commit_before><!DOCTYPE htm
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>boilup.ca</title>

    <!-- Bootstrap -->
    <link href="../dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="../dist/starter-template.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
<?php


$KILO="1.609344"; 
$DB="remote_updates";
$DBUSER="entries";
$DBPASS="<PASSWORD>";
$DBHOST="localhost";
$BGCOLOR="D8BFD8"; 
$link=mysql_connect("$DBHOST","$DBUSER","$DBPASS") or die('wahhh cannot connect');
mysql_select_db ("$DB") or die("cannot select db $DB"); 
$output = fopen("/tmp/test.txt", 'a');
$QUERY="select date, litres, distance, cost, per100, mpg from mileages order by date desc";
$RESULT= mysql_query($QUERY) or die('query failed'); 
echo "<body>";
echo "<h2>This is just a page to track mileage on my vehicles.</h2>";
echo "All done automated via email submittion + php + mysql"; 
echo "<br><br>"; 
echo '<div class="panel panel-primary">';
echo "<table class='table'>\n";
echo "<div class='panel-heading'>1981 XJ750RL fill up tracking (beta).</div>";
echo "<tr><td>Date</td><td>Litres</td><td>Distance in Km</td><td>Cost</td><td>Litres Per 100K</td><td>MPG</td></tr>";
echo "</div>";
while ($line = mysql_fetch_array($RESULT, MYSQL_ASSOC)) {
    echo "\t<tr bgcolor='$BGCOLOR' >\n";
    foreach ($line as $col_value) {
        
        echo "\t\t<td>$col_value</td>\n";
    }
    echo "\t</tr>\n";
    switch ($BGCOLOR) {
	case 'D8BFD8':
		$BGCOLOR='DEB887';
		break;
        case 'DEB887':
		$BGCOLOR='D8BFD8';
		break;
    }
#    print_r ($line); 
}
echo "</table>\n";
echo '</div>';

<commit_msg>adding the php header to the mileage page<commit_after><!DOCTYPE htm
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>boilup.ca</title>

    <!-- Bootstrap -->
    <link href="../dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="../dist/starter-template.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">boilup.ca</a>
        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <?php include('../menu.inc');?>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>


<?php


$KILO="1.609344"; 
$DB="remote_updates";
$DBUSER="entries";
$DBPASS="<PASSWORD>";
$DBHOST="localhost";
$BGCOLOR="D8BFD8"; 
$link=mysql_connect("$DBHOST","$DBUSER","$DBPASS") or die('wahhh cannot connect');
mysql_select_db ("$DB") or die("cannot select db $DB"); 
$output = fopen("/tmp/test.txt", 'a');
$QUERY="select date, litres, distance, cost, per100, mpg from mileages order by date desc";
$RESULT= mysql_query($QUERY) or die('query failed'); 
echo "<h2>This is just a page to track mileage on my vehicles.</h2>";
echo "All done automated via email submittion + php + mysql"; 
echo "<br><br>"; 
echo '<div class="panel panel-primary">';
echo "<table class='table'>\n";
echo "<div class='panel-heading'>1981 XJ750RL fill up tracking (beta).</div>";
echo "<tr><td>Date</td><td>Litres</td><td>Distance in Km</td><td>Cost</td><td>Litres Per 100K</td><td>MPG</td></tr>";
echo "</div>";
while ($line = mysql_fetch_array($RESULT, MYSQL_ASSOC)) {
    echo "\t<tr bgcolor='$BGCOLOR' >\n";
    foreach ($line as $col_value) {
        
        echo "\t\t<td>$col_value</td>\n";
    }
    echo "\t</tr>\n";
    switch ($BGCOLOR) {
	case 'D8BFD8':
		$BGCOLOR='DEB887';
		break;
        case 'DEB887':
		$BGCOLOR='D8BFD8';
		break;
    }
#    print_r ($line); 
}
echo "</table>\n";
echo '</div>';


{'fraction_non_alphanumeric': 0.21091861402095086, 'fraction_numerical': 0.019339242546333603, 'mean_word_length': 3.5259799453053784, 'pattern_counts': {'":': 0, '<': 131, '<?xml version=': 0, '>': 127, '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': '3466560', 'n_tokens_mistral': 1839, 'n_tokens_neox': 1751, 'n_words': 398}