<commit_before><?php

namespace Speicher210\KontaktIO;

use function GuzzleHttp\default_user_agent;

class Client extends \GuzzleHttp\Client
{
    const API_VERSION_STABLE = '7';

    const API_VERSION_LATEST = '8';

    /**
     * Constructor.
     *
     * @param string $apiKey
     * @param string $version
     */
    public function __construct($apiKey, $version = self::API_VERSION_STABLE)
    {
        parent::__construct(
            [
                'base_uri' => 'https://api.kontakt.io',
                'headers' => [
                    'Accept' => 'application/vnd.com.kontakt+json;version=' . $version,
                    'Api-Key' => $apiKey,
                    'User-Agent' => 'Speicher210/KontaktIO ' . default_user_agent(),
                ],
            ]
        );
    }
}
<commit_msg>Update the API version used<commit_after><?php

declare(strict_types = 1);

namespace Speicher210\KontaktIO;

use function GuzzleHttp\default_user_agent;

class Client extends \GuzzleHttp\Client
{
    public const API_VERSION_STABLE = '9';

    public const API_VERSION_LATEST = '10';

    /**
     * @param string $apiKey
     * @param string $version
     */
    public function __construct($apiKey, $version = self::API_VERSION_STABLE)
    {
        parent::__construct(
            [
                'base_uri' => 'https://api.kontakt.io',
                'headers' => [
                    'Accept' => 'application/vnd.com.kontakt+json;version=' . $version,
                    'Api-Key' => $apiKey,
                    'User-Agent' => 'Speicher210/KontaktIO ' . default_user_agent()
                ]
            ]
        );
    }
}

{'fraction_non_alphanumeric': 0.12651331719128328, 'fraction_numerical': 0.010895883777239709, 'mean_word_length': 1.8949211908931698, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '6149901', 'n_tokens_mistral': 531, 'n_tokens_neox': 499, 'n_words': 87}