<commit_before><?php
namespace Components\Flysystem;

use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use Clarity\Contracts\Flysystem\AdapterInterface;
use Clarity\Contracts\Flysystem\ClientInterface;

class S3 implements AdapterInterface, ClientInterface
{
    private $config;

    public function __construct($config)
    {
        $this->config = $config;
    }

    public function getClient()
    {
        return new S3Client($this->config);
    }

    public function getAdapter()
    {
        return new AwsS3Adapter($this->client(), $this->config['bucket']);
    }
}<commit_msg>fixing the getClient() not found<commit_after><?php
namespace Components\Flysystem;

use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use Clarity\Contracts\Flysystem\AdapterInterface;
use Clarity\Contracts\Flysystem\ClientInterface;

class S3 implements AdapterInterface, ClientInterface
{
    private $config;

    public function __construct($config)
    {
        $this->config = $config;
    }

    public function getClient()
    {
        return new S3Client($this->config);
    }

    public function getAdapter()
    {
        return new AwsS3Adapter($this->getClient(), $this->config['bucket']);
    }
}
{'fraction_non_alphanumeric': 0.11201298701298701, 'fraction_numerical': 0.012987012987012988, 'mean_word_length': 3.688212927756654, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '1046687', 'n_tokens_mistral': 391, 'n_tokens_neox': 377, 'n_words': 76}