<commit_before><?php

/**
 * All containers of cell renders must implement this interface
 *
 * @package   Swat
 * @copyright 2005 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
interface SwatCellRendererContainer
{
	/**
	 * Adds a cell renderer to this container
	 *
	 * @param SwatCellRenderer $renderer a reference to the cell renderer to
	 *                                    add to this container.
	 */
	public function addRenderer($renderer);

	/**
	 * Gets all cell renderers in this container as a flat array
	 *
	 * @return array all the cell renderers in this container.
	 */
	public function getRenderers();

	/**
	 * Gets a cell renderer by it's unique identifier
	 *
	 * @param string $renderer_id the unique identifier of the cell renderer to
	 *                             get from this container.
	 *
	 * @return SwatCellRenderer a reference to the cell renderer.
	 */
	public function getRenderer($renderer_id);
}

?>
<commit_msg>Return array of renderers by reference.<commit_after><?php

/**
 * All containers of cell renders must implement this interface
 *
 * @package   Swat
 * @copyright 2005 silverorange
 * @license   http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
 */
interface SwatCellRendererContainer
{
	/**
	 * Adds a cell renderer to this container
	 *
	 * @param SwatCellRenderer $renderer a reference to the cell renderer to
	 *                                    add to this container.
	 */
	public function addRenderer($renderer);

	/**
	 * Gets all cell renderers in this container as a flat array
	 *
	 * @return array all the cell renderers in this container.
	 */
	public function &getRenderers();

	/**
	 * Gets a cell renderer by it's unique identifier
	 *
	 * @param string $renderer_id the unique identifier of the cell renderer to
	 *                             get from this container.
	 *
	 * @return SwatCellRenderer a reference to the cell renderer or null if the
	 *                           renderer is not found.
	 */
	public function getRenderer($renderer_id);
}

?>

{'fraction_non_alphanumeric': 0.07955641272902604, 'fraction_numerical': 0.0057859209257473485, 'mean_word_length': 2.5899653979238755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1666778', 'n_tokens_mistral': 586, 'n_tokens_neox': 545, 'n_words': 219}