<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <title>Soap Box Rocket - Innovation Horizons</title>
  <script type="text/javascript">
    function Draw(){
      var img = document.getElementById("graph");
      var cnvs = document.getElementById("graphCanvas");

      cnvs.style.position = "absolute";
      cnvs.style.left = img.offsetLeft + "px";
      cnvs.style.top = img.offsetTop + "px";

      var ctx = cnvs.getContext("2d");
      ctx.beginPath();
      ctx.arc(50, 50, 10, 0, 2 * Math.PI, false);
      ctx.lineWidth = 2;
      ctx.strokeStyle = "red";
      ctx.stroke();

      var ctx = cnvs.getContext("2d");
      ctx.font = "15px Ariel";
      ctx.fillStyle = "red";
      ctx.fillText ("1", 46, 55);
    }
  </script>
</head>
<style>
#container {
    position: relative;
}
#circle {
  font-size: 50px;
  color: red;
}
#text {
    z-index: 1;
    position: absolute;
    top: 23.5px;
    left: 10.5px;
    color: red;
}
#draw-btn {
  font-size: 14px;
  padding: 2px 16px 3px 16px;
  margin-bottom: 8px;
}
</style>
<body>
  <?php
    $projName = $market = $solution = "";

    if ($_SERVER["REQUEST_METHOD"] == "POST") {
      $projName = test_input($_POST["projName"]);
      $market = test_input($_POST["market"]);
      $solution = test_input($_POST["solution"]);
    }

    function test_input($data) {
      $data = trim($data);
      $data = stripcslashes($data);
      $data = htmlspecialchars($data);
      return $data;
    }
  ?>
  <center>
    <img id="graph" src="images/HorizonsGraph.png">
    <canvas id='graphCanvas' width='500px' height='500px' style="border:1px solid #000000"></canvas>
    <form action="<?php echo htmlspecialchars ($_SERVER["PHP_SELF"]);?>" method="post">
      Project Name: <input type="text" name="projName"><br>
      Market<br>Exsisting <input type="range" name="market" min="0" max="10" value="0" step=".5"> New to World<br>
      Solution<br>Exsisting <input type="range" name="solution" min="0" max="10" value="0" step=".5"> New to World<br>
      <input type="submit">
    </form>
    <div>
      <input id='draw-btn' type='button' value='DRAW' onclick='Draw()' />
    </div>
  </center>
  <br>
  <br>
  <center>
    <?php
      echo "Project: ";
      echo $projName;
      echo "<br>";
      echo "Market: ";
      echo $market;
      echo "<br>";
      echo "Solution ";
      echo $solution;
      echo "<br>";
    ?>
  </center>
  <div id="container"><commit_msg>input verification<commit_after><!DOCTYPE html>
<html lang="en">
<head>
  <title>Soap Box Rocket - Innovation Horizons</title>
  <script type="text/javascript">
    function Draw(){
      var img = document.getElementById("graph");
      var cnvs = document.getElementById("graphCanvas");

      cnvs.style.position = "absolute";
      cnvs.style.left = img.offsetLeft + "px";
      cnvs.style.top = img.offsetTop + "px";

      var ctx = cnvs.getContext("2d");
      ctx.beginPath();
      ctx.arc(50, 50, 10, 0, 2 * Math.PI, false);
      ctx.lineWidth = 2;
      ctx.strokeStyle = "red";
      ctx.stroke();

      var ctx = cnvs.getContext("2d");
      ctx.font = "15px Ariel";
      ctx.fillStyle = "red";
      ctx.fillText ("1", 46, 55);
    }
  </script>
  <style>
    .error {color: #FF0000;}
  </style>
</head>
<style>
#container {
    position: relative;
}
#circle {
  font-size: 50px;
  color: red;
}
#text {
    z-index: 1;
    position: absolute;
    top: 23.5px;
    left: 10.5px;
    color: red;
}
#draw-btn {
  font-size: 14px;
  padding: 2px 16px 3px 16px;
  margin-bottom: 8px;
}
</style>
<body>
  <?php
    $nameErr = $marketErr = $solutionErr = "";
    $name = $market = $solution = "";

    if ($_SERVER["REQUEST_METHOD"] == "POST") {
      if (empty($_POST["name"])) {
        $nameErr = "Pleae provide a project name.";
      } else {
          $name = test_input($_POST["name"]);
      }

      if ($_POST["market"] == 0) {
        $marketErr = "Please estimate the market fit for this project.";
      } else {
        $market = test_input($_POST["market"]);
      }

      if ($_POST["solution"] == 0) {
        $solutionErr = "Please estimate the solution fit for this project.";
      } else {
        $solution = test_input($_POST["solution"]);
      }
    }

    function test_input($data) {
      $data = trim($data);
      $data = stripcslashes($data);
      $data = htmlspecialchars($data);
      return $data;
    }
  ?>
  <center>
    <img id="graph" src="images/HorizonsGraph.png">
    <canvas id='graphCanvas' width='500px' height='500px' style="border:1px solid #000000"></canvas>
    <form action="<?php echo htmlspecialchars ($_SERVER["PHP_SELF"]);?>" method="post">
      Project Name: <input type="text" name="name">
      <span class="error"> <?php echo $nameErr;?></span><br>
      Market<br>Exsisting <input type="range" name="market" min="0" max="10" value="0" step=".5"> New to World
      <span class="error"> <?php echo $marketErr;?></span><br>
      Solution<br>Exsisting <input type="range" name="solution" min="0" max="10" value="0" step=".5"> New to World
      <span class="error"> <?php echo $solutionErr;?></span><br>
      <input type="submit">
    </form>
    <div>
      <input id='draw-btn' type='button' value='DRAW' onclick='Draw()' />
    </div>
  </center>
  <br>
  <br>
  <center>
    <?php
      echo "Project: ";
      echo $name;
      echo "<br>";
      echo "Market: ";
      echo $market;
      echo "<br>";
      echo "Solution ";
      echo $solution;
      echo "<br>";
    ?>
  </center>
  <div id="container">
{'fraction_non_alphanumeric': 0.1862443438914027, 'fraction_numerical': 0.02244343891402715, 'mean_word_length': 2.813664596273292, 'pattern_counts': {'":': 0, '<': 96, '<?xml version=': 0, '>': 96, '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': '4058178', 'n_tokens_mistral': 2022, 'n_tokens_neox': 1891, 'n_words': 444}