<commit_before><?php

namespace Gaufrette\Adapter;

use Gaufrette\Adapter;
use Aws\S3\S3Client;

/**
 * Amazon S3 adapter using the AWS SDK for PHP v2.x
 *
 * @package Gaufrette
 * @author  <NAME> <<EMAIL>>
 */
class AwsS3 implements Adapter,
                       MetadataSupporter,
                       ListKeysAware
{
    protected $service;
    protected $bucket;
    protected $options;
    protected $bucketExists;
    protected $metadata = array();
    protected $detectContentType;

    public function __construct(S3Client $service, $bucket, array $options = array(), $detectContentType = true)
    {
        $this->service = $service;
        $this->bucket = $bucket;
        $this->options = array_replace(
            array(<commit_msg>Defaults content-type detection to false in AwsS3 adapter to prevent breaking existing usage.<commit_after><?php

namespace Gaufrette\Adapter;

use Gaufrette\Adapter;
use Aws\S3\S3Client;

/**
 * Amazon S3 adapter using the AWS SDK for PHP v2.x
 *
 * @package Gaufrette
 * @author  <NAME> <<EMAIL>>
 */
class AwsS3 implements Adapter,
                       MetadataSupporter,
                       ListKeysAware
{
    protected $service;
    protected $bucket;
    protected $options;
    protected $bucketExists;
    protected $metadata = array();
    protected $detectContentType;

    public function __construct(S3Client $service, $bucket, array $options = array(), $detectContentType = false)
    {
        $this->service = $service;
        $this->bucket = $bucket;
        $this->options = array_replace(
            array(
{'fraction_non_alphanumeric': 0.10233733417561591, 'fraction_numerical': 0.0082122552116235, 'mean_word_length': 2.7270588235294118, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '5085744', 'n_tokens_mistral': 461, 'n_tokens_neox': 444, 'n_words': 127}