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

Function classify_content

tests/test_language.c:1376–1380  ·  view source on GitHub ↗

The classifier on the first probe_bytes(name) bytes of `content`, as the * pinned inventory calls it. */

Source from the content-addressed store, hash-verified

1374/* The classifier on the first probe_bytes(name) bytes of `content`, as the
1375 * pinned inventory calls it. */
1376static CBMLanguage classify_content(const char *name, const char *content, size_t len) {
1377 size_t probe = cbm_language_probe_bytes(name);
1378 size_t head = len < probe ? len : probe;
1379 return cbm_language_classify(name, (const unsigned char *)content, head, len > head, true);
1380}
1381
1382typedef CBMLanguage (*path_probe_fn)(const char *path);
1383

Callers 1

test_language.cFile · 0.85

Calls 2

cbm_language_probe_bytesFunction · 0.85
cbm_language_classifyFunction · 0.85

Tested by

no test coverage detected