<commit_before><?php 
if(isset($_POST['submit'])){
    $to = "<EMAIL>"; // this is your Email address
    $from = $_POST['email']; // this is the sender's Email address
    $first_name = $_POST['first_name'];
    $subject = "Email sent from Team 401 Site";
    $message = $first_name . " wrote the following:" . "\n\n" . $_POST['message'];

    $headers = "From:" . $from;
    $headers2 = "From:" . $to;
    mail($to,$subject,$message,$headers);
    mail($from,$subject2,$message2,$headers2); // sends a copy of the message to the sender
    echo "Mail Sent. Thank you " . $first_name . ", we will contact you shortly.";
    // You can also use header('Location: thank_you.php'); to redirect to another page.
    // You cannot use header and echo together. It's one or the other.
    }
?><commit_msg>Updated PHP mailer to reflect live version.<commit_after><?php
if (isset($_POST['name'])) {
    $to = '<EMAIL>'; // Use your own email address
    $subject = 'Website Message';

	$message = 'Name: ' . $_POST['name'] . "\r\n\r\n";
	$message .= 'Email: ' . $_POST['email'] . "\r\n\r\n";
	$message .= 'Message: ' . $_POST['comments'];

    $headers = "From: <EMAIL>\r\n";
    $headers .= 'Content-Type: text/plain; charset=utf-8';

    $email = filter_input(INPUT_POST, 'email', FILTER_VALIDATE_EMAIL);
    if ($email) {
        $headers .= "\r\nReply-To: $email";
    }

    $success = mail($to, $subject, $message, $headers, '‑<EMAIL>');
}
?>
{'fraction_non_alphanumeric': 0.1970853573907009, 'fraction_numerical': 0.005551700208188758, 'mean_word_length': 3.27893175074184, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2699098', 'n_tokens_mistral': 484, 'n_tokens_neox': 471, 'n_words': 137}