<commit_before><?php
/*
 * set_include_path ( get_include_path () . PATH_SEPARATOR .
 * dirname(__FILE__).'/Payment'); echo get_include_path();
 */
// include_once dirname(__FILE__).'/Payment';
namespace PHPpayments;
class Loader {
	static function load($paymentmethod) {
		$paymentmethod = strtolower ( $paymentmethod );

		$arr_folders = explode ( "_", $paymentmethod );
		
		require_once dirname ( __FILE__ ) . "/common/Payment.php";
		require_once dirname ( __FILE__ ) . "/common/PaymentResult.php";
		
		switch (trim ( strtolower ( ($arr_folders [1]) ) )) {
			case "gateway" :
				require_once dirname ( __FILE__ ) . "/common/GatewayInterface.php";
				require_once dirname ( __FILE__ ) . "/common/Gateway.php";
				require_once dirname ( __FILE__ ) . "/Payment/Gateway/" . ucfirst ( $arr_folders [2] ) . ".php";
				break;
			case "integration" :
				require_once dirname ( __FILE__ ) . "/common/IntegrationInterface.php";
				require_once dirname ( __FILE__ ) . "/common/Integration.php";
				require_once dirname ( __FILE__ ) . "/Payment/Integration/" . ucfirst ( $arr_folders [2] ) . ".php";
				break;
			case "Offline" :
				require_once dirname ( __FILE__ ) . "/common/OfflineInterface.php";
				require_once dirname ( __FILE__ ) . "/common/Offline.php";
				require_once dirname ( __FILE__ ) . "/Payment/Offline/" . ucfirst ( $arr_folders [2] ) . ".php";
				break;
		}
	
		return new $paymentmethod ( array (
				"paymentmethod" => $paymentmethod 
		) );
	}
}

?><commit_msg>Update Loader.php<commit_after><?php
/*
 * set_include_path ( get_include_path () . PATH_SEPARATOR .
 * dirname(__FILE__).'/Payment'); echo get_include_path();
 */
// include_once dirname(__FILE__).'/Payment';
namespace PHPpayments;
class Loader {
	static function load($paymentmethod) {
		$paymentmethod = strtolower ( $paymentmethod );

		$arr_folders = explode ( "_", $paymentmethod );
		
		require_once dirname ( __FILE__ ) . "/common/Payment.php";
		require_once dirname ( __FILE__ ) . "/common/PaymentResult.php";
		
		switch (trim ( strtolower ( ($arr_folders [1]) ) )) {
			case "gateway" :
				require_once dirname ( __FILE__ ) . "/common/GatewayInterface.php";
				require_once dirname ( __FILE__ ) . "/common/Gateway.php";
				require_once dirname ( __FILE__ ) . "/Payment/Gateway/" . ucfirst ( $arr_folders [2] ) . ".php";
				break;
			case "integration" :
				require_once dirname ( __FILE__ ) . "/common/IntegrationInterface.php";
				require_once dirname ( __FILE__ ) . "/common/Integration.php";
				require_once dirname ( __FILE__ ) . "/Payment/Integration/" . ucfirst ( $arr_folders [2] ) . ".php";
				break;
			case "offline" :
				require_once dirname ( __FILE__ ) . "/common/OfflineInterface.php";
				require_once dirname ( __FILE__ ) . "/common/Offline.php";
				require_once dirname ( __FILE__ ) . "/Payment/Offline/" . ucfirst ( $arr_folders [2] ) . ".php";
				break;
		}
	
		return new $paymentmethod ( array (
				"paymentmethod" => $paymentmethod 
		) );
	}
}

?>
{'fraction_non_alphanumeric': 0.15180965147453082, 'fraction_numerical': 0.002680965147453083, 'mean_word_length': 3.4618834080717487, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '3278363', 'n_tokens_mistral': 1111, 'n_tokens_neox': 980, 'n_words': 197}