<commit_before><?php

namespace Imbo\MetadataSearch;

use Imbo\Auth\AccessControl as ACL;

$config = [
    'accessControl' => function() {
        return new ACL\Adapter\ArrayAdapter([
            [
                'publicKey' => 'publickey',
                'privateKey' => 'privatekey',
                'acl' => [
                    [
                        'resources' => ACL\Adapter\ArrayAdapter::getReadWriteResources(),
                        'users' => ['publickey', 'user1'],
                    ]
                ]
            ],
            [
                'publicKey' => 'user1',
                'privateKey' => 'privatekey',
                'acl' => [
                    [
                        'resources' => ACL\Adapter\ArrayAdapter::getReadWriteResources(),
                        'users' => ['user1'],
                    ]
                ]
            ]
        ]);
    },

    'database' => function() {
        return new \Imbo\Database\MongoDB([
            'databaseName' => 'metadatasearch_integration_db'
        ]);
    },

    'storage' => function() {
        return new \Imbo\Storage\GridFS([
            'databaseName' => 'metadatasearch_integration_storage'
        ]);
    },

    'contentNegotiateImages' => true,

    'eventListeners' => [
        'accessToken' => 'Imbo\EventListener\AccessToken',
        'auth' => 'Imbo\EventListener\Authenticate',
        'statsAccess' => [
            'listener' => 'Imbo\EventListener\StatsAccess',
            'params' => [
                'allow' => ['127.0.0.1', '::1'],
            ],
        ],

        'imagick' => 'Imbo\EventListener\Imagick',

        'metadata' => [
            'listener' => new EventListener\MetadataOperations([
                'backend' => new Backend\ElasticSearch(
                    new \Elasticsearch\Client(),
                    'metadatasearch_integration'
                )
            ])
        ],
    ],

    'resources' => [],

    'routes' => [],

    'eventListenerInitializers' => [
        'imagick' => 'Imbo\EventListener\Initializer\Imagick',
    ],

    'transformationPresets' => [],

    'trustedProxies' => [],
];

return $config;<commit_msg>Extend Imbo base configuration instead of specifying everything in behat config<commit_after><?php

namespace Imbo\MetadataSearch;

use Imbo\Auth\AccessControl as ACL;

$config = require __DIR__ . '/../vendor/imbo/imbo/config/config.default.php';
$config = array_replace_recursive($config, [
    'accessControl' => function() {
        return new ACL\Adapter\ArrayAdapter([
            [
                'publicKey' => 'publickey',
                'privateKey' => 'privatekey',
                'acl' => [
                    [
                        'resources' => ACL\Adapter\ArrayAdapter::getReadWriteResources(),
                        'users' => ['publickey', 'user1'],
                    ]
                ]
            ],
            [
                'publicKey' => 'user1',
                'privateKey' => 'privatekey',
                'acl' => [
                    [
                        'resources' => ACL\Adapter\ArrayAdapter::getReadWriteResources(),
                        'users' => ['user1'],
                    ]
                ]
            ]
        ]);
    },

    'database' => function() {
        return new \Imbo\Database\MongoDB([
            'databaseName' => 'metadatasearch_integration_db'
        ]);
    },

    'storage' => function() {
        return new \Imbo\Storage\GridFS([
            'databaseName' => 'metadatasearch_integration_storage'
        ]);
    },

    'eventListeners' => [
        'metadata' => [
            'listener' => new EventListener\MetadataOperations([
                'backend' => new Backend\ElasticSearch(
                    new \Elasticsearch\Client(),
                    'metadatasearch_integration'
                )
            ])
        ],
    ],
]);

return $config;
{'fraction_non_alphanumeric': 0.140927624872579, 'fraction_numerical': 0.003312945973496432, 'mean_word_length': 1.4124154886293792, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '7450936', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1034, 'n_words': 154}