<commit_before><?php
/**
 * Lithium: the most rad php framework
 *
 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
 */

namespace lithium\util;

abstract class Socket extends \lithium\core\Object {

	/**
	 * the resource for the current connection
	 *
	 * @var resource
	 */
	protected $_resource = null;

	/**
	 * Constructor.
	 *
	 * @param array $config Available configuration options are:
	 *              - `'persistent'`: Use a persistent connection (defaults to `false`).
	 *              - `'protocol'`: Transfer protocol to use (defaults to `'tcp'`).
	 *              - `'host'`: Host name or address (defaults to `'localhost'`).
	 *              - `'login'`: Username for a login (defaults to `'root'`).
	 *              - `'password'`: Password for a login (defaults to `''`).
	 *              - `'port'`: Host port (defaults to `80`).
	 *              - `'timeout'`: Seconds after opening the socket times out (defaults to `30`).
	 * @return void
	 */
	public function __construct($config) {<commit_msg>making config array optional in \util\Socket constructor<commit_after><?php
/**
 * Lithium: the most rad php framework
 *
 * @copyright     Copyright 2010, Union of RAD (http://union-of-rad.org)
 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
 */

namespace lithium\util;

abstract class Socket extends \lithium\core\Object {

	/**
	 * the resource for the current connection
	 *
	 * @var resource
	 */
	protected $_resource = null;

	/**
	 * Constructor.
	 *
	 * @param array $config Available configuration options are:
	 *              - `'persistent'`: Use a persistent connection (defaults to `false`).
	 *              - `'protocol'`: Transfer protocol to use (defaults to `'tcp'`).
	 *              - `'host'`: Host name or address (defaults to `'localhost'`).
	 *              - `'login'`: Username for a login (defaults to `'root'`).
	 *              - `'password'`: Password for a login (defaults to `''`).
	 *              - `'port'`: Host port (defaults to `80`).
	 *              - `'timeout'`: Seconds after opening the socket times out (defaults to `30`).
	 * @return void
	 */
	public function __construct($config = array()) {
{'fraction_non_alphanumeric': 0.14323030039181542, 'fraction_numerical': 0.006965607313887679, 'mean_word_length': 2.497716894977169, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6254311', 'n_tokens_mistral': 706, 'n_tokens_neox': 631, 'n_words': 219}