<commit_before><?php
/* 
 * Copyright (c) 2008, <NAME> <[<EMAIL>>; <NAME> <[<EMAIL>>
 * All rights reserved. 
 */

/**
 * DAO class, Conteiner for recordsets
 *
 * @version	1
 * @package	Framework
 * @author	<NAME> <<EMAIL>>
 */
class DAO 
{
	/**
	* Recordset conteiner
	*
	* @staticvar	array
	* @access		private
	*/
	private static $rs = array();
	
	/**
	* Return a recordset if exists
	*
	* @param	string	$index	Recordset nickname
	* @return	array
	*/
	public static function get($index='default')
	{
		return (isset(self::$rs[$index]))? self::$rs[$index] : NULL; 
	}
	
	/**
	* Return all recorsets
	*
	* @return	array
	*/
	public static function getAll(){
		return self::$rs;
	}
	
	/**
	* ADD a recordset to the conteiner and Return the recordset reference
	*
	* @param	string	$index	Recordset nickname
	* @return	array
	*/
	public static function &add($rs, $index='default')
	{
		self::$rs[$index] = $rs;
		return $rs;
	}
}<commit_msg>Mais bugs de static<commit_after><?php
/* 
 * Copyright (c) 2008, <NAME> <[<EMAIL>>; <NAME> <[<EMAIL>>
 * All rights reserved. 
 */

/**
 * DAO class, Conteiner for recordsets
 *
 * @version	1
 * @package	Framework
 * @author	<NAME> <<EMAIL>>
 */
class DAO 
{
	/**
	* Recordset conteiner
	*
	* @staticvar	array
	* @access		private
	*/
	private static $rs = array();
	
	/**
	* Return a recordset if exists
	*
	* @param	string	$index	Recordset nickname
	* @return	array
	*/
	public function get($index='default')
	{
		return (isset(self::$rs[$index]))? self::$rs[$index] : NULL; 
	}
	
	/**
	* Return all recorsets
	*
	* @return	array
	*/
	public function getAll(){
		return self::$rs;
	}
	
	/**
	* ADD a recordset to the conteiner and Return the recordset reference
	*
	* @param	string	$index	Recordset nickname
	* @return	array
	*/
	public function &add($rs, $index='default')
	{
		self::$rs[$index] = $rs;
		return $rs;
	}
}
{'fraction_non_alphanumeric': 0.16961889425657542, 'fraction_numerical': 0.005367686527106817, 'mean_word_length': 3.4275534441805227, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 21, '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': '4113814', 'n_tokens_mistral': 730, 'n_tokens_neox': 704, 'n_words': 186}