<commit_before>#ifndef __TEST_H__
#define __TEST_H__

static int test_passed = 0;
static int test_failed = 0;
static int spec = 0;

/* Terminate current test with error */
#define fail(message)	{ if (spec) { printf("  𝙭 %s (%d)\n", message, __LINE__); } else { printf("𝙭"); } }

/* Successfull end of the test case */
#define done() return 0

/* Check single condition */
#define check(cond,message) do { if (!(cond)) { fail(message); test_failed++; } else { if (spec) { printf("  ✓ %s\n", message); } else { printf("."); } test_passed++; } } while (0)

/* Test runner */
static void test (int (*func)(void), const char *name) {
  int r;
  if (spec) {
    printf("%s\n", name);
  }
  r = func();
}

#endif /* __TEST_H__ */
<commit_msg>add extra carriage return for tests<commit_after>#ifndef __TEST_H__
#define __TEST_H__

static int test_passed = 0;
static int test_failed = 0;
static int spec = 0;

/* Terminate current test with error */
#define fail(message)	{ if (spec) { printf("  𝙭 %s (%d)\n", message, __LINE__); } else { printf("𝙭"); } }

/* Successfull end of the test case */
#define done() return 0

/* Check single condition */
#define check(cond,message) do { if (!(cond)) { fail(message); test_failed++; } else { if (spec) { printf("  ✓ %s\n", message); } else { printf("."); } test_passed++; } } while (0)

/* Test runner */
static void test (int (*func)(void), const char *name) {
  int r;
  if (spec) {
    printf("\n%s\n", name);
  }
  r = func();
}

#endif /* __TEST_H__ */

{'fraction_non_alphanumeric': 0.1854082998661312, 'fraction_numerical': 0.006693440428380187, 'mean_word_length': 3.7763578274760383, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1294316', 'n_tokens_mistral': 534, 'n_tokens_neox': 525, 'n_words': 175}