MCPcopy Create free account
hub / github.com/SourceCode-AI/aura / log_scale

Function log_scale

aura/package.py:569–576  ·  view source on GitHub ↗

Normalizes the metric to log scale score

(metric: int, base=10)

Source from the content-addressed store, hash-verified

567
568
569def log_scale(metric: int, base=10) -> int:
570 """
571 Normalizes the metric to log scale score
572 """
573 if metric > 0:
574 return math.ceil(math.log(metric, base))
575 else:
576 return 0

Callers 6

score_pypi_downloadsMethod · 0.85
score_github_starsMethod · 0.85
score_github_forksMethod · 0.85
has_multiple_releasesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected