<commit_before>#include "connection_pool.h"
#include "util.h"
#include "lock_guard.h"

namespace mevent {
    
ConnectionPool::ConnectionPool(int max_conn)
    : free_list_head_(NULL),
      active_list_head_(NULL),
      active_list_tail_(NULL),
      active_list_lookup_cursor_(NULL),
      count_(0),
      max_conn_(max_conn) {
    
    if (pthread_mutex_init(&free_list_mtx_, NULL) != 0) {
        LOG_DEBUG(-1, NULL);
    }
    
    if (pthread_mutex_init(&active_list_mtx_, NULL) != 0) {
        LOG_DEBUG(-1, NULL);
    }
}
<commit_msg>change log macro<commit_after>#include "connection_pool.h"
#include "util.h"
#include "lock_guard.h"

namespace mevent {
    
ConnectionPool::ConnectionPool(int max_conn)
    : free_list_head_(NULL),
      active_list_head_(NULL),
      active_list_tail_(NULL),
      active_list_lookup_cursor_(NULL),
      count_(0),
      max_conn_(max_conn) {
    
    if (pthread_mutex_init(&free_list_mtx_, NULL) != 0) {
        MEVENT_LOG_DEBUG_EXIT(NULL);
    }
    
    if (pthread_mutex_init(&active_list_mtx_, NULL) != 0) {
        MEVENT_LOG_DEBUG_EXIT(NULL);
    }
}

{'fraction_non_alphanumeric': 0.12285456187895212, 'fraction_numerical': 0.007226738934056007, 'mean_word_length': 3.4497991967871484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6050510', 'n_tokens_mistral': 405, 'n_tokens_neox': 402, 'n_words': 56}