<commit_before><?php

require_once '../engine/BMButton.php';
require_once '../engine/BMGame.php';

$gameDataJson = file_get_contents('/var/www/bmgame/gamedata.json');
$gameData = json_decode($gameDataJson);

header('Content-Type: text/plain');
var_dump($gameData);

?>
<commit_msg>* check game status within api test function<commit_after><?php

require_once '../engine/BMButton.php';
require_once '../engine/BMGame.php';

$gameDataJson = file_get_contents('/var/www/bmgame/gamedata.json');
$gameData = json_decode($gameDataJson);
header('Content-Type: text/plain');

if $gameData["status"] == "ok" {
  echo "Game status is ok.  Game data:"
  var_dump($gameData["data"]);
} else {
  echo "Game status is NOT ok.  Loaded object data:"
  var_dump($gameData);
}

?>

{'fraction_non_alphanumeric': 0.1782437745740498, 'fraction_numerical': 0.0, 'mean_word_length': 5.47457627118644, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3199348', 'n_tokens_mistral': 263, 'n_tokens_neox': 263, 'n_words': 52}