<commit_before>#include "../headers/server_config.h"
#include <QJsonDocument>
#include <QJsonObject>
#include <QFile>
#include <log.h>

ServerConfig::ServerConfig(){
	// default settings
	TAG = "ServerConfig";

    QStringList sFilenames;
    sFilenames << "/etc/freehackquest-backend/conf.ini";
    sFilenames << "etc/freehackquest-backend/conf.ini";
    sFilenames << "conf.ini";
    for(int i = 0; i < sFilenames.size(); i++){
        QString tmp = sFilenames[i];
        if(QFile::exists(tmp)){
            m_sFilename = tmp;
			Log::info(TAG, "Found config file " + tmp);
            break;
        }else{
			Log::warn(TAG, "Not found possible config file " + tmp);
        }
    }

	m_bServer_ssl_on = false;
	m_sDatabase_host = "localhost";
	m_sDatabase_name = "freehackquest";
	m_sDatabase_user = "freehackquest_u";
	m_sDatabase_password = "<PASSWORD>";

	m_sEmail_smtphost = "smtp.gmail.com";
	m_nEmail_smtpport = 465;
	m_sEmail_username = "";
	m_sEmail_password = "";

	m_nServer_port = 1234;<commit_msg>conf.ini will be search near with binary firt<commit_after>#include "../headers/server_config.h"
#include <QJsonDocument>
#include <QJsonObject>
#include <QFile>
#include <log.h>

ServerConfig::ServerConfig(){
	// default settings
	TAG = "ServerConfig";

    QStringList sFilenames;
    sFilenames << "conf.ini";
    sFilenames << "/etc/freehackquest-backend/conf.ini";
    sFilenames << "etc/freehackquest-backend/conf.ini";
    for(int i = 0; i < sFilenames.size(); i++){
        QString tmp = sFilenames[i];
        if(QFile::exists(tmp)){
            m_sFilename = tmp;
			Log::info(TAG, "Found config file " + tmp);
            break;
        }else{
			Log::warn(TAG, "Not found possible config file " + tmp);
        }
    }

	m_bServer_ssl_on = false;
	m_sDatabase_host = "localhost";
	m_sDatabase_name = "freehackquest";
	m_sDatabase_user = "freehackquest_u";
	m_sDatabase_password = "<PASSWORD>";

	m_sEmail_smtphost = "smtp.gmail.com";
	m_nEmail_smtpport = 465;
	m_sEmail_username = "";
	m_sEmail_password = "";

	m_nServer_port = 1234;
{'fraction_non_alphanumeric': 0.14320388349514562, 'fraction_numerical': 0.007766990291262136, 'mean_word_length': 3.6523702031602707, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 13, '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': '1863423', 'n_tokens_mistral': 785, 'n_tokens_neox': 755, 'n_words': 140}