MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / tallyInto

Function tallyInto

source code/utils/exampleCommands.ts:107–112  ·  view source on GitHub ↗
(stdout: string)

Source from the content-addressed store, hash-verified

105
106 const counts = new Map<string, number>()
107 const tallyInto = (stdout: string) => {
108 for (const line of stdout.split('\n')) {
109 const f = line.trim()
110 if (f) counts.set(f, (counts.get(f) ?? 0) + 1)
111 }
112 }
113
114 if (userEmail) {
115 const { stdout } = await execFileNoThrowWithCwd(

Callers 1

Calls 2

setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected