<commit_before>//-- includes -----
#include "ServerNetworkManager.h"
#include "ServerRequestHandler.h"
#include "ServerLog.h"
#include "packedmessage.h"
#include "PSMoveProtocolInterface.h"
#include "PSMoveProtocol.pb.h"
#include <cassert>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <deque>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cstdint.hpp>
#include <boost/enable_shared_from_this.hpp>

//-- pre-declarations -----
using namespace std;
namespace asio = boost::asio;
using asio::ip::tcp;
using asio::ip::udp;
using boost::uint8_t;

class ClientConnection;
typedef boost::shared_ptr<ClientConnection> ClientConnectionPtr;

typedef map<int, ClientConnectionPtr> t_client_connection_map;
typedef map<int, ClientConnectionPtr>::iterator t_client_connection_map_iter;
typedef std::pair<int, ClientConnectionPtr> t_id_client_connection_pair;

//-- constants -----
const int PSMOVE_SERVER_PORT = 9512;

//-- private implementation -----
class IServerNetworkEventListener
{
public:
	virtual void handle_client_connection_stopped(int connection_id) = 0;
};

//-- Tracker Manager Config -----
const int NetworkManagerConfig::CONFIG_VERSION = 1;

NetworkManagerConfig::NetworkManagerConfig(const std::string &fnamebase)
    : PSMoveConfig(fnamebase)
{
	server_port= PSMOVE_SERVER_PORT;
};

const boost::property_tree::ptree
NetworkManagerConfig::config2ptree()
{
    boost::property_tree::ptree pt;

    pt.put("version", NetworkManagerConfig::CONFIG_VERSION);
	pt.put("server_port", server_port);

    return pt;
}
<commit_msg>Fixing comment typo<commit_after>//-- includes -----
#include "ServerNetworkManager.h"
#include "ServerRequestHandler.h"
#include "ServerLog.h"
#include "packedmessage.h"
#include "PSMoveProtocolInterface.h"
#include "PSMoveProtocol.pb.h"
#include <cassert>
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <deque>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cstdint.hpp>
#include <boost/enable_shared_from_this.hpp>

//-- pre-declarations -----
using namespace std;
namespace asio = boost::asio;
using asio::ip::tcp;
using asio::ip::udp;
using boost::uint8_t;

class ClientConnection;
typedef boost::shared_ptr<ClientConnection> ClientConnectionPtr;

typedef map<int, ClientConnectionPtr> t_client_connection_map;
typedef map<int, ClientConnectionPtr>::iterator t_client_connection_map_iter;
typedef std::pair<int, ClientConnectionPtr> t_id_client_connection_pair;

//-- constants -----
const int PSMOVE_SERVER_PORT = 9512;

//-- private implementation -----
class IServerNetworkEventListener
{
public:
	virtual void handle_client_connection_stopped(int connection_id) = 0;
};

//-- Network Manager Config -----
const int NetworkManagerConfig::CONFIG_VERSION = 1;

NetworkManagerConfig::NetworkManagerConfig(const std::string &fnamebase)
    : PSMoveConfig(fnamebase)
{
	server_port= PSMOVE_SERVER_PORT;
};

const boost::property_tree::ptree
NetworkManagerConfig::config2ptree()
{
    boost::property_tree::ptree pt;

    pt.put("version", NetworkManagerConfig::CONFIG_VERSION);
	pt.put("server_port", server_port);

    return pt;
}

{'fraction_non_alphanumeric': 0.13431916204559458, 'fraction_numerical': 0.004929143561306223, 'mean_word_length': 6.36281179138322, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '3101271', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1029, 'n_words': 212}