<commit_before><?php

class DashboardAdmin extends LeftAndMain implements PermissionProvider {

	private static $url_segment = 'dashboard';
	private static $menu_title = 'Dashboard';
	private static $menu_priority = 1000;

	public function init() {
		parent::init();
		Requirements::css('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
		Requirements::css(DASHBOARD_ADMIN_DIR . '/css/dashboard-cms.css');
		Requirements::javascript(DASHBOARD_ADMIN_DIR . '/javascript/dashboard-js.js');
	}

	public function providePermissions() {
		return array(
			'CMS_ACCESS_DASHBOARDADMIN' => array(
				'name' => 'Access to \'Dashboard\' section',
				'category' => 'Dashboard',
				'help' => 'Allow use of the CMS Dashboard'
			)
		);
	}

	public function canView($member = null) {
		return Permission::check('CMS_ACCESS_DASHBOARDADMIN');
	}

	public function DashboardContent() {
		return $this->renderWith('DashboardContent');
	}

	public function DashboardPanels() {
		return $this->renderWith('DashboardPanels');
	}

	public function canViewPanel($panelName) {
		if (class_exists($panelName)) {
			$panel = new $panelName($this);
			return $panel->canView();
		}

		return false;
	}

	public function showPanel($panelName) {
		if (class_exists($panelName)) {
			$panel = new $panelName($this);
			return $panel->forTemplate();
		}

		return false;
	}

	public function subsiteCMSShowInMenu() {
		return true;
	}
}<commit_msg>Removing subsiteCMSShowInMenu function (#4)<commit_after><?php

class DashboardAdmin extends LeftAndMain implements PermissionProvider {

	private static $url_segment = 'dashboard';
	private static $menu_title = 'Dashboard';
	private static $menu_priority = 1000;

	public function init() {
		parent::init();
		Requirements::css('https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css');
		Requirements::css(DASHBOARD_ADMIN_DIR . '/css/dashboard-cms.css');
		Requirements::javascript(DASHBOARD_ADMIN_DIR . '/javascript/dashboard-js.js');
	}

	public function providePermissions() {
		return array(
			'CMS_ACCESS_DASHBOARDADMIN' => array(
				'name' => 'Access to \'Dashboard\' section',
				'category' => 'Dashboard',
				'help' => 'Allow use of the CMS Dashboard'
			)
		);
	}

	public function canView($member = null) {
		return Permission::check('CMS_ACCESS_DASHBOARDADMIN');
	}

	public function DashboardContent() {
		return $this->renderWith('DashboardContent');
	}

	public function DashboardPanels() {
		return $this->renderWith('DashboardPanels');
	}

	public function canViewPanel($panelName) {
		if (class_exists($panelName)) {
			$panel = new $panelName($this);
			return $panel->canView();
		}

		return false;
	}

	public function showPanel($panelName) {
		if (class_exists($panelName)) {
			$panel = new $panelName($this);
			return $panel->forTemplate();
		}

		return false;
	}
}
{'fraction_non_alphanumeric': 0.1430066271363795, 'fraction_numerical': 0.005231949773282177, 'mean_word_length': 4.782258064516129, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 2, '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': '2335494', 'n_tokens_mistral': 1041, 'n_tokens_neox': 935, 'n_words': 186}