<commit_before><?php

class GoCardless_Merchant {
	
	public static function find($id) {
		$endpoint = '/merchants/' . $id;
		return Utils::fetch_resource($endpoint);
	}
	
	public function subscriptions($id) {
		$endpoint = '/merchants/' . $id . '/subscriptions';
		return Utils::fetch_resource($endpoint);
	}
	
	public function pre_authorizations($id) {
		$endpoint = '/merchants/ ' . $id . '/pre_authorizations';
		return Utils::fetch_resource($endpoint);
	}
	
	public function users($id) {
		$endpoint = '/merchants/' . $id . '/users';
		return Utils::fetch_resource($endpoint);
	}
	
	public function bills($id) {
		$endpoint = '/merchants/' . $id . '/bills';
		return Utils::fetch_resource($endpoint);
	}
	
	public function payments($id) {
		$endpoint = '/merchants/' . $id . '/payments';
		return Utils::fetch_resource($endpoint);
	}
	
}

?><commit_msg>Merchant comments<commit_after><?php

class GoCardless_Merchant {
	
	/**
	 * Fetch a merchant from the API
	 *
	 * @param string $id The id of the merchant to fetch
	 *
	 * @return object The merchant object
	 */
	public static function find($id) {
		$endpoint = '/merchants/' . $id;
		return Utils::fetch_resource($endpoint);
	}
	
	/**
	 * Fetch a merchant's subscriptions from the API
	 *
	 * @param string $id The id of the merchant's subscriptions to fetch
	 *
	 * @return array Array of subscription objects
	 */
	public function subscriptions($id) {
		$endpoint = '/merchants/' . $id . '/subscriptions';
		return Utils::fetch_resource($endpoint);
	}
	
	/**
	 * Fetch a merchant's pre-authorisations from the API
	 *
	 * @param string $id The id of the merchant's pre-authorisations to fetch
	 *
	 * @return array Array of pre-authorisation objects
	 */
	public function pre_authorizations($id) {
		$endpoint = '/merchants/ ' . $id . '/pre_authorizations';
		return Utils::fetch_resource($endpoint);
	}
	
	/**
	 * Fetch a list of the users associated with a given merchant
	 *
	 * @param string $id The id of the merchant's users to fetch
	 *
	 * @return array Array of user objects
	 */
	public function users($id) {
		$endpoint = '/merchants/' . $id . '/users';
		return Utils::fetch_resource($endpoint);
	}
	
	/**
	 * Fetch a merchant's bills from the API
	 *
	 * @param string $id The id of the merchant's bills to fetch
	 *
	 * @return array Array of bill objects
	 */
	public function bills($id) {
		$endpoint = '/merchants/' . $id . '/bills';
		return Utils::fetch_resource($endpoint);
	}
	
	/**
	 * Fetch a merchant's payments from the API
	 *
	 * @param string $id The id of the merchant's payments to fetch
	 *
	 * @return array Array of payment objects
	 */
	public function payments($id) {
		$endpoint = '/merchants/' . $id . '/payments';
		return Utils::fetch_resource($endpoint);
	}
	
}

?>
{'fraction_non_alphanumeric': 0.14027476500361533, 'fraction_numerical': 0.0, 'mean_word_length': 3.4629032258064516, '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': '3899592', 'n_tokens_mistral': 939, 'n_tokens_neox': 843, 'n_words': 260}