()
| 559 | |
| 560 | |
| 561 | def git_commit() -> str: |
| 562 | try: |
| 563 | return subprocess.run(["git", "rev-parse", "--short", "HEAD"], |
| 564 | capture_output=True, text=True, timeout=10).stdout.strip() |
| 565 | except Exception: |
| 566 | return "?" |
| 567 | |
| 568 | |
| 569 | def median(xs): # tolerant |