<commit_before>/*
 * Copyright 2008-2017 <NAME>
 *
 * See LICENCE for the full copyright terms.
 */

#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#include <adt/set.h>

#define SET_INITIAL 8

struct set {
	void **a;
	size_t i;
	size_t n;
	int (*cmp)(const void *, const void *);
};

static void
print_set(const char *prefix, const struct set *s)
{
	size_t i;

	assert(prefix != NULL);

	fprintf(stderr, "%s (%p):\n", prefix, (void *)s);

	if (set_empty(s)) {
		fprintf(stderr, "\tempty\n");
		return;
	}

	fprintf(stderr, "\t%zu of %zu\n", s->i, s->n);
	fprintf(stderr, "\t");
	for (i = 0; i < s->i; i++) {
		fprintf(stderr, "%p ", (void *) s->a[i]);
	}
	fprintf(stderr, "\n");<commit_msg>Cast for C89.<commit_after>/*
 * Copyright 2008-2017 <NAME>
 *
 * See LICENCE for the full copyright terms.
 */

#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#include <adt/set.h>

#define SET_INITIAL 8

struct set {
	void **a;
	size_t i;
	size_t n;
	int (*cmp)(const void *, const void *);
};

static void
print_set(const char *prefix, const struct set *s)
{
	size_t i;

	assert(prefix != NULL);

	fprintf(stderr, "%s (%p):\n", prefix, (void *)s);

	if (set_empty(s)) {
		fprintf(stderr, "\tempty\n");
		return;
	}

	fprintf(stderr, "\t%lu of %lu\n", (unsigned long) s->i, (unsigned long) s->n);
	fprintf(stderr, "\t");
	for (i = 0; i < s->i; i++) {
		fprintf(stderr, "%p ", (void *) s->a[i]);
	}
	fprintf(stderr, "\n");
{'fraction_non_alphanumeric': 0.21177266576454667, 'fraction_numerical': 0.014884979702300407, 'mean_word_length': 3.7403846153846154, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 23, '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': '2169255', 'n_tokens_mistral': 639, 'n_tokens_neox': 613, 'n_words': 167}