<commit_before><?php defined('SYSPATH') or die('No direct script access.');
/**
* Combines assets and merges them to single files in production
*
* @package    OpenBuildings/asset-merger
* @author     <NAME>
* @copyright  (c) 2011 OpenBuildings Inc.
* @license    http://creativecommons.org/licenses/by-sa/3.0/legalcode
*/
class Asset {

	/**
	 * @var  string  type
	 */
	public $type = NULL;

	/**
	 * @var  string  file
	 */
	public $file = NULL;
	
	/**
	 * @var  array  engines
	 */
	protected $engines = array();

	/**
	 * @var  array processors
	 */
	protected $processor = array();

	/**
	 * @var   string  source file
	 */
	protected $source_file = NULL;

	/**
	 * @var   string  destination web file
	 */
	protected $destination_web = NULL;

	/**
	 * @var  string  destination file
	 */
	protected $destination_file = NULL;

	/**
	 * @var  string condition
	 */
	protected $condition = NULL;

	/**
	 * @var  int  last modified time
	 */
	private $_last_modified = NULL;

	/**
	 * Get the source file
	 *
	 * @return string
	 */
	public function source_file()
	{
		return $this->source_file;
	}

	/**
	 * Get the web destination file
	 *
	 * @return string
	 */
	public function destination_web()
	{
		return $this->destination_web;
	}

	/**
	 * Get the destination file
	 *
	 * @return string
	 */
	public function destination_file()
	{
		return $this->destination_file;
	}
	
	/**
	 * Get the condition
	 *
	 * @return  string
	 */
	public function condition()
	{
		return $this->condition;
	}

	/**
	 * Set up the environment
	 *
	 * @param  string  $type
	 * @param  string  $file
	 * @param  array   $options
	 */
	function __construct($type, $file, array $options = NULL)
	{
		// Set processor to use
		$this->processor = Arr::get($options, 'processor', Kohana::$config->load('asset-merger.processor.'.$type));

		// Set condition
		$this->condition = Arr::get($options, 'condition');<commit_msg>changed default $options value to array in Asset::__construct as well<commit_after><?php defined('SYSPATH') or die('No direct script access.');
/**
* Combines assets and merges them to single files in production
*
* @package    OpenBuildings/asset-merger
* @author     <NAME>
* @copyright  (c) 2011 OpenBuildings Inc.
* @license    http://creativecommons.org/licenses/by-sa/3.0/legalcode
*/
class Asset {

	/**
	 * @var  string  type
	 */
	public $type = NULL;

	/**
	 * @var  string  file
	 */
	public $file = NULL;
	
	/**
	 * @var  array  engines
	 */
	protected $engines = array();

	/**
	 * @var  array processors
	 */
	protected $processor = array();

	/**
	 * @var   string  source file
	 */
	protected $source_file = NULL;

	/**
	 * @var   string  destination web file
	 */
	protected $destination_web = NULL;

	/**
	 * @var  string  destination file
	 */
	protected $destination_file = NULL;

	/**
	 * @var  string condition
	 */
	protected $condition = NULL;

	/**
	 * @var  int  last modified time
	 */
	private $_last_modified = NULL;

	/**
	 * Get the source file
	 *
	 * @return string
	 */
	public function source_file()
	{
		return $this->source_file;
	}

	/**
	 * Get the web destination file
	 *
	 * @return string
	 */
	public function destination_web()
	{
		return $this->destination_web;
	}

	/**
	 * Get the destination file
	 *
	 * @return string
	 */
	public function destination_file()
	{
		return $this->destination_file;
	}
	
	/**
	 * Get the condition
	 *
	 * @return  string
	 */
	public function condition()
	{
		return $this->condition;
	}

	/**
	 * Set up the environment
	 *
	 * @param  string  $type
	 * @param  string  $file
	 * @param  array   $options
	 */
	function __construct($type, $file, array $options = array())
	{
		// Set processor to use
		$this->processor = Arr::get($options, 'processor', Kohana::$config->load('asset-merger.processor.'.$type));

		// Set condition
		$this->condition = Arr::get($options, 'condition');
{'fraction_non_alphanumeric': 0.14580645161290323, 'fraction_numerical': 0.003096774193548387, 'mean_word_length': 2.8682634730538923, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '718467', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1215, 'n_words': 340}