<commit_before>#include "string.hpp"

#include <cstdarg>
#include <array>
#include <sstream>
#include <iterator>

#include "debug.hpp"

using namespace utki;

std::string utki::make_string_va_list(const char* format, va_list args){
	std::array<char, 0x400> buf; // first guess is that the resulting string will take less than 1k

	std::string ret;

	auto buf_ptr = &*buf.begin();<commit_msg>fix msvs build<commit_after>#include "string.hpp"

#include <cstdarg> // for varargs
#include <array>
#include <cctype> // for std::isspace()

#include "debug.hpp"

using namespace utki;

std::string utki::make_string_va_list(const char* format, va_list args){
	std::array<char, 0x400> buf; // first guess is that the resulting string will take less than 1k

	std::string ret;

	auto buf_ptr = &*buf.begin();
{'fraction_non_alphanumeric': 0.13391739674593242, 'fraction_numerical': 0.012515644555694618, 'mean_word_length': 5.504065040650406, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, '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': '4398083', 'n_tokens_mistral': 289, 'n_tokens_neox': 274, 'n_words': 85}