<commit_before>#include <iostream>
#include <string>

#include <unistd.h>

#include "SimpleGPIO.h"
#include "AddressBus.h"

int main(int argc, char *argv[])
{
	std::cout << "Testing the address bus" << std::endl;
	
	AddressBus the_address_bus;

	for(unsigned short i = 0; i < 4 ; i++) {
		the_address_bus.Set(i);
		::usleep(200000);
	}

	the_address_bus.Set(0x5555);
	std::cout << "Type something to flip\n";
	std::string wait;
	std::cin >> wait;
	the_address_bus.Set(0xAAAA);
	std::cout << "Type something to finish\n";
	std::cin >> wait;

	std::cout << "Finished" << std::endl;
	
	return 0;
}
<commit_msg>Added data bus test and cleaned up user I/O<commit_after>#include <iostream>
#include <string>

#include "SimpleGPIO.h"
#include "AddressBus.h"
#include "DataBus.h"


void TestAddressBus()
{
	std::cout << "Testing the address bus\n";
	
	AddressBus the_address_bus;

	the_address_bus.Set(0x5555);
	std::cout << "Address bus has 0x5555. Press return to flip\n";
	std::cin.get();
	the_address_bus.Set(0xAAAA);
	std::cout << "Press return to finish address bus test\n";
	std::cin.get();

	std::cout << "Finished address bus test\n";
}


void TestDataBus()
{
	std::cout << "Testing the data bus\n";
	
	DataBus the_data_bus;

	the_data_bus.Set(0x55);
	std::cout << "Data bus has 0x55. Press return to flip\n";
	std::cin.get();
	the_data_bus.Set(0xAA);
	std::cout << "Press return to finish data bus test\n";
	std::cin.get();

	std::cout << "Finished data bus test\n";
}


int main(int argc, char *argv[])
{
	TestAddressBus();
	TestDataBus();
		
	return 0;
}

{'fraction_non_alphanumeric': 0.16805644644002565, 'fraction_numerical': 0.021808851828094934, 'mean_word_length': 4.611510791366906, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 12, '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': '5181524', 'n_tokens_mistral': 635, 'n_tokens_neox': 591, 'n_words': 152}