MCPcopy Create free account
hub / github.com/HzaCode/OneCite / format_stars

Function format_stars

scripts/update_stars.py:19–23  ·  view source on GitHub ↗

Format star count to human readable string.

(count: int)

Source from the content-addressed store, hash-verified

17
18
19def format_stars(count: int) -> str:
20 """Format star count to human readable string."""
21 if count >= 1000:
22 return f"{count / 1000:.1f}k".replace(".0k", "k")
23 return str(count)
24
25
26def get_github_stars() -> int:

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected