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

Function fl_entryish_name

src/ui/atlas_flows.c:139–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137/* ── Entry scoring ────────────────────────────────────────────── */
138
139static bool fl_entryish_name(const char *name) {
140 if (!name || !name[0])
141 return false;
142 if (strcmp(name, "main") == 0 || strcmp(name, "run") == 0)
143 return true;
144 static const char *const prefixes[] = {"handle", "run_", "serve", "cmd_", "do_", "start"};
145 for (size_t i = 0; i < sizeof(prefixes) / sizeof(prefixes[0]); i++)
146 if (strncmp(name, prefixes[i], strlen(prefixes[i])) == 0)
147 return true;
148 if (name[0] == 'o' && name[1] == 'n' && isupper((unsigned char)name[2]))
149 return true;
150 size_t len = strlen(name);
151 if (len > 5 && strcmp(name + len - 5, "_main") == 0)
152 return true;
153 return false;
154}
155
156static int fl_score(const flow_node_t *node) {
157 /* Tests are journeys into the code, not of it: a test function is never

Callers 1

fl_scoreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected