<commit_before><?php
require 'json.php';
require 'db.php';


$parkdbname = mysqli_real_escape_string($mysqli,$_POST['parkdbname']);

$valveid = mysqli_real_escape_string($mysqli,$_POST['valveid']);
$valveid= preg_replace('/\s+/', '', $valveid);

$newid = mysqli_real_escape_string($mysqli,$_POST['newid']);
$newid= preg_replace('/\s+/', '', $newid);

$numtrees = mysqli_real_escape_string($mysqli,$_POST['trees']);
$numtrees = intval($numtrees);
//
$numgals = mysqli_real_escape_string($mysqli,$_POST['gals']);
echo($numgals);
// $numgals = split(' ',$numgals);
$numgals = explode(" ", $numgals);
// $numgals =floatval($numgals[0]).' '.$numgals[1];
echo($numgals);

//echo $valveid.$parkdbname.$newid.$numtrees.$numgals;
// if(IDisused($newid,$parkdbname)){
//   die(header("HTTP/1.0 404 Not Found"));
// }else{
//   editvalve($valveid,$parkdbname,$newid,$numtrees,$numgals);
// }




 ?><commit_msg>generic<commit_after><?php
require 'json.php';
require 'db.php';


$parkdbname = mysqli_real_escape_string($mysqli,$_POST['parkdbname']);

$valveid = mysqli_real_escape_string($mysqli,$_POST['valveid']);
$valveid= preg_replace('/\s+/', '', $valveid);

$newid = mysqli_real_escape_string($mysqli,$_POST['newid']);
$newid= preg_replace('/\s+/', '', $newid);

$numtrees = mysqli_real_escape_string($mysqli,$_POST['trees']);
$numtrees = intval($numtrees);
//
$numgals = mysqli_real_escape_string($mysqli,$_POST['gals']);
// $numgals = split(' ',$numgals);
$numgals = explode(" ", $numgals);
$numgals =floatval($numgals[0]).' '.$numgals[1];
// echo($numgals);

//echo $valveid.$parkdbname.$newid.$numtrees.$numgals;
if(IDisused($newid,$parkdbname)){
  die(header("HTTP/1.0 404 Not Found"));
}else{
  editvalve($valveid,$parkdbname,$newid,$numtrees,$numgals);
}




 ?>
{'fraction_non_alphanumeric': 0.23482699943278504, 'fraction_numerical': 0.007941009642654566, 'mean_word_length': 7.440191387559809, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1313699', 'n_tokens_mistral': 749, 'n_tokens_neox': 708, 'n_words': 85}