<commit_before><?php

namespace Lalbert\Silex\Provider;

use Pimple\ServiceProviderInterface;
use Pimple\Container;
use MongoDB\Client;

class MongoDBServiceProvider implements ServiceProviderInterface
{
    public function register(Container $app)
    {
        $app['mongodb.config'] = [
            'server' => 'mongodb://localhost:27017',
            'uriOptions' => [],
            'driverOptions' => [],
        ];

        $app['mongodb'] = function ($app) {
            $client = new Client(
                $app['mongodb.config']['server'],
                $app['mongodb.config']['uriOptions'],
                $app['mongodb.config']['driverOptions']
            );

            return $client;
        };
    }
}
<commit_msg>fix options key<commit_after><?php

namespace Lalbert\Silex\Provider;

use Pimple\ServiceProviderInterface;
use Pimple\Container;
use MongoDB\Client;

class MongoDBServiceProvider implements ServiceProviderInterface
{
    public function register(Container $app)
    {
        $app['mongodb.config'] = [
            'server' => 'mongodb://localhost:27017',
            'options' => [],
            'driverOptions' => [],
        ];

        $app['mongodb'] = function ($app) {
            $client = new Client(
                $app['mongodb.config']['server'],
                $app['mongodb.config']['options'],
                $app['mongodb.config']['driverOptions']
            );

            return $client;
        };
    }
}

{'fraction_non_alphanumeric': 0.14597544338335608, 'fraction_numerical': 0.0068212824010914054, 'mean_word_length': 2.1684665226781856, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6526619', 'n_tokens_mistral': 429, 'n_tokens_neox': 394, 'n_words': 68}