<commit_before>/*
 *	File: fn_extensionTest.sqf
 *	Author: Adanteh
 *	Tests if the pythia extension works as expected
 */

private _result = ["Pythia.test"] call py3_fnc_callExtension;
if (_result isEqualTo "OK") exitWith {
	diag_log format ["ERROR: @Pythia mod loaded, but pythia.dll not loaded!"];
	false
};

private _result = ["Pythia.ping", "pong"] call py3_fnc_callExtension;
if !(_result isEqualTo ["pong"]) exitWith {
	diag_log format ["ERROR: @Pythia mod loaded, but error in pythia.dll: '%1'", _result];
	false
};

diag_log format ["@Pythia mod and extension loaded a-okay"];

true<commit_msg>Return error text on extension test<commit_after>/*
 *	File: fn_extensionTest.sqf
 *	Author: Adanteh
 *	Tests if the pythia extension works as expected
 */

private _result = ["Pythia.test"] call py3_fnc_callExtension;
if !(_result isEqualTo "OK") exitWith {
	diag_log format ["ERROR: @Pythia mod loaded, but pythia.dll not loaded!"];
	[false, "ERROR: @Pythia mod loaded, but pythia.dll not loaded!"];
};

private _result = ["Pythia.ping", "pong"] call py3_fnc_callExtension;
if !(_result isEqualTo ["pong"]) exitWith {
	diag_log format ["ERROR: @Pythia mod loaded, but error in pythia.dll: '%1'", _result];
	[false, "ERROR: @Pythia mod loaded, but error in pythia.dll"];
};

diag_log format ["@Pythia mod and extension loaded a-okay"];
[true, "@Pythia mod and extension loaded a-okay"];
{'fraction_non_alphanumeric': 0.13390928725701945, 'fraction_numerical': 0.004319654427645789, 'mean_word_length': 5.261261261261262, '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': '4721126', 'n_tokens_mistral': 490, 'n_tokens_neox': 468, 'n_words': 160}