<commit_before><?php 
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');  
include("../../config.php");

$code = $_GET['code'];
$result = mysql_query("SELECT code FROM 15_challenges WHERE code='".$code."'");

if(mysql_num_rows($result) != 1){
  echo 'failure';
} else {
 echo 'success';
}

?><commit_msg>fix quert<commit_after><?php 
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: GET, POST');  
include("../../config.php");

$code = $_GET['code'];
$result = mysql_query("SELECT code FROM 15_challenges WHERE code='".$code."' and player2_score = 0");

if(mysql_num_rows($result) != 1){
  echo 'failure';
} else {
 echo 'success';
}

?>
{'fraction_non_alphanumeric': 0.223943661971831, 'fraction_numerical': 0.011267605633802818, 'mean_word_length': 5.348214285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2947285', 'n_tokens_mistral': 255, 'n_tokens_neox': 243, 'n_words': 48}