<commit_before>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <pthread.h>

#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif

#include "utils.h"
#include "notifutils.h"

#define MAX_CLIENTS 10
#define WATCH_SLEEP_MIN 2
#define WATCH_SLEEP_DEFAULT 10
#define WATCH_SLEEP_MAX 60


struct ns_config {
	
	/* general config */
	int client_max;
	int nb_files;
	char *s_path;
	char **file;
	
	/* sockets */
	int s_socket;
	int *c_socket;
	
	/* waiting time */
	int w_sleep_min;
	int w_sleep_default;
	int w_sleep_max;
};

void *notify(void *arg);

void *watch_file(void *path);

int set_up_server(void);

int accept_client(void);

int nsa(void);

int parse_arg(int argc, char **argv);<commit_msg>added missing declaration of "send_message"<commit_after>#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <pthread.h>

#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif

#include "utils.h"
#include "notifutils.h"

#define MAX_CLIENTS 10
#define WATCH_SLEEP_MIN 2
#define WATCH_SLEEP_DEFAULT 10
#define WATCH_SLEEP_MAX 60


struct ns_config {
	
	/* general config */
	int client_max;
	int nb_files;
	char *s_path;
	char **file;
	
	/* sockets */
	int s_socket;
	int *c_socket;
	
	/* waiting time */
	int w_sleep_min;
	int w_sleep_default;
	int w_sleep_max;
};

void send_message(int s_index, char *str, int len);

void *notify(void *arg);

void *watch_file(void *path);

int nsa(void);

int set_up_server(void);

int accept_client(void);

int parse_arg(int argc, char **argv);
{'fraction_non_alphanumeric': 0.143646408839779, 'fraction_numerical': 0.007031642390758413, 'mean_word_length': 4.946268656716418, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '6700358', 'n_tokens_mistral': 872, 'n_tokens_neox': 829, 'n_words': 198}