<commit_before><?php

/**
 * 
 *
 * @author <<EMAIL>>
 * @license BSD License http://www.silverstripe.org/bsd-license
 */
class PageControllerThemeExtension extends Extension {
	public function onAfterInit() {
		Requirements::block(THIRDPARTY_DIR .'/jquery/jquery.js');
		Requirements::javascript('frontend-dashboards/javascript/jquery-1.10.2.min.js');
		Requirements::javascript(THIRDPARTY_DIR . '/jquery-cookie/jquery.cookie.js');
		Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/jquery-ui.js');
		//Requirements::javascript('frontend-dashboards/javascript/jquery-migrate-1.2.1.min.js');
		Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/dist/jquery.entwine-dist.js');
		Requirements::block('frontend-dashboards/javascript/dashboards.js');
		Requirements::javascript('themes/ssau-minimalist/js/modernizr.js');
		Requirements::javascript('themes/ssau-minimalist/js/foundation.min.js');
	}
}
<commit_msg>FIX Only apply theme settings if theme == ssau-minimalist<commit_after><?php

/**
 * 
 *
 * @author <<EMAIL>>
 * @license BSD License http://www.silverstripe.org/bsd-license
 */
class PageControllerThemeExtension extends Extension {
	public function onAfterInit() {
		if (Config::inst()->get('SSViewer', 'theme') == 'ssau-minimalist') {
			Requirements::block(THIRDPARTY_DIR .'/jquery/jquery.js');
			Requirements::javascript('frontend-dashboards/javascript/jquery-1.10.2.min.js');
			Requirements::javascript(THIRDPARTY_DIR . '/jquery-cookie/jquery.cookie.js');
			Requirements::javascript(THIRDPARTY_DIR . '/jquery-ui/jquery-ui.js');
			//Requirements::javascript('frontend-dashboards/javascript/jquery-migrate-1.2.1.min.js');
			Requirements::javascript(THIRDPARTY_DIR . '/jquery-entwine/dist/jquery.entwine-dist.js');
			Requirements::block('frontend-dashboards/javascript/dashboards.js');
			Requirements::javascript('themes/ssau-minimalist/js/modernizr.js');
			Requirements::javascript('themes/ssau-minimalist/js/foundation.min.js');
		}
	}
}

{'fraction_non_alphanumeric': 0.16886409736308317, 'fraction_numerical': 0.007099391480730223, 'mean_word_length': 5.620805369127517, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 8, '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': '2471664', 'n_tokens_mistral': 697, 'n_tokens_neox': 647, 'n_words': 65}