<commit_before>#include "Log.h"
#include <fstream>

int main () {
	{
		// Example setting the output to a file
		std::ofstream f("log.txt", std::ios::app);
		Log::Init(f);
		
		LOG_DEBUG << "Hello world!";
		LOG				<< "Hello world!";
		LOG_WARN	<< "Hello world!";
		LOG_ERROR << "Hello world!";

		Log::Level(Log::LogLevel::WARN);	
		LOG_DEBUG << "Hello world! 2";
		LOG				<< "Hello world! 2";
		LOG_WARN	<< "Hello world! 2";
		LOG_ERROR << "Hello world! 2";
	
	} // RAII closes the file here

	// Default behaviur. outputs to std::clog (std::cerr)
	Log::Init();
	
	LOG_DEBUG << "Hi mom!";
	LOG				<< "Yo should know that";
	LOG_WARN	<< "Danger <NAME>";
	LOG_ERROR << "404!";

	Log::Level(Log::LogLevel::WARN);	
	LOG_DEBUG << "You should see this";
	LOG				<< "Too verbose...";
	LOG_WARN	<< "Alarm!";
	LOG_ERROR << "Dave, don't do that";

	return 0;
}
<commit_msg>Fix typo<commit_after>#include "Log.h"
#include <fstream>

int main () {
	{
		// Example setting the output to a file
		std::ofstream f("log.txt", std::ios::app);
		Log::Init(f);
		
		LOG_DEBUG << "Hello world!";
		LOG				<< "Hello world!";
		LOG_WARN	<< "Hello world!";
		LOG_ERROR << "Hello world!";

		Log::Level(Log::LogLevel::WARN);	
		LOG_DEBUG << "Hello world! 2";
		LOG				<< "Hello world! 2";
		LOG_WARN	<< "Hello world! 2";
		LOG_ERROR << "Hello world! 2";
	
	} // RAII closes the file here

	// Default behaviur. outputs to std::clog (std::cerr)
	Log::Init();
	
	LOG_DEBUG << "Hi mom!";
	LOG				<< "Yo should know that";
	LOG_WARN	<< "Danger <NAME>";
	LOG_ERROR << "404!";

	Log::Level(Log::LogLevel::WARN);	
	LOG_DEBUG << "You shouldn't see this";
	LOG				<< "Too verbose...";
	LOG_WARN	<< "Alarm!";
	LOG_ERROR << "Dave, don't do that";

	return 0;
}

{'fraction_non_alphanumeric': 0.19618055555555555, 'fraction_numerical': 0.009259259259259259, 'mean_word_length': 3.55, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 7, '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': '6155017', 'n_tokens_mistral': 747, 'n_tokens_neox': 657, 'n_words': 179}