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

Function is_normalised_token

src/simhash/minhash.c:119–122  ·  view source on GitHub ↗

Check if a normalised token is one of the generic types (I/S/N/T). * These carry no structural info — used to compute trigram weight. */

Source from the content-addressed store, hash-verified

117/* Check if a normalised token is one of the generic types (I/S/N/T).
118 * These carry no structural info — used to compute trigram weight. */
119static bool is_normalised_token(const char *tok) {
120 return tok[0] != '\0' && tok[SKIP_ONE] == '\0' &&
121 (tok[0] == 'I' || tok[0] == 'S' || tok[0] == 'N' || tok[0] == 'T');
122}
123
124/* Compute structural weight of a trigram: count of non-normalised tokens (0-3).
125 * Weight 0 = pure data manipulation (noise), weight 3 = rich control flow (signal). */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected