<commit_before>#ifdef _WIN32
    #include <winsock2.h>
    #include <windows.h>
    #define close closesocket
    #define sleep Sleep
#else
    #include <netdb.h>
    #include <unistd.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include "client.h"
#include "tinycthread.h"
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#else
#define RECV_SIZE 4096
#endif

#define QUEUE_SIZE 1048576

static bool client_enabled = false;
static bool running = 0;
static int sd = 0;
static int bytes_sent = 0;
#ifndef __EMSCRIPTEN__
static int bytes_received = 0;
static mtx_t mutex;
static thrd_t recv_thread;
#endif
static char *queue = 0;
static int qsize = 0;

void client_enable() {
    client_enabled = true;
}

void client_disable() {
    client_enabled = false;
}

bool get_client_enabled() {<commit_msg>Remove tinycthread inclusion to native-only in client.c<commit_after>#ifdef _WIN32
    #include <winsock2.h>
    #include <windows.h>
    #define close closesocket
    #define sleep Sleep
#else
    #include <netdb.h>
    #include <unistd.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include "client.h"
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#else
#include "tinycthread.h"
#define RECV_SIZE 4096
#endif

#define QUEUE_SIZE 1048576

static bool client_enabled = false;
static bool running = 0;
static int sd = 0;
static int bytes_sent = 0;
#ifndef __EMSCRIPTEN__
static int bytes_received = 0;
static mtx_t mutex;
static thrd_t recv_thread;
#endif
static char *queue = 0;
static int qsize = 0;

void client_enable() {
    client_enabled = true;
}

void client_disable() {
    client_enabled = false;
}

bool get_client_enabled() {
{'fraction_non_alphanumeric': 0.10909090909090909, 'fraction_numerical': 0.022727272727272728, 'mean_word_length': 4.555205047318612, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '4686573', 'n_tokens_mistral': 692, 'n_tokens_neox': 647, 'n_words': 188}