<commit_before><?php
header('Content-type: application/json; charset=utf-8');

$api=$_GET['con'];

if($api=='mail'){
	$email=$_GET['email'];
	$course=$_GET['course'];

	/*$html="<div>
				<p>El usuario <strong>$email</strong> solictó información del curso: <strong>$course</strong>.</p>
		   </div>";
	mailAttachment("<EMAIL>", $course,$html);*/

	$fp = fopen('data_base.txt', 'a');
	fwrite($fp, $email.' = '.$course.PHP_EOL);
	fclose($fp);

	$message="success";
    $data =  array('message' => $message);
    echo json_encode($data);
}

function mailAttachment($mailto, $subject, $message) {
	require_once("PHPMailer/class.phpmailer.php");<commit_msg>Sprite kit<commit_after><?php
header('Content-type: application/json; charset=utf-8');

$api=$_GET['con'];

if($api=='mail'){
	$email=$_GET['email'];
	$course=$_GET['course'];

	/*$html="<div>
				<p>El usuario <strong>$email</strong> solictó información del curso: <strong>$course</strong>.</p>
		   </div>";
	mailAttachment("<EMAIL>", $course,$html);*/

	$fp = fopen('../data_base.txt', 'a');
	fwrite($fp, $email.' = '.$course.PHP_EOL);
	fclose($fp);

	$message="success";
    $data =  array('message' => $message);
    echo json_encode($data);
}

function mailAttachment($mailto, $subject, $message) {
	require_once("PHPMailer/class.phpmailer.php");
{'fraction_non_alphanumeric': 0.2415644171779141, 'fraction_numerical': 0.0015337423312883436, 'mean_word_length': 5.832460732984293, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '6387959', 'n_tokens_mistral': 503, 'n_tokens_neox': 489, 'n_words': 76}