<commit_before>/*
 * Copyright (C) 2014 <NAME>. All rights reserved.
 * http://www.yulefox.com/
 */

#include <elf/elf.h>
#include <elf/lock.h>
#include <elf/net/net.h>
#include <elf/net/message.h>
#include <elf/pc.h>
#include <elf/thread.h>
#include <elf/time.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <algorithm>
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <string>

namespace elf {
static const int LINGER_ONOFF = 0;
static const int LINGER_TIME = 5;
static const int CONTEXT_CLOSE_TIME = 90;
static const int SIZE_INT = sizeof(int(0));
static const int SIZE_INTX2 = sizeof(int(0)) * 2;
static const int MESSAGE_LITE_SIZE = 10;
static const int CHUNK_MIN_SIZE = 256;
static const int CHUNK_MAX_SIZE = 4096;
static const size_t CHUNK_MAX_NUM = 1024;
static const int MESSAGE_MAX_NAME_LENGTH = 100;
static const int MESSAGE_MAX_VALID_SIZE = CHUNK_MAX_NUM * CHUNK_MAX_SIZE;
static const int MESSAGE_MAX_PENDING_SIZE = MESSAGE_MAX_VALID_SIZE * 2;
static const int BACKLOG = 128;
static const int ENCRYPT_FLAG = 0x40000000;

struct blob_t;
struct chunk_t;
struct context_t;
struct peer_t;
struct recv_message_t;
struct stat_msg_t;
<commit_msg>[FIX] max message size<commit_after>/*
 * Copyright (C) 2014 <NAME>. All rights reserved.
 * http://www.yulefox.com/
 */

#include <elf/elf.h>
#include <elf/lock.h>
#include <elf/net/net.h>
#include <elf/net/message.h>
#include <elf/pc.h>
#include <elf/thread.h>
#include <elf/time.h>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <algorithm>
#include <deque>
#include <list>
#include <map>
#include <queue>
#include <string>

namespace elf {
static const int LINGER_ONOFF = 0;
static const int LINGER_TIME = 5;
static const int CONTEXT_CLOSE_TIME = 90;
static const int SIZE_INT = sizeof(int(0));
static const int SIZE_INTX2 = sizeof(int(0)) * 2;
static const int MESSAGE_LITE_SIZE = 10;
static const int CHUNK_MIN_SIZE = 256;
static const int CHUNK_MAX_SIZE = 4096;
static const size_t CHUNK_MAX_NUM = 8192;
static const int MESSAGE_MAX_NAME_LENGTH = 100;
static const int MESSAGE_MAX_VALID_SIZE = CHUNK_MAX_NUM * CHUNK_MAX_SIZE;
static const int MESSAGE_MAX_PENDING_SIZE = MESSAGE_MAX_VALID_SIZE * 2;
static const int BACKLOG = 128;
static const int ENCRYPT_FLAG = 0x40000000;

struct blob_t;
struct chunk_t;
struct context_t;
struct peer_t;
struct recv_message_t;
struct stat_msg_t;

{'fraction_non_alphanumeric': 0.11680572109654351, 'fraction_numerical': 0.03257846642828764, 'mean_word_length': 5.456410256410257, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '6845122', 'n_tokens_mistral': 1030, 'n_tokens_neox': 961, 'n_words': 267}