<commit_before><?php

namespace mageekguy\atoum;

use
	mageekguy\atoum,
	mageekguy\atoum\scripts\phar
;

if (extension_loaded('phar') === false)
{
	throw new \runtimeException('Phar extension is mandatory to use this PHAR');
}

define(__NAMESPACE__ . '\phar\name', 'mageekguy.atoum.phar');

\phar::mapPhar(atoum\phar\name);

$versions = unserialize(file_get_contents('phar://' . atoum\phar\name . '/versions'));

require_once 'phar://' . atoum\phar\name . '/' . $versions['current'] . '/classes/autoloader.php';

if (defined(__NAMESPACE__ . '\scripts\runner') === false)
{
	define(__NAMESPACE__ . '\scripts\runner', __FILE__);
}

if (phar\stub::autorunIsEnabled() === false)
{
	phar\stub::enableAutorun(constant(__NAMESPACE__ . '\scripts\runner'));
}

__HALT_COMPILER();<commit_msg>Update PHAR stub to handle autorun in the right way.<commit_after><?php

namespace mageekguy\atoum;

use
	mageekguy\atoum,
	mageekguy\atoum\scripts\phar
;

if (extension_loaded('phar') === false)
{
	throw new \runtimeException('Phar extension is mandatory to use this PHAR');
}

define(__NAMESPACE__ . '\phar\name', 'mageekguy.atoum.phar');

\phar::mapPhar(atoum\phar\name);

$versions = unserialize(file_get_contents('phar://' . atoum\phar\name . '/versions'));

require_once 'phar://' . atoum\phar\name . '/' . $versions['current'] . '/classes/autoloader.php';

if (defined(__NAMESPACE__ . '\scripts\runner') === false)
{
	define(__NAMESPACE__ . '\scripts\runner', __FILE__);
}

if (phar\stub::autorunIsEnabled() === true)
{
	phar\stub::enableAutorun(constant(__NAMESPACE__ . '\scripts\runner'));
}

__HALT_COMPILER();
{'fraction_non_alphanumeric': 0.182896379525593, 'fraction_numerical': 0.0, 'mean_word_length': 5.14176245210728, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '2739737', 'n_tokens_mistral': 614, 'n_tokens_neox': 617, 'n_words': 98}