<commit_before>#include "mesh.h"
#include "serialize.h"
#include <fstream>

namespace ve
{
	Mesh::Mesh()
	{
	}

	Mesh::Mesh(std::string const & filename)
	{
		std::fstream in(filename, std::fstream::in | std::fstream::binary);
		deserialize(in, numIndicesPerPrimitive);
		deserialize(in, numVerticesPerFrame);
		deserialize(in, formatTypes);
		deserialize(in, vertices);
		deserialize(in, indices);
	}

	void Mesh::save(std::string const & filename) const
	{
		std::fstream out(filename, std::fstream::out | std::fstream::binary);
		serialize(out, numIndicesPerPrimitive);
		serialize(out, numVerticesPerFrame);
		serialize(out, formatTypes);
		serialize(out, vertices);
		serialize(out, indices);
	}
}
<commit_msg>Added cache instantiation for mesh<commit_after>#include "mesh.h"
#include "serialize.h"
#include <fstream>

namespace ve
{
	Cache<Mesh> Mesh::cache;

	Mesh::Mesh()
	{
	}

	Mesh::Mesh(std::string const & filename)
	{
		std::fstream in(filename, std::fstream::in | std::fstream::binary);
		deserialize(in, numIndicesPerPrimitive);
		deserialize(in, numVerticesPerFrame);
		deserialize(in, formatTypes);
		deserialize(in, vertices);
		deserialize(in, indices);
	}

	void Mesh::save(std::string const & filename) const
	{
		std::fstream out(filename, std::fstream::out | std::fstream::binary);
		serialize(out, numIndicesPerPrimitive);
		serialize(out, numVerticesPerFrame);
		serialize(out, formatTypes);
		serialize(out, vertices);
		serialize(out, indices);
	}
}

{'fraction_non_alphanumeric': 0.15223274695534506, 'fraction_numerical': 0.0, 'mean_word_length': 6.432160804020101, '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': '4113126', 'n_tokens_mistral': 518, 'n_tokens_neox': 506, 'n_words': 96}