<commit_before><?php

class Controller_api_Giftcard extends Crunchbutton_Controller_Rest {
	public function init() {

		switch ( $this->method() ) {
			
			case 'post':
				
				if ($_SESSION['admin']) {

					// Verify the permissions
					switch ( c::getPagePiece( 2 ) ) {
						case 'sms':
						case 'email':
						case 'bunchemail':
						case 'bunchsms':<commit_msg>fixed gift card creating problem<commit_after><?php

class Controller_api_Giftcard extends Crunchbutton_Controller_Rest {
	public function init() {

		switch ( $this->method() ) {
			
			case 'post':
				
				if ( c::admin()->id_admin ) {

					// Verify the permissions
					switch ( c::getPagePiece( 2 ) ) {
						case 'sms':
						case 'email':
						case 'bunchemail':
						case 'bunchsms':
{'fraction_non_alphanumeric': 0.1290743155149935, 'fraction_numerical': 0.002607561929595828, 'mean_word_length': 2.801980198019802, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '4554496', 'n_tokens_mistral': 328, 'n_tokens_neox': 243, 'n_words': 59}