<commit_before><?php
/**
 * This file contains the CTestCase class.
 *
 * @author <NAME> <<EMAIL>>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2013 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

require_once('PHPUnit/Runner/Version.php');
require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11

spl_autoload_unregister(array('YiiBase','autoload'));
require_once('PHPUnit/Autoload.php');
spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end

if (in_array('phpunit_autoload', spl_autoload_functions())) { // PHPUnit >= 3.7 'phpunit_autoload' was obsoleted
    spl_autoload_unregister('phpunit_autoload');
    Yii::registerAutoloader('phpunit_autoload');
}

/**
 * CTestCase is the base class for all test case classes.
 *
 * @author <NAME> <<EMAIL>>
 * @package system.test
 * @since 1.1
 */
abstract class CTestCase extends PHPUnit_Framework_TestCase
{
}
<commit_msg>3288 - Check if PHPUnit_Runner_Version exists before requiring.<commit_after><?php
/**
 * This file contains the CTestCase class.
 *
 * @author <NAME> <<EMAIL>>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2013 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

if(!class_exists('PHPUnit_Runner_Version'))
{
    require_once('PHPUnit/Runner/Version.php');
    require_once('PHPUnit/Util/Filesystem.php'); // workaround for PHPUnit <= 3.6.11

    spl_autoload_unregister(array('YiiBase','autoload'));
    require_once('PHPUnit/Autoload.php');
    spl_autoload_register(array('YiiBase','autoload')); // put yii's autoloader at the end

    if (in_array('phpunit_autoload', spl_autoload_functions())) { // PHPUnit >= 3.7 'phpunit_autoload' was obsoleted
        spl_autoload_unregister('phpunit_autoload');
        Yii::registerAutoloader('phpunit_autoload');
    }
}

/**
 * CTestCase is the base class for all test case classes.
 *
 * @author <NAME> <<EMAIL>>
 * @package system.test
 * @since 1.1
 */
abstract class CTestCase extends PHPUnit_Framework_TestCase
{
}

{'fraction_non_alphanumeric': 0.14805825242718446, 'fraction_numerical': 0.017475728155339806, 'mean_word_length': 4.838526912181303, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2461203', 'n_tokens_mistral': 727, 'n_tokens_neox': 694, 'n_words': 139}