<commit_before><?php
	use \gnk\config\Database;
	use \gnk\config\Page;
	use \gnk\database\entities\Users;
	use \gnk\database\entities\Status;
	function getStatus($login, $password){
		Database::useTables();
		$qb = Database::getEM()->createQueryBuilder();
		$qb->select(array('s.longitude', 's.latitude', 's.message', 's.date', 'u.login'))
			->from('\gnk\database\entities\Status', 's')
			->leftJoin('\gnk\database\entities\Users', 'u', 'WITH', 's.user = u.id')
			->where('u.login LIKE ?1')
			->andWhere('u.password LIKE ?2')
			->orderBy('s.date', 'DESC');
		$qb->setParameters(array(1 => $login, 2 => sha1($password)));
		$query = $qb->getQuery();
		$result = $query->getResult();
		return $result;
	}
	$login = 'user';
	$password = '<PASSWORD>';
	if(isset($_POST['login']) AND isset($_POST['password'])){
		$login = $_POST['login'];
		$password = $_POST['password'];
	}
	else if(isset($_SERVER['PHP_AUTH_USER']) AND isset($_SERVER['PHP_AUTH_PW'])){
		$login = $_SERVER['PHP_AUTH_USER'];
		$password = $_SERVER['PHP_AUTH_PW'];
	}
	if(isset($login) AND isset($password)){
// 		header('Content-Disposition: attachment; filename="friends.json"');
?><commit_msg>Modification de l'entête<commit_after><?php
	use \gnk\config\Database;
	use \gnk\config\Page;
	use \gnk\database\entities\Users;
	use \gnk\database\entities\Status;
	function getStatus($login, $password){
		Database::useTables();
		$qb = Database::getEM()->createQueryBuilder();
		$qb->select(array('s.longitude', 's.latitude', 's.message', 's.date', 'u.login'))
			->from('\gnk\database\entities\Status', 's')
			->leftJoin('\gnk\database\entities\Users', 'u', 'WITH', 's.user = u.id')
			->where('u.login LIKE ?1')
			->andWhere('u.password LIKE ?2')
			->orderBy('s.date', 'DESC');
		$qb->setParameters(array(1 => $login, 2 => sha1($password)));
		$query = $qb->getQuery();
		$result = $query->getResult();
		return $result;
	}
	$login = 'user';
	$password = '<PASSWORD>';
	if(isset($_POST['login']) AND isset($_POST['password'])){
		$login = $_POST['login'];
		$password = $_POST['password'];
	}
	else if(isset($_SERVER['PHP_AUTH_USER']) AND isset($_SERVER['PHP_AUTH_PW'])){
		$login = $_SERVER['PHP_AUTH_USER'];
		$password = $_SERVER['PHP_AUTH_PW'];
	}
	if(isset($login) AND isset($password)){
 		header('Content-Type: application/json');
?>
{'fraction_non_alphanumeric': 0.23496321938554737, 'fraction_numerical': 0.004327131112072695, 'mean_word_length': 5.282608695652174, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 31, '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': '6496620', 'n_tokens_mistral': 889, 'n_tokens_neox': 853, 'n_words': 141}