<commit_before>#ifndef _PLAIN_CONNECTION_H
#define _PLAIN_CONNECTION_H

#include <string>
#include "./base_connection.hpp"

namespace SSLWrapper {

	class PlainConnection : public BaseConnection {

	protected:
		int connection_socket_fd,
		    port;

		std::string address;

	public:

		PlainConnection(const std::string& _address, const int& port);
		~PlainConnection();

		bool do_connect(void);
		void disconnect(void);

		bool is_connected(void) {
			return connection_socket_fd > 0;
		};

		std::string receive(void);
		int send(const std::string& msg);

		bool is_secure(void) {
			return false;
		}

		bool operator==(PlainConnection& other) const {
			return false;
		}

		int socket_fd(void) const {
			return connection_socket_fd;
		}

		std::string get_address(void) const {
			return address;
		}
		int get_port(void) const {
			return port;
		}
<commit_msg>document plain connection<commit_after>#ifndef _PLAIN_CONNECTION_H
#define _PLAIN_CONNECTION_H

#include <string>
#include "./base_connection.hpp"

namespace SSLWrapper {

	class PlainConnection : public BaseConnection {

	protected:
		int connection_socket_fd,
		    port;

		std::string address;

	public:

		PlainConnection(const std::string& _address, const int& port);
		~PlainConnection();

		bool do_connect(void);
		void disconnect(void);

		bool is_connected(void) {
			return connection_socket_fd > 0;
		};

		std::string receive(void);
		int send(const std::string& msg);

		bool is_secure(void) {
			return false;
		}

		/* copying is deleted in BaseConnection, so equality is impossible except for symmetry.*/
		bool operator==(PlainConnection& other) const {
			return this == &other;
		}

		int socket_fd(void) const {
			return connection_socket_fd;
		}

		std::string get_address(void) const {
			return address;
		}
		int get_port(void) const {
			return port;
		}

{'fraction_non_alphanumeric': 0.10199676200755532, 'fraction_numerical': 0.0010793308148947653, 'mean_word_length': 4.164345403899722, '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': '7369605', 'n_tokens_mistral': 687, 'n_tokens_neox': 586, 'n_words': 151}