<commit_before>/*
 * sample.c
 *
 * Sample code that shows the functionality of printf of printf and uart_getchar();
 *
 */


#include <stdio.h>

#include "serial.h"

static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL,_FDEV_SETUP_WRITE);

int main ( void )
{

	uart_init();

	stdout = &mystdout;

	sei (); // Enable the Global Interrupt Enable flag so that interrupts can be processed
	char c;

	for (;;) // Loop forever
	{
		c = uart_getchar();
		printf("Processing character : ");
		printf("%c\n",c);
	}
}





<commit_msg>no message<commit_after>/*
 * sample.c
 *
 * Sample code that shows the functionality of printf of printf and uart_getchar();
 *
 */


/*
#include <stdio.h>

#include "serial.h"

static FILE mystdout = FDEV_SETUP_STREAM(uart_putchar, NULL,_FDEV_SETUP_WRITE);

int main ( void )
{

	uart_init();

	stdout = &mystdout;

	sei (); // Enable the Global Interrupt Enable flag so that interrupts can be processed
	char c;

	for (;;) // Loop forever
	{
		c = uart_getchar();
		printf("Processing character : ");
		printf("%c\n",c);
	}
}



*/
#include <stdio.h>
#include "dictionary/dictionary.h"
#include "dictionary/skiplist/slhandler.h"

#include "serial.h"

	stdout = &mystdout;

 	sei (); // Enable the Global Interrupt Enable flag so that interrupts can be processed


	dictionary_t dict;
	dictionary_handler_t handler;

	sldict_init(&handler);
	dictionary_create(&handler, &dict, key_type_numeric_signed, 2, 8, 7);

 	char c;
	char* v;

	for (;;) // Loop forever
	{
		c = uart_getchar();
		printf("Processing character : ");
		printf("%c\n",c);
		dictionary_insert(&dict, (ion_key_t) &c, (ion_value_t) (char*) {"toast"});
		dictionary_get(&dict, (ion_key_t) &c, (ion_value_t*) &v);
		printf("At %d we got %s.\n", c, v);
		free(v);
	}
}


{'fraction_non_alphanumeric': 0.14915254237288136, 'fraction_numerical': 0.001694915254237288, 'mean_word_length': 3.946927374301676, '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': '2039676', 'n_tokens_mistral': 694, 'n_tokens_neox': 627, 'n_words': 170}