<commit_before>#include "defines.h"
#include "Dcx.h"

mIRCLinker::mIRCLinker(void) : m_hFileMap(NULL),
                               m_pData(NULL),
                               m_mIRCHWND(NULL),
							   m_dwVersion(0x0),
							   m_iMapCnt(0),
							   m_hSwitchbar(NULL),
							   m_hToolbar(NULL),
							   m_hTreebar(NULL),
							   m_hMDI(NULL),
							   m_hTreeview(NULL),
							   m_hTreeFont(NULL),
							   m_hTreeImages(NULL),
							   m_sLastError(""),
							   m_wpmIRCDefaultWndProc(NULL),
							   m_bDebug(false)
{
}

mIRCLinker::~mIRCLinker(void)
{
}

bool mIRCLinker::isDebug() const
{
	return m_bDebug;
}

bool mIRCLinker::isVersion(const WORD main, const WORD sub) const {
	return getMainVersion() == main && getSubVersion() == sub;
}

bool mIRCLinker::isOrNewerVersion(const WORD main, const WORD sub) const {
	return getMainVersion() > main || (getMainVersion() == main && getSubVersion() >= sub);
}

bool mIRCLinker::isAlias(const char * aliasName)
{
	// check if the alias exists
	return evalex(NULL, 0, "$isalias(%s)", aliasName);<commit_msg>[mIRCLinker] removed unneeded setting of m_sLastError to "". Dev Build 11 released to forum.<commit_after>#include "defines.h"
#include "Dcx.h"

mIRCLinker::mIRCLinker(void) : m_hFileMap(NULL),
                               m_pData(NULL),
                               m_mIRCHWND(NULL),
							   m_dwVersion(0x0),
							   m_iMapCnt(0),
							   m_hSwitchbar(NULL),
							   m_hToolbar(NULL),
							   m_hTreebar(NULL),
							   m_hMDI(NULL),
							   m_hTreeview(NULL),
							   m_hTreeFont(NULL),
							   m_hTreeImages(NULL),
							   //m_sLastError(""),
							   m_wpmIRCDefaultWndProc(NULL),
							   m_bDebug(false)
{
}

mIRCLinker::~mIRCLinker(void)
{
}

bool mIRCLinker::isDebug() const
{
	return m_bDebug;
}

bool mIRCLinker::isVersion(const WORD main, const WORD sub) const {
	return getMainVersion() == main && getSubVersion() == sub;
}

bool mIRCLinker::isOrNewerVersion(const WORD main, const WORD sub) const {
	return getMainVersion() > main || (getMainVersion() == main && getSubVersion() >= sub);
}

bool mIRCLinker::isAlias(const char * aliasName)
{
	// check if the alias exists
	return evalex(NULL, 0, "$isalias(%s)", aliasName);
{'fraction_non_alphanumeric': 0.12929112795363354, 'fraction_numerical': 0.004458314757021846, 'mean_word_length': 2.8033898305084746, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1623717', 'n_tokens_mistral': 980, 'n_tokens_neox': 794, 'n_words': 147}