<commit_before>
<div class="wrapper">
<?php

$servername ="localhost";
$username = "blueteam";
$password = "<PASSWORD>";
$dbname = "blueteam";

//creates connection to  the server
$conn = new mysqli($servername, $username, $password, $dbname);

if($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}

// Create a query string
//$sqlSELECT = "SELECT workshopNAME, workshopDATE, workshopTIME FROM workshops";
$sqlSELECT = "SELECT * FROM workshops";

$result = $conn->query($sqlSELECT);


$count=1;
if($result->num_rows>0){ //num_rows is meta data retrieved from the query
  while($row = $result->fetch_assoc()){ //$row is your data cursor
      echo "<tr>";
      echo "<td class='name $count'>".$row['workshopNAME']."</td>";
      echo "<td class=$count>".$row['workshopDATE']."</td>";
      echo "<td class=$count>".$row['workshopTIME']."</td>";
      echo "<td class=$count>$".$row['cost']."</td>";
      echo "<td class=$count>".$row['enrolled']."/100</td>";
      echo "<td class=$count onclick('tellMySQL(this.className)')><input type='button' value='Add' class='btn btn-primary' </input></td>";
      echo "<td class=$count><input type='button' value='Drop' class='btn btn-primary'</input></td>";
      echo "</tr>";
      $count+=1;
      }
}


?><commit_msg>colored buttons<commit_after>
<div class="wrapper">
<?php

$servername ="localhost";
$username = "blueteam";
$password = "<PASSWORD>";
$dbname = "blueteam";

//creates connection to  the server
$conn = new mysqli($servername, $username, $password, $dbname);

if($conn->connect_error) {
  die("Connection failed: " . $conn->connect_error);
}

// Create a query string
//$sqlSELECT = "SELECT workshopNAME, workshopDATE, workshopTIME FROM workshops";
$sqlSELECT = "SELECT * FROM workshops";

$result = $conn->query($sqlSELECT);


$count=1;
if($result->num_rows>0){ //num_rows is meta data retrieved from the query
  while($row = $result->fetch_assoc()){ //$row is your data cursor
      echo "<tr>";
      echo "<td class='name $count'>".$row['workshopNAME']."</td>";
      echo "<td class=$count>".$row['workshopDATE']."</td>";
      echo "<td class=$count>".$row['workshopTIME']."</td>";
      echo "<td class=$count>$".$row['cost']."</td>";
      echo "<td class=$count>".$row['enrolled']."/100</td>";
      echo "<td class=$count onclick('tellMySQL(this.className)')><input type='button' value='Add' class='btn btn-primary' </input></td>";
      echo "<td class=$count><input type='button' value='Drop' class='btn btn-danger'</input></td>";
      echo "</tr>";
      $count+=1;
      }
}


?>
{'fraction_non_alphanumeric': 0.2220502901353965, 'fraction_numerical': 0.0046421663442940036, 'mean_word_length': 4.502127659574468, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 57, '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': '5406794', 'n_tokens_mistral': 855, 'n_tokens_neox': 843, 'n_words': 197}