<commit_before><?php

namespace Voximplant\Transport;

use Voximplant\Transport\TransportException;

class Curl implements Transport
{
    public function send($url, $method, $arguments = array())
    {
        $query = http_build_query($arguments);
        if ($method == Transport::GET) {
            $url = $url . '?' . $query;
        }
        $curl = curl_init($url);
        curl_setopt ($curl, CURLOPT_USERAGENT, 'Voximplant-API.SDK/PHP');
        if ($method == Transport::POST) {
            curl_setopt($curl, CURLOPT_POST, 1);
            curl_setopt($curl, CURLOPT_POSTFIELDS, $query);
        }
        curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);<commit_msg>[bugfix] typo in exception class namespace<commit_after><?php

namespace Voximplant\Transport;

use Voximplant\Exception\TransportException;

class Curl implements Transport
{
    public function send($url, $method, $arguments = array())
    {
        $query = http_build_query($arguments);
        if ($method == Transport::GET) {
            $url = $url . '?' . $query;
        }
        $curl = curl_init($url);
        curl_setopt ($curl, CURLOPT_USERAGENT, 'Voximplant-API.SDK/PHP');
        if ($method == Transport::POST) {
            curl_setopt($curl, CURLOPT_POST, 1);
            curl_setopt($curl, CURLOPT_POSTFIELDS, $query);
        }
        curl_setopt ($curl, CURLOPT_RETURNTRANSFER, 1);
{'fraction_non_alphanumeric': 0.13468501086169443, 'fraction_numerical': 0.002896451846488052, 'mean_word_length': 2.8820224719101124, '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': '1665715', 'n_tokens_mistral': 458, 'n_tokens_neox': 428, 'n_words': 88}