<commit_before>#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/types.h>

#include <hiredis.h>

#include "string.h"
#include "array.h"
#import "config.h"
#include "proxy.h"
#include "server.h"

np_status_t 
server_init(struct nproxy_server *server)
{
    server->configfile = NULL;
    server->cfg = NULL;
    
    server->proxy_pool = array_create(NPROXY_PROXY_POOL_LENGTH, sizeof(np_proxy));
    if (server->proxy_pool == NULL) {
        return  NP_ERROR;
    }

    server->pidfile = NULL;
    server->pid = getpid();

    return NP_OK;
}


static np_status_t
server_load_config(struct nproxy_server *server)
{
    
    struct config *cfg;
    cfg = config_creat(server->configfile);
    if (cfg == NULL) {
        return NP_ERROR;
    }<commit_msg>typo include -> import<commit_after>#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdbool.h>
#include <sys/types.h>

#include <hiredis.h>

#include "string.h"
#include "array.h"
#include "config.h"
#include "proxy.h"
#include "server.h"

np_status_t 
server_init(struct nproxy_server *server)
{
    server->configfile = NULL;
    server->cfg = NULL;
    
    server->proxy_pool = array_create(NPROXY_PROXY_POOL_LENGTH, sizeof(np_proxy));
    if (server->proxy_pool == NULL) {
        return  NP_ERROR;
    }

    server->pidfile = NULL;
    server->pid = getpid();

    return NP_OK;
}


static np_status_t
server_load_config(struct nproxy_server *server)
{
    
    struct config *cfg;
    cfg = config_creat(server->configfile);
    if (cfg == NULL) {
        return NP_ERROR;
    }
{'fraction_non_alphanumeric': 0.1386861313868613, 'fraction_numerical': 0.0, 'mean_word_length': 3.556786703601108, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 32, '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': '707996', 'n_tokens_mistral': 627, 'n_tokens_neox': 613, 'n_words': 124}