<commit_before>#include "FileSystem.h"
#include <iostream>
#include "string.h"
using namespace std;
int main(){
	//link blocks
	// for (int i = 0; i <DISK_SIZE; i++){
	// 	DiskBlockType *myBuffer = new DiskBlockType(BLOCK_SIZE);
	// 	myDisk.read(i, myBuffer);
	// 	for (int j = 0; j < BLOCK_SIZE; j++)
	// 		printf("%d\n", myBuffer->data[j]);
	// 	delete myBuffer;
	// }

	FileSystem FS;

	string eqBuf = string(50,'=');
	cout << eqBuf << "\n\nCreating files\n\n" << eqBuf << "\n\n";
	// Create files
	string hello = "hello.txt",
		   goodbye = "goodbye.txt",
		   hola = "HOLA.txt";

	cout << FS.create(hello) << " & "
	     << FS.create(goodbye) << " & "
		 << FS.create(hola) << endl;
	
	/*
	 * Test writing to files
	 */
	char test1[] = "Hello";
	char test2[] = ", my name is <NAME>";
	char test3[] = "This is a test sentence.";
	char test4[] = ". \n";
	char test5[] = "Still Appending to a fi";
	char test6[] = "le. Bye! And now I am trying to cause the disk to run out of space itshouldstophere blaaaaaaaaaa";
	char test7[] = "bitshouldstop";
	char test[256];

	cout << "\n\n" << eqBuf << "\n\nTest writing files\n\n" << eqBuf << "\n\n";

	cout << "\nOpening and writing to " << hello << endl;
	if(FS.open(hello, 'w') != -1) {<commit_msg>--latest and greatest<commit_after>#include "FileSystem.h"
#include <iostream>
#include "string.h"
using namespace std;
int main(){
	//link blocks
	// for (int i = 0; i <DISK_SIZE; i++){
	// 	DiskBlockType *myBuffer = new DiskBlockType(BLOCK_SIZE);
	// 	myDisk.read(i, myBuffer);
	// 	for (int j = 0; j < BLOCK_SIZE; j++)
	// 		printf("%d\n", myBuffer->data[j]);
	// 	delete myBuffer;
	// }

	FileSystem FS;

	string eqBuf = string(50,'=');
	cout << eqBuf << "\n\nCreating files\n\n" << eqBuf << "\n\n";
	// Create files
	string hello = "hello.txt",
		   goodbye = "goodbye.txt",
		   hola = "HOLA.txt";

	cout << FS.create(hello) << " & "
	     << FS.create(goodbye) << " & "
		 << FS.create(hola) << endl;
		
	/*
	 * Test writing to files
	 */
	char test1[] = "Hello";
	char test2[] = ", my name is <NAME>";
	char test3[] = "This is a test sentence.";
	char test4[] = ". \n";
	char test5[] = "Still Appending to a fi";
	char test6[] = "le. Bye! And now I am trying to cause the disk to run out of space itshouldstophere blaaaaaaaaaa";
	char test7[] = "bitshouldstop";
	char test[256];

	cout << "\n\n" << eqBuf << "\n\nTest writing files\n\n" << eqBuf << "\n\n";

	cout << "\nOpening and writing to " << hello << endl;
	if(FS.open(hello, 'w') != -1) {
{'fraction_non_alphanumeric': 0.20344413295955147, 'fraction_numerical': 0.012014417300760914, 'mean_word_length': 3.0684039087947883, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1504175', 'n_tokens_mistral': 1015, 'n_tokens_neox': 952, 'n_words': 272}