<commit_before><!--Term Project, Group 3, Home Page !-->
<!DOCTYPE HTML>
<html>

<head>
  <?php
  include('conn.php');
  mysql_query("set names utf8");
  mysql_set_charset('utf8');
  ?>
  <title>Term Project</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link href="termProject.css" rel="stylesheet" type="text/css"/>
  <link href="https://fonts.googleapis.com/css?family=Bad+Script" rel="stylesheet">
  <script src="jquery-3.1.1.min.js" ></script>
  <script type="text/javascript" src="termProject.js"> </script>
</head>

<body>

  <div id="bodyBlock">
    <h1><a href="index.php"><img id="logo" src="logo.gif"></a>Just putting it out there</h1>
    <div id="wholeBox" >
     <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
      <div id="commentBox">
        <label for="comments" class="field">What is on you're mind?</label>
        <div class="value"> <textarea rows="4" name="comments" id="comments" onblur="return addingtextbackin(this)" onclick="return clearComments(this)">...</textarea></div>
      </div>

      <div>

        <input type="checkbox" name="vehicle[]" value="Love">Love
        <input type="checkbox" name="vehicle[]" value="Family">Family
        <input type="checkbox" name="vehicle[]" value="Pets">Pets
        <input type="checkbox" name="vehicle[]" value="School">School
        <input type="checkbox" name="vehicle[]" value="Work">Work
        <input type="checkbox" name="vehicle[]" value="Children">Children
        <!--<button class="submitButton" type="button" onclick="saveUserInfo(); ">Submit</button>  -->
        <input class="submitButton" type="submit" value="Submit" name="submit"/>
        
      </div>
    </form>

  </div>

  <div>
   <h1>Past Content</h1>
   <form action="">

    <input type="checkbox" name="sorttags" value="Love" id="Love">
    <label for="Love">Love</label>
    <input type="checkbox" name="sorttags" value="Family" id="Family">
    <label for="Family">Family</label>
    <input type="checkbox" name="sorttags" value="Pets" id="Pets">
    <label for="Pets">Pets</label>
    <input type="checkbox" name="sorttags" value="School" id="School">
    <label for="School">School</label>
    <input type="checkbox" name="sorttags" value="Work" id="Work">
    <label for="Work">Work</label>
    <input type="checkbox" name="sorttags" value="Children" id="Children">
    <label for="Children">Children</label>
    <input type="checkbox" name="sorttags" value="notag" id="notag">
    <label for="notag">No tag</label>

    <button class="sortButton" type="button" id="sortButton" >Sort By Tag(s)</button>
    <button class="sortButton" type="button" id="reset">Show all</button>

  </form>
</div>



<div id="pastEntries">

 <?php
 $display_query = mysql_query("select * from comment order by id desc;");
 while($row= mysql_fetch_array($display_query)) {
  $datum= array();
  $datum["id"] = $row["id"];
  $datum["content"] = $row["content"];
  $datum["time"]  = $row["time"];
  $datum["tags"]  = $row["tags"];
  $datum["flag"]  = $row["flag"];
  if ($datum["flag"] < 2) {
    $tagstr = str_replace("|"," ",$datum["tags"]);
    if ($tagstr == "") {
      $tagstr = "notag";
    }
    echo '<form name="myform'.$datum["id"].'" action="'.$_SERVER['PHP_SELF'].'" method="post"><input type="hidden" name=uid value='.$datum["id"].'>';

    ?>

    <div class="<?php echo 'content '.$tagstr; ?>">
    <?php
        if ($datum["flag"] == 1) {
          echo "<p style='color:red; font-size:0.9em'>This post has been flagged once.</p>";
        }
    ?>
      <p><?php echo $datum["content"];?></p>
      <p style="font-size: 0.9em">
        <?php 
        if ($tagstr == "notag") {
          $tagstr = "No tags";
        } else{
          $tagstr = "TAG: ".$tagstr;
        }
        echo $tagstr;
        ?></p>
        <Span id="date" ><?php echo $datum["time"];?></span>
        <?php
        //echo "<button class='flag' onclick='javascript:document.myform".$row["id"].".submit()'>Flag</button>"
        echo "<input type='submit' class='flag' value='Flag' name='submit' />";
        ?>
        
        <div style= "clear:both" ></div>
      </div>
      <?php
      echo '</form>';
      }}
      ?>


    </div>
    <div style="clear: both"></div>
  </div>

  <footer>
    <a href="aboutPage.html" id="aboutPage">About Page</a>
    <a href="contactUs.html" id="contactUs">Contact Us</a><commit_msg>No tag<commit_after><!--Term Project, Group 3, Home Page !-->
<!DOCTYPE HTML>
<html>

