<commit_before><?
function renderLayout(){
	global $controller, $action, $view_layout, $config, $application_data, $view_data, $query_string;
	if($view_layout != null && $view_layout != 'none'){
		require(ROOT.'/views/layouts/'.$view_layout.'.php');
	}else{
		//The renderView function is normally called from the layout file so we will just call it directly
		//since we are skipping the layout with this request.
		renderView();
	}
}

//render view
function renderView(){<commit_msg>Adding support for response types into the view lib<commit_after><?
function renderLayout(){
	global $controller, $action, $view_layout, $config, $application_data, $view_data, $query_string;
	if($view_layout != null && $view_layout != 'none'){
		if($controller->response_type == 'html'){
			require(ROOT.'/views/layouts/'.$view_layout.'.php');
		}else{
			require(ROOT.'/views/layouts/'.$view_layout.'.'.$controller->response_type.'.php');
		}
	}else{
		//The renderView function is normally called from the layout file so we will just call it directly
		//since we are skipping the layout with this request.
		renderView();
	}
}

//render view
function renderView(){
{'fraction_non_alphanumeric': 0.1474414570685169, 'fraction_numerical': 0.0, 'mean_word_length': 4.917948717948718, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '52834', 'n_tokens_mistral': 362, 'n_tokens_neox': 349, 'n_words': 107}