<commit_before><?php

namespace Kelunik\Acme;

use Amp\Artax\Client;
use Amp\Artax\Response;

class SelfVerifyTest extends \PHPUnit_Framework_TestCase {
    /**
     * @test
     */
    public function ignoresWrongPeerName() {
        \Amp\run(function() {
            $http = new Client();

            $keyPair = (new OpenSSLKeyGenerator())->generate();
            $client = new AcmeClient("https://acme-staging.api.letsencrypt.org/directory", $keyPair);
            $service = new AcmeService($client, $keyPair);

            $token = "<PASSWORD>";

            /** @var Response $payloadResponse */
            $payloadResponse = yield $http->request("http://blog.kelunik.com/robots.txt");
            $payload = trim($payloadResponse->getBody());
<commit_msg>Fix tests on PHP 5<commit_after><?php

namespace Kelunik\Acme;

use Amp\Artax\Client;
use Amp\Artax\Response;

class SelfVerifyTest extends \PHPUnit_Framework_TestCase {
    /**
     * @test
     */
    public function ignoresWrongPeerName() {
        \Amp\run(function() {
            $http = new Client();

            $keyPair = (new OpenSSLKeyGenerator())->generate();
            $client = new AcmeClient("https://acme-staging.api.letsencrypt.org/directory", $keyPair);
            $service = new AcmeService($client, $keyPair);

            $token = "<PASSWORD>";

            /** @var Response $payloadResponse */
            $payloadResponse = (yield $http->request("http://blog.kelunik.com/robots.txt"));
            $payload = trim($payloadResponse->getBody());

{'fraction_non_alphanumeric': 0.1483409238776838, 'fraction_numerical': 0.0006506180871828237, 'mean_word_length': 2.601873536299766, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '2191916', 'n_tokens_mistral': 456, 'n_tokens_neox': 449, 'n_words': 84}