<commit_before><?php
/* SVN FILE: $Id$ */
/**
 * A custom view class that is used for themeing
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
 * Copyright 2005-2007, Cake Software Foundation, Inc.
 *								1785 E. Sahara Avenue, Suite 490-204
 *								Las Vegas, Nevada 89104
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package			cake
 * @subpackage		cake.cake.libs.view
 * @since			CakePHP(tm) v 0.10.0.1076
 * @version			$Revision$
 * @modifiedby		$LastChangedBy$
 * @lastmodified	$Date$
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Theme view class
 *
 * @package			cake
 * @subpackage		cake.cake.libs.view
 */
class ThemeView extends View {
/**
 * Enter description here...
 *
 * @var unknown_type
 */
	var $themeElement;
/**
 * Enter description here...
 *
 * @var unknown_type
 */
	var $themeLayout;
/**
 * Enter description here...
 *
 * @var unknown_type
 */
	var $themePath;

/**
 * Enter description here...
 *
 * @param unknown_type $controller
 */
	function __construct (&$controller) {
		parent::__construct($controller);
    	$this->theme =& $controller->theme;
    	if(!empty($this->theme)) {
    		$this->themeWeb = 'themed/'.$this->theme.'/';
    		$this->themeElement = VIEWS.'themed'.DS.$this->theme.DS.'elements'.DS;
    		$this->themeLayout =  VIEWS.'themed'.DS.$this->theme.DS.'layouts'.DS;
    		$this->themePath = VIEWS.'themed'.DS.$this->theme.DS;
    	}
	}

/**
 * Enter description here...<commit_msg>Adding check for webroot/themed/[theme name]<commit_after><?php
/* SVN FILE: $Id$ */
/**
 * A custom view class that is used for themeing
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework <http://www.cakephp.org/>
 * Copyright 2005-2007, Cake Software Foundation, Inc.
 *								1785 E. Sahara Avenue, Suite 490-204
 *								Las Vegas, Nevada 89104
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright		Copyright 2005-2007, Cake Software Foundation, Inc.
 * @link				http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package			cake
 * @subpackage		cake.cake.libs.view
 * @since			CakePHP(tm) v 0.10.0.1076
 * @version			$Revision$
 * @modifiedby		$LastChangedBy$
 * @lastmodified	$Date$
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */

/**
 * Theme view class
 *
 * @package			cake
 * @subpackage		cake.cake.libs.view
 */
class ThemeView extends View {
/**
 * Enter description here...
 *
 * @var unknown_type
 */
	var $themeElement;
/**
 * Enter description here...
 *
 * @var unknown_type
 */
	var $themeLayout;
/**
 * Enter description here...
 *
 * @var unknown_type
 */
	var $themePath;

/**
 * Enter description here...
 *
 * @param unknown_type $controller
 */
	function __construct (&$controller) {
		parent::__construct($controller);
    	$this->theme =& $controller->theme;
    	if(!empty($this->theme)) {
    		if(is_dir(WWW_ROOT . 'themed' . DS . $this->theme)){
    			$this->themeWeb = 'themed/'.$this->theme.'/';
    		}
    		$this->themeElement = VIEWS.'themed'.DS.$this->theme.DS.'elements'.DS;
    		$this->themeLayout =  VIEWS.'themed'.DS.$this->theme.DS.'layouts'.DS;
    		$this->themePath = VIEWS.'themed'.DS.$this->theme.DS;
    	}
	}

/**
 * Enter description here...
{'fraction_non_alphanumeric': 0.1590971648775117, 'fraction_numerical': 0.02257087806220754, 'mean_word_length': 3.0923423423423424, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 28, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7356976', 'n_tokens_mistral': 1358, 'n_tokens_neox': 1218, 'n_words': 287}