<commit_before>add_filter('em_event_save','revenudebase_em_categorize',1,2);
function revenudebase_em_categorize($result,$EM_Event){
	global $wpdb;
	// FIXME get the revenudebase event category from options
	$options = get_option( 'revenudebase_options_prefix' );
	$cat_id = $options['event_category_id'];

	// FIXME set the category to event	
	wp_set_object_terms( $EM_Event->post_id, $cat_id, 'category' );
}<commit_msg>wp-template: added missing php tags.<commit_after><?php
add_filter('em_event_save','revenudebase_em_categorize',1,2);
function revenudebase_em_categorize($result,$EM_Event){
	global $wpdb;
	// FIXME get the revenudebase event category from options
	$options = get_option( 'revenudebase_options_prefix' );
	$cat_id = $options['event_category_id'];

	// FIXME set the category to event	
	wp_set_object_terms( $EM_Event->post_id, $cat_id, 'category' );
}
?>
{'fraction_non_alphanumeric': 0.1267123287671233, 'fraction_numerical': 0.0045662100456621, 'mean_word_length': 7.514563106796117, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '5859885', 'n_tokens_mistral': 311, 'n_tokens_neox': 321, 'n_words': 61}