<commit_before>#include <module.h>
#include <stddef.h>

#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netdb.h>

MODULE_DEFAULT(dns);

void module_enter(irc_t *irc, const char *channel, const char *user, const char *message) {
    if (!message)
        return;

    irc_write(irc, channel, "%s: Please wait, resolving: %s", user, message);

    struct addrinfo *res;
    struct addrinfo hints = {
        .ai_family   = AF_UNSPEC,
        .ai_socktype = SOCK_STREAM
    };

    int status;<commit_msg>bsd compile fix for dns.c<commit_after>#include <module.h>
#include <stddef.h>

#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>

MODULE_DEFAULT(dns);

void module_enter(irc_t *irc, const char *channel, const char *user, const char *message) {
    if (!message)
        return;

    irc_write(irc, channel, "%s: Please wait, resolving: %s", user, message);

    struct addrinfo *res;
    struct addrinfo hints = {
        .ai_family   = AF_UNSPEC,
        .ai_socktype = SOCK_STREAM
    };

    int status;
{'fraction_non_alphanumeric': 0.13768115942028986, 'fraction_numerical': 0.0, 'mean_word_length': 3.384920634920635, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '5724250', 'n_tokens_mistral': 414, 'n_tokens_neox': 391, 'n_words': 103}