<commit_before>#include "headers/dungeon_data.h"

#define TAB "\t"

using namespace std;

string DungeonRoom::toString()
{
	ostringstream sout;
	sout << "{" << endl;
	sout << TAB << TAB << TAB << "\"ID\":\"" << uid << "\"," << endl;
	sout << TAB << TAB << TAB << "\"Name\":\"" << name << "\"," << endl;
	sout << TAB << TAB << TAB << "\"Description\":\"" << description << "\"," << endl;

	sout << TAB << TAB << TAB << "\"Objects\":[" << endl;
	for (int i = 0; i < objects.size(); i++) {
		sout << TAB << TAB << TAB << TAB << "{" << objects[i]->toString() << "}," << endl;
	}
	sout << TAB << TAB << TAB << "]," << endl;

	sout << TAB << TAB << TAB << "\"Creatures\":[" << endl;
	for (int i = 0; i < creatures.size(); i++) {
		sout << TAB << TAB << TAB << TAB << "{" << creatures[i]->toString() << "}," << endl;
	}
	sout << TAB << TAB << TAB << "]," << endl;

	sout << TAB << TAB << TAB << "\"Exits\":[" << endl;
	for (int i = 0; i < exits.size(); i++) {
		sout << TAB << TAB << TAB << TAB << "{" << exits[i]->toString() << "}," << endl;
	}
	sout << TAB << TAB << TAB << "]" << endl;
	sout << TAB << TAB << "}" << endl;
	return sout.str();
}
string DungeonExit::toString()
{
	ostringstream sout;
	return sout.str();
}
string DungeonObject::toString()
{
	ostringstream sout;
	return sout.str();
}
string DungeonCreature::toString()
{
	ostringstream sout;
	return sout.str();
}<commit_msg>Now does one room JSON.<commit_after>#include "headers/dungeon_data.h"

#define TAB "\t"

using namespace std;

string DungeonRoom::toString()
{
	ostringstream sout;
	sout << "{" << endl;
	sout << TAB << TAB << TAB << "\"ID\":\"" << uid << "\"," << endl;
	sout << TAB << TAB << TAB << "\"Name\":\"" << name << "\"," << endl;
	sout << TAB << TAB << TAB << "\"Description\":\"" << description << "\"," << endl;

	sout << TAB << TAB << TAB << "\"Objects\":[" << endl;
	for (int i = 0; i < objects.size(); i++) {
		sout << TAB << TAB << TAB << TAB << "{" << objects[i]->toString() << "}," << endl;
	}
	sout << TAB << TAB << TAB << "]," << endl;

	sout << TAB << TAB << TAB << "\"Creatures\":[" << endl;
	for (int i = 0; i < creatures.size(); i++) {
		sout << TAB << TAB << TAB << TAB << "{" << creatures[i]->toString() << "}," << endl;
	}
	sout << TAB << TAB << TAB << "]," << endl;

	sout << TAB << TAB << TAB << "\"Exits\":[" << endl;
	for (int i = 0; i < exits.size(); i++) {
		sout << TAB << TAB << TAB << TAB << "{" << exits[i]->toString() << "}," << endl;
	}
	sout << TAB << TAB << TAB << "]" << endl;
	sout << TAB << TAB << "}" << endl;
	return sout.str();
}
string DungeonExit::toString()
{
	ostringstream sout;
	sout << "\"Name\":\"" << name << "\", \"Description\":\"" << description 
		 << "\", \"links\":" << room->uid;
	return sout.str();
}
string DungeonObject::toString()
{
	ostringstream sout;
	sout << "\"Name\":\"" << name << "\", \"Description\":\"" << description << "\"";
	return sout.str();
}
string DungeonCreature::toString()
{
	ostringstream sout;
	sout << "\"Name\":\"" << name << "\", \"Description\":\"" << description
		 << "\", \"hitpoints\":" << hitpoints << ", \"Alignment\":" << alignment;
	return sout.str();
}
{'fraction_non_alphanumeric': 0.29664, 'fraction_numerical': 0.00192, 'mean_word_length': 3.3057851239669422, 'pattern_counts': {'":': 21, '<': 371, '<?xml version=': 0, '>': 10, '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': '5979256', 'n_tokens_mistral': 1223, 'n_tokens_neox': 1109, 'n_words': 293}