MCPcopy Create free account
hub / github.com/github/gh-aw / isFinite

Function isFinite

pkg/cli/token_usage.go:607–609  ·  view source on GitHub ↗
(value float64)

Source from the content-addressed store, hash-verified

605}
606
607func isFinite(value float64) bool {
608 return !math.IsNaN(value) && !math.IsInf(value, 0)
609}
610
611func sumAICFromUsageJSONLFiles(filePaths []string) (float64, bool, error) {
612 var totalAIC float64

Callers 2

usageNumericValueFunction · 0.85
TestIsFiniteFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsFiniteFunction · 0.68