<commit_before>#include <stdio.h>

#include "cJSON.h"
#include "compiler.h"
#include "jet_config.h"
#include "peer.h"
#include "response.h"

int process_config(cJSON *json_rpc, struct peer *p)
{
	cJSON *id = cJSON_GetObjectItem(json_rpc, "id");
	if (id != NULL) {
		cJSON *response = create_boolean_success_response(id, 1);
		if (unlikely (response == NULL)) {
			return -1;
		}
		cJSON_Delete(response);
	}
	return 0;
}
<commit_msg>It is likely that we get an "id" tag in the config message.<commit_after>#include <stdio.h>

#include "cJSON.h"
#include "compiler.h"
#include "jet_config.h"
#include "peer.h"
#include "response.h"

int process_config(cJSON *json_rpc, struct peer *p)
{
	cJSON *id = cJSON_GetObjectItem(json_rpc, "id");
	if (likely(id != NULL)) {
		cJSON *response = create_boolean_success_response(id, 1);
		if (unlikely (response == NULL)) {
			return -1;
		}
		cJSON_Delete(response);
	}
	return 0;
}

{'fraction_non_alphanumeric': 0.1532608695652174, 'fraction_numerical': 0.006521739130434782, 'mean_word_length': 4.829113924050633, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '561211', 'n_tokens_mistral': 373, 'n_tokens_neox': 356, 'n_words': 88}