<commit_before><?php

use google\appengine\api\mail\Message;

$name=$email=$query="";
if($_SERVER["REQUEST_METHOD"]=="POST") {

   $name = $_POST["name"];
   $email = $_POST["email"];
   $query = $_POST["message"];

  require_once 'google/appengine/api/mail/Message.php';
    $mail_options = [
        "sender" => $email,
        "to" => "<EMAIL>",
        "subject" => "Contacting you from portfolio",
        "textBody" => $query,
    ];  

  try {
      $message = new Message($mail_options);
      $message->send();
      echo true;
  } catch (InvalidArgumentException $e) {
      echo false;
  }
} 
 ?><commit_msg>Adding email sender to be admins email for testing<commit_after><?php
require_once 'google/appengine/api/mail/Message.php';
use google\appengine\api\mail\Message;

$name=$email=$query="";
if($_SERVER["REQUEST_METHOD"]=="POST") {

   $name = $_POST["name"];
   $email = $_POST["email"];
   $query = "Hi Kristina, ".$email." tried contacting you with the following message <br>" . $_POST["message"];

  require_once 'google/appengine/api/mail/Message.php';
    $mail_options = [
        "sender" => "<EMAIL>",
        "to" => "<EMAIL>",
        "subject" => "Contacting you from portfolio",
        "textBody" => $query,
    ];  

  try {
      $message = new Message($mail_options);
      $message->send();
      echo true;
  } catch (InvalidArgumentException $e) {
      echo false;
  }
} 
 ?>
{'fraction_non_alphanumeric': 0.18555240793201133, 'fraction_numerical': 0.0, 'mean_word_length': 3.1804733727810652, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 19, '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': '6358468', 'n_tokens_mistral': 462, 'n_tokens_neox': 451, 'n_words': 95}