<commit_before>#include <stdio.h>

// This is so that we can access private fields for
// checking their values in tests.
#define protected public
#define private public

#include <Scratch.h>
using namespace Scratch;

static int g_iTestNumber = 1;
static int g_iTestOK = 0;
static int g_iTestFailed = 0;

#if _DEBUG
#define TEST_BREAK() __asm { int 3 };
#else
#define TEST_BREAK()
#endif

#define TESTS(id) \
  aTests.Push() = id; \
  if(strArg == id || strArg == "All")

#define TEST(expr) { \
  printf("TEST %d: (%s) - ", g_iTestNumber, #expr); \
  if(!(expr)) { \
    printf("FAILED!!!\n"); \
    g_iTestFailed++; \
    TEST_BREAK(); \
  } else { \
    printf("OK\n"); \
    g_iTestOK++; \
  } \
  g_iTestNumber++; \
}<commit_msg>Fix TEST_BREAK not working on linux<commit_after>#include <stdio.h>

// This is so that we can access private fields for
// checking their values in tests.
#define protected public
#define private public

#include <Scratch.h>
using namespace Scratch;

static int g_iTestNumber = 1;
static int g_iTestOK = 0;
static int g_iTestFailed = 0;

#if DEBUG
  #if WINDOWS
    #define TEST_BREAK() __asm { int 3 };
  #else
    #define TEST_BREAK() __asm__("int $0x03");
  #endif
#else
  #define TEST_BREAK()
#endif

#define TESTS(id) \
  aTests.Push() = id; \
  if(strArg == id || strArg == "All")

#define TEST(expr) { \
  printf("TEST %d: (%s) - ", g_iTestNumber, #expr); \
  if(!(expr)) { \
    printf("FAILED!!!\n"); \
    g_iTestFailed++; \
    TEST_BREAK(); \
  } else { \
    printf("OK\n"); \
    g_iTestOK++; \
  } \
  g_iTestNumber++; \
}
{'fraction_non_alphanumeric': 0.16422660725652452, 'fraction_numerical': 0.007001909611712286, 'mean_word_length': 3.2717391304347827, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3188328', 'n_tokens_mistral': 616, 'n_tokens_neox': 596, 'n_words': 161}