<commit_before><?

class Controller_assetstest extends Crunchbutton_Controller_AssetBundle {
	public function init() {

		$pages = c::pages();

		array_shift($pages);

		$file = array_pop($pages);
		$path = implode('/',$pages);

		if ($file == 'bundle.css') {
			array_shift(c::config()->controllerStack);
			c::displayPage('assets/css/bundle.css');
			exit;
		}

		if ($file == 'bundle.js') {
			array_shift(c::config()->controllerStack);
			c::displayPage('assets/js/bundle.js');
			exit;
		}

		if( preg_match('/\.scss$/i',$_SERVER['REDIRECT_URL']) || preg_match('/\.scss$/i',$_SERVER['REQUEST_URI']) ){
			$path = c::config()->dirs->www.'assets/'.$path.'/';
			Crunchbutton_Scss::serve($path.$file);
		}<commit_msg>partial #7092<commit_after><?

class Controller_assetstest extends Crunchbutton_Controller_AssetBundle {
	public function init() {

		$pages = c::pages();

		array_shift($pages);

		$file = array_pop($pages);
		$path = implode('/',$pages);

		if ($file == 'bundle.css') {
			array_shift(c::config()->controllerStack);
			c::displayPage('assets/css/bundle.css');
			exit;
		}

		if ($file == 'bundle.js') {
			array_shift(c::config()->controllerStack);
			c::displayPage('assets/js/bundle.js');
			exit;
		}
echo '<pre>';var_dump( $_SERVER );exit();
		echo '<pre>';var_dump( preg_match('/\.scss$/i',$_SERVER['REDIRECT_URL']) );
		echo '<pre>';var_dump( preg_match('/\.scss$/i',$_SERVER['REQUEST_URI']) );

		if( preg_match('/\.scss$/i',$_SERVER['REDIRECT_URL']) || preg_match('/\.scss$/i',$_SERVER['REQUEST_URI']) ){
			$path = c::config()->dirs->www.'assets/'.$path.'/';
			Crunchbutton_Scss::serve($path.$file);
		}
{'fraction_non_alphanumeric': 0.23302752293577983, 'fraction_numerical': 0.0024464831804281344, 'mean_word_length': 4.884892086330935, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 14, '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': '3399119', 'n_tokens_mistral': 649, 'n_tokens_neox': 580, 'n_words': 77}