<commit_before>#include <hal.h>

void HalInit(void (*receiver)(uint32_t msg))
{
	char c;

	// Enable interrupts
	HalIsrInstall();
	HalIrqInstall();
	HalTimerInstall();
	asm volatile ("sti");
	
	printk("You may type now...\n");
	char *input = "";
	while (1){
		c = console_readb();
		if (c != 0)
			console_writeb(c);

		switch(c) {
			case 'p':
				stop(0x10, 0x0);
				panic("User initialized");
				break;
			case 'b':
				HalBeep();
				break;
			case 't':
				printk("\nTicks: %i", HalGetTicks());
				break;<commit_msg>Weeee...... it should work on real hardware now! :D<commit_after>#include <buildnum.h>
#include <hal.h>

void HalInit(void (*receiver)(uint32_t msg))
{
	char c;

	// Start the console
	console_init();
	screen_setattr(0x80, 0x80);
	screen_clear();

	printk("Dux OS Build %d %d\n", BUILDNUM);

	// Enable interrupts
	HalIsrInstall();
	HalIrqInstall();
	HalTimerInstall();
	asm volatile ("sti");
	
	printk("You may type now...\n");
	char *input = "";
	while (1){
		c = console_readb();
		if (c != 0)
			console_writeb(c);

		switch(c) {
			case 'p':
				stop(0x10, 0x0);
				panic("User initialized");
				break;
			case 'b':
				HalBeep();
				break;
			case 't':
				printk("\nTicks: %i", HalGetTicks());
				break;
{'fraction_non_alphanumeric': 0.18497576736672053, 'fraction_numerical': 0.01938610662358643, 'mean_word_length': 3.332167832167832, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1390490', 'n_tokens_mistral': 565, 'n_tokens_neox': 473, 'n_words': 118}