<commit_before>/*
    Smartt C++ Client
    Copyright 2013 S10I (s<EMAIL>)

    Author: <NAME> (<EMAIL>)
*/
#ifndef SMARTT_CLIENT_H
#define SMARTT_CLIENT_H

// Standard library dependencies
#include <exception>
#include <string>
#include <vector>
#include <map>

using namespace std;

// External dependencies
#include <json/json.h>

// Local dependencies
#include "smartt_simple_connection.h"
#include "parameter_list.h"

// Convenience include (so that client code doesn't need to do it)
#include "smartt_term.h"


/*************************************************************************************************
  Smartt Client Exception class
*************************************************************************************************/
class SmarttClientException: public std::exception
{
    string error_description_;

public:
    SmarttClientException(const string &error_description);

    ~SmarttClientException() throw ();

    virtual const char* what() const throw();
};



/*************************************************************************************************
  Smartt Client class
    An interface to the Smartt Server API. Connects to the server and communicates
    using the Smartt Simple Protocol.
*************************************************************************************************/
// Class constants
#define DEFAULT_SMARTT_CLIENT_CONNECT true
#define DEFAULT_SMARTT_CLIENT_HOST "smarttbot.com"
#define DEFAULT_SMARTT_CLIENT_PORT 5060
#define DEFAULT_SMARTT_CLIENT_USE_SSL true

// Class declaration
class SmarttClient {

public:

    // Constructor<commit_msg>OTH: atualiza o host para smarttbot-server...<commit_after>/*
    Smartt C++ Client
    Copyright 2013 S10I (s10i.<EMAIL>)

    Author: <NAME> (<EMAIL>)
*/
#ifndef SMARTT_CLIENT_H
#define SMARTT_CLIENT_H

// Standard library dependencies
#include <exception>
#include <string>
#include <vector>
#include <map>

using namespace std;

// External dependencies
#include <json/json.h>

// Local dependencies
#include "smartt_simple_connection.h"
#include "parameter_list.h"

// Convenience include (so that client code doesn't need to do it)
#include "smartt_term.h"


/*************************************************************************************************
  Smartt Client Exception class
*************************************************************************************************/
class SmarttClientException: public std::exception
{
    string error_description_;

public:
    SmarttClientException(const string &error_description);

    ~SmarttClientException() throw ();

    virtual const char* what() const throw();
};



/*************************************************************************************************
  Smartt Client class
    An interface to the Smartt Server API. Connects to the server and communicates
    using the Smartt Simple Protocol.
*************************************************************************************************/
// Class constants
#define DEFAULT_SMARTT_CLIENT_CONNECT true
#define DEFAULT_SMARTT_CLIENT_HOST "smarttbot-server.smarttbot.com"
#define DEFAULT_SMARTT_CLIENT_PORT 5060
#define DEFAULT_SMARTT_CLIENT_USE_SSL true

// Class declaration
class SmarttClient {

public:

    // Constructor
{'fraction_non_alphanumeric': 0.3049710277523635, 'fraction_numerical': 0.006709362610551998, 'mean_word_length': 6.2727272727272725, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '6112288', 'n_tokens_mistral': 850, 'n_tokens_neox': 791, 'n_words': 234}