<commit_before>#ifndef URPC_CLIENT_HPP
#define URPC_CLIENT_HPP

#include <string>
#include <boost/smart_ptr.hpp>
#include <google/protobuf/message.h>
#include "zmq.hpp"
#include "dns/dns.hpp"

namespace urpc {

class Client {
 public:
  /** Create a connection to a service
    * \param connection ZMQ connection string
    * \param nIOThread number of ZMQ IO threads
    */ 
  Client(const std::string &connection);
  /** Send a request to a service
    * \param service name of the service requested
    * \param version service version
    * \param request protobuf containing parameters of service requested
    * \param moreToFollow TRUE if is request is not the last part of a 
    * multi-part request. 
    */
  void sendRequest (const std::string &service, int version,
                    const google::protobuf::Message &request,
                    bool moreToFollow = false);
  /** Get reply from a sent request
    * \param reply protobuf containing the service reply 
    * \return TRUE if additional messages exist after this reply, as in the
    * case of multi-part replies.
    */
  bool getReply (google::protobuf::Message &reply);
 private:
  std::string connection;
  boost::scoped_ptr<zmq::context_t> context;
  boost::scoped_ptr<zmq::socket_t> socket;
};

}
#endif // URPC_CLIENT_HPP<commit_msg>whitespace<commit_after>#ifndef URPC_CLIENT_HPP
#define URPC_CLIENT_HPP

#include <string>
#include <boost/smart_ptr.hpp>
#include <google/protobuf/message.h>
#include "zmq.hpp"
#include "dns/dns.hpp"

namespace urpc {

class Client {
 public:
  /** Create a connection to a service
    * \param connection ZMQ connection string
    * \param nIOThread number of ZMQ IO threads
    */ 
  Client(const std::string &connection);
  /** Send a request to a service
    * \param service name of the service requested
    * \param version service version
    * \param request protobuf containing parameters of service requested
    * \param moreToFollow TRUE if is request is not the last part of a 
    * multi-part request. 
    */
  void sendRequest (const std::string &service,
                    int version,
                    const google::protobuf::Message &request,
                    bool moreToFollow = false);
  /** Get reply from a sent request
    * \param reply protobuf containing the service reply 
    * \return TRUE if additional messages exist after this reply, as in the
    * case of multi-part replies.
    */
  bool getReply (google::protobuf::Message &reply);
 private:
  std::string connection;
  boost::scoped_ptr<zmq::context_t> context;
  boost::scoped_ptr<zmq::socket_t> socket;
};

}
#endif // URPC_CLIENT_HPP
{'fraction_non_alphanumeric': 0.09190207156308851, 'fraction_numerical': 0.0, 'mean_word_length': 3.2225755166931638, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6366765', 'n_tokens_mistral': 772, 'n_tokens_neox': 752, 'n_words': 269}