<commit_before><?php 

require ('connect.php');

if (!isset($_POST['name']) || !isset($_POST['trip']) || !isset($_POST['json'])){
	echo ('<h1>There was an error submitting your application.</h1>');
	die();
}

$name = $_POST['name'];
$date = date('Y-m-d');
$trip = $_POST['trip'];
$json = $_POST['json'];

$sql = "INSERT INTO applications (name, date, trip, json) VALUES ('$name', '$date', '$trip', '$json')";

if ($conn->query($sql) === TRUE) {

	// Send an email notifying of the recent application
	require ('email.php');
	sendMail($trip);

    echo "success";
} else {
    echo ('<h1>There was an error submitting your application.</h1>');
}

$conn->close();

 ?><commit_msg>Unset PHP variables from application insertion<commit_after><?php 

require ('connect.php');

if (!isset($_POST['name']) || !isset($_POST['trip']) || !isset($_POST['json'])){
	echo ('<h1>There was an error submitting your application.</h1>');
	die();
}

$name = $_POST['name'];
$date = date('Y-m-d');
$trip = $_POST['trip'];
$json = $_POST['json'];

$sql = "INSERT INTO applications (name, date, trip, json) VALUES ('$name', '$date', '$trip', '$json')";

if ($conn->query($sql) === TRUE) {

	// Send an email notifying of the recent application
	require ('email.php');
	sendMail($trip);

    echo "success";
} else {
    echo ('<h1>There was an error submitting your application.</h1>');
}

unset($name);
unset($trip);
unset($json);

$conn->close();

 ?>
{'fraction_non_alphanumeric': 0.24022346368715083, 'fraction_numerical': 0.00558659217877095, 'mean_word_length': 5.072033898305085, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 17, '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': '4870239', 'n_tokens_mistral': 504, 'n_tokens_neox': 477, 'n_words': 134}