<commit_before>#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <stdio.h>

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include <bsd/stdlib.h>
#include <pthread.h>
#include <math.h>
#include <time.h>

struct client_details {
	struct sockaddr_in * servaddr;
	long iterations;
};

struct client_stats {
	double mean;
	double S; /* stddev = sqrt(S/n) */
	long n;
};

void * client(void * arg);
const double Z = 1.96; // 95% probability estimated value
const double E = 5000; // lies within +/- 5us of true value
const int MAX_ITERATIONS_PER_ROUND = 1000000;
static const int ONE = 1;

int main(int argc, char** argv) {
	int port, clients = 0;
	int opt, i, ret;
	long max_iterations;
	int sockfd;

	struct sockaddr_in servaddr;
	struct client_details carg;
	pthread_t * threads;
	uint32_t zero = 0;

	struct client_stats *cret;
	double current_mean, mean = 0;
	double stddev = 0;
	long n = 0;<commit_msg>Do fewer iterations by default<commit_after>#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <stdio.h>

#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include <bsd/stdlib.h>
#include <pthread.h>
#include <math.h>
#include <time.h>

struct client_details {
	struct sockaddr_in * servaddr;
	long iterations;
};

struct client_stats {
	double mean;
	double S; /* stddev = sqrt(S/n) */
	long n;
};

void * client(void * arg);
const double Z = 1.96; // 95% probability estimated value
const double E = 5000; // lies within +/- 5us of true value
const int MAX_ITERATIONS_PER_ROUND = 100000;
static const int ONE = 1;

int main(int argc, char** argv) {
	int port, clients = 0;
	int opt, i, ret;
	long max_iterations;
	int sockfd;

	struct sockaddr_in servaddr;
	struct client_details carg;
	pthread_t * threads;
	uint32_t zero = 0;

	struct client_stats *cret;
	double current_mean, mean = 0;
	double stddev = 0;
	long n = 0;
{'fraction_non_alphanumeric': 0.12896622313203684, 'fraction_numerical': 0.025076765609007165, 'mean_word_length': 4.185676392572944, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '7267753', 'n_tokens_mistral': 795, 'n_tokens_neox': 723, 'n_words': 227}