<commit_before><?php
/**
 * Garp_Test_PHPUnit_TestCase
 * Adds some convenience methods to Tests.
 *
 * @author       $Author: harmen $
 * @modifiedby   $LastChangedBy: harmen $
 * @version      $LastChangedRevision: 6134 $
 * @package      Garp
 * @subpackage   Test
 * @lastmodified $LastChangedDate: 2012-08-29 23:32:18 +0200 (Wed, 29 Aug 2012) $
 */
class Garp_Test_PHPUnit_TestCase extends PHPUnit_Framework_TestCase {
	/** @var Zend_Db_Adapter_Abstract */
	protected $_db;

	/** @var Garp_Test_PHPUnit_Helper */
	protected $_helper;

	public function __construct() {
		$this->_helper = new Garp_Test_PHPUnit_Helper();
		parent::__construct();
	}

	/**
 	 * Get database adapter for executing queries quickly.
 	 * It will be configured as defined in application.ini.
 	 * @return Zend_Db_Adapter_Abstract
 	 */
	public function getDatabaseAdapter() {
		if (!$this->_db) {
			$ini = Zend_Registry::get('config');
			$this->_db = Zend_Db::factory($ini->resources->db);
		}
		return $this->_db;
	}

}<commit_msg>Made Garp_Test_PHPUnit_TestCase abstract<commit_after><?php
/**
 * Garp_Test_PHPUnit_TestCase
 * Adds some convenience methods to Tests.
 *
 * @author       $Author: harmen $
 * @modifiedby   $LastChangedBy: harmen $
 * @version      $LastChangedRevision: 6134 $
 * @package      Garp
 * @subpackage   Test
 * @lastmodified $LastChangedDate: 2012-08-29 23:32:18 +0200 (Wed, 29 Aug 2012) $
 */
abstract class Garp_Test_PHPUnit_TestCase extends PHPUnit_Framework_TestCase {
	/** @var Zend_Db_Adapter_Abstract */
	protected $_db;

	/** @var Garp_Test_PHPUnit_Helper */
	protected $_helper;

	public function __construct() {
		$this->_helper = new Garp_Test_PHPUnit_Helper();
		parent::__construct();
	}

	/**
 	 * Get database adapter for executing queries quickly.
 	 * It will be configured as defined in application.ini.
 	 * @return Zend_Db_Adapter_Abstract
 	 */
	public function getDatabaseAdapter() {
		if (!$this->_db) {
			$ini = Zend_Registry::get('config');
			$this->_db = Zend_Db::factory($ini->resources->db);
		}
		return $this->_db;
	}

}
{'fraction_non_alphanumeric': 0.12681510164569215, 'fraction_numerical': 0.027105517909002903, 'mean_word_length': 4.0661764705882355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3001251', 'n_tokens_mistral': 749, 'n_tokens_neox': 660, 'n_words': 157}