<commit_before>#include <stdio.h>

#include <Logging.h>
#include <ZipFile.h>

int main()
{
	v::Log::Level = v::Log::LogLevel_Trace;

	v::Log::Debug("Creating zip file");

	{
		v::ZipFile zip;
		zip.Read("meow.zip");

		s::StackArray<v::ZipEntry> entries;
		zip.GetEntries(entries);

		for (auto &entry : entries) {
			v::Log::Debug("Zip entry %1: %2", FVAR(entry.GetIndex()), FVAR(entry.GetName()));

			s::MemoryStream strm;
			entry.Read(strm);
			v::Log::Debug("Contents at %1 with size %2", FVAR(strm.strm_pubBuffer), FVAR(strm.Size()));
		}
	}

	v::Log::Debug("Meow.zip created");

	getchar();
	return 0;
}<commit_msg>Clean up and error example<commit_after>#include <stdio.h>

#include <Logging.h>
#include <ZipFile.h>

int main()
{
	v::Log::Level = v::Log::LogLevel_Trace;

	v::Log::Debug("Reading zip file test.zip");

	try {
		v::ZipFile zip;
		zip.Read("test.zip");

		s::StackArray<v::ZipEntry> entries;
		zip.GetEntries(entries);

		for (auto &entry : entries) {
			v::Log::Debug("Zip entry %1: %2", FVAR(entry.GetIndex()), FVAR(entry.GetName()));

			s::MemoryStream strm;
			entry.Read(strm);
			v::Log::Debug("Contents at %1 with size %2", FVAR(strm.strm_pubBuffer), FVAR(strm.Size()));
		}
	} catch (s::Exception ex) {
		v::Log::Fatal("Error: %1", FVAR(ex.Message));
	}

	getchar();
	return 0;
}
{'fraction_non_alphanumeric': 0.2120518688024409, 'fraction_numerical': 0.008390541571319604, 'mean_word_length': 4.883408071748879, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '6667114', 'n_tokens_mistral': 572, 'n_tokens_neox': 513, 'n_words': 100}