<commit_before>/* DIME-specific extensions to the check library */

#ifndef CHECK_DIME_H
#define CHECK_DIME_H

#include "check-compat.h"

static inline void suite_add_test(Suite *s, const char *name, TFun func) {

	TCase *tc = tcase_create(name);
	tcase_add_test(tc, func);
	suite_add_tcase(s, tc);
}
#define suite_add_testfunc(s, func) \
	suite_add_test(s, #func, func)

#define ck_assert_dime_noerror() \
	ck_assert_dime_noerror_impl(__FILE__, __LINE__)
static inline void ck_assert_dime_noerror_impl(const char *filename, int lineno) {
	if (get_last_error() != NULL) {
		dump_error_stack();
		_ck_assert_msg(0, filename, lineno, "get_last_error() == NULL", "Unexpected error", (const char *)0);
	}
}

#endif
<commit_msg>Added missing include<commit_after>/* DIME-specific extensions to the check library */

#ifndef CHECK_DIME_H
#define CHECK_DIME_H

#include <common/error.h>
#include "check-compat.h"

static inline void suite_add_test(Suite *s, const char *name, TFun func) {

	TCase *tc = tcase_create(name);
	tcase_add_test(tc, func);
	suite_add_tcase(s, tc);
}
#define suite_add_testfunc(s, func) \
	suite_add_test(s, #func, func)

#define ck_assert_dime_noerror() \
	ck_assert_dime_noerror_impl(__FILE__, __LINE__)
static inline void ck_assert_dime_noerror_impl(const char *filename, int lineno) {
	if (get_last_error() != NULL) {
		dump_error_stack();
		_ck_assert_msg(0, filename, lineno, "get_last_error() == NULL", "Unexpected error", (const char *)0);
	}
}

#endif

{'fraction_non_alphanumeric': 0.125, 'fraction_numerical': 0.002702702702702703, 'mean_word_length': 6.224390243902439, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '7416553', 'n_tokens_mistral': 575, 'n_tokens_neox': 566, 'n_words': 130}