MCPcopy Create free account
hub / github.com/1jehuang/jcode / progress

Function progress

scripts/benchmark_discovery.py:529–542  ·  view source on GitHub ↗
(current: int, total: int, unit: str, message: str)

Source from the content-addressed store, hash-verified

527
528
529def progress(current: int, total: int, unit: str, message: str) -> None:
530 print(
531 "JCODE_PROGRESS "
532 + json.dumps(
533 {
534 "current": current,
535 "total": total,
536 "unit": unit,
537 "message": message,
538 },
539 separators=(",", ":"),
540 ),
541 flush=True,
542 )
543
544
545def start_server(args: argparse.Namespace, socket_path: Path) -> subprocess.Popen[str]:

Callers 2

fetch_catalog_via_jcodeFunction · 0.70
run_benchmarkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected