<commit_before><?php

namespace Amp\Artax\Test;

use Amp\Artax\Client;
use Amp\Artax\DefaultClient;
use Amp\Artax\FileBody;
use Amp\Artax\FormBody;
use Amp\Artax\HttpException;
use Amp\Artax\Request;
use Amp\Artax\RequestBody;
use Amp\Artax\Response;
use Amp\Artax\TooManyRedirectsException;
use Amp\ByteStream\InMemoryStream;
use Amp\ByteStream\InputStream;
use Amp\ByteStream\IteratorStream;
use Amp\CancellationTokenSource;
use Amp\CancelledException;
use function Amp\Iterator\fromIterable;
use Amp\Promise;
use Amp\Success;
use PHPUnit\Framework\TestCase;
use function Amp\Promise\wait;

class ClientHttpBinIntegrationTest extends TestCase {
    public function testDefaultUserAgentSent() {
        $uri = 'http://httpbin.org/user-agent';
        $client = new DefaultClient;<commit_msg>Sort imports<commit_after><?php

namespace Amp\Artax\Test;

use Amp\Artax\Client;
use Amp\Artax\DefaultClient;
use Amp\Artax\FileBody;
use Amp\Artax\FormBody;
use Amp\Artax\HttpException;
use Amp\Artax\Request;
use Amp\Artax\RequestBody;
use Amp\Artax\Response;
use Amp\Artax\TooManyRedirectsException;
use Amp\ByteStream\InMemoryStream;
use Amp\ByteStream\InputStream;
use Amp\ByteStream\IteratorStream;
use Amp\CancellationTokenSource;
use Amp\CancelledException;
use Amp\Promise;
use Amp\Success;
use PHPUnit\Framework\TestCase;
use function Amp\Iterator\fromIterable;
use function Amp\Promise\wait;

class ClientHttpBinIntegrationTest extends TestCase {
    public function testDefaultUserAgentSent() {
        $uri = 'http://httpbin.org/user-agent';
        $client = new DefaultClient;
{'fraction_non_alphanumeric': 0.0998104864181933, 'fraction_numerical': 0.0, 'mean_word_length': 5.439024390243903, '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': '1672945', 'n_tokens_mistral': 536, 'n_tokens_neox': 540, 'n_words': 110}