<head>
  <?php
  include('conn.php');
  mysql_query("set names utf8");
  mysql_set_charset('utf8');
  ?>
  <title>Term Project</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <link href="termProject.css" rel="stylesheet" type="text/css"/>
  <link href="https://fonts.googleapis.com/css?family=Bad+Script" rel="stylesheet">
  <script src="jquery-3.1.1.min.js" ></script>
  <script type="text/javascript" src="termProject.js"> </script>
</head>

<body>

  <div id="bodyBlock">
    <h1><a href="index.php"><img id="logo" src="logo.gif"></a>Just putting it out there</h1>
    <div id="wholeBox" >
     <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
      <div id="commentBox">
        <label for="comments" class="field">What is on you're mind?</label>
        <div class="value"> <textarea rows="4" name="comments" id="comments" onblur="return addingtextbackin(this)" onclick="return clearComments(this)">...</textarea></div>
      </div>

      <div>

        <input type="checkbox" name="vehicle[]" value="Love">Love
        <input type="checkbox" name="vehicle[]" value="Family">Family
        <input type="checkbox" name="vehicle[]" value="Pets">Pets
        <input type="checkbox" name="vehicle[]" value="School">School
        <input type="checkbox" name="vehicle[]" value="Work">Work
        <input type="checkbox" name="vehicle[]" value="Children">Children
        <!--<button class="submitButton" type="button" onclick="saveUserInfo(); ">Submit</button>  -->
        <input class="submitButton" type="submit" value="Submit" name="submit"/>
        
      </div>
    </form>

  </div>

  <div>
   <h1>Past Content</h1>
   <form action="">

    <input type="checkbox" name="sorttags" value="Love" id="Love">
    <label for="Love">Love</label>
    <input type="checkbox" name="sorttags" value="Family" id="Family">
    <label for="Family">Family</label>
    <input type="checkbox" name="sorttags" value="Pets" id="Pets">
    <label for="Pets">Pets</label>
    <input type="checkbox" name="sorttags" value="School" id="School">
    <label for="School">School</label>
    <input type="checkbox" name="sorttags" value="Work" id="Work">
    <label for="Work">Work</label>
    <input type="checkbox" name="sorttags" value="Children" id="Children">
    <label for="Children">Children</label>
    <input type="checkbox" name="sorttags" value="notag" id="notag">
    <label for="notag">No tag</label>

    <button class="sortButton" type="button" id="sortButton" >Sort By Tag(s)</button>
    <button class="sortButton" type="button" id="reset">Show all</button>

  </form>
</div>



<div id="pastEntries">

 <?php
 $display_query = mysql_query("select * from comment order by id desc;");
 while($row= mysql_fetch_array($display_query)) {
  $datum= array();
  $datum["id"] = $row["id"];
  $datum["content"] = $row["content"];
  $datum["time"]  = $row["time"];
  $datum["tags"]  = $row["tags"];
  $datum["flag"]  = $row["flag"];
  if ($datum["flag"] < 2) {
    $tagstr = str_replace("|"," ",$datum["tags"]);
    if ($tagstr == "") {
      $tagstr = "notag";
    }
    echo '<form name="myform'.$datum["id"].'" action="'.$_SERVER['PHP_SELF'].'" method="post"><input type="hidden" name=uid value='.$datum["id"].'>';

    ?>

    <div class="<?php echo 'content '.$tagstr; ?>">
    <?php
        if ($datum["flag"] == 1) {
          echo "<p style='color:red; font-size:0.9em'>This post has been flagged once.</p>";
        }
    ?>
      <p><?php echo $datum["content"];?></p>
      <p style="font-size: 0.9em">
        <?php 
        if ($tagstr == "notag") {
          $tagstr = "No tag";
        } else{
          $tagstr = "TAG: ".$tagstr;
        }
        echo $tagstr;
        ?></p>
        <Span id="date" ><?php echo $datum["time"];?></span>
        <?php
        //echo "<button class='flag' onclick='javascript:document.myform".$row["id"].".submit()'>Flag</button>"
        echo "<input type='submit' class='flag' value='Flag' name='submit' />";
        ?>
        
        <div style= "clear:both" ></div>
      </div>
      <?php
      echo '</form>';
      }}
      ?>


    </div>
    <div style="clear: both"></div>
  </div>

  <footer>
    <a href="aboutPage.html" id="aboutPage">About Page</a>
    <a href="contactUs.html" id="contactUs">Contact Us</a>
{'fraction_non_alphanumeric': 0.22116257947320617, 'fraction_numerical': 0.004087193460490463, 'mean_word_length': 3.6072175732217575, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 231, 'https://': 2, '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': '7261956', 'n_tokens_mistral': 3005, 'n_tokens_neox': 2904, 'n_words': 602}