<commit_before><?php
namespace Maras0830\TwitchApi\Core;

/**
 * Class Games
 * @package Maras0830\TwitchApi\Core
 */
class Games extends Base
{

    /**
     * Get games by number of viewers.
     *
     * @return mixed
     */
    public function topGames($options = [])
    {
        $availableOptions = ['limit', 'offset'];
        
        $query = [];

        foreach ($availableOptions as $option) {
            if (isset($options[ $option ])) {
                $query[ $option ] = $options[ $option ];
            }
        }
        
        $parameters[ 'query' ] = $query;
        $response = $this->client->get('/kraken/games/top', $parameters);

        return $response->json();<commit_msg>Update Games to v3.<commit_after><?php
namespace Maras0830\TwitchApi\Core;

/**
 * Class Games
 * @package Maras0830\TwitchApi\Core
 */
class Games extends Base
{

    /**
     * Get games by number of viewers.
     *
     * @return mixed
     */
    public function topGames($options = [])
    {
        $availableOptions = ['limit', 'offset'];
        
        $query = [];

        foreach ($availableOptions as $option) {
            if (isset($options[ $option ])) {
                $query[ $option ] = $options[ $option ];
            }
        }
        
        $parameters = $this->getDefaultHeaders();
        $parameters[ 'query' ] = $query;
        $response = $this->client->get('/kraken/games/top', $parameters);

        return $response->json();
{'fraction_non_alphanumeric': 0.1534788540245566, 'fraction_numerical': 0.011596180081855388, 'mean_word_length': 1.9636363636363636, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '1633609', 'n_tokens_mistral': 438, 'n_tokens_neox': 424, 'n_words': 94}