<commit_before><?php
\define('PHPUNIT_RUN', 1);

$configDir = \getenv('CONFIG_DIR');
if ($configDir) {
	\define('PHPUNIT_CONFIG_DIR', $configDir);
}

require_once __DIR__ . '/../lib/base.php';

// if instance is in maintenance mode tests cannot be executed
if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) {
	throw new LogicException('Instance is in maintenance mode. Tests cannot be executed.');
}
if (\OCP\Util::needUpgrade()) {
	throw new LogicException('Upgrade is required. Tests cannot be executed.');
}

// especially with code coverage it will require some more time
\set_time_limit(0);

\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC::$composerAutoloader->addPsr4('TestHelpers\\', OC::$SERVERROOT . '/tests/TestHelpers/', true);
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);

// load all enabled apps
\OC_App::loadApps();

PHPUnit\Framework\Error\Deprecated::$enabled = false;

OC_Hook::clear();
<commit_msg>Remove undeclared property PHPUnit\Framework\Error\Deprecated<commit_after><?php
\define('PHPUNIT_RUN', 1);

$configDir = \getenv('CONFIG_DIR');
if ($configDir) {
	\define('PHPUNIT_CONFIG_DIR', $configDir);
}

require_once __DIR__ . '/../lib/base.php';

// if instance is in maintenance mode tests cannot be executed
if (\OC::$server->getSystemConfig()->getValue('maintenance', false)) {
	throw new LogicException('Instance is in maintenance mode. Tests cannot be executed.');
}
if (\OCP\Util::needUpgrade()) {
	throw new LogicException('Upgrade is required. Tests cannot be executed.');
}

// especially with code coverage it will require some more time
\set_time_limit(0);

\OC::$composerAutoloader->addPsr4('Test\\', OC::$SERVERROOT . '/tests/lib/', true);
\OC::$composerAutoloader->addPsr4('TestHelpers\\', OC::$SERVERROOT . '/tests/TestHelpers/', true);
\OC::$composerAutoloader->addPsr4('Tests\\', OC::$SERVERROOT . '/tests/', true);

// load all enabled apps
\OC_App::loadApps();

OC_Hook::clear();

{'fraction_non_alphanumeric': 0.1817731550272412, 'fraction_numerical': 0.004952947003467063, 'mean_word_length': 5.43312101910828, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7179043', 'n_tokens_mistral': 655, 'n_tokens_neox': 676, 'n_words': 163}