<commit_before><?php
/**
	PostcodeNl

	LICENSE:
	This source file is subject to the Simplified BSD license that is
	bundled	with this package in the file LICENSE.txt.
	It is also available through the world-wide-web at this URL:
	https://api.postcode.nl/license/simplified-bsd
	If you did not receive a copy of the license and are unable to
	obtain it through the world-wide-web, please send an email
	to <EMAIL> so we can send you a copy immediately.

	Copyright (c) 2013 Postcode.nl B.V. (http://www.postcode.nl)
*/

/** Common superclass for Exceptions raised by this class. */
class PostcodeNl_Api_RestClient_Exception extends Exception {}
/** Exception raised when user input is invalid. */
class PostcodeNl_Api_RestClient_InputInvalidException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when user input is valid, but no address could be found. */
class PostcodeNl_Api_RestClient_AddressNotFoundException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when an unexpected error occurred in this client. */
class PostcodeNl_Api_RestClient_ClientException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when an unexpected error occurred on the remote service. */
class PostcodeNl_Api_RestClient_ServiceException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when there is a authentication problem.
	In a production environment, you probably always want to catch, log and hide these exceptions.
*/
class PostcodeNl_Api_RestClient_AuthenticationException extends PostcodeNl_Api_RestClient_Exception {}

/**
	Class to connect to the Postcode.nl API web service.

	References:
		<https://api.postcode.nl/>
*/
class PostcodeNl_Api_RestClient
{
	/** (string) Version of the client */
	const VERSION = '1.0.0.0';
	/** (int) Maximum number of seconds allowed to set up the connection. */
	const CONNECTTIMEOUT = 3;
	/** (int) Maximum number of seconds allowed to receive the response. */
	const TIMEOUT = 10;
	/** (string) URL where the REST web service is located */
	protected $_restApiUrl = 'https://api.postcode.nl/rest';
	/** (string) Internal storage of the application key of the authentication. */
	protected $_appKey = '';
	/** (string) Internal storage of the application secret of the authentication. */
	protected $_appSecret = '';<commit_msg>Update version nr<commit_after><?php
/**
	PostcodeNl

	LICENSE:
	This source file is subject to the Simplified BSD license that is
	bundled	with this package in the file LICENSE.txt.
	It is also available through the world-wide-web at this URL:
	https://api.postcode.nl/license/simplified-bsd
	If you did not receive a copy of the license and are unable to
	obtain it through the world-wide-web, please send an email
	to <EMAIL> so we can send you a copy immediately.

	Copyright (c) 2013 Postcode.nl B.V. (http://www.postcode.nl)
*/

/** Common superclass for Exceptions raised by this class. */
class PostcodeNl_Api_RestClient_Exception extends Exception {}
/** Exception raised when user input is invalid. */
class PostcodeNl_Api_RestClient_InputInvalidException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when user input is valid, but no address could be found. */
class PostcodeNl_Api_RestClient_AddressNotFoundException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when an unexpected error occurred in this client. */
class PostcodeNl_Api_RestClient_ClientException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when an unexpected error occurred on the remote service. */
class PostcodeNl_Api_RestClient_ServiceException extends PostcodeNl_Api_RestClient_Exception {}
/** Exception raised when there is a authentication problem.
	In a production environment, you probably always want to catch, log and hide these exceptions.
*/
class PostcodeNl_Api_RestClient_AuthenticationException extends PostcodeNl_Api_RestClient_Exception {}

/**
	Class to connect to the Postcode.nl API web service.

	References:
		<https://api.postcode.nl/>
*/
class PostcodeNl_Api_RestClient
{
	/** (string) Version of the client */
	const VERSION = '1.0.1.0';
	/** (int) Maximum number of seconds allowed to set up the connection. */
	const CONNECTTIMEOUT = 3;
	/** (int) Maximum number of seconds allowed to receive the response. */
	const TIMEOUT = 10;
	/** (string) URL where the REST web service is located */
	protected $_restApiUrl = 'https://api.postcode.nl/rest';
	/** (string) Internal storage of the application key of the authentication. */
	protected $_appKey = '';
	/** (string) Internal storage of the application secret of the authentication. */
	protected $_appSecret = '';
{'fraction_non_alphanumeric': 0.08076923076923077, 'fraction_numerical': 0.004700854700854701, 'mean_word_length': 4.800495662949195, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '3208099', 'n_tokens_mistral': 1305, 'n_tokens_neox': 1274, 'n_words': 508}