<commit_before>#include "pch.h"
#include "jnc_io_DevMonLib.h"
#include "jnc_io_DeviceMonitor.h"

namespace jnc {
namespace io {

//..............................................................................

JNC_DEFINE_LIB(
	DevMonLib,
	g_devMonLibGuid,
	"DevMonLib",
	"Jancy library for monitoring IO device activity"
	)

JNC_BEGIN_LIB_SOURCE_FILE_TABLE(DevMonLib)
	JNC_LIB_IMPORT("io_DeviceMonitor.jnc")
JNC_END_LIB_SOURCE_FILE_TABLE()

JNC_BEGIN_LIB_OPAQUE_CLASS_TYPE_TABLE(DevMonLib)
	JNC_LIB_OPAQUE_CLASS_TYPE_TABLE_ENTRY(jnc::io::DeviceMonitor)
JNC_END_LIB_OPAQUE_CLASS_TYPE_TABLE()

JNC_BEGIN_LIB_FUNCTION_MAP(DevMonLib)
	JNC_MAP_TYPE(jnc::io::DeviceMonitor)
JNC_END_LIB_FUNCTION_MAP()

//..............................................................................

} // namespace io
} // namespace jnc

//..............................................................................

jnc::DynamicExtensionLibHost* jnc_g_dynamicExtensionLibHost;

extern "C"
AXL_EXPORT
jnc::ExtensionLib*
jncDynamicExtensionLibMain(jnc::DynamicExtensionLibHost* host)
{
	g::getModule()->setTag("jnc_io_devmon");
	err::getErrorMgr()->setForwardRouter(host->m_errorRouter);
	jnc_g_dynamicExtensionLibHost = host;
	return jnc::io::DevMonLib_getLib();
}

//..............................................................................<commit_msg>[jnc_io_devmon] rename: setForwardRouter -> setRouter<commit_after>#include "pch.h"
#include "jnc_io_DevMonLib.h"
#include "jnc_io_DeviceMonitor.h"

namespace jnc {
namespace io {

//..............................................................................

JNC_DEFINE_LIB(
	DevMonLib,
	g_devMonLibGuid,
	"DevMonLib",
	"Jancy library for monitoring IO device activity"
	)

JNC_BEGIN_LIB_SOURCE_FILE_TABLE(DevMonLib)
	JNC_LIB_IMPORT("io_DeviceMonitor.jnc")
JNC_END_LIB_SOURCE_FILE_TABLE()

JNC_BEGIN_LIB_OPAQUE_CLASS_TYPE_TABLE(DevMonLib)
	JNC_LIB_OPAQUE_CLASS_TYPE_TABLE_ENTRY(jnc::io::DeviceMonitor)
JNC_END_LIB_OPAQUE_CLASS_TYPE_TABLE()

JNC_BEGIN_LIB_FUNCTION_MAP(DevMonLib)
	JNC_MAP_TYPE(jnc::io::DeviceMonitor)
JNC_END_LIB_FUNCTION_MAP()

//..............................................................................

} // namespace io
} // namespace jnc

//..............................................................................

jnc::DynamicExtensionLibHost* jnc_g_dynamicExtensionLibHost;

extern "C"
AXL_EXPORT
jnc::ExtensionLib*
jncDynamicExtensionLibMain(jnc::DynamicExtensionLibHost* host)
{
	g::getModule()->setTag("jnc_io_devmon");
	err::getErrorMgr()->setRouter(host->m_errorRouter);
	jnc_g_dynamicExtensionLibHost = host;
	return jnc::io::DevMonLib_getLib();
}

//..............................................................................
{'fraction_non_alphanumeric': 0.3173608551419093, 'fraction_numerical': 0.0, 'mean_word_length': 2.2386634844868736, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '817127', 'n_tokens_mistral': 866, 'n_tokens_neox': 855, 'n_words': 99}