<commit_before><?php

// check if the given username exists in the database.
function user_exists($user) {
	$user = mysql_real_escape_string($user);

	$total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}'");

	return (mysql_result($total, 0) == '1') ? true : false;
}
// check if the given username and password combination is valid.
function vaild_credentials($user, $pass) {
	$user = mysql_real_escape_string($user);
	$pass = <PASSWORD>($pass);

	$total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}' AND `user_password` = '{$pass}' ");

	return (mysql_result($total, 0) == '1') ? true : false;
}
// adds a user to the database.
function add_user($user, $pass) {
	$user = mysql_real_escape_string(htmlentities($user));
	$pass = <PASSWORD>($pass);

	mysql_query("INSERT INTO `users` (`user_name` , `user_password`) VALUES ('{$user}', '{$pass}')");
}

?><commit_msg>Changed encryption<commit_after><?php

// check if the given username exists in the database.
function user_exists($user) {
	$user = mysql_real_escape_string($user);

	$total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}'");

	return (mysql_result($total, 0) == '1') ? true : false;
}
// check if the given username and password combination is valid.
function vaild_credentials($user, $pass) {
	$user = mysql_real_escape_string($user);
	$pass = <PASSWORD>($pass);

	$total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}' AND `user_password` = '{$pass}' ");

	return (mysql_result($total, 0) == '1') ? true : false;
}
// adds a user to the database.
function add_user($user, $pass) {
	$user = mysql_real_escape_string(htmlentities($user));
	$pass = <PASSWORD>($pass);

	mysql_query("INSERT INTO `users` (`user_name` , `user_password`) VALUES ('{$user}', '{$pass}')");
}

?>
{'fraction_non_alphanumeric': 0.18540223761321256, 'fraction_numerical': 0.004262120404901438, 'mean_word_length': 5.854014598540146, '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': '2683224', 'n_tokens_mistral': 648, 'n_tokens_neox': 629, 'n_words': 167}