<commit_before>#include "responce.h"
#include <iostream>
#include <boost/asio.hpp>

using boost::asio::ip::tcp;

#ifndef NETCONNECT_H
#define NETCONNECT_H

class session : public std::enable_shared_from_this<session> {
	public:

		session(tcp::socket);
		void start();
	private:

		void do_read();
		void do_write(std::size_t, std::string);

		tcp::socket socket_;
		enum { max_length = 1024 };
		char data_[max_length];
};

class server{
	public:

		server(boost::asio::io_service&, short);
	private:

		void do_accept();

		tcp::acceptor acceptor_;
		tcp::socket socket_;
};

#endif<commit_msg>read until delimiter<commit_after>#include "responce.h"
#include <iostream>
#include <boost/bind.hpp>
#include <boost/asio.hpp>

using boost::asio::ip::tcp;

#ifndef NETCONNECT_H
#define NETCONNECT_H

class session : public std::enable_shared_from_this<session> {
	public:

		session(tcp::socket);
		void start();
	private:

		void do_read();
		void do_write(std::size_t, std::string);
		tcp::socket socket_;
		int max_length = 1024;
		boost::asio::streambuf b;
		void handler(const boost::system::error_code&, std::size_t);
};

class server{
	public:

		server(boost::asio::io_service&, short);
	private:

		void do_accept();

		tcp::acceptor acceptor_;
		tcp::socket socket_;
};

#endif
{'fraction_non_alphanumeric': 0.14797507788161993, 'fraction_numerical': 0.006230529595015576, 'mean_word_length': 5.623711340206185, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '7102634', 'n_tokens_mistral': 500, 'n_tokens_neox': 453, 'n_words': 99}