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

Function decode_struct_profile

src/pipeline/pass_semantic_edges.c:556–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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