<commit_before><?php
	session_start();
	include("../config.php");
	$user_login = $_SESSION['login'];
	$query = mysqli_query($a, "select * from `users` where `user`='$user_login'");
	$user_data = mysqli_fetch_array($query);
	$player_equipment = explode(";", $user_data["eq"]); 

	$arr = [];

	for($i=0;$i<count($player_equipment);$i++){	
		if($player_weared_equipment[$i] > 0){
			$item_id = $player_weared_equipment[$i];
			$query = mysqli_query($a, "select * from `items` where `id`='$item_id'");
			$item_info = mysqli_fetch_array($query);
			$push = "{id:".$item_info['id'].",name:.".$item_info['name'].",type:".$item_info['type'].",stats:{rarity:.".$item_info['rarity'].",atk:".$item_info['atk'].",def:".$item_info['def'].",hp:".$item_info['hp'].",price:".$item_info['price']."}}";
			array_push($arr,$push);
		}
	}

	return json_encode($arr);

?><commit_msg>Fixes<commit_after><?php
	session_start();
	include("../config.php");
	$user_login = $_SESSION['login'];
	$query = mysqli_query($a, "select * from `users` where `user`='$user_login'");
	$user_data = mysqli_fetch_array($query);
	$player_equipment = explode(";", $user_data["eq"]); 

	$arr = [];

	for($i=0;$i<count($player_equipment);$i++){	
		if($player_weared_equipment[$i] > 0){
			$item_id = $player_weared_equipment[$i];
			$query = mysqli_query($a, "select * from `items` where `id`='$item_id'");
			$item_info = mysqli_fetch_array($query);
			$push = "{id:".$item_info['id'].",name:.".$item_info['name'].",type:".$item_info['type'].",stats:{rarity:.".$item_info['rarity'].",atk:".$item_info['atk'].",def:".$item_info['def'].",hp:".$item_info['hp'].",price:".$item_info['price']."}}";
			array_push($arr,$push);
		}
	}

	return json_encode($arr);

	print_r($arr);

?>
{'fraction_non_alphanumeric': 0.27319884726224786, 'fraction_numerical': 0.0023054755043227667, 'mean_word_length': 6.81981981981982, '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': '3552248', 'n_tokens_mistral': 743, 'n_tokens_neox': 693, 'n_words': 75}