<commit_before><?php
/**
 * Copyright 2005-2011, Cake Development Corporation (http://cakedc.com)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2005-2011, Cake Development Corporation (http://cakedc.com)
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
App::uses('CakeEmail', 'Network/Email');

/**
 * App Test case. Contains base set of fixtures.
 *
 * @package templates
 * @subpackage templates.libs
 */
class AppTestCase extends CakeTestCase {

/**
 * Fixtures
 *
 * @var array
 */
	public $dependedFixtures = array();

/**
 * Fixtures
 *
 * @var array
 */
	public $fixtures = array();

/**
 * Autoload entrypoint for fixtures dependecy solver
 *
 * @var string
 */
	public $plugin = null;

/**
 * Test to run for the test case (e.g array('testFind', 'testView'))
 * If this attribute is not empty only the tests from the list will be executed
 *
 * @var array
 */
	protected $_testsToRun = array();

/**
 * Constructor
 *
 * If a class is extending AppTestCase it will merge these with the extending classes
 * so that you don't have to put the plugin fixtures into the AppTestCase
 *
 * @return void
 */
	public function __construct() {
		parent::__construct();
		if (is_subclass_of($this, 'AppTestCase')) {
			$parentClass = get_parent_class($this);
			$parentVars = get_class_vars($parentClass);
			if (isset($parentVars['fixtures'])) {
				$this->fixtures = array_unique(array_merge($parentVars['fixtures'], $this->fixtures));
			}
			if (!empty($this->plugin)) {
				$this->dependedFixtures = $this->solveDependancies($this->plugin);
			}<commit_msg>fixing constructor from AppTestCase to be initialized exactly as the parent constructor, so this will solve the problem with dataProvider and so on<commit_after><?php
/**
 * Copyright 2005-2011, Cake Development Corporation (http://cakedc.com)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2005-2011, Cake Development Corporation (http://cakedc.com)
 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
App::uses('CakeEmail', 'Network/Email');

/**
 * App Test case. Contains base set of fixtures.
 *
 * @package templates
 * @subpackage templates.libs
 */
class AppTestCase extends CakeTestCase {

/**
 * Fixtures
 *
 * @var array
 */
	public $dependedFixtures = array();

/**
 * Fixtures
 *
 * @var array
 */
	public $fixtures = array();

/**
 * Autoload entrypoint for fixtures dependecy solver
 *
 * @var string
 */
	public $plugin = null;

/**
 * Test to run for the test case (e.g array('testFind', 'testView'))
 * If this attribute is not empty only the tests from the list will be executed
 *
 * @var array
 */
	protected $_testsToRun = array();

/**
 * Constructor
 *
 * If a class is extending AppTestCase it will merge these with the extending classes
 * so that you don't have to put the plugin fixtures into the AppTestCase
 *
 * @return void
 */
	public function __construct($name = null, array $data = array(), $dataName = '') {
		parent::__construct($name, $data, $dataName);
		if (is_subclass_of($this, 'AppTestCase')) {
			$parentClass = get_parent_class($this);
			$parentVars = get_class_vars($parentClass);
			if (isset($parentVars['fixtures'])) {
				$this->fixtures = array_unique(array_merge($parentVars['fixtures'], $this->fixtures));
			}
			if (!empty($this->plugin)) {
				$this->dependedFixtures = $this->solveDependancies($this->plugin);
			}
{'fraction_non_alphanumeric': 0.13524130190796857, 'fraction_numerical': 0.008978675645342313, 'mean_word_length': 4.122126436781609, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2441250', 'n_tokens_mistral': 1129, 'n_tokens_neox': 1047, 'n_words': 335}