<commit_before><?php
include_once('HypixelPHP.php');
// instantiate the hypixel api object using your api key
$HypixelPHP = new HypixelPHP(array('api_key'=>'<KEY>'));
// get a player object using the hypixel api object
$player = $HypixelPHP->getPlayer(array('name'=>'Plancke'));
// once you have the player object you can do whatever you want :D
echo $player->getName();<commit_msg>add example for new stats object<commit_after><?php
include_once('HypixelPHP.php');
// instantiate the hypixel api object using your api key
$HypixelPHP = new HypixelPHP(array('api_key'=>'<KEY>'));
// get a player object using the hypixel api object
$player = $HypixelPHP->getPlayer(array('name'=>'Plancke'));
// once you have the player object you can do whatever you want :D
echo $player->getName();

$allstats = $player->getStats();
foreach(array_keys($allstats->getRaw()) as $game)
{
    echo '<h1>' . $game . '</h1>';
    echo '<ul>';

    $gamestats = $allstats->getGame($game);
    foreach($allstats->getGame($game)->getRaw() as $field=>$val)
    {
        echo '<li><b>' . $field . ':</b> ' . $val . '</li>';
    }
    echo '</ul><br />';
}
{'fraction_non_alphanumeric': 0.184070796460177, 'fraction_numerical': 0.0017699115044247787, 'mean_word_length': 4.544117647058823, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 28, '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': '467281', 'n_tokens_mistral': 367, 'n_tokens_neox': 361, 'n_words': 108}