<commit_before>#include "error.hpp"

#include <iostream>

namespace bim {
	void defaultCallback(MessageType _type, const std::string& _message)
	{
		switch(_type)
		{
		case MessageType::INFO:    std::cerr << "INF: " << _message.c_str() << '\n'; break;
		case MessageType::WARNING: std::cerr << "WAR: " << _message.c_str() << '\n'; break;
		case MessageType::ERROR:   std::cerr << "ERR: " << _message.c_str() << '\n'; break;
		default: std::cerr << "???: " << _message.c_str() << '\n'; break;
		}
	}

	namespace details
	{
		MessageCallback g_theCallback = defaultCallback;
	}

	void setMessageCallback(MessageCallback _callback)
	{
		details::g_theCallback = _callback;
	}

}<commit_msg>removed redundant line breaks of assimp messages<commit_after>#include "error.hpp"

#include <iostream>

namespace bim {
	void defaultCallback(MessageType _type, const std::string& _message)
	{
		switch(_type)
		{
		case MessageType::INFO:    std::cerr << "INF: " << _message.c_str(); break;
		case MessageType::WARNING: std::cerr << "WAR: " << _message.c_str(); break;
		case MessageType::ERROR:   std::cerr << "ERR: " << _message.c_str(); break;
		default: std::cerr << "???: " << _message.c_str(); break;
		}
		if(_message.back() != '\n') std::cerr << '\n';
	}

	namespace details
	{
		MessageCallback g_theCallback = defaultCallback;
	}

	void setMessageCallback(MessageCallback _callback)
	{
		details::g_theCallback = _callback;
	}

}
{'fraction_non_alphanumeric': 0.17366946778711484, 'fraction_numerical': 0.0, 'mean_word_length': 4.670634920634921, 'pattern_counts': {'":': 0, '<': 47, '<?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': '7339791', 'n_tokens_mistral': 525, 'n_tokens_neox': 497, 'n_words': 104}