<commit_before>#include "RASDemo.h"

#include <RASLib/inc/common.h>
#include <RASLib/inc/uart.h>

void uartDemo(void) {
	Printf("tell me something! (science)\n-> ");
	
	{
		char charArray[100];
		Gets(charArray, 100);
		Printf("you said, \"%s\"\n", charArray);
		Printf("thanks for the input!\n");
	}
	
	{
		char newline = 13;
		char ch = Getc();
		while(ch != newline) {
			ch = Getc();
			Putc(ch);
		}
	}
}<commit_msg>Updated UARTDemo.c file, loops better and removed brackets<commit_after>#include "RASDemo.h"

#include <RASLib/inc/common.h>
#include <RASLib/inc/uart.h>

void uartDemo(void) {
	char charArray[100];
	char ESC = 27;
	char ch = 0;
	while(ch != ESC) {
		Printf("tell me something! (science)\n-> ");
		Gets(charArray, 100);
		Printf("you said, \"%s\"\n", charArray);
		Printf("Thanks for the input! Press ESC to exit, or any other key to continue\n");
		ch = Getc();
	}
}
{'fraction_non_alphanumeric': 0.18243243243243243, 'fraction_numerical': 0.019144144144144143, 'mean_word_length': 3.8315217391304346, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '610992', 'n_tokens_mistral': 398, 'n_tokens_neox': 353, 'n_words': 86}