<commit_before>#include "Socket.h"
#include "Misc.h"

#ifdef WINDOWS
	#define WIN32_LEAN_AND_MEAN
	#define FD_SETSIZE 1024
	#include <winsock2.h>
	#include <ws2tcpip.h>
	#include <Windows.h>

	static bool winsockInitialized = false;
#elif defined POSIX
	#include <sys/select.h>
	#include <sys/socket.h>
	#include <sys/types.h>
	#include <netinet/in.h>
	#include <arpa/inet.h>
	#include <netdb.h>
	#include <stdio.h>
	#include <string.h>
#endif

using namespace Utilities;
using namespace std;

Socket::Socket(Families family, Types type) {
	this->Family = family;
	this->Type = type;
	this->Connected = false;
	this->LastError = 0;<commit_msg>Add missing unistd.h include (can't believe I missed that one!<commit_after>#include "Socket.h"
#include "Misc.h"

#ifdef WINDOWS
	#define WIN32_LEAN_AND_MEAN
	#define FD_SETSIZE 1024
	#include <winsock2.h>
	#include <ws2tcpip.h>
	#include <Windows.h>

	static bool winsockInitialized = false;
#elif defined POSIX
	#include <sys/select.h>
	#include <sys/socket.h>
	#include <sys/types.h>
	#include <netinet/in.h>
	#include <unistd.h>
	#include <arpa/inet.h>
	#include <netdb.h>
	#include <stdio.h>
	#include <string.h>
#endif

using namespace Utilities;
using namespace std;

Socket::Socket(Families family, Types type) {
	this->Family = family;
	this->Type = type;
	this->Connected = false;
	this->LastError = 0;
{'fraction_non_alphanumeric': 0.140117994100295, 'fraction_numerical': 0.01327433628318584, 'mean_word_length': 4.874458874458875, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 34, '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': '1392146', 'n_tokens_mistral': 551, 'n_tokens_neox': 530, 'n_words': 128}