<commit_before><?php

namespace spec\League\Flysystem\AwsS3v3;

use Aws\Command;
use Aws\CommandInterface;
use Aws\Result;
use Aws\S3\Exception\DeleteMultipleObjectsException;
use Aws\S3\Exception\S3Exception;
use Aws\S3\S3Client;
use GuzzleHttp\Psr7;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Config;
use League\Flysystem\AdapterInterface;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class AwsS3AdapterSpec extends ObjectBehavior
{
    private $client;
    private $bucket;

    public function let(S3Client $client)
    {
        $this->client = $client;
        $this->bucket = 'bucket';
        $this->beConstructedWith($this->client, $this->bucket);
    }

    public function it_should_retrieve_the_bucket() 
    {
        $this->getBucket()->shouldBe('bucket');
    }

    public function it_should_retrieve_the_client()
    {
        $this->getClient()->shouldBe($this->client);
    }

    public function it_is_initializable()
    {
        $this->shouldHaveType(AwsS3Adapter::class);
        $this->shouldHaveType(AdapterInterface::class);
    }

    public function it_should_write_files()
    {
        $this->make_it_write_using('write', 'contents');
    }
<commit_msg>Last typehint removed from the spec.<commit_after><?php

namespace spec\League\Flysystem\AwsS3v3;

use Aws\Command;
use Aws\CommandInterface;
use Aws\Result;
use Aws\S3\Exception\DeleteMultipleObjectsException;
use Aws\S3\Exception\S3Exception;
use Aws\S3\S3Client;
use GuzzleHttp\Psr7;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Config;
use League\Flysystem\AdapterInterface;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;

class AwsS3AdapterSpec extends ObjectBehavior
{
    private $client;
    private $bucket;

    /**
     * @param Aws\S3\S3Client $client
     */
    public function let($client)
    {
        $this->client = $client;
        $this->bucket = 'bucket';
        $this->beConstructedWith($this->client, $this->bucket);
    }

    public function it_should_retrieve_the_bucket() 
    {
        $this->getBucket()->shouldBe('bucket');
    }

    public function it_should_retrieve_the_client()
    {
        $this->getClient()->shouldBe($this->client);
    }

    public function it_is_initializable()
    {
        $this->shouldHaveType(AwsS3Adapter::class);
        $this->shouldHaveType(AdapterInterface::class);
    }

    public function it_should_write_files()
    {
        $this->make_it_write_using('write', 'contents');
    }

{'fraction_non_alphanumeric': 0.12158908507223114, 'fraction_numerical': 0.011637239165329053, 'mean_word_length': 3.633828996282528, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 29, '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': '1972378', 'n_tokens_mistral': 837, 'n_tokens_neox': 814, 'n_words': 133}