<commit_before>#include "tagha.h"

CTagha::CTagha(void *script)
{
	Tagha_Init((struct Tagha *)this, script);
}

CTagha::CTagha(void *script, const struct CNativeInfo natives[])
{
	Tagha_Init((struct Tagha *)this, script);
	Tagha_RegisterNatives((struct Tagha *)this, (const struct NativeInfo *)natives);
}

CTagha::~CTagha()
{
	
}

bool CTagha::RegisterNatives(const struct CNativeInfo natives[])
{
	return Tagha_RegisterNatives((struct Tagha *)this, (const struct NativeInfo *)natives);
}

void *CTagha::GetGlobalVarByName(const char varname[])
{
	return Tagha_GetGlobalVarByName((struct Tagha *)this, varname);
}

int32_t CTagha::CallFunc(const char funcname[], const size_t args, union TaghaVal params[])
{
	return Tagha_CallFunc((struct Tagha *)this, funcname, args, params);
}

union TaghaVal CTagha::GetReturnValue()
{
	return Tagha_GetReturnValue((struct Tagha *)this);
}

int32_t CTagha::RunScript(int32_t argc, char *argv[])
{
	return Tagha_RunScript((struct Tagha *)this, argc, argv);
}

const char *CTagha::GetError()
{
	return Tagha_GetError((struct Tagha *)this);
}

void CTagha::PrintVMState()
{
	Tagha_PrintVMState((struct Tagha *)this);
}

void *CTagha::GetRawScriptPtr()
{
	return Tagha_GetRawScriptPtr((struct Tagha *)this);
}

void CTagha::ThrowError(const int32_t err)
{
	Tagha_ThrowError((struct Tagha *)this, err);
}

/////////////////////////////////////////////////////////////////////////////////<commit_msg>Adding Export define to C++ Tagha interface method implementations.<commit_after>#include "tagha.h"

TAGHA_EXPORT CTagha::CTagha(void *script)
{
	Tagha_Init((struct Tagha *)this, script);
}

TAGHA_EXPORT CTagha::CTagha(void *script, const struct CNativeInfo natives[])
{
	Tagha_Init((struct Tagha *)this, script);
	Tagha_RegisterNatives((struct Tagha *)this, (const struct NativeInfo *)natives);
}

TAGHA_EXPORT CTagha::~CTagha()
{
	
}

TAGHA_EXPORT bool CTagha::RegisterNatives(const struct CNativeInfo natives[])
{
	return Tagha_RegisterNatives((struct Tagha *)this, (const struct NativeInfo *)natives);
}

TAGHA_EXPORT void *CTagha::GetGlobalVarByName(const char varname[])
{
	return Tagha_GetGlobalVarByName((struct Tagha *)this, varname);
}

TAGHA_EXPORT int32_t CTagha::CallFunc(const char funcname[], const size_t args, union TaghaVal params[])
{
	return Tagha_CallFunc((struct Tagha *)this, funcname, args, params);
}

TAGHA_EXPORT union TaghaVal CTagha::GetReturnValue()
{
	return Tagha_GetReturnValue((struct Tagha *)this);
}

TAGHA_EXPORT int32_t CTagha::RunScript(int32_t argc, char *argv[])
{
	return Tagha_RunScript((struct Tagha *)this, argc, argv);
}

TAGHA_EXPORT const char *CTagha::GetError()
{
	return Tagha_GetError((struct Tagha *)this);
}

TAGHA_EXPORT void CTagha::PrintVMState()
{
	Tagha_PrintVMState((struct Tagha *)this);
}

TAGHA_EXPORT void *CTagha::GetRawScriptPtr()
{
	return Tagha_GetRawScriptPtr((struct Tagha *)this);
}

TAGHA_EXPORT void CTagha::ThrowError(const int32_t err)
{
	Tagha_ThrowError((struct Tagha *)this, err);
}

/////////////////////////////////////////////////////////////////////////////////
{'fraction_non_alphanumeric': 0.17782834850455137, 'fraction_numerical': 0.005201560468140442, 'mean_word_length': 5.0810276679841895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5350361', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1042, 'n_words': 238}