<commit_before>#include "models/md5-database/md5-database-sqlite.h"
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlRecord>
#include <utility>
#include "logger.h"


Md5DatabaseSqlite::Md5DatabaseSqlite(QString path, QSettings *settings)
	: Md5Database(settings), m_path(std::move(path))
{
	// Use SQLite database for tests
	m_database = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
	m_database.setDatabaseName(m_path);
	if (!m_database.open()) {
		log(QStringLiteral("Could not open MD5 database: %1").arg(m_database.lastError().text()), Logger::Error);
		return;
	}
<commit_msg>Add missing QVariant include for SQLite database<commit_after>#include "models/md5-database/md5-database-sqlite.h"
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlRecord>
#include <QVariant>
#include <utility>
#include "logger.h"


Md5DatabaseSqlite::Md5DatabaseSqlite(QString path, QSettings *settings)
	: Md5Database(settings), m_path(std::move(path))
{
	// Use SQLite database for tests
	m_database = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
	m_database.setDatabaseName(m_path);
	if (!m_database.open()) {
		log(QStringLiteral("Could not open MD5 database: %1").arg(m_database.lastError().text()), Logger::Error);
		return;
	}

{'fraction_non_alphanumeric': 0.14749034749034748, 'fraction_numerical': 0.010810810810810811, 'mean_word_length': 7.697986577181208, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '976687', 'n_tokens_mistral': 458, 'n_tokens_neox': 449, 'n_words': 84}