MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / decode_struct_profile

Function decode_struct_profile

src/pipeline/pass_semantic_edges.c:557–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557static void decode_struct_profile(const char *props_json, float *out) {
558 memset(out, 0, sizeof(float) * CBM_AST_PROFILE_DIMS);
559 if (!props_json) {
560 return;
561 }
562 char sp_buf[CBM_AST_PROFILE_BUF];
563 if (json_str_value(props_json, "sp", sp_buf, sizeof(sp_buf))) {
564 cbm_ast_profile_t profile;
565 if (cbm_ast_profile_from_str(sp_buf, &profile)) {
566 cbm_ast_profile_to_vector(&profile, out);
567 }
568 }
569}
570
571static void decode_minhash(const char *props_json, cbm_sem_func_t *func) {
572 func->has_minhash = false;

Callers 1

collect_workerFunction · 0.85

Calls 3

json_str_valueFunction · 0.85
cbm_ast_profile_from_strFunction · 0.85

Tested by

no test coverage detected