<commit_before>//===----------------------------------------------------------------------===//
//
//                         Peloton
//
// network_connection.cpp
//
// Identification: src/network/network_connection.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===----------------------------------------------------------------------===//

#include <unistd.h>
#include "network/postgres_protocol_handler.h"
#include <settings/settings_manager.h>
#include "network/network_connection.h"
#include "network/protocol_handler_factory.h"
#include "errno.h"
namespace peloton {
namespace network {

void NetworkConnection::Init(short event_flags, NetworkThread *thread,
                          ConnState init_state) {
  SetNonBlocking(sock_fd);
  SetTCPNoDelay(sock_fd);

  protocol_handler_ = nullptr;

  this->event_flags = event_flags;
  this->thread = thread;
  this->state = init_state;

  this->thread_id = thread->GetThreadID();
<commit_msg>change include format in network_connection.cpp<commit_after>//===----------------------------------------------------------------------===//
//
//                         Peloton
//
// network_connection.cpp
//
// Identification: src/network/network_connection.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===----------------------------------------------------------------------===//

#include <unistd.h>
#include "network/postgres_protocol_handler.h"
#include "settings/settings_manager.h"
#include "network/network_connection.h"
#include "network/protocol_handler_factory.h"
#include "errno.h"
namespace peloton {
namespace network {

void NetworkConnection::Init(short event_flags, NetworkThread *thread,
                          ConnState init_state) {
  SetNonBlocking(sock_fd);
  SetTCPNoDelay(sock_fd);

  protocol_handler_ = nullptr;

  this->event_flags = event_flags;
  this->thread = thread;
  this->state = init_state;

  this->thread_id = thread->GetThreadID();

{'fraction_non_alphanumeric': 0.2575301204819277, 'fraction_numerical': 0.006024096385542169, 'mean_word_length': 2.075617283950617, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 16, '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': '6627208', 'n_tokens_mistral': 547, 'n_tokens_neox': 518, 'n_words': 100}