<commit_before>#include "mainwindow.h"
#include <QApplication>
#include <QtGlobal>
#include <iostream>

void customLogHandler(QtMsgType type, const QMessageLogContext &context,
		      const QString &msg)
{
// now output to debugger console
#ifdef Q_OS_WIN
//OutputDebugString(msg.toStdWString().c_str());
#else
	std::cerr << msg.toStdString() << std::endl;
#endif
}

int main(int argc, char *argv[])
{
	// The version that Ubuntu uses for QT isn't hiqh enough to support this, so neither of these will work.
	// commenting both of them out will work
	//QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
	//QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);

	qInstallMessageHandler(&customLogHandler);<commit_msg>attemping a v5.8 install<commit_after>#include "mainwindow.h"
#include <QApplication>
#include <QtGlobal>
#include <iostream>

void customLogHandler(QtMsgType type, const QMessageLogContext &context,
		      const QString &msg)
{
// now output to debugger console
#ifdef Q_OS_WIN
//OutputDebugString(msg.toStdWString().c_str());
#else
	std::cerr << msg.toStdString() << std::endl;
#endif
}

int main(int argc, char *argv[])
{
	QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);

	qInstallMessageHandler(&customLogHandler);
{'fraction_non_alphanumeric': 0.12649164677804295, 'fraction_numerical': 0.0015910898965791568, 'mean_word_length': 6.2298850574712645, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 9, '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': '7158615', 'n_tokens_mistral': 414, 'n_tokens_neox': 404, 'n_words': 103}