| 554 | } |
| 555 | |
| 556 | static 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 | |
| 570 | static void decode_minhash(const char *props_json, cbm_sem_func_t *func) { |
| 571 | func->has_minhash = false; |
no test coverage detected