<commit_before>#include "Stream.h"
#include <cstdarg>

void IStream::Printf(const char* format, ...)
{
	static char buffer[2048];
	va_list args;
	va_start( args, format );
	int bytesWritten = _vsnprintf(buffer, sizeof(buffer), format, args);
	va_end(args);

	assert(bytesWritten < sizeof(buffer));

	ReadImpl(buffer, bytesWritten, 1);
}<commit_msg>Fix IStream::Printf not writing to stream<commit_after>#include "Stream.h"
#include <cstdarg>

void IStream::Printf(const char* format, ...)
{
	static char buffer[2048];
	va_list args;
	va_start( args, format );
	int bytesWritten = _vsnprintf(buffer, sizeof(buffer), format, args);
	va_end(args);

	assert(bytesWritten < sizeof(buffer));

	WriteImpl(buffer, bytesWritten, 1);
}
{'fraction_non_alphanumeric': 0.14620689655172414, 'fraction_numerical': 0.013793103448275862, 'mean_word_length': 6.26, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '5725255', 'n_tokens_mistral': 265, 'n_tokens_neox': 248, 'n_words': 61}