<commit_before>/* Copyright (c) 2017, Nokia
 * Copyright (c) 2017, ENEA Software AB
 * All rights reserved.
 *
 * SPDX-License-Identifier:	BSD-3-Clause
 */

#include <getopt.h>
#include <string.h>
#include <inttypes.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <signal.h>

#include "ofp.h"

#include <odp/helper/ip.h>

/** Server bind address */
#define DEF_BIND_ADDR OFP_INADDR_ANY

/** Server bind port */
#define DEF_BIND_PORT 5001

/** Statistics print interval in seconds */
#define DEF_PRINT_INTERVAL 10

/** Server socket backlog */
#define SOCKET_BACKLOG 10

/** Number of worker threads */
#define NUM_WORKERS 2

/** Maximum number of packet in a burst */
#define PKT_BURST_SIZE  OFP_PKT_RX_BURST_SIZE

/** Socket receive buffer length */
#define SOCKET_RX_BUF_LEN	(32 * 1024)

/** Socket transmit buffer length */
#define SOCKET_TX_BUF_LEN	1400
<commit_msg>tcpperf: Use larger socket write size.<commit_after>/* Copyright (c) 2017, Nokia
 * Copyright (c) 2017, ENEA Software AB
 * All rights reserved.
 *
 * SPDX-License-Identifier:	BSD-3-Clause
 */

#include <getopt.h>
#include <string.h>
#include <inttypes.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <signal.h>

#include "ofp.h"

#include <odp/helper/ip.h>

/** Server bind address */
#define DEF_BIND_ADDR OFP_INADDR_ANY

/** Server bind port */
#define DEF_BIND_PORT 5001

/** Statistics print interval in seconds */
#define DEF_PRINT_INTERVAL 10

/** Server socket backlog */
#define SOCKET_BACKLOG 10

/** Number of worker threads */
#define NUM_WORKERS 2

/** Maximum number of packet in a burst */
#define PKT_BURST_SIZE  OFP_PKT_RX_BURST_SIZE

/** Socket receive buffer length */
#define SOCKET_RX_BUF_LEN	(32 * 1024)

/** Socket transmit buffer length */
#define SOCKET_TX_BUF_LEN	(32 * 1024)

{'fraction_non_alphanumeric': 0.12704471101417666, 'fraction_numerical': 0.03162486368593239, 'mean_word_length': 4.349854227405248, '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': '6480772', 'n_tokens_mistral': 718, 'n_tokens_neox': 663, 'n_words': 190}