<commit_before>#pragma once
#ifndef BPPDefaultConsoleLogger_inl__
#define BPPDefaultConsoleLogger_inl__
#include <vector>
#include <iostream>

using namespace std;

namespace bpp
{
	inline void DefaultConsoleLogger::Log( const std::vector< ResultScope* >& scopes )
	{
		for( ResultScope* scope : scopes )
		{
			cout << scope->ScopeName() << ":" << std::endl;
			for( ResultContainer result : scope->Results() )
			{
				cout << "\t" << result.Item()->Name() << "\t" << result.AverageResult().Span().Seconds() << std::endl;
			}
		}
	}
}

#endif // BPPDefaultConsoleLogger_inl__<commit_msg>Changed implementation of the default Logger to avoid unnessecary copying of results<commit_after>#pragma once
#ifndef BPPDefaultConsoleLogger_inl__
#define BPPDefaultConsoleLogger_inl__
#include <vector>
#include <iostream>

using namespace std;

namespace bpp
{
	inline void DefaultConsoleLogger::Log( const std::vector< ResultScope* >& scopes )
	{
		for( ResultScope* scope : scopes )
		{
			cout << scope->ScopeName() << ":" << std::endl;
			for( auto& result : scope->Results() )
			{
				cout << "\t" << result.Item()->Name() << "\t" << result.AverageResult().Span().Seconds() << std::endl;
			}
		}
	}
}

#endif // BPPDefaultConsoleLogger_inl__
{'fraction_non_alphanumeric': 0.15551974214343273, 'fraction_numerical': 0.0, 'mean_word_length': 4.697247706422019, 'pattern_counts': {'":': 2, '<': 41, '<?xml version=': 0, '>': 15, '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': '5202285', 'n_tokens_mistral': 432, 'n_tokens_neox': 400, 'n_words': 92}