MCPcopy Create free account
hub / github.com/bitsandbytes-foundation/bitsandbytes / cmd_top

Function cmd_top

agents/query_issues.py:502–512  ·  view source on GitHub ↗

List top issues by reaction count.

(args, data)

Source from the content-addressed store, hash-verified

500
501
502def cmd_top(args, data):
503 """List top issues by reaction count."""
504 issues = data["open_issues"]
505 if args.label:
506 label_lower = args.label.lower()
507 issues = [i for i in issues if any(label_lower == lbl.lower() for lbl in i["labels"])]
508
509 issues = sorted(issues, key=lambda i: i["reactions"].get("THUMBS_UP", 0), reverse=True)
510 n = args.limit or 20
511 for issue in issues[:n]:
512 print(format_compact(issue))
513
514
515def cmd_stats(args, data):

Callers

nothing calls this directly

Calls 1

format_compactFunction · 0.85

Tested by

no test coverage detected