MCPcopy
hub / github.com/codeaashu/claude-code / getIntensity

Function getIntensity

src/utils/heatmap.ts:168–178  ·  view source on GitHub ↗
(
  messageCount: number,
  percentiles: Percentiles | null,
)

Source from the content-addressed store, hash-verified

166}
167
168function getIntensity(
169 messageCount: number,
170 percentiles: Percentiles | null,
171): number {
172 if (messageCount === 0 || !percentiles) return 0
173
174 if (messageCount >= percentiles.p75) return 4
175 if (messageCount >= percentiles.p50) return 3
176 if (messageCount >= percentiles.p25) return 2
177 return 1
178}
179
180// Claude orange color (hex #da7756)
181const claudeOrange = chalk.hex('#da7756')

Callers 1

generateHeatmapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected