<commit_before>#include <sys/compiler.h>
#include <sys/log.h>
#include <aaa/lib.h>
#include <aaa/prv.h>

#ifndef CONFIG_WIN32
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

const char *aaad_ip = "127.0.0.1";
const char *aaad_host;

void
aaa_env_init(void)
{
        if (!(aaad_host = getenv("OPENAAA_SERVICE")))
                return;

        struct hostent *hostent = gethostbyname(aaad_host);
        if (!hostent)
                return;

        struct in_addr addr = *(struct in_addr*) hostent->h_addr_list[0];
        char *ip = inet_ntoa(addr);
        if (!ip)
                return;

        info("aaa.service.ip=%s", ip);
        aaad_ip = strdup(ip);
}

void
aaa_env_fini(void)
{
}<commit_msg>Fixing win32 build.<commit_after>#include <sys/compiler.h>
#include <sys/log.h>
#include <aaa/lib.h>
#include <aaa/prv.h>

#ifndef CONFIG_WIN32
#include <netdb.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

const char *aaad_ip = "127.0.0.1";
const char *aaad_host;

void
aaa_env_init(void)
{
        if (!(aaad_host = getenv("OPENAAA_SERVICE")))
                return;

#ifndef CONFIG_WIN32
        struct hostent *hostent = gethostbyname(aaad_host);
        if (!hostent)
                return;

        struct in_addr addr = *(struct in_addr*) hostent->h_addr_list[0];
        char *ip = inet_ntoa(addr);
        if (!ip)
                return;

        info("aaa.service.ip=%s", ip);
        aaad_ip = strdup(ip);

#endif
}

void
aaa_env_fini(void)
{
}
{'fraction_non_alphanumeric': 0.15022566086395875, 'fraction_numerical': 0.014184397163120567, 'mean_word_length': 2.6952380952380954, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4835164', 'n_tokens_mistral': 626, 'n_tokens_neox': 601, 'n_words': 119}