<commit_before><?php

$uniqname = $_POST['uniqname'];

include("../../includes/config.php");
include("../../tools/functions.php");

connect_to_db();

$message = "";

if (isset($_POST['name']))
{
	//profile update; error detection/correction needed
	$name = mysql_real_escape_string($_POST['name']);
	$type = mysql_real_escape_string($_POST['type']);
	$gradMonth = (int) $_POST['gradMonth'];
	$gradYear = (int) $_POST['gradYear'];
	$gpa = round(((float) $_POST['gpa']), 2);
	if (($gpa < 0)||($gpa > 4))
		$gpa = 0;
	$major = mysql_real_escape_string($_POST['major']);
	if ($_POST['resumeVisible'] == "on")
		$showResume = 1;
	else
		$showResume = 0;
	mysql_query("UPDATE members SET name = '$name', gradMonth = '$gradMonth', gradYear = '$gradYear', showResume = '$showResume', major = '$major', type = '$type', gpa = '$gpa'
		WHERE uniqname = '$uniqname' AND deleted=0");

	//"Profile Updated.";
}

if (isset($_FILES['resumeFile']) && $_FILES['resumeFile']['name'] != "") {

	$message = AddResume($_FILES, $uniqname, "../../resumes/".$uniqname.".pdf");
}

//Print message option
if ($message != "") {

	header("Location: ../../index.php?slide_page=my_profile&message=" . $message . "");
}
else {

	header("Location: ../../index.php?slide_page=my_profile");
}

?><commit_msg>resumes like before<commit_after><?php

$uniqname = $_POST['uniqname'];

include("../../includes/config.php");
include("../../tools/functions.php");

connect_to_db();

$message = "";

if (isset($_POST['name']))
{
	//profile update; error detection/correction needed
	$name = mysql_real_escape_string($_POST['name']);
	$type = mysql_real_escape_string($_POST['type']);
	$gradMonth = (int) $_POST['gradMonth'];
	$gradYear = (int) $_POST['gradYear'];
	$gpa = round(((float) $_POST['gpa']), 2);
	if (($gpa < 0)||($gpa > 4))
		$gpa = 0;
	$major = mysql_real_escape_string($_POST['major']);
	if ($_POST['resumeVisible'] == "on")
		$showResume = 1;
	else
		$showResume = 0;
	mysql_query("UPDATE members SET name = '$name', gradMonth = '$gradMonth', gradYear = '$gradYear', showResume = '$showResume', major = '$major', type = '$type', gpa = '$gpa'
		WHERE uniqname = '$uniqname' AND deleted=0");

	//"Profile Updated.";
}

if (isset($_FILES['resumeFile']) && $_FILES['resumeFile']['name'] != "") {

	$message = AddResume($_FILES, $uniqname, "../../../resumes/".$uniqname.".pdf");
}

//Print message option
if ($message != "") {

	header("Location: ../../index.php?slide_page=my_profile&message=" . $message . "");
}
else {

	header("Location: ../../index.php?slide_page=my_profile");
}

?>
{'fraction_non_alphanumeric': 0.2446183953033268, 'fraction_numerical': 0.005479452054794521, 'mean_word_length': 4.97196261682243, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6188857', 'n_tokens_mistral': 933, 'n_tokens_neox': 904, 'n_words': 174}