<commit_before><?php
/**
 * $Id$
 *
 * Generic event logging functions
 *
 * \author <NAME>, 2007-2008 <<EMAIL>>
 */
	define('EVENT_USER_LOGIN',			0x01);
	define('EVENT_USER_LOGOUT',			0x02);

	define('EVENT_M2W_CALL_BEGIN',		0x50);
	define('EVENT_M2W_CALL_END',		0x51);
	define('EVENT_RECORDED_PRES',		0x52);
	define('EVENT_RECORDED_MSG',		0x53);
	define('EVENT_RECORDED_CHATREQ',	0x54);

	//XXX: implement these:
	define('EVENT_RECORDED_BLOG',		0x55);
	define('EVENT_WARNED',				0x56);
	define('EVENT_PRES_APPROVED',		0x57);
	define('EVENT_PRES_DENIED',			0x58);

	$event_name[EVENT_USER_LOGIN] = 'User login';
	$event_name[EVENT_USER_LOGOUT] = 'User logout';

	$event_name[EVENT_M2W_CALL_BEGIN] = 'Call begin';
	$event_name[EVENT_M2W_CALL_END] = 'Call end';
	$event_name[EVENT_RECORDED_PRES] = 'Recorded pres.';
	$event_name[EVENT_RECORDED_MSG] = 'Recorded msg.';
	$event_name[EVENT_RECORDED_CHATREQ] = 'Recorded chatreq.';

	function addEvent($_type, $_category = 0 , $ownerId = 0, $_referer = 0)<commit_msg>constants renamed<commit_after><?php
/**
 * $Id$
 *
 * Generic event logging functions
 *
 * \author <NAME>, 2007-2008 <<EMAIL>>
 */
	define('EVENT_USER_LOGIN',			0x01);
	define('EVENT_USER_LOGOUT',			0x02);

	define('EVENT_CALL_BEGIN',			0x50);
	define('EVENT_CALL_END',			0x51);
	define('EVENT_RECORDED_PRES',		0x52);
	define('EVENT_RECORDED_MSG',		0x53);
	define('EVENT_RECORDED_CHATREQ',	0x54);

	//XXX: implement these:
	define('EVENT_RECORDED_BLOG',		0x55);
	define('EVENT_WARNED',				0x56);
	define('EVENT_PRES_APPROVED',		0x57);
	define('EVENT_PRES_DENIED',			0x58);

	$event_name[EVENT_USER_LOGIN] = 'User login';
	$event_name[EVENT_USER_LOGOUT] = 'User logout';

	$event_name[EVENT_CALL_BEGIN] = 'Call begin';
	$event_name[EVENT_CALL_END] = 'Call end';
	$event_name[EVENT_RECORDED_PRES] = 'Recorded pres.';
	$event_name[EVENT_RECORDED_MSG] = 'Recorded msg.';
	$event_name[EVENT_RECORDED_CHATREQ] = 'Recorded chatreq.';

	function addEvent($_type, $_category = 0 , $ownerId = 0, $_referer = 0)
{'fraction_non_alphanumeric': 0.15888778550148958, 'fraction_numerical': 0.04568023833167825, 'mean_word_length': 6.300724637681159, 'pattern_counts': {'":': 0, '<': 11, '<?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': '334972', 'n_tokens_mistral': 918, 'n_tokens_neox': 843, 'n_words': 128}