<commit_before><?php
/**
 * Renderer Package
 *
 * @copyright  Copyright (C) 2014 <NAME>. All rights reserved.
 * @license    http://www.gnu.org/licenses/lgpl-2.1.txt GNU Lesser General Public License Version 2.1 or Later
 */

namespace BabDev\Renderer;

/**
 * Rendering interface.
 *
 * @since  1.0
 */
interface RendererInterface
{
	/**
	 * Interface constructor
	 *
	 * @param   array  $config  Configuration array
	 *
	 * @since   1.0
	 * @todo    Probably the config should be a Joomla Registry instance to avoid excess variables checks
	 */
	public function __construct($config = array());

	/**
	 * Render and return compiled data.
	 *
	 * @param   string  $template  The template file name
	 * @param   array   $data      The data to pass to the template
	 *
	 * @return  string  Compiled data
	 *
	 * @since   1.0
	 */
	public function render($template, array $data = array());

	/**
	 * Add a folder with alias to the renderer
	 *
	 * @param   string  $alias      The folder alias
	 * @param   string  $directory  The folder path
	 *
	 * @return  RendererInterface  Returns self for chaining
	 *<commit_msg>Take the constructor out of the interface for now<commit_after><?php
/**
 * Renderer Package
 *
 * @copyright  Copyright (C) 2014 <NAME>. All rights reserved.
 * @license    http://www.gnu.org/licenses/lgpl-2.1.txt GNU Lesser General Public License Version 2.1 or Later
 */

namespace BabDev\Renderer;

/**
 * Rendering interface.
 *
 * @since  1.0
 */
interface RendererInterface
{
	/**
	 * Render and return compiled data.
	 *
	 * @param   string  $template  The template file name
	 * @param   array   $data      The data to pass to the template
	 *
	 * @return  string  Compiled data
	 *
	 * @since   1.0
	 */
	public function render($template, array $data = array());

	/**
	 * Add a folder with alias to the renderer
	 *
	 * @param   string  $alias      The folder alias
	 * @param   string  $directory  The folder path
	 *
	 * @return  RendererInterface  Returns self for chaining
	 *
{'fraction_non_alphanumeric': 0.10303633648581384, 'fraction_numerical': 0.012941762070681932, 'mean_word_length': 2.7996219281663515, 'pattern_counts': {'":': 0, '<': 7, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1043185', 'n_tokens_mistral': 629, 'n_tokens_neox': 574, 'n_words': 216}