<commit_before><?php
/**
 * @package Core
 * @subpackage errors
 */
class APIErrors 
{
	//  ERR_TEXT - some text to display in the message
	const INTERNAL_SERVERL_ERROR = "INTERNAL_SERVER_ERROR;ERR_TEXT;Internal server error @ERR_TEXT@";
	
	const INTERNAL_DATABASE_ERROR = "INTERNAL_DATABASE_ERROR;;Internal database error";
	
	const SEARCH_ENGINE_QUERY_FAILED = "SEARCH_ENGINE_QUERY_FAILED;;Search engine query failed";
	
	const SERVERL_ERROR = "SERVERL_ERROR;ERR_TEXT;Server error @ERR_TEXT@";
	
	const MISSING_KS ="MISSING_KS;;Missing KS. Session not established";
	// KS - the ks string, ERR_CODE - error code , ERR_DESC - error description
	const INVALID_KS ="INVALID_KS;;Invalid KS [@KS@]. Error [@ERR_CODE@,@ERR_DESC@]";

	// PID - partner_id
	const START_SESSION_ERROR = "START_SESSION_ERROR;PID;Error while starting session for partner [@PID@]";

	const INVALID_ACTIONS_LIMIT = "INVALID_ACTIONS_LIMIT;;Invalid actions limit";
	<commit_msg>Added missing params in INVALID_KS<commit_after><?php
/**
 * @package Core
 * @subpackage errors
 */
class APIErrors 
{
	//  ERR_TEXT - some text to display in the message
	const INTERNAL_SERVERL_ERROR = "INTERNAL_SERVER_ERROR;ERR_TEXT;Internal server error @ERR_TEXT@";
	
	const INTERNAL_DATABASE_ERROR = "INTERNAL_DATABASE_ERROR;;Internal database error";
	
	const SEARCH_ENGINE_QUERY_FAILED = "SEARCH_ENGINE_QUERY_FAILED;;Search engine query failed";
	
	const SERVERL_ERROR = "SERVERL_ERROR;ERR_TEXT;Server error @ERR_TEXT@";
	
	const MISSING_KS ="MISSING_KS;;Missing KS. Session not established";
	// KS - the ks string, ERR_CODE - error code , ERR_DESC - error description
	const INVALID_KS ="INVALID_KS;KSID,ERR_CODE,ERR_DESC;Invalid KS [@KSID@]. Error [@ERR_CODE@,@ERR_DESC@]";
	
	// PID - partner_id
	const START_SESSION_ERROR = "START_SESSION_ERROR;PID;Error while starting session for partner [@PID@]";

	const INVALID_ACTIONS_LIMIT = "INVALID_ACTIONS_LIMIT;;Invalid actions limit";
	
{'fraction_non_alphanumeric': 0.10092687950566426, 'fraction_numerical': 0.0, 'mean_word_length': 5.841549295774648, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4902841', 'n_tokens_mistral': 675, 'n_tokens_neox': 634, 'n_words': 158}