<commit_before>#include <liblox/io.h>

#include <kernel/tty/tty.h>
#include <kernel/time.h>
#include <kernel/cpu/task.h>
#include <kernel/syscall/table.h>
#include <kernel/process/process.h>

#include <kernel/rkmalloc/rkmalloc.h>

#include "env.h"
#include "debug.h"

tty_t* console_tty = NULL;

#ifdef USER_RKMALLOC
static rkmalloc_heap kheap;
#endif

void heap_init(void) {
#ifdef USER_RKMALLOC
    kheap.grab_block = raptor_user_malloc;
    kheap.return_block = raptor_user_free;
    rkmalloc_init_heap(&kheap);
#endif
}

rkmalloc_heap* heap_get(void) {
#ifdef USER_RKMALLOC
    return &kheap;
#else
    return NULL;
#endif
}

void paging_init(void) {}

void arch_panic_handler(char* msg) {
    if (msg != NULL) {
        puts(msg);
    }

    raptor_user_abort();
}
<commit_msg>arch-user: Fix the build.<commit_after>#include <liblox/io.h>

#include <kernel/tty/tty.h>
#include <kernel/time.h>
#include <kernel/cpu/task.h>
#include <kernel/syscall/table.h>
#include <kernel/process/process.h>

#include <kernel/rkmalloc/rkmalloc.h>

#include "env.h"
#include "debug.h"

tty_t* console_tty = NULL;

#ifdef USER_RKMALLOC
static rkmalloc_heap kheap;
#endif

void heap_init(void) {
#ifdef USER_RKMALLOC
    kheap.grab_block = raptor_user_malloc;
    kheap.return_block = raptor_user_free;
    rkmalloc_init_heap(&kheap);
#endif
}

rkmalloc_heap* heap_get(void) {
#ifdef USER_RKMALLOC
    return &kheap;
#else
    return NULL;
#endif
}

void paging_init(void) {}

void panic(char* msg) {
    if (msg != NULL) {
        puts(msg);
    }

    raptor_user_abort();
}

{'fraction_non_alphanumeric': 0.1362763915547025, 'fraction_numerical': 0.0, 'mean_word_length': 4.3561643835616435, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '6681289', 'n_tokens_mistral': 653, 'n_tokens_neox': 640, 'n_words': 117}