<commit_before>#pragma once
/*
**  Copyright (C) 2012 <NAME>
**  See COPYING for the license
*/

#ifndef _SRC_SERVERCLIENT_HPP_
#define _SRC_SERVERCLIENT_HPP_

#include <qimessaging/future.hpp>
#include <qimessaging/genericobject.hpp>
#include "remoteobject_p.hpp"

namespace qi {

  class TransportSocket;
  class ServerClient {
  public:
    ServerClient(TransportSocketPtr socket);
    ~ServerClient();
    qi::Future<unsigned int>   registerEvent(unsigned int serviceId, unsigned eventId, unsigned int linkId);
    qi::Future<bool>           unregisterEvent(unsigned int serviceId, unsigned eventId, unsigned linkId);
    qi::Future<qi::MetaObject> metaObject(unsigned int serviceId, unsigned int objectId);
    // metaobject bootstrap hack
    unsigned int   _registerEvent(unsigned int serviceId, unsigned eventId, unsigned int linkId){};
    bool           _unregisterEvent(unsigned int serviceId, unsigned eventId, unsigned linkId){};
    qi::MetaObject _metaObject(unsigned int serviceId, unsigned int objectId){};

  public:
    qi::RemoteObject _remoteObject;
    qi::ObjectPtr    _object;
  };
}

#endif  // _SRC_SERVERCLIENT_HPP_<commit_msg>Dummy return value for dummy functions.<commit_after>#pragma once
/*
**  Copyright (C) 2012 <NAME>
**  See COPYING for the license
*/

#ifndef _SRC_SERVERCLIENT_HPP_
#define _SRC_SERVERCLIENT_HPP_

#include <qimessaging/future.hpp>
#include <qimessaging/genericobject.hpp>
#include "remoteobject_p.hpp"

namespace qi {

  class TransportSocket;
  class ServerClient {
  public:
    ServerClient(TransportSocketPtr socket);
    ~ServerClient();
    qi::Future<unsigned int>   registerEvent(unsigned int serviceId, unsigned eventId, unsigned int linkId);
    qi::Future<bool>           unregisterEvent(unsigned int serviceId, unsigned eventId, unsigned linkId);
    qi::Future<qi::MetaObject> metaObject(unsigned int serviceId, unsigned int objectId);
    // metaobject bootstrap hack
    unsigned int   _registerEvent(unsigned int serviceId, unsigned eventId, unsigned int linkId){return 0;};
    bool           _unregisterEvent(unsigned int serviceId, unsigned eventId, unsigned linkId){return false;};
    qi::MetaObject _metaObject(unsigned int serviceId, unsigned int objectId){return qi::MetaObject();};

  public:
    qi::RemoteObject _remoteObject;
    qi::ObjectPtr    _object;
  };
}

#endif  // _SRC_SERVERCLIENT_HPP_
{'fraction_non_alphanumeric': 0.09411764705882353, 'fraction_numerical': 0.003781512605042017, 'mean_word_length': 4.779126213592233, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5377478', 'n_tokens_mistral': 713, 'n_tokens_neox': 685, 'n_words': 189}