<commit_before><?php

namespace Kibo\Phast\HTTP;

use Kibo\Phast\HTTP\Exceptions\HTTPError;
use Kibo\Phast\HTTP\Exceptions\NetworkError;
use Kibo\Phast\ValueObjects\URL;

interface Client {

    /**
     * @param URL $url
     * @param array $headers
     * @return Response|false
     * @throws HTTPError
     * @throws NetworkError
     */
    public function get(URL $url, array $headers = []);

    /**
     * @param URL $url
     * @param array|string $data
     * @param array $headers
     * @return Response|false
     * @throws HTTPError
     * @throws NetworkError
     */
    public function post(URL $url, $data, array $headers = []);

}<commit_msg>Throw more generic exceptions on error in HTTP\Client<commit_after><?php

namespace Kibo\Phast\HTTP;

use Kibo\Phast\ValueObjects\URL;

interface Client {

    /**
     * @param URL $url
     * @param array $headers
     * @return Response|false
     * @throws \Exception
     */
    public function get(URL $url, array $headers = []);

    /**
     * @param URL $url
     * @param array|string $data
     * @param array $headers
     * @return Response|false
     * @throws \Exception
     */
    public function post(URL $url, $data, array $headers = []);

}
{'fraction_non_alphanumeric': 0.1285831285831286, 'fraction_numerical': 0.0, 'mean_word_length': 2.66966966966967, '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': '7419136', 'n_tokens_mistral': 388, 'n_tokens_neox': 384, 'n_words': 101}