<commit_before><?php

/*
 * This file is part of phpunit-phar.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
$readonly = ini_get('phar.readonly');
if ($readonly == '1' || $readonly === true) {
    die(".phar creation disabled in php.ini!\nRe-run with 'php -d phar.readonly=0 make-phar.php'\n");
} 

require __DIR__.'/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
$loader = new Symfony\Component\ClassLoader\UniversalClassLoader;
$loader->registerNamespace('Symfony', __DIR__.'/symfony/src');
$loader->register();

$pharFile = 'phpunit.phar';

if (file_exists($pharFile)) {
    unlink($pharFile);
}

$phar = new Phar($pharFile, 0, 'phpunit.phar');
$phar->setSignatureAlgorithm(Phar::SHA1);
$phar->startBuffering();<commit_msg>Added hack to use PHPUnit's package-version in the TextUI runner.<commit_after><?php

/*
 * This file is part of phpunit-phar.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
$readonly = ini_get('phar.readonly');
if ($readonly == '1' || $readonly === true) {
    die(".phar creation disabled in php.ini!\nRe-run with 'php -d phar.readonly=0 make-phar.php'\n");
} 

require __DIR__.'/symfony/src/Symfony/Component/ClassLoader/UniversalClassLoader.php';
$loader = new Symfony\Component\ClassLoader\UniversalClassLoader;
$loader->registerNamespace('Symfony', __DIR__.'/symfony/src');
$loader->register();

$pharFile = 'phpunit.phar';

if (file_exists($pharFile)) {
    unlink($pharFile);
}

// make output a little prettier
$version_file = file_get_contents(__DIR__.'/phpunit/PHPUnit/Runner/Version.php');
if (strpos($version_file, '@package_version@') !== false) {
    $pkg = simplexml_load_file(__DIR__.'/phpunit/package.xml');
    $package_version = (string) $pkg->version->release;
    $version_file = str_replace('@package_version@', $package_version, $version_file);
    file_put_contents(__DIR__.'/phpunit/PHPUnit/Runner/Version.php', $version_file);
}

$phar = new Phar($pharFile, 0, 'phpunit.phar');
$phar->setSignatureAlgorithm(Phar::SHA1);
$phar->startBuffering();
{'fraction_non_alphanumeric': 0.16637010676156583, 'fraction_numerical': 0.0035587188612099642, 'mean_word_length': 5.264623955431754, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '1592600', 'n_tokens_mistral': 776, 'n_tokens_neox': 752, 'n_words': 162}