<commit_before>// Call to database
private ["_procedureName","_parameters","_response","_databaseName"];

_databaseName = "arma";

_procedureName = _this select 0;
_parameters = _this select 1;

 // diag_log format["callExtension->Arma2NETMySQL: Len:%1 _parameters (%3): %2", [_parameters] call CBA_fnc_strLen, _parameters, typeName _parameters];
 
if (([_parameters] call CBA_fnc_strLen) < 2047) then {
	_response = "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQL ['%1','%2','%3']", _databaseName,_procedureName,_parameters];	
	_response = call compile _response;	
} else{
	diag_log format["SERVER MSG: Output is greater than 4096 bytes - NOT saving: %1", _parameters];
	_response = [];
};
 
//diag_log ["callExtension->Arma2NETMySQL: GetPlayer _response: ",  _response, typeName _response];

if (count _response > 0) then {
	_response = _response select 0;<commit_msg>[PDB] lowered char-limit to 1900 have some buffer for extra bytes caused by ASCII chars<commit_after>// Call to database
private ["_procedureName","_parameters","_response","_databaseName"];

_databaseName = "arma";

_procedureName = _this select 0;
_parameters = _this select 1;

 // diag_log format["callExtension->Arma2NETMySQL: Len:%1 _parameters (%3): %2", [_parameters] call CBA_fnc_strLen, _parameters, typeName _parameters];
 
if (([_parameters] call CBA_fnc_strLen) < 1900) then {
	_response = "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQL ['%1','%2','%3']", _databaseName,_procedureName,_parameters];	
	_response = call compile _response;	
} else{
	diag_log format["SERVER MSG: Output is greater than 4096 bytes - NOT saving: %1", _parameters];
	_response = [];
};
 
//diag_log ["callExtension->Arma2NETMySQL: GetPlayer _response: ",  _response, typeName _response];

if (count _response > 0) then {
	_response = _response select 0;
{'fraction_non_alphanumeric': 0.13358778625954199, 'fraction_numerical': 0.027262813522355506, 'mean_word_length': 6.224409448818897, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6739626', 'n_tokens_mistral': 625, 'n_tokens_neox': 576, 'n_words': 165}