<commit_before>/**
 * OS/42
 *
 * a blast of an operating system (just kidding)
 *
 * @author <NAME><<EMAIL>>
 * @version 0.0.1
 */

#define __VERSION__ "0.0.1"

#include <types.hpp>
#include <iostream.hpp>
#include <memory/GlobalDescriptorTable.hpp>
#include <interrupts/InterruptManager.hpp>
#include <drivers/Keyboard.hpp>
#include <drivers/Mouse.hpp>

typedef void (*constructor)();
extern "C" constructor start_ctors;
extern "C" constructor end_ctors;
extern "C" void callConstructors() {
    for(constructor* i = &start_ctors; i != &end_ctors; i++)
        (*i)();
}


extern "C" void kernel(void* multibootStruct, uint32_t magicNumber) {
	std::cout << "OS/42 x86_32 " << __VERSION__ << " [" << __DATE__ << "] " << std::endl;
	std::cout << "(C) 2016, <NAME><<EMAIL>>" << std::endl ;
	std::cout << "https://mike-ochmann.de" << std::endl << std::endl;
	std::cout << "[Boot]" << std::endl;
	std::cout << "loading tables" << std::endl;

	memory::GDT gdt;
	interrupts::InterruptManager interruptMgr(0x20, &gdt);

	std::cout << "loading drivers" << std::endl;


	std::cout << "\t- KEYBOARD" << std::endl;
	drivers::Keyboard keyboard(&interruptMgr);

	std::cout << "\t- MOUSE" << std::endl;
	drivers::Mouse mouse(&interruptMgr);

	std::cout << "\tDONE!" << std::endl;

	std::cout << "activating interrupts..." << std::endl;
	interruptMgr.activate();
	std::cout << "\tDONE!" << std::endl << std::endl;

	std::cout << "Welcome!" << std::endl;
	std::cout << "> _";

	while(true);
}<commit_msg>changed boot text<commit_after>/**
 * OS/42
 *
 * a blast of an operating system (just kidding)
 *
 * @author <NAME><<EMAIL>>
 * @version 0.0.1
 */

#define __VERSION__ "0.0.1"

#include <types.hpp>
#include <iostream.hpp>
#include <memory/GlobalDescriptorTable.hpp>
#include <interrupts/InterruptManager.hpp>
#include <drivers/Keyboard.hpp>
#include <drivers/Mouse.hpp>

typedef void (*constructor)();
extern "C" constructor start_ctors;
extern "C" constructor end_ctors;
extern "C" void callConstructors() {
    for(constructor* i = &start_ctors; i != &end_ctors; i++)
        (*i)();
}


extern "C" void kernel(void* multibootStruct, uint32_t magicNumber) {
	std::cout << "MikOsoft OS/42 x86_32 " << __VERSION__ << " [" << __DATE__ << "] " << std::endl;
	std::cout << "(C) 2016, <NAME><<EMAIL>>" << std::endl ;
	std::cout << "https://mike-ochmann.de" << std::endl << std::endl;
	std::cout << "[Boot]" << std::endl;
	std::cout << "loading tables" << std::endl;

	memory::GDT gdt;
	interrupts::InterruptManager interruptMgr(0x20, &gdt);

	std::cout << "loading drivers" << std::endl;


	std::cout << "\t- KEYBOARD" << std::endl;
	drivers::Keyboard keyboard(&interruptMgr);

	std::cout << "\t- MOUSE" << std::endl;
	drivers::Mouse mouse(&interruptMgr);

	std::cout << "\tDONE!" << std::endl;

	std::cout << "activating interrupts..." << std::endl;
	interruptMgr.activate();
	std::cout << "\tDONE!" << std::endl << std::endl;

	std::cout << "Welcome!" << std::endl;
	std::cout << "> _";

	while(true);
}
{'fraction_non_alphanumeric': 0.21664994984954863, 'fraction_numerical': 0.01537947174857907, 'mean_word_length': 4.866666666666666, 'pattern_counts': {'":': 0, '<': 151, '<?xml version=': 0, '>': 29, 'https://': 2, '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': '7609404', 'n_tokens_mistral': 1135, 'n_tokens_neox': 1077, 'n_words': 239}