<commit_before><?php

namespace Buzz;

use Buzz\Client;
use Buzz\Message;

class Browser
{
    protected $client;
    protected $factory;

    public function __construct(Client\ClientInterface $client = null, Message\FactoryInterface $factory = null)
    {
        $this->client = $client ?: new Client\FileGetContents();
        $this->factory = $factory ?: new Message\Factory();
    }

    public function get($url, $headers = array())
    {
        return $this->call($url, Message\Request::METHOD_GET, $headers);
    }

    public function post($url, $headers = array(), $content = '')
    {
        return $this->call($url, Message\Request::METHOD_POST, $headers, $content);
    }

    public function head($url, $headers = array())
    {
        return $this->call($url, Message\Request::METHOD_HEAD, $headers);
    }

    public function put($url, $headers = array(), $content = '')
    {
        return $this->call($url, Message\Request::METHOD_PUT, $headers, $content);
    }<commit_msg>changed properties to private<commit_after><?php

namespace Buzz;

use Buzz\Client;
use Buzz\Message;

class Browser
{
    private $client;
    private $factory;

    public function __construct(Client\ClientInterface $client = null, Message\FactoryInterface $factory = null)
    {
        $this->client = $client ?: new Client\FileGetContents();
        $this->factory = $factory ?: new Message\Factory();
    }

    public function get($url, $headers = array())
    {
        return $this->call($url, Message\Request::METHOD_GET, $headers);
    }

    public function post($url, $headers = array(), $content = '')
    {
        return $this->call($url, Message\Request::METHOD_POST, $headers, $content);
    }

    public function head($url, $headers = array())
    {
        return $this->call($url, Message\Request::METHOD_HEAD, $headers);
    }

    public function put($url, $headers = array(), $content = '')
    {
        return $this->call($url, Message\Request::METHOD_PUT, $headers, $content);
    }
{'fraction_non_alphanumeric': 0.15338645418326693, 'fraction_numerical': 0.0, 'mean_word_length': 3.274468085106383, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '1161813', 'n_tokens_mistral': 590, 'n_tokens_neox': 572, 'n_words': 141}