<commit_before><?php

if (!file_exists($file = __DIR__.'/../vendor/autoload.php')) {
    throw new RuntimeException('Install dependencies to run test suite.');
}

$loader = require_once $file;

$loader->add('Doctrine\ODM\MongoDB\Tests', __DIR__ . '/../tests');
$loader->add('Documents', __DIR__);
$loader->add('Stubs', __DIR__);

\Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver::registerAnnotationClasses();<commit_msg>Ignore E_DEPRECATED warning in tests for driver version 1.2.11+<commit_after><?php

if (!file_exists($file = __DIR__.'/../vendor/autoload.php')) {
    throw new RuntimeException('Install dependencies to run test suite.');
}

$loader = require_once $file;

$loader->add('Doctrine\ODM\MongoDB\Tests', __DIR__ . '/../tests');
$loader->add('Documents', __DIR__);
$loader->add('Stubs', __DIR__);

\Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver::registerAnnotationClasses();

/* Driver version 1.2.11 deprecated setSlaveOkay() in anticipation of connection
 * read preferences. Ignore these warnings until read preferences are
 * implemented.
 */
if (0 >= version_compare('1.2.11', \Mongo::VERSION)) {
    error_reporting(error_reporting() ^ E_DEPRECATED);
}
{'fraction_non_alphanumeric': 0.16807432432432431, 'fraction_numerical': 0.01097972972972973, 'mean_word_length': 5.54696132596685, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '6395766', 'n_tokens_mistral': 381, 'n_tokens_neox': 377, 'n_words': 78}