<commit_before>/*
 * "Copyright [2016] qihoo"
 * "Author <<EMAIL>>"
 */
#include "include/zp_cluster.h"

#include <google/protobuf/text_format.h>
#include<iostream>
#include<string>


namespace libzp {

Cluster::Cluster(const Options& options)
  : epoch_(0) {
    meta_addr_ = options.meta_addr;
    assert(!meta_addr_.empty());
    meta_pool_ = new ConnectionPool();
    data_pool_ = new ConnectionPool();
  }

Cluster::Cluster(const std::string& ip, int port)
  : epoch_(0) {
    meta_addr_.push_back(Node(ip, port));
    meta_pool_ = new ConnectionPool();
    data_pool_ = new ConnectionPool();
  }

Cluster::~Cluster() {
  std::unordered_map<std::string, Table*>::iterator iter = tables_.begin();
  while (iter != tables_.end()) {
    delete iter->second;
    iter++;
  }<commit_msg>bugfix of lack of include<commit_after>/*
 * "Copyright [2016] qihoo"
 * "Author <<EMAIL>>"
 */
#include "include/zp_cluster.h"
#include "zp_const.h"

#include <google/protobuf/text_format.h>
#include <iostream>
#include <string>


namespace libzp {

Cluster::Cluster(const Options& options)
  : epoch_(0) {
    meta_addr_ = options.meta_addr;
    assert(!meta_addr_.empty());
    meta_pool_ = new ConnectionPool();
    data_pool_ = new ConnectionPool();
  }

Cluster::Cluster(const std::string& ip, int port)
  : epoch_(0) {
    meta_addr_.push_back(Node(ip, port));
    meta_pool_ = new ConnectionPool();
    data_pool_ = new ConnectionPool();
  }

Cluster::~Cluster() {
  std::unordered_map<std::string, Table*>::iterator iter = tables_.begin();
  while (iter != tables_.end()) {
    delete iter->second;
    iter++;
  }
{'fraction_non_alphanumeric': 0.16273291925465838, 'fraction_numerical': 0.007453416149068323, 'mean_word_length': 4.4425675675675675, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '6514317', 'n_tokens_mistral': 559, 'n_tokens_neox': 551, 'n_words': 112}