<commit_before>#ifndef FGCI_API_H
#define FGCI_API_H

#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include "utilities.h"

#define BUFFSIZE 1280

int init_connection ( char * ip, int port, int * src_port );
int my_recv ( int sock, char * msg );
char * read_from_fcgi ( char * pathname, char * root_dir, unsigned long long * taille );

char * add_fcgi_beg ( uint8_t ver, uint16_t id, int * len );
char * add_fcgi_param ( uint8_t ver, uint16_t id, char * name, char * value, char * req, int * len );
char * add_fcgi_end ( int ver, int id, char * req, int * len );

#endif<commit_msg>Update fcgi_api.h<commit_after>#ifndef FGCI_API_H
#define FGCI_API_H

#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <netinet/in.h>
#include "utilities.h"
#include "request.h"

#define BUFFSIZE 1280

int init_connection ( char * ip, int port, int * src_port );
int my_recv ( int sock, char * msg );
char * read_from_fcgi ( char * pathname, char * root_dir, unsigned long long * taille );

char * add_fcgi_beg ( uint8_t ver, uint16_t id, int * len );
char * add_fcgi_param ( uint8_t ver, uint16_t id, char * name, char * value, char * req, int * len );
char * add_fcgi_end ( int ver, int id, char * req, int * len );

#endif
{'fraction_non_alphanumeric': 0.13528990694345025, 'fraction_numerical': 0.014316392269148175, 'mean_word_length': 4.503937007874016, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '1147626', 'n_tokens_mistral': 564, 'n_tokens_neox': 546, 'n_words': 162}