<commit_before><?php

namespace ChrisWhite\B2\Http;

use GuzzleHttp as GuzzleClient;

/**
 * Client wrapper around Guzzle.
 *
 * @package ChrisWhite\B2\Http
 */
class Client extends GuzzleClient
{

}<commit_msg>Provide a nice user agent string for HTTP requests<commit_after><?php

namespace ChrisWhite\B2\Http;

use GuzzleHttp as GuzzleClient;

/**
 * Client wrapper around Guzzle.
 *
 * @package ChrisWhite\B2\Http
 */
class Client extends GuzzleClient
{
    /**
     * Provide a responsible and helpful user agent when making HTTP requests.
     *
     * @return string
     */
    public function getDefaultUserAgent()
    {
        return 'b2-sdk-php'.
            ' Guzzle/'.curl_version()['version'].
            ' cURL'.
            ' PHP/'.PHP_VERSION;
    }
}
{'fraction_non_alphanumeric': 0.10923276983094929, 'fraction_numerical': 0.006501950585175552, 'mean_word_length': 2.7198067632850242, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '1958514', 'n_tokens_mistral': 244, 'n_tokens_neox': 234, 'n_words': 63}