<commit_before>/*
 * Command to handle APS events
 */
Ape.registerCmd("event", true, function(params, info) {
	
	var pipe = Ape.getPipe(params.pipe);
	
	if(pipe){
		
		if(!!params.sync){
			info.sendResponse("SYNC", {
				data: params.data,
				event: params.event,
				chanid: params.pipe
			});
		}
		
		delete params.sync;
		
		pipe.sendRaw("EVENT", params, {from: info.user.pipe});
	}
});<commit_msg>add method return value<commit_after>/*
 * Command to handle APS events
 */
Ape.registerCmd("event", true, function(params, info) {
	
	var pipe = Ape.getPipe(params.pipe);
	
	if(pipe){
		
		if(!!params.sync){
			info.sendResponse("SYNC", {
				data: params.data,
				event: params.event,
				chanid: params.pipe
			});
		}
		
		delete params.sync;
		
		pipe.sendRaw("EVENT", params, {from: info.user.pipe});
	}
	
	return 1;
});
{'fraction_non_alphanumeric': 0.16967509025270758, 'fraction_numerical': 0.0012033694344163659, 'mean_word_length': 3.2233502538071064, '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': '6191001', 'n_tokens_mistral': 352, 'n_tokens_neox': 290, 'n_words': 61}