<commit_before>#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <libobject/core/utils/dbg/debug.h>
#include <libobject/core/utils/registry/registry.h>
#include <libobject/libobject.h>
#include <libobject/concurrent/Producer.h>
#include <libobject/version.h>

#if (defined(ANDROID_USER_MODE))
#include <android/log.h>
#elif (defined(WINDOWS_USER_MODE))
#include <winsock2.h>
#endif

int libobject_init()
{
#if (defined(WINDOWS_USER_MODE))
    WSADATA wsa_data;
    if (WSAStartup(MAKEWORD(2, 1), &wsa_data)) {
        dbg_str(NET_ERROR, "WSAStartup error");
        return -1;
    }
#endif
    execute_ctor_funcs();

    return 1;
}

int libobject_exit()
{
#if (defined(WINDOWS_USER_MODE))
    WSACleanup();
#endif
#if (!defined(WINDOWS_USER_MODE))
    kill(0, SIGQUIT);
#endif
    return 1;
}

int __attribute__((destructor)) destruct_libobject()
{
    execute_dtor_funcs();

    return 1;
}
<commit_msg>Update entry.c<commit_after>#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <signal.h>
#include <libobject/core/utils/dbg/debug.h>
#include <libobject/core/utils/registry/registry.h>
#include <libobject/libobject.h>
#include <libobject/concurrent/Producer.h>
#include <libobject/version.h>

#if (defined(ANDROID_USER_MODE))
#include <android/log.h>
#elif (defined(WINDOWS_USER_MODE))
#include <winsock2.h>
#endif

int libobject_init()
{
#if (defined(WINDOWS_USER_MODE))
    WSADATA wsa_data;
    if (WSAStartup(MAKEWORD(2, 1), &wsa_data)) {
        dbg_str(NET_ERROR, "WSAStartup error");
        return -1;
    }
#endif
    execute_ctor_funcs();

    return 1;
}

int libobject_exit()
{
//#if (defined(WINDOWS_USER_MODE))
//    WSACleanup();
//#endif
#if (!defined(WINDOWS_USER_MODE))
    kill(0, SIGQUIT);
#endif
    return 1;
}

int __attribute__((destructor)) destruct_libobject()
{
    execute_dtor_funcs();

    return 1;
}

{'fraction_non_alphanumeric': 0.1537242472266244, 'fraction_numerical': 0.008452192287374538, 'mean_word_length': 4.756838905775076, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '1826232', 'n_tokens_mistral': 763, 'n_tokens_neox': 740, 'n_words': 131}