<commit_before><?php
	class MCart extends MY_Model{
		const DB_TABLE = "cart";
		const DB_TABLE_PK = "cartId";

		public function __construct(){
			//$this->DB_TABLE = "card";
		}

		public function getCart(){
			$query = $this->read_all();
			 return $query;
		}
	}
?>
<commit_msg>fixes for #209<commit_after><?php
	class MCart extends MY_Model{
		const DB_TABLE = "cart";
		const DB_TABLE_PK = "cartId";

		public function __construct(){
			//$this->DB_TABLE = "card";
		}

		public function getCart(){
			if($this->db->table_exists(DB_TABLE)){
				$query = $this->read_all();
			 	return $query;
			}else{
				redirect('cError404');
			}
		}
			
	}
?>

{'fraction_non_alphanumeric': 0.1633587786259542, 'fraction_numerical': 0.00916030534351145, 'mean_word_length': 3.3733333333333335, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6690903', 'n_tokens_mistral': 283, 'n_tokens_neox': 237, 'n_words': 51}