<commit_before>/* Copyright 2012 exMULTI, Inc.
 * Distributed under the MIT/X11 software license, see the accompanying
 * file COPYING or http://www.opensource.org/licenses/mit-license.php.
 */
#include "picocoin-config.h"

#include <sys/types.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <glib.h>
#include <ccoin/util.h>
#include <ccoin/core.h>

static const char *dns_seeds[] = {
	"seed.bitcoin.sipa.be",
	"dnsseed.bluematt.me",
	"dnsseed.bitcoin.dashjr.org",
	"bitseed.xf2.org",
};

static GList *add_seed_addr(GList *l, const struct addrinfo *ai)
{
	struct bp_address *addr;

	addr = calloc(1, sizeof(*addr));
	if (!addr)
		return l;
<commit_msg>[lib] dns: include netinet/in.h for in6_addr definition, to fix BSD build<commit_after>/* Copyright 2012 exMULTI, Inc.
 * Distributed under the MIT/X11 software license, see the accompanying
 * file COPYING or http://www.opensource.org/licenses/mit-license.php.
 */
#include "picocoin-config.h"

#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <glib.h>
#include <ccoin/util.h>
#include <ccoin/core.h>

static const char *dns_seeds[] = {
	"seed.bitcoin.sipa.be",
	"dnsseed.bluematt.me",
	"dnsseed.bitcoin.dashjr.org",
	"bitseed.xf2.org",
};

static GList *add_seed_addr(GList *l, const struct addrinfo *ai)
{
	struct bp_address *addr;

	addr = calloc(1, sizeof(*addr));
	if (!addr)
		return l;

{'fraction_non_alphanumeric': 0.1610512129380054, 'fraction_numerical': 0.011455525606469003, 'mean_word_length': 4.64638783269962, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4567468', 'n_tokens_mistral': 607, 'n_tokens_neox': 587, 'n_words': 136}