Buckets:
ml-intern-explorers/hutter-prize-collab / artifacts /dict_greedy_xz_AutoZip_bounded /decompressor /decompress.py
| import json,subprocess,sys | |
| from pathlib import Path | |
| inp=Path(sys.argv[1]);out=Path(sys.argv[2]);tmp=inp.parent/'tmp.bin';subprocess.run(['xz','-d','-c',str(inp)],stdout=tmp.open('wb'),check=True);subs=json.loads((Path(__file__).with_name('subs.json')).read_text());d=tmp.read_bytes(); | |
| for c,h in subs:d=d.replace(bytes([c]),bytes.fromhex(h));out.write_bytes(d);tmp.unlink(missing_ok=True) | |
Xet Storage Details
- Size:
- 389 Bytes
- Xet hash:
- bc968d71c2b820729dcc61e596da67f060c6c848944b8a33aa4b71d0197dd5a4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.