<commit_before>function OnUpdate(doc, meta) {
	var docId = meta.id;
	var query = SELECT * FROM `bucket-1` USE KEYS[$docId];
	query.execQuery();
	UPSERT INTO `eventing-bucket-1` (KEY, VALUE) VALUES ($docId, 'Hello World');
}

function OnDelete(doc) {
}
<commit_msg>Draft: New way of N1QL queries in eventing<commit_after>function OnUpdate(doc, meta) {
	var docId = meta.id;
	var select_query = SELECT * FROM `bucket-1` USE KEYS[$docId];
	for (var r of select_query) {
	}
	select_query.close()
	var upsert_query = UPSERT INTO `eventing-bucket-1` (KEY, VALUE) VALUES ($docId, 'Hello World');
	upsert_query.close();
}

function OnDelete(meta) {
}

{'fraction_non_alphanumeric': 0.14463452566096424, 'fraction_numerical': 0.007776049766718507, 'mean_word_length': 5.018691588785047, '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': '7195407', 'n_tokens_mistral': 246, 'n_tokens_neox': 238, 'n_words': 65}