<commit_before>#include "minunit.h"

static int foo = 0;
static int bar = 0;
static double dbar = 0.1;

void test_setup() {
	foo = 7;
	bar = 4;
}

void test_teardown() {
	// Nothing
}

MU_TEST(test_check) {
	mu_check(foo == 7);
}

MU_TEST(test_check_fail) {
	mu_check(foo != 7);
}

MU_TEST(test_assert) {
	mu_assert(foo == 7, "foo should be 7");
}

MU_TEST(test_assert_fail) {
	mu_assert(foo != 7, "foo should be <> 7");
}

MU_TEST(test_assert_int_eq) {
	mu_assert_int_eq(4, bar);
}

MU_TEST(test_assert_int_eq_fail) {
	mu_assert_int_eq(5, bar);
}

MU_TEST(test_fail) {
	mu_fail("Fail now!");
}


MU_TEST_SUITE(test_suite) {
	MU_SUITE_CONFIGURE(&test_setup, &test_teardown);

	MU_RUN_TEST(test_check);
	MU_RUN_TEST(test_assert);
	MU_RUN_TEST(test_assert_int_eq);

	MU_RUN_TEST(test_check_fail);
	MU_RUN_TEST(test_assert_fail);
	MU_RUN_TEST(test_assert_int_eq_fail);

	MU_RUN_TEST(test_fail);
}

int main(int argc, char *argv[]) {
	MU_RUN_SUITE(test_suite);
	MU_REPORT();
	return 0;
}

<commit_msg>Fixed example<commit_after>#include "minunit.h"

static int foo = 0;
static int bar = 0;

void test_setup() {
    foo = 7;
    bar = 4;
}

void test_teardown() {
    // Nothing
}

MU_TEST(test_check) {
    mu_check(foo == 7);
}

MU_TEST(test_check_fail) {
    mu_check(foo != 7);
}

MU_TEST(test_assert) {
    mu_assert(foo == 7, "foo should be 7");
}

MU_TEST(test_assert_fail) {
    mu_assert(foo != 7, "foo should be <> 7");
}

MU_TEST(test_assert_int_eq) {
    mu_assert_int_eq(4, bar);
}

MU_TEST(test_assert_int_eq_fail) {
    mu_assert_int_eq(5, bar);
}

MU_TEST(test_mu_assert_float_eq) {
    mu_assert_float_eq(4.3, 4.3);
}

MU_TEST(test_mu_assert_float_eq_fail) {
    mu_assert_float_eq(5, 5.3);
}

MU_TEST(test_fail) {
    mu_fail("Fail now!");
}

MU_TEST(test_confirm) {
    mu_confirm("Everything ok?");
}


MU_TEST_SUITE(test_suite) {
    MU_SUITE_CONFIGURE(&test_setup, &test_teardown);

    MU_RUN_TEST(test_check);
    MU_RUN_TEST(test_assert);
    MU_RUN_TEST(test_assert_int_eq);
    MU_RUN_TEST(test_mu_assert_float_eq);


    MU_RUN_TEST(test_check_fail);
    MU_RUN_TEST(test_assert_fail);
    MU_RUN_TEST(test_assert_int_eq_fail);
    MU_RUN_TEST(test_mu_assert_float_eq_fail);

    MU_RUN_TEST(test_fail);
    MU_RUN_TEST(test_confirm);
}

MU_INIT();

int main() {
    MU_RUN_SUITE(test_suite);
    MU_REPORT();
    return 0;
}
{'fraction_non_alphanumeric': 0.13713798977853492, 'fraction_numerical': 0.014906303236797274, 'mean_word_length': 4.916876574307305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6407110', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1037, 'n_words': 149}