function

bench.scrub_machine_info

def scrub_machine_info(data: dict, extra_tokens: list[str] | None = None) -> dict

Drop hostname/kernel fields in-place and redact stray hostname strings.

Returns the same dict for convenience. Idempotent.

Source: torchmatch/bench/_scrub.py:40