Append HF Jobs semantic-gated task batch batch0014
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- README.md+1
- scale800_v1/20261112/batches/batch0014/file-sha256.jsonAdded
- scale800_v1/20261112/batches/batch0014/summary.jsonAdded+20
- scale800_v1/20261112/execution/0b2f00f5be2608e0a415d789.jsonAdded+128
- scale800_v1/20261112/execution/0fd5c9df18978c6667d53ccc.jsonAdded+458
- scale800_v1/20261112/execution/40e2c69d5d9dab5f3eb232c1.jsonAdded+452
- scale800_v1/20261112/execution/51779337905730aa03dae82b.jsonAdded+212
- scale800_v1/20261112/execution/63a1ee21d2764851ad2f8a2f.jsonAdded+200
- scale800_v1/20261112/execution/ba2e34bd5e18ee8bf056981d.jsonAdded+128
- scale800_v1/20261112/execution/bbe6afab06909419e8aace9d.jsonAdded+458
- scale800_v1/20261112/execution/e564176890e0cd36aae3a726.jsonAdded+134
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/SHA256SUMSAdded+141
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/claim.jsonAdded+6
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/controller-receipt.jsonAdded+40
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0000.jsonAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0001.jsonAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0002.jsonAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0003.jsonAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0004.jsonAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0005.jsonAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/report.jsonAdded+393
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/lifecycle.jsonlAdded+78
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/records.jsonAdded+61
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/reward.rawAdded+3
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.github/FUNDING.ymlAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.github/SECURITY.mdAdded+21
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.github/dependabot.ymlAdded+15
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.gitignoreAdded+26
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.travis.ymlAdded+37
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/LICENSEAdded+27
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/README.mdAdded+166
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/SECURITY.mdAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/azure-pipelines.ymlAdded+39
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/bitset.goAdded+1756
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/bitset_iter.goAdded+23
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/cmd/pextgen/main.goAdded+139
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/go.modAdded+3
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/go.sumAdded
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/pext.gen.goAdded
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/popcnt.goAdded+42
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/select.goAdded+47
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/trial.jsonAdded+16
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/worker-claim.jsonAdded+4
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/lifecycle.jsonlAdded+78
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/records.jsonAdded+61
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/reward.rawAdded+3
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.github/FUNDING.ymlAdded+5
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.github/SECURITY.mdAdded+21
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.github/dependabot.ymlAdded+15
- scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.gitignoreAdded+26
65 unmodified lines66676869707165 unmodified lines- splits/scale800_gate_v1-batch0011.jsonl- splits/scale800_gate_v1-batch0012.jsonl- splits/scale800_gate_v1-batch0013.jsonl- config_name: scale800_py_gate_v1data_files:- split: accepted65 unmodified lines6667686970717265 unmodified lines- splits/scale800_gate_v1-batch0011.jsonl- splits/scale800_gate_v1-batch0012.jsonl- splits/scale800_gate_v1-batch0013.jsonl- splits/scale800_gate_v1-batch0014.jsonl- config_name: scale800_py_gate_v1data_files:- split: accepted
1234567891011121314151617181920{ "full_rfc008_qualified": 0, "per_language": { "go": 8 }, "per_repository": { "allegro/bigcache": 1, "bits-and-blooms/bitset": 2, "go-chi/chi": 2, "gookit/color": 1, "gosuri/uiprogress": 1, "masterminds/squirrel": 1 }, "per_repository_accepted_cap": 40, "profile": "harbor-semantic-jobs-v1", "qwen_measured": 0, "split_path": "splits/scale800_gate_v1-batch0014.jsonl", "tasks": 8, "training_admissible": 0}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128{ "agent_image": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "expected_task_inventory_sha256": "ad7fe8de3322a01152846e1a0c742197073212ae4a93f31249222423f6729e51", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".github/FUNDING.yml": { "bytes": 292, "mode": 420, "sha256": "00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2" }, ".github/SECURITY.md": { "bytes": 885, "mode": 420, "sha256": "625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215" }, ".github/dependabot.yml": { "bytes": 510, "mode": 420, "sha256": "01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313" }, ".gitignore": { "bytes": 274, "mode": 420, "sha256": "299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc" }, ".travis.yml": { "bytes": 663, "mode": 420, "sha256": "864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b" }, "LICENSE": { "bytes": 1480, "mode": 420, "sha256": "3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f" }, "README.md": { "bytes": 5189, "mode": 420, "sha256": "5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b" }, "SECURITY.md": { "bytes": 141, "mode": 420, "sha256": "385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd" }, "azure-pipelines.yml": { "bytes": 1088, "mode": 420, "sha256": "27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216" }, "bitset.go": { "bytes": 47836, "mode": 420, "sha256": "8f89fcc605c995cf39eb5a1b4377499017d54e478f7b51ac772290ea7fe9812f" }, "bitset_iter.go": { "bytes": 433, "mode": 420, "sha256": "11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750" }, "cmd/pextgen/main.go": { "bytes": 3016, "mode": 420, "sha256": "4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63" }, "go.mod": { "bytes": 50, "mode": 420, "sha256": "e1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd" }, "go.sum": { "bytes": 0, "mode": 420, "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, "pext.gen.go": { "bytes": 504581, "mode": 420, "sha256": "9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5" }, "popcnt.go": { "bytes": 774, "mode": 420, "sha256": "e2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58" }, "select.go": { "bytes": 672, "mode": 420, "sha256": "01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.github/FUNDING.yml", "/testbed/.github/SECURITY.md", "/testbed/.github/dependabot.yml", "/testbed/.gitignore", "/testbed/.travis.yml", "/testbed/LICENSE", "/testbed/README.md", "/testbed/SECURITY.md", "/testbed/azure-pipelines.yml", "/testbed/bitset.go", "/testbed/bitset_iter.go", "/testbed/cmd/pextgen/main.go", "/testbed/go.mod", "/testbed/go.sum", "/testbed/pext.gen.go", "/testbed/popcnt.go", "/testbed/select.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458{ "agent_image": "registry.hf.space/harness-hub-scale800-4c935f9a1651fcba-starter-v1@sha256:bbed00cf0d9a5a2069d8473257b0e669cdf51b8fee4b724ec869acdfcada8fe1", "expected_task_inventory_sha256": "9f539747271c2463e77380c5fc5badd62b3c1f8079963f9472e79bf348fbacb0", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".github/FUNDING.yml": { "bytes": 723, "mode": 420, "sha256": "0e236eacfd30c201e85ff368730f13e6dfb24d21a72c57c8bed0a099bebb3c7b" }, ".gitignore": { "bytes": 20, "mode": 420, "sha256": "785f18e2ac99c66b81d8d185aa1a65cfe4f39b12bef24c1f8037d85840490929" }, "CHANGELOG.md": { "bytes": 15854, "mode": 420, "sha256": "65c419049d2e6efc04b110426e4b5efc628a4ee6b8f080092f25a0dbbb35f071" }, "CONTRIBUTING.md": { "bytes": 1187, "mode": 420, "sha256": "961da16c4fcec58d600fd49cc6ab0dd632d143646d4fcb2f5b1818fb0197fbe7" }, "LICENSE": { "bytes": 1123, "mode": 420, "sha256": "a2d51b7515acfaff2f7a88688650f2fc4fd99561383e72bba2305e3db59a1647" }, "Makefile": { "bytes": 490, "mode": 420, "sha256": "b343163c9d40108d37c7e5fe73e3c1d8f39c2acf26de5d1d227a1be2770205ad" }, "README.md": { "bytes": 23313, "mode": 420, "sha256": "ef6ed94a615b29c4161b9898955e602404655049a68ddf46066bda30e3f297c9" }, "SECURITY.md": { "bytes": 313, "mode": 420, "sha256": "c5f181d947996aebd888182fb8dccf6e7026690e701b5e5ca50b288b4a2cf5c3" }, "_examples/README.md": { "bytes": 1751, "mode": 420, "sha256": "ca21040bf599dc318f33aa9839c347c9f368f09d97a420e8911b4eac7fdc82fe" }, "_examples/chi.svg": { "bytes": 2650, "mode": 420, "sha256": "1a7e8131f1ed48303dc42d93bc50ea330f08f0875cba64d0d03eb96754984127" }, "_examples/custom-handler/main.go": { "bytes": 625, "mode": 420, "sha256": "e5a1f419488c233784f1f7951089305915b377af7462f137cd9bb5fd2a792924" }, "_examples/custom-method/main.go": { "bytes": 853, "mode": 420, "sha256": "de61c6c6cad7f28a9b8b506d32bba52485f6e902ae25954913e8480fa5cfd8a5" }, "_examples/fileserver/data/notes.txt": { "bytes": 11, "mode": 420, "sha256": "9e343fdfdcb2892c5eb6906d405f9ac1f7cb1d73cd8b7f31cf6329719af96576" }, "_examples/fileserver/main.go": { "bytes": 1521, "mode": 420, "sha256": "0c0b96e8104689bc86312805d70a97aea7c870801f09ca03dd47c8edde31f620" }, "_examples/graceful/main.go": { "bytes": 1967, "mode": 420, "sha256": "b642f761971c48ecaf181a0e7fbbe313f893cb5e2a595b3cfe001f916e3bc4b6" }, "_examples/hello-world/main.go": { "bytes": 359, "mode": 420, "sha256": "e8104f868c9a673d864c489347970200808acc0652035a0376694bf5b7b07c86" }, "_examples/limits/main.go": { "bytes": 2181, "mode": 420, "sha256": "590c6d2f322481fed8abe1c2ca34eb0868f0d0a07d1c6aaccc0d6589b59a5d0d" }, "_examples/logging/main.go": { "bytes": 272, "mode": 420, "sha256": "7b3cf7fb608cc030569d4bf75d30f0807ba0849543ee469ad5adadd13a3b8667" }, "_examples/rest/go.mod": { "bytes": 141, "mode": 420, "sha256": "18ba038ee1930a7817c888711e6562aa26281658ef1515789b41fc3b47599c61" }, "_examples/rest/go.sum": { "bytes": 688, "mode": 420, "sha256": "3c5053c9c97cfde3e040fd39ff6858ec65288042a624075ea13784b58cfc1037" }, "_examples/rest/main.go": { "bytes": 15501, "mode": 420, "sha256": "0b9e1e73d7c649601508b3bb6c46b1587da6346f9cf33d6070f06f8e5c3a9298" }, "_examples/rest/routes.json": { "bytes": 11317, "mode": 420, "sha256": "a16c95138e7f52046f617d5a98ebb1c83217d0672ed06dfece652f98ff4e2da2" }, "_examples/rest/routes.md": { "bytes": 4665, "mode": 420, "sha256": "26951bf691542d7ca05d990dc9bddaa90bfb01497bb4f55c4cfb97581319e6f2" }, "_examples/router-walk/main.go": { "bytes": 914, "mode": 420, "sha256": "5e8548ddda78f646d448602e6922252d079803c555086b3f00280b00d10efed6" }, "_examples/todos-resource/main.go": { "bytes": 748, "mode": 420, "sha256": "a0a551b6d6ca81210b129cd2a70d76e38370b2461be78813e6f117cfef6da020" }, "_examples/todos-resource/todos.go": { "bytes": 1453, "mode": 420, "sha256": "5979a0124dbb9febcc1c6846ed843590d40f5ae440d2694e57c0860bf7bc395c" }, "_examples/todos-resource/users.go": { "bytes": 1323, "mode": 420, "sha256": "212c60277ace9afb95ef02729be959c2c39472a14854d2af95c711c265e3778f" }, "_examples/versions/data/article.go": { "bytes": 388, "mode": 420, "sha256": "90aa75226b4514e40033fb406de1319f419c4af5291a82e21a615ba7b5a121f8" }, "_examples/versions/data/errors.go": { "bytes": 542, "mode": 420, "sha256": "e2803582a823e474441392b40e958bf1e1545613d61d1b7911cf6556854635bf" }, "_examples/versions/go.mod": { "bytes": 152, "mode": 420, "sha256": "fd833daea12d311fd9c7182d433095eb224be3a4c80b26311e848c7e452affb5" }, "_examples/versions/go.sum": { "bytes": 491, "mode": 420, "sha256": "0712aab90567f5fa0c11762c05494f8f6b42993b18573679ce165b805ad4e733" }, "_examples/versions/main.go": { "bytes": 4072, "mode": 420, "sha256": "16f5c10e86dadb44039863545041cfbc60de40271b71ea1b1ea62ca46ca2a207" }, "_examples/versions/presenter/v1/article.go": { "bytes": 399, "mode": 420, "sha256": "6183e68da9fde3998f49f528775d302a2462427d24d7d72a1f3511501b8bd817" }, "_examples/versions/presenter/v2/article.go": { "bytes": 625, "mode": 420, "sha256": "8b1ab4c9e381ac1116f2a0572e173b9ddd6b7e889fe1cd6aeb1e75a7d9c10209" }, "_examples/versions/presenter/v3/article.go": { "bytes": 1002, "mode": 420, "sha256": "19a384a64f6009a8565d3b8bae774ed26d1d730ba6f4e5b510ab23f594833173" }, "chain.go": { "bytes": 1517, "mode": 420, "sha256": "8c22d7bbc23f4b4d46ded5ef721a9c3a173031fa2c2c9a7b48c46c2b07e8bd80" }, "chi.go": { "bytes": 4688, "mode": 420, "sha256": "3eaf980c6907f98497be9ec759ae601510f799656fd0663c2c3e202ba4fc5ec9" }, "context.go": { "bytes": 4831, "mode": 420, "sha256": "b453c9c10998064775d2d9886a30d37f1d42a39555ef7b52847af4952fa90f56" }, "go.mod": { "bytes": 149, "mode": 420, "sha256": "a8921a2ecd771d342ee6e7f45065941a943f17c39f1cee4633dd264efa7e97ae" }, "middleware/basic_auth.go": { "bytes": 852, "mode": 420, "sha256": "d1cfa0a32e9871cfba478590d1c1010297df20e53bbf83f34b09a4ec76e8b278" }, "middleware/clean_path.go": { "bytes": 658, "mode": 420, "sha256": "00cf47dd47cf4b6a1fa29dd3d5cdff4f7de8adbea410801128afe8aeaed35f0d" }, "middleware/compress.go": { "bytes": 11491, "mode": 420, "sha256": "3965e92c59ea9a1fb48fa47705870ad379a7ef2c39a41dfb211b5975f86c2773" }, "middleware/content_charset.go": { "bytes": 1239, "mode": 420, "sha256": "54e0df171b3d78cabeb8af3878e861e264f1e95c993352c4edabc94cb3532295" }, "middleware/content_encoding.go": { "bytes": 1087, "mode": 420, "sha256": "a1b35d124400a423d385eca9d066593c790e867db165af75e25b31b649d37fd8" }, "middleware/content_type.go": { "bytes": 1265, "mode": 420, "sha256": "5cedd359e3390edc613557681dda3cbc60faa2e4efb2a8974464876377b3a797" }, "middleware/get_head.go": { "bytes": 977, "mode": 420, "sha256": "76af2014d2080f597a0205f51265badcad7af64d09652a79ed1a214074f5c582" }, "middleware/heartbeat.go": { "bytes": 755, "mode": 420, "sha256": "fc242f8c645cfc7640a36bccccb490cad9136ed07a751b0998f554412c29bca4" }, "middleware/logger.go": { "bytes": 4978, "mode": 420, "sha256": "3b47fe124f65cb60406896cafb7e1b3e179039d8ff852ddf31994875fdef3e64" }, "middleware/maybe.go": { "bytes": 636, "mode": 420, "sha256": "d600d7ea5b3184ea8ea952a145b1fca21e458b94601eae4a6cb215b3a04a3dee" }, "middleware/middleware.go": { "bytes": 684, "mode": 420, "sha256": "8789f84814d815185cb5a7bc6c247969b67d0ff9b8045ee1c95f4c9ad59ff4b1" }, "middleware/nocache.go": { "bytes": 1430, "mode": 420, "sha256": "389eb1e308194561aea139b8d56d49f46b9fb30d84f8da146f5deaea66c5f5cc" }, "middleware/page_route.go": { "bytes": 519, "mode": 420, "sha256": "03f3b50c4a55c345b52ce8f4b6d5da4b977647dd66e2e59b5f3635bda93e779c" }, "middleware/path_rewrite.go": { "bytes": 422, "mode": 420, "sha256": "0f3c01a40e320494a093d804376f3be8519b86285b5e24e8937bcee2c13c9279" }, "middleware/profiler.go": { "bytes": 1325, "mode": 420, "sha256": "16b08d9316eb363cd21aa07a5bddc371b2539333124f9468e5cce9253c4cf655" }, "middleware/realip.go": { "bytes": 1826, "mode": 420, "sha256": "8bf96831b9d8da8aab450e5036b92319a7e9480562e48c143b9e5a38d7adf040" }, "middleware/recoverer.go": { "bytes": 4858, "mode": 420, "sha256": "5bb87fe7d8d78862758c2c566db65937d00148855e2375baf1ad50d91cb635dd" }, "middleware/request_id.go": { "bytes": 2966, "mode": 420, "sha256": "287ac51224b728167000cb8efa060e7b3ff8172445c919e204fb21f858b6490f" }, "middleware/request_size.go": { "bytes": 454, "mode": 420, "sha256": "81a98f72a81442a01a4353be9833fda6803f585bf768cebde5a34ebc1c44c390" }, "middleware/route_headers.go": { "bytes": 4157, "mode": 420, "sha256": "19dce12b9e5ad910782b6fe553737e86e91a311a04aac8029bbf168b1afc6e6a" }, "middleware/strip.go": { "bytes": 2009, "mode": 420, "sha256": "e0043bb1f4a05290599cc756ccd3b60f2a6245708852ff5d057d26848591290b" }, "middleware/sunset.go": { "bytes": 700, "mode": 420, "sha256": "16d99c4da576c4b7c024a12da139421d5659290250bed8f3d3ff6e0ed5d93b0e" }, "middleware/supress_notfound.go": { "bytes": 852, "mode": 420, "sha256": "b3c6cb935d27aaddef0dcb5d165447babf5e9bb42cf28b4ee4e5f4693810888f" }, "middleware/terminal.go": { "bytes": 1885, "mode": 420, "sha256": "da7433dde376ab7deef82ff5acad6bbbc64beca4dad95372468a5747e23dfaa3" }, "middleware/throttle.go": { "bytes": 3933, "mode": 420, "sha256": "0b1d8983f9344502164a9d6534614efd7a0a45e3cea0571c7075b455ffbdf2c9" }, "middleware/timeout.go": { "bytes": 1222, "mode": 420, "sha256": "3e83d007ec300b4ea605d97a336351e562ecd84b32c2b26206791d11ce7501c0" }, "middleware/url_format.go": { "bytes": 1786, "mode": 420, "sha256": "3b2045310974325041cee84b235c92f3716d582aac04a3617df43d2eca00cb3d" }, "middleware/value.go": { "bytes": 436, "mode": 420, "sha256": "2ccb524ee5ccd68885ff0d1de052068026f5c3298705fec930175e2ec06a1f91" }, "middleware/wrap_writer.go": { "bytes": 6080, "mode": 420, "sha256": "6910a3750fb03f79a0eabda47f2b826482df1219a78b9d057248ca0e50bdd486" }, "mux.go": { "bytes": 16661, "mode": 420, "sha256": "d18ed41396777879c2fee4010ceb06152c9348f41bb0022d3c55381ec0a73187" }, "path_value.go": { "bytes": 537, "mode": 420, "sha256": "05827f643e0153ca95763474a707f2e656c4d4a3d016cefb52a8ee92fa483a0c" }, "path_value_fallback.go": { "bytes": 541, "mode": 420, "sha256": "cb2f0c7c6c29de7566124accf9dfaf6bd863c85e925db6cc12c56f213e1e7d3c" }, "tree.go": { "bytes": 20698, "mode": 420, "sha256": "7e7f0feabb0f0955613390e3ea0ba14dba6fa42fc6f173402dd2a8ce9aa676f2" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.github/FUNDING.yml", "/testbed/.gitignore", "/testbed/CHANGELOG.md", "/testbed/CONTRIBUTING.md", "/testbed/LICENSE", "/testbed/Makefile", "/testbed/README.md", "/testbed/SECURITY.md", "/testbed/_examples/README.md", "/testbed/_examples/chi.svg", "/testbed/_examples/custom-handler/main.go", "/testbed/_examples/custom-method/main.go", "/testbed/_examples/fileserver/data/notes.txt", "/testbed/_examples/fileserver/main.go", "/testbed/_examples/graceful/main.go", "/testbed/_examples/hello-world/main.go", "/testbed/_examples/limits/main.go", "/testbed/_examples/logging/main.go", "/testbed/_examples/rest/go.mod", "/testbed/_examples/rest/go.sum", "/testbed/_examples/rest/main.go", "/testbed/_examples/rest/routes.json", "/testbed/_examples/rest/routes.md", "/testbed/_examples/router-walk/main.go", "/testbed/_examples/todos-resource/main.go", "/testbed/_examples/todos-resource/todos.go", "/testbed/_examples/todos-resource/users.go", "/testbed/_examples/versions/data/article.go", "/testbed/_examples/versions/data/errors.go", "/testbed/_examples/versions/go.mod", "/testbed/_examples/versions/go.sum", "/testbed/_examples/versions/main.go", "/testbed/_examples/versions/presenter/v1/article.go", "/testbed/_examples/versions/presenter/v2/article.go", "/testbed/_examples/versions/presenter/v3/article.go", "/testbed/chain.go", "/testbed/chi.go", "/testbed/context.go", "/testbed/go.mod", "/testbed/middleware/basic_auth.go", "/testbed/middleware/clean_path.go", "/testbed/middleware/compress.go", "/testbed/middleware/content_charset.go", "/testbed/middleware/content_encoding.go", "/testbed/middleware/content_type.go", "/testbed/middleware/get_head.go", "/testbed/middleware/heartbeat.go", "/testbed/middleware/logger.go", "/testbed/middleware/maybe.go", "/testbed/middleware/middleware.go", "/testbed/middleware/nocache.go", "/testbed/middleware/page_route.go", "/testbed/middleware/path_rewrite.go", "/testbed/middleware/profiler.go", "/testbed/middleware/realip.go", "/testbed/middleware/recoverer.go", "/testbed/middleware/request_id.go", "/testbed/middleware/request_size.go", "/testbed/middleware/route_headers.go", "/testbed/middleware/strip.go", "/testbed/middleware/sunset.go", "/testbed/middleware/supress_notfound.go", "/testbed/middleware/terminal.go", "/testbed/middleware/throttle.go", "/testbed/middleware/timeout.go", "/testbed/middleware/url_format.go", "/testbed/middleware/value.go", "/testbed/middleware/wrap_writer.go", "/testbed/mux.go", "/testbed/path_value.go", "/testbed/path_value_fallback.go", "/testbed/tree.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-4c935f9a1651fcba-starter-v1@sha256:bbed00cf0d9a5a2069d8473257b0e669cdf51b8fee4b724ec869acdfcada8fe1", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452{ "agent_image": "registry.hf.space/harness-hub-scale800-4d790c2b9bdbc6d5-starter-v1@sha256:5ebedf8fc2db564d681045b34eca2d7cd6a4979a10a739db315653d7a979e2d9", "expected_task_inventory_sha256": "a9a319358052bf91e48a3428b30afeeffba383a5e767165a12685cb9d93f35d5", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".github/ISSUE_TEMPLATE/bug_report.md": { "bytes": 722, "mode": 420, "sha256": "a1465797eb8d924f6c44af1fc18abb9f6abfcb181446f10ed783638f739c4531" }, ".github/changelog.yml": { "bytes": 839, "mode": 420, "sha256": "d902e0567507d48e68bf9c589af7349ff345f2123e5ac7034d46599ebd9a664d" }, ".github/dependabot.yml": { "bytes": 294, "mode": 420, "sha256": "cd2ecce9684562f2012386cd5b77cde388a65277648e517eae56dd94b36776e0" }, ".gitignore": { "bytes": 253, "mode": 420, "sha256": "c78f32f6f6e365f8c5d7482386d4bb8238946eb9a8c3169e3363f2b8ffc61d9a" }, ".nojekyll": { "bytes": 0, "mode": 420, "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, "LICENSE": { "bytes": 1072, "mode": 420, "sha256": "42c8d055a76a6a91e8f7102a106cd5929592d193aab7d43cdd816a93b24fa218" }, "README.md": { "bytes": 17718, "mode": 420, "sha256": "2a503c5facdb9599e5c08bfcb3e16c69b05330cec8afd722231f0d23dcd1bf05" }, "README.zh-CN.md": { "bytes": 18437, "mode": 420, "sha256": "ca52baafa75fabef09af7d1978cfba7373f8856c2d33a03a860889f7d4b4105c" }, "_examples/README.md": { "bytes": 1394, "mode": 420, "sha256": "8cde34055f925e5b172b5f07c83fe640972a7baaffe5cf7ae59939764db9246c" }, "_examples/color_16.go": { "bytes": 668, "mode": 420, "sha256": "2a0ee7d08c6574aa969cceaab1ca52281fb875c29568eb305a53526ad1cc4299" }, "_examples/color_256.go": { "bytes": 1243, "mode": 420, "sha256": "f3d440f1d6dfeddb78a433323e55c9d7562dd0ca5828522fe9879db5c646dac5" }, "_examples/color_rgb.go": { "bytes": 3296, "mode": 420, "sha256": "0d9814a03f43a49a64d3f579774a50c05555e8f0b6888fb0fb0674225b2287db" }, "_examples/color_tag.go": { "bytes": 631, "mode": 420, "sha256": "79fb08696acbb096f793d998e0b20626188787021ec3536de85d37bebffc916a" }, "_examples/demo.go": { "bytes": 1365, "mode": 420, "sha256": "9ee11a7d3444c888a3dba948299ce8554da07949f8dd98e49d007c6b413ff3ab" }, "_examples/demo_tag.go": { "bytes": 381, "mode": 420, "sha256": "c61610802fe5181eca5b1b8c0eea89889f03c73fb8e3725b4f86df10049cb012" }, "_examples/envcheck.go": { "bytes": 838, "mode": 420, "sha256": "f07de2d8bb96810b098d1ebc64d8cd775cd2dd44941186adbdeffc681ed55f4c" }, "_examples/go.mod": { "bytes": 241, "mode": 420, "sha256": "ae353df6dd462634cfad48e38e71e68b30d15933847b5c66365254709342d337" }, "_examples/go.sum": { "bytes": 4003, "mode": 420, "sha256": "88bee8d1f769534825aeb1d7a889d8c8a7eac5a4e82d2731113a12a9cbb2dddd" }, "_examples/images/256-color.jpg": { "bytes": 171952, "mode": 420, "sha256": "83434c65f3a7efec307f0ebb8a9041b5137f5d6b4c5f55c918780ba5b6c87236" }, "_examples/images/basic-color.png": { "bytes": 86624, "mode": 420, "sha256": "e43ce8140f09c8396bc6ba091c306124aba36b14b093bd30d79f3a211e791b0f" }, "_examples/images/basic-color2.png": { "bytes": 90071, "mode": 420, "sha256": "13664eac4a38da6dede90e7904103738c4d88e1b275c20ae90cc9e67233b28da" }, "_examples/images/color-256.png": { "bytes": 199581, "mode": 420, "sha256": "ba339ea6448afd0ebbd358526161f9067c98226f0c9a5ac2046703047c1c4715" }, "_examples/images/color-demo.jpg": { "bytes": 46509, "mode": 420, "sha256": "4da88981e7c2e1078d23212c99746321802bfb218a5e6cbf4923c05f522ef17b" }, "_examples/images/color-on-cmd-pwsh.jpg": { "bytes": 294394, "mode": 420, "sha256": "ce2acd3e84a827bcf0b60fcfd2104c66b22638cdb4c2adcdd32877abef1b63b7" }, "_examples/images/color-rgb.png": { "bytes": 215377, "mode": 420, "sha256": "330e2d85eca8a9ce57291e467c8a20c20ebffd1919f4fdc6064d88618a683a66" }, "_examples/images/color-tags.png": { "bytes": 131778, "mode": 420, "sha256": "1beb9f0467ec1bb8eeb9c3afa44f6ce3006ffef9cca7bef4e5e98152a493d6a5" }, "_examples/images/demo_tag.png": { "bytes": 32572, "mode": 420, "sha256": "a6f408e8404d35414f778adce9de1be1313d42d719c7e9de33e30567feb68374" }, "_examples/images/theme-basic.png": { "bytes": 82590, "mode": 420, "sha256": "de90f4fa1ef95453dc7b3c033da481dfddadee93af95e67f6a67b7199e8b78db" }, "_examples/images/theme-block.png": { "bytes": 116738, "mode": 420, "sha256": "ec846e3af1911b5da4f84a49782f9110e1ec50b467783307edb4a9c1b7ffa7b6" }, "_examples/images/theme-prompt.png": { "bytes": 92763, "mode": 420, "sha256": "8ce2ec541aa0b0535c1d02e582a78cd86c7cfe293e497147dccd3ff214f5406d" }, "_examples/images/theme-style-all.png": { "bytes": 200574, "mode": 420, "sha256": "883697742b57a7cd351782fe2197935fc0e3e6f5a723133e827d53d0b79b846f" }, "_examples/images/theme-tips.png": { "bytes": 91761, "mode": 420, "sha256": "dbe681d8717e479fc73bb0f3c864b37426d184f36e23ff9814bb4395cd54d124" }, "_examples/issue26.go": { "bytes": 317, "mode": 420, "sha256": "61e8db8c4c0e58c3c2ce417a9139c0d41294c8779c28d565703e07595ab9b48e" }, "_examples/navbar.md": { "bytes": 938, "mode": 420, "sha256": "a052775a6bbe5df79f6812d91579179f6e6f28c8a775ebeee58c8e90a4508b56" }, "_examples/ref/4bit-colors.jpg": { "bytes": 243290, "mode": 420, "sha256": "985be0dd0f4f4698d63a6a16c5a9b3aac0dfdacd65e0d2f540f2823808ab6cd6" }, "_examples/ref/8bit-colors.jpg": { "bytes": 131350, "mode": 420, "sha256": "41bc7c5ff723c317c53f19e6d780249a4567a394aebb8c727dceb7aa51a8e9e0" }, "_examples/ref/ANSI-escape-sequence.md": { "bytes": 4781, "mode": 420, "sha256": "7e812178951665c891d5005fe18609e1ab6ca0b1a3f2ab2b622abc76bbd4de34" }, "_examples/ref/cmd_color.go": { "bytes": 1415, "mode": 420, "sha256": "e92e65c0edec7f05e156a00ce2415a33c8cddf3d511273b20129c806c769431a" }, "_examples/ref/cmd_color1.go": { "bytes": 274, "mode": 420, "sha256": "8dce4d420d17c4257a77fcc967795efa5a6765f8a99c8fd52aaafc9ef2fc2570" }, "_examples/ref/deprecated.go.txt": { "bytes": 12969, "mode": 420, "sha256": "802c30727caa2f508f3e3cf254cdb373609f0101352290181cc6a114e6b0d0ac" }, "_examples/ref/env-term-data.md": { "bytes": 3785, "mode": 420, "sha256": "99fcab27c52b07382583125f7197ee53480fdf0805d86991067132d449e7a79f" }, "_examples/ref/idea.go": { "bytes": 504, "mode": 420, "sha256": "10169789b3ea5ab6fd1dba330f2606ccd298de2e305d2f7e6c48795e902dafce" }, "_examples/related/box-cli-maker.go": { "bytes": 262, "mode": 420, "sha256": "f7dc995ddd00e011c5f6a83bc33b5fcf510718c85b153f4695901a703c57e6a0" }, "_examples/related/terminfo.go": { "bytes": 316, "mode": 420, "sha256": "4f1480a7fda082a2f377116663858d9148143df79a9299c2d16ccc9499887795" }, "_examples/scripts/24bitcolor.sh": { "bytes": 2134, "mode": 420, "sha256": "5a1675b2d1fadf4a3b607e3df190359a1337b4521511a5d39d659508c624bfa6" }, "_examples/scripts/256color.sh": { "bytes": 224, "mode": 420, "sha256": "84200692e0868b194d392aef3609e875a9af5898a8ae2e41557aaeda45d00ed7" }, "_examples/scripts/termval.sh": { "bytes": 37, "mode": 420, "sha256": "5d532befdb25208760677e12e184e8b325b4b6718d838db8df321bfe94b4ba7e" }, "_examples/scripts/truecolor.sh": { "bytes": 418, "mode": 420, "sha256": "d89cd342ab5d9c349114a03fb00d1a44259d18bbab6aa7201a9820adb1cb904e" }, "_examples/theme_basic.go": { "bytes": 289, "mode": 420, "sha256": "90d94f655075a59997423544695e041bf15eb129a7d48a9007fbeb2e2bd33134" }, "_examples/theme_block.go": { "bytes": 304, "mode": 420, "sha256": "fa3c5c589129d2dd210393b31c88076fa5b2a0941e7872ab87633305c8c4fc13" }, "_examples/theme_prompt.go": { "bytes": 302, "mode": 420, "sha256": "a7372e50da40f27857a5abb0ff7e9f5c1f796e50f169d59527abdc03dd8ab07e" }, "_examples/theme_style_all.go": { "bytes": 583, "mode": 420, "sha256": "865739eef50076086f260fc2f2c7df81c832ca34c24922676c8d29f93d8ada7f" }, "_examples/theme_tips.go": { "bytes": 316, "mode": 420, "sha256": "23fb623f3a4ed96ec131ab4287e663f28ef43fdac397b0ad9177a92fb347b3a5" }, "any.go": { "bytes": 76, "mode": 420, "sha256": "7174d16a3dce6918bbbd7b91566cbf1e0948b4f4c01d1f40195a96f6c47e8751" }, "color.go": { "bytes": 5841, "mode": 420, "sha256": "0a952416cb959fce9fa876d6469f286da3f51c74ece228a37fcb4cd578e1ae4a" }, "color_16.go": { "bytes": 11025, "mode": 420, "sha256": "e1eeec776e2b25b30751aa388cf56cefbb899dfb67a7576aa31ad08e220f067d" }, "color_256.go": { "bytes": 6618, "mode": 420, "sha256": "f08e8b8ad05e47336b3c0f67e614c189da56cfd250795cd043aa0ad1335508fb" }, "color_rgb.go": { "bytes": 10348, "mode": 420, "sha256": "126904812895e65972708cbe2b01290e9ef430f9a4cb4e4aad8ffb337e4c4794" }, "color_tag.go": { "bytes": 14344, "mode": 420, "sha256": "4eb6d005486a80156e6142050cd15a8ab1fda2af7091a6f3388ac51f465b7f56" }, "colorp/colorp.go": { "bytes": 3803, "mode": 420, "sha256": "7e4f809ec3eec00b77acdb18817d7bc4c88599acc859b474b5ea6676fe57a1c1" }, "convert.go": { "bytes": 26619, "mode": 420, "sha256": "71a31e1a0541d1270ad4fe04eb519fdeaf4ab83b3e454534a432fb15bb8ebd92" }, "detect_env.go": { "bytes": 8753, "mode": 420, "sha256": "40d5c207e2cefe251d3eca97848e26e7121ecb1b0a885bac0b71d70558b45588" }, "detect_nonwin.go": { "bytes": 1159, "mode": 420, "sha256": "567da0457198a4b5a4604cd94a0f4b12d153403ace2d2116cfdca2a572b6f7ae" }, "detect_windows.go": { "bytes": 6528, "mode": 420, "sha256": "a7e8b5ff2fa926cab13beacdc7dbd0fc5cc68b242152748cd2b11f12452c0575" }, "go.mod": { "bytes": 322, "mode": 420, "sha256": "99e10879de7b56317181cde01e1da0b8852489b01749c6c556c395333e783209" }, "go.sum": { "bytes": 1255, "mode": 420, "sha256": "e42ea3dbeacd259f39661d231dd9184ac226d98407b2fc1e0ea3d37e7a9aa4b7" }, "index.html": { "bytes": 796, "mode": 420, "sha256": "4d1c7f414c72d0367557badc79d1e2e75300ffc513188b5b2d8ac6fabb3a7479" }, "printer.go": { "bytes": 2917, "mode": 420, "sha256": "6ef8f2861c08ca68db493db28a45c8c9c0677003d36f229d36a3cbb4a96d4df8" }, "quickstart.go": { "bytes": 3493, "mode": 420, "sha256": "91c049042ceb13c123e7d52d762459e13a07a7434a9627083edebbf448363c61" }, "style.go": { "bytes": 7649, "mode": 420, "sha256": "95df84c906d5f21d48c6744ea220b0b7bb17aa6432a2a37807f3594681745c8c" }, "utils.go": { "bytes": 4624, "mode": 420, "sha256": "78b164ace6be375dc452d833f18ac4c1f7c1f3a2414f92727512f6415c22e1d1" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.github/ISSUE_TEMPLATE/bug_report.md", "/testbed/.github/changelog.yml", "/testbed/.github/dependabot.yml", "/testbed/.gitignore", "/testbed/.nojekyll", "/testbed/LICENSE", "/testbed/README.md", "/testbed/README.zh-CN.md", "/testbed/_examples/README.md", "/testbed/_examples/color_16.go", "/testbed/_examples/color_256.go", "/testbed/_examples/color_rgb.go", "/testbed/_examples/color_tag.go", "/testbed/_examples/demo.go", "/testbed/_examples/demo_tag.go", "/testbed/_examples/envcheck.go", "/testbed/_examples/go.mod", "/testbed/_examples/go.sum", "/testbed/_examples/images/256-color.jpg", "/testbed/_examples/images/basic-color.png", "/testbed/_examples/images/basic-color2.png", "/testbed/_examples/images/color-256.png", "/testbed/_examples/images/color-demo.jpg", "/testbed/_examples/images/color-on-cmd-pwsh.jpg", "/testbed/_examples/images/color-rgb.png", "/testbed/_examples/images/color-tags.png", "/testbed/_examples/images/demo_tag.png", "/testbed/_examples/images/theme-basic.png", "/testbed/_examples/images/theme-block.png", "/testbed/_examples/images/theme-prompt.png", "/testbed/_examples/images/theme-style-all.png", "/testbed/_examples/images/theme-tips.png", "/testbed/_examples/issue26.go", "/testbed/_examples/navbar.md", "/testbed/_examples/ref/4bit-colors.jpg", "/testbed/_examples/ref/8bit-colors.jpg", "/testbed/_examples/ref/ANSI-escape-sequence.md", "/testbed/_examples/ref/cmd_color.go", "/testbed/_examples/ref/cmd_color1.go", "/testbed/_examples/ref/deprecated.go.txt", "/testbed/_examples/ref/env-term-data.md", "/testbed/_examples/ref/idea.go", "/testbed/_examples/related/box-cli-maker.go", "/testbed/_examples/related/terminfo.go", "/testbed/_examples/scripts/24bitcolor.sh", "/testbed/_examples/scripts/256color.sh", "/testbed/_examples/scripts/termval.sh", "/testbed/_examples/scripts/truecolor.sh", "/testbed/_examples/theme_basic.go", "/testbed/_examples/theme_block.go", "/testbed/_examples/theme_prompt.go", "/testbed/_examples/theme_style_all.go", "/testbed/_examples/theme_tips.go", "/testbed/any.go", "/testbed/color.go", "/testbed/color_16.go", "/testbed/color_256.go", "/testbed/color_rgb.go", "/testbed/color_tag.go", "/testbed/colorp/colorp.go", "/testbed/convert.go", "/testbed/detect_env.go", "/testbed/detect_nonwin.go", "/testbed/detect_windows.go", "/testbed/go.mod", "/testbed/go.sum", "/testbed/index.html", "/testbed/printer.go", "/testbed/quickstart.go", "/testbed/style.go", "/testbed/utils.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-4d790c2b9bdbc6d5-starter-v1@sha256:5ebedf8fc2db564d681045b34eca2d7cd6a4979a10a739db315653d7a979e2d9", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212{ "agent_image": "registry.hf.space/harness-hub-scale800-171eb7c4b9b75f3f-starter-v1@sha256:d1953dd32ff2e5f256299ccb2196273a78988cff5bfc16770e133df80b62ae9d", "expected_task_inventory_sha256": "b321e5fc10b051be86b3022cdab1ad13c90d7ea0da7e0ca5cace7c2a4446dbda", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".codecov.yml": { "bytes": 471, "mode": 420, "sha256": "8e707ec1a3f0ceffcb43878673454a06e4b9d67cf86d48049c5b85c9ccf7ba7f" }, ".github/CODEOWNERS": { "bytes": 23, "mode": 420, "sha256": "cdcba8c23ea8e66127e1cd1bef9c781b4934bcd183a8610785c190c98100429c" }, ".github/ISSUE_TEMPLATE/issue_template.md": { "bytes": 882, "mode": 420, "sha256": "f72d2c8e4b6eace27561d0f9dfba9af3adfb839cfee3db8894e1fe67b5f4035e" }, ".github/dependabot.yml": { "bytes": 276, "mode": 420, "sha256": "8c37eb22b937057d6f19395f38fba2134b1ba842cab0aef23ffd789bf1b148b6" }, ".github/release-drafter.yml": { "bytes": 390, "mode": 420, "sha256": "bce147dfd3f8dc9aebf2ec3939974e3d0fe793a92adbd1c2581b18174404a4bd" }, ".gitignore": { "bytes": 183, "mode": 420, "sha256": "1a7633912508968300ece4481b6deee44eca16a86cad004b3e7219e259fc828a" }, ".golangci.yaml": { "bytes": 438, "mode": 420, "sha256": "09452084d6a5b5f78def8c7ff0f314b51e6e21ba11177afee3efe98a933d3b82" }, "LICENSE": { "bytes": 11357, "mode": 420, "sha256": "b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1" }, "README.md": { "bytes": 8598, "mode": 420, "sha256": "d0410d1ee7ee43e5c7f4b730c544de6d51f9466136696944cf0e3574a5d532a6" }, "bigcache.go": { "bytes": 7884, "mode": 420, "sha256": "113b7f1a2477fedb959e63f334111e49d6d7b81becdcd08c9c61fa4c56ddb915" }, "bytes.go": { "bytes": 163, "mode": 420, "sha256": "6916cf679ae9f23d393efdaba786319f22658f1bafde4b803bb2afa9803eb28c" }, "bytes_appengine.go": { "bytes": 118, "mode": 420, "sha256": "f5caf9266f5938f86b041ab3ea213c32e337ca714cc7909664a4a1aeaff14262" }, "clock.go": { "bytes": 168, "mode": 420, "sha256": "f9907860f15b4b6a4f02799b07698a6c8c30b61de3b5717ca647817d49317498" }, "config.go": { "bytes": 4375, "mode": 420, "sha256": "fe08d8a488b9c5eeff7ce41c534b0a1bed750299c7249b17216179d9fc6791d0" }, "encoding.go": { "bytes": 2629, "mode": 420, "sha256": "30c3c86195f458a6c50183ed38defb05d4fc891fa2abc2ec59b5eef4cc8d0443" }, "entry_not_found_error.go": { "bytes": 198, "mode": 420, "sha256": "e6fa4ea655f302b24ea79ac524df9a632a53736a7b3bb9483498816140060144" }, "fnv.go": { "bytes": 837, "mode": 420, "sha256": "b65cda8dd5b148fccc230c7e6176505cba4d2070f58b060a24754b137f48f3c1" }, "go.mod": { "bytes": 47, "mode": 420, "sha256": "ed4d0d499d3807bb65b3bb2b06b927922a09a593e2cabbc9e55468e9b86c0129" }, "go.sum": { "bytes": 0, "mode": 420, "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, "hash.go": { "bytes": 339, "mode": 420, "sha256": "e0b9382e30e98089a30782a8098d38ed628a46e4fda9ddf5fc1cf12344e03008" }, "iterator.go": { "bytes": 3232, "mode": 420, "sha256": "6770e3ddf57fd7ef15c8069f5a9c172c6c34497108e2fe53f9a764f30cddf0db" }, "logger.go": { "bytes": 635, "mode": 420, "sha256": "ab90b4bc9a2348109d3e3bb5f7486b77f0289b0e73ed348646ca4f725aa907d5" }, "queue/bytes_queue.go": { "bytes": 6740, "mode": 420, "sha256": "b38ed2f1677a276edf5e1d56a1d377952f634eac08bf3a712c8be8ee6e683e22" }, "server/README.md": { "bytes": 3383, "mode": 420, "sha256": "31c6d36457f918e64c2c197e85c68486b31703d0975813d11bbe3e055e2200f4" }, "server/cache_handlers.go": { "bytes": 2452, "mode": 420, "sha256": "3fc826f897cd76cb2da4b23d415c1565a2b7afaf9d4ecfc84d4b08b5775cb891" }, "server/middleware.go": { "bytes": 653, "mode": 420, "sha256": "7036cb032f39e2df51c754de8682edf630b998de15cd42ddaa58cb5d0e2fdd88" }, "server/server.go": { "bytes": 2302, "mode": 420, "sha256": "1be684e9df49bc5d13148c6d0414add246eed51ea427893ed7767ba224132302" }, "server/stats_handler.go": { "bytes": 785, "mode": 420, "sha256": "69cfc624f705514c30603b35d595ba6226ce1157358410218263512a9a2a0caa" }, "shard.go": { "bytes": 10768, "mode": 420, "sha256": "d329f4dae7630ca29e2b3731f3c8030020242f033794aa689f7ed1f0822b9e98" }, "stats.go": { "bytes": 485, "mode": 420, "sha256": "f367500e1cb51b62cf8ad6d0a7b6f5aecf7338d30b85ea5b87ddd94e5315acbc" }, "utils.go": { "bytes": 241, "mode": 420, "sha256": "709a85c5e06f0600b59e5732985f13bb948c064b5f0ab65b7a66696c1068794a" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.codecov.yml", "/testbed/.github/CODEOWNERS", "/testbed/.github/ISSUE_TEMPLATE/issue_template.md", "/testbed/.github/dependabot.yml", "/testbed/.github/release-drafter.yml", "/testbed/.gitignore", "/testbed/.golangci.yaml", "/testbed/LICENSE", "/testbed/README.md", "/testbed/bigcache.go", "/testbed/bytes.go", "/testbed/bytes_appengine.go", "/testbed/clock.go", "/testbed/config.go", "/testbed/encoding.go", "/testbed/entry_not_found_error.go", "/testbed/fnv.go", "/testbed/go.mod", "/testbed/go.sum", "/testbed/hash.go", "/testbed/iterator.go", "/testbed/logger.go", "/testbed/queue/bytes_queue.go", "/testbed/server/README.md", "/testbed/server/cache_handlers.go", "/testbed/server/middleware.go", "/testbed/server/server.go", "/testbed/server/stats_handler.go", "/testbed/shard.go", "/testbed/stats.go", "/testbed/utils.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-171eb7c4b9b75f3f-starter-v1@sha256:d1953dd32ff2e5f256299ccb2196273a78988cff5bfc16770e133df80b62ae9d", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200{ "agent_image": "registry.hf.space/harness-hub-scale800-go-055c69f17f410bee-starter-v1@sha256:9dfb6b7417f54d78d50e6e6bdd951b854ed8da8f5f1782f4fe563a85e1cd0b7a", "expected_task_inventory_sha256": "0e8e1c175a5c0d78959fe1c5b48d87158b18d6268d7821f47c91fbf0cde59058", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".gitignore": { "bytes": 13, "mode": 420, "sha256": "1eaa1ee4d30ac564ac002a67650eff426807e1fd8b9475250d0ef31ee3d458dd" }, ".travis.yml": { "bytes": 768, "mode": 420, "sha256": "5409f254b7fc2f4ed3afcdc45ac2346acedadf2689e14f5d4735e5587cd31a15" }, "LICENSE": { "bytes": 1185, "mode": 420, "sha256": "11ac92da622d8d25df663d4bc5d12f464da1a98a9fbb75930e0e65cc58b80a2f" }, "README.md": { "bytes": 4363, "mode": 420, "sha256": "f1dafb8f66d5eb204201e34fbcf50a08180b7cc6fffb9cd87ed55673d840afc2" }, "case.go": { "bytes": 3065, "mode": 420, "sha256": "9c530c0585dcf3c1f12200afecbc2147edbdc18a2369f726486ebc169bfdb1f1" }, "delete.go": { "bytes": 4806, "mode": 420, "sha256": "700cefe533a6d939aaa689dfcbf148ad8d4b07f0278337944ecc37767479b3eb" }, "delete_ctx.go": { "bytes": 1908, "mode": 420, "sha256": "0fb7da25c0bee63500317da43e1d8bcb5b8d62487ec80e6298135953d62b03f4" }, "expr.go": { "bytes": 9216, "mode": 420, "sha256": "246aa910b8adc931da8773bf9a782d8e8292c5315fd267d3aca2d75792842d8e" }, "go.mod": { "bytes": 321, "mode": 420, "sha256": "b4c6f216eafab7a1ca5209b5ddca006529666f72184aea72293395c69f7140f5" }, "go.sum": { "bytes": 953, "mode": 420, "sha256": "2b4fe7850b36f8effe69d037ed1219df62399e4076034930b8f3d2edb7fa46fd" }, "insert.go": { "bytes": 7710, "mode": 420, "sha256": "626ac9dd6c5cbca5e9e3b93252d82c94d6d6b63ddc967fb0dbcee0f3dc889c2e" }, "insert_ctx.go": { "bytes": 1908, "mode": 420, "sha256": "6f72f9fd2e5e3b9e60f65f1fcf920ba6724242784ba26b9e0924aa8a0667d8b2" }, "integration/doc.go": { "bytes": 53, "mode": 420, "sha256": "2eb5edda1be28404e1f6681d1177cd3f447f8167cacf51f817b853e578e5996c" }, "integration/go.mod": { "bytes": 347, "mode": 420, "sha256": "b8f745640b55a496faf7e8ffe39dcbb223bd4a856c108f38cb5021c5c9fafc3b" }, "integration/go.sum": { "bytes": 3122, "mode": 420, "sha256": "30892c107aa863abb8105816d7f6fa497ec69fd1d6783f4f186a19ff0fe6df80" }, "part.go": { "bytes": 1149, "mode": 420, "sha256": "5fb7ec420cb4f4eff065b0a71e073b8ac74a1a6a81647d19b490be9286bc2258" }, "placeholder.go": { "bytes": 2558, "mode": 420, "sha256": "246a7219eb14597fa9322bac44691e6ff6f7437df8cf7e4f7fe15c263ce61114" }, "row.go": { "bytes": 472, "mode": 420, "sha256": "089fb1c058ccf2f6664c0cdaac097ad6616e5ec0b44939429bce737d70d9c50e" }, "select.go": { "bytes": 11320, "mode": 420, "sha256": "28ab9e3d2a9772d6e0ef08f4fa83ea1ccd4a246f086e0e9431a10e5d42504d33" }, "select_ctx.go": { "bytes": 1908, "mode": 420, "sha256": "ac68ccbb975d46547f21be70d802af6f4de4ac4c41d9e26a925621e725d74787" }, "squirrel.go": { "bytes": 5074, "mode": 420, "sha256": "a5d827d66fdd080a5f2efaccb74fca217265e995d667cf10a026dbc2871e70f9" }, "squirrel_ctx.go": { "bytes": 3085, "mode": 420, "sha256": "2e903ebfb7941cb8f68100dc9c500b5bfb214ea8534aaa21e4ea7ed01a70085d" }, "statement.go": { "bytes": 3254, "mode": 420, "sha256": "f6cbf3d520fe88614795a68113ea020dd9ad3977e9dcd42af6e0a48a906d2caa" }, "stmtcacher.go": { "bytes": 2799, "mode": 420, "sha256": "8f1593570472ec435e653b16a331262629495915b8cf2fda9929e6c7fe0a3c5a" }, "stmtcacher_ctx.go": { "bytes": 2550, "mode": 420, "sha256": "e0c02cbf487302ea082afa304b851c454ece0d85f7073c721afb9e5a9e32f7fc" }, "stmtcacher_noctx.go": { "bytes": 459, "mode": 420, "sha256": "14539e8754cc3ee236d7f8af2e0176fb5a8c6183d73ad0e797913ae51a400b22" }, "update.go": { "bytes": 7349, "mode": 420, "sha256": "6a71f3b4891ad76d45ad74e91dc9e1bdf71aa34bab3688a02d684950049c2aeb" }, "update_ctx.go": { "bytes": 1908, "mode": 420, "sha256": "517c4436ea62524889f3a50339d1d3c3ee89ff23050eecaf5fa3a973b8ec4bf0" }, "where.go": { "bytes": 572, "mode": 420, "sha256": "555836c5dd84cbd7571b5e2b3b5b677f3fcd4cc42a0f1cfb3a176f8909bd0755" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.gitignore", "/testbed/.travis.yml", "/testbed/LICENSE", "/testbed/README.md", "/testbed/case.go", "/testbed/delete.go", "/testbed/delete_ctx.go", "/testbed/expr.go", "/testbed/go.mod", "/testbed/go.sum", "/testbed/insert.go", "/testbed/insert_ctx.go", "/testbed/integration/doc.go", "/testbed/integration/go.mod", "/testbed/integration/go.sum", "/testbed/part.go", "/testbed/placeholder.go", "/testbed/row.go", "/testbed/select.go", "/testbed/select_ctx.go", "/testbed/squirrel.go", "/testbed/squirrel_ctx.go", "/testbed/statement.go", "/testbed/stmtcacher.go", "/testbed/stmtcacher_ctx.go", "/testbed/stmtcacher_noctx.go", "/testbed/update.go", "/testbed/update_ctx.go", "/testbed/where.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-go-055c69f17f410bee-starter-v1@sha256:9dfb6b7417f54d78d50e6e6bdd951b854ed8da8f5f1782f4fe563a85e1cd0b7a", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128{ "agent_image": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "expected_task_inventory_sha256": "fa404164f05c2be608b8b890042f5fb405a6eb2d61b7b158b7cfce5dc35b1688", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".github/FUNDING.yml": { "bytes": 292, "mode": 420, "sha256": "00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2" }, ".github/SECURITY.md": { "bytes": 885, "mode": 420, "sha256": "625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215" }, ".github/dependabot.yml": { "bytes": 510, "mode": 420, "sha256": "01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313" }, ".gitignore": { "bytes": 274, "mode": 420, "sha256": "299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc" }, ".travis.yml": { "bytes": 663, "mode": 420, "sha256": "864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b" }, "LICENSE": { "bytes": 1480, "mode": 420, "sha256": "3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f" }, "README.md": { "bytes": 5189, "mode": 420, "sha256": "5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b" }, "SECURITY.md": { "bytes": 141, "mode": 420, "sha256": "385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd" }, "azure-pipelines.yml": { "bytes": 1088, "mode": 420, "sha256": "27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216" }, "bitset.go": { "bytes": 47840, "mode": 420, "sha256": "f2be1252cd2703161c4d837036bc0c95bf64fc13c96b0ac463c997d4d4a47ddd" }, "bitset_iter.go": { "bytes": 433, "mode": 420, "sha256": "11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750" }, "cmd/pextgen/main.go": { "bytes": 3016, "mode": 420, "sha256": "4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63" }, "go.mod": { "bytes": 50, "mode": 420, "sha256": "e1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd" }, "go.sum": { "bytes": 0, "mode": 420, "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" }, "pext.gen.go": { "bytes": 504581, "mode": 420, "sha256": "9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5" }, "popcnt.go": { "bytes": 774, "mode": 420, "sha256": "e2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58" }, "select.go": { "bytes": 672, "mode": 420, "sha256": "01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.github/FUNDING.yml", "/testbed/.github/SECURITY.md", "/testbed/.github/dependabot.yml", "/testbed/.gitignore", "/testbed/.travis.yml", "/testbed/LICENSE", "/testbed/README.md", "/testbed/SECURITY.md", "/testbed/azure-pipelines.yml", "/testbed/bitset.go", "/testbed/bitset_iter.go", "/testbed/cmd/pextgen/main.go", "/testbed/go.mod", "/testbed/go.sum", "/testbed/pext.gen.go", "/testbed/popcnt.go", "/testbed/select.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458{ "agent_image": "registry.hf.space/harness-hub-scale800-4c935f9a1651fcba-starter-v1@sha256:bbed00cf0d9a5a2069d8473257b0e669cdf51b8fee4b724ec869acdfcada8fe1", "expected_task_inventory_sha256": "6feb76e4b47394393026780b252cdeb337688358b629bb84119707a569583868", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".github/FUNDING.yml": { "bytes": 723, "mode": 420, "sha256": "0e236eacfd30c201e85ff368730f13e6dfb24d21a72c57c8bed0a099bebb3c7b" }, ".gitignore": { "bytes": 20, "mode": 420, "sha256": "785f18e2ac99c66b81d8d185aa1a65cfe4f39b12bef24c1f8037d85840490929" }, "CHANGELOG.md": { "bytes": 15854, "mode": 420, "sha256": "65c419049d2e6efc04b110426e4b5efc628a4ee6b8f080092f25a0dbbb35f071" }, "CONTRIBUTING.md": { "bytes": 1187, "mode": 420, "sha256": "961da16c4fcec58d600fd49cc6ab0dd632d143646d4fcb2f5b1818fb0197fbe7" }, "LICENSE": { "bytes": 1123, "mode": 420, "sha256": "a2d51b7515acfaff2f7a88688650f2fc4fd99561383e72bba2305e3db59a1647" }, "Makefile": { "bytes": 490, "mode": 420, "sha256": "b343163c9d40108d37c7e5fe73e3c1d8f39c2acf26de5d1d227a1be2770205ad" }, "README.md": { "bytes": 23313, "mode": 420, "sha256": "ef6ed94a615b29c4161b9898955e602404655049a68ddf46066bda30e3f297c9" }, "SECURITY.md": { "bytes": 313, "mode": 420, "sha256": "c5f181d947996aebd888182fb8dccf6e7026690e701b5e5ca50b288b4a2cf5c3" }, "_examples/README.md": { "bytes": 1751, "mode": 420, "sha256": "ca21040bf599dc318f33aa9839c347c9f368f09d97a420e8911b4eac7fdc82fe" }, "_examples/chi.svg": { "bytes": 2650, "mode": 420, "sha256": "1a7e8131f1ed48303dc42d93bc50ea330f08f0875cba64d0d03eb96754984127" }, "_examples/custom-handler/main.go": { "bytes": 625, "mode": 420, "sha256": "e5a1f419488c233784f1f7951089305915b377af7462f137cd9bb5fd2a792924" }, "_examples/custom-method/main.go": { "bytes": 853, "mode": 420, "sha256": "de61c6c6cad7f28a9b8b506d32bba52485f6e902ae25954913e8480fa5cfd8a5" }, "_examples/fileserver/data/notes.txt": { "bytes": 11, "mode": 420, "sha256": "9e343fdfdcb2892c5eb6906d405f9ac1f7cb1d73cd8b7f31cf6329719af96576" }, "_examples/fileserver/main.go": { "bytes": 1521, "mode": 420, "sha256": "0c0b96e8104689bc86312805d70a97aea7c870801f09ca03dd47c8edde31f620" }, "_examples/graceful/main.go": { "bytes": 1967, "mode": 420, "sha256": "b642f761971c48ecaf181a0e7fbbe313f893cb5e2a595b3cfe001f916e3bc4b6" }, "_examples/hello-world/main.go": { "bytes": 359, "mode": 420, "sha256": "e8104f868c9a673d864c489347970200808acc0652035a0376694bf5b7b07c86" }, "_examples/limits/main.go": { "bytes": 2181, "mode": 420, "sha256": "590c6d2f322481fed8abe1c2ca34eb0868f0d0a07d1c6aaccc0d6589b59a5d0d" }, "_examples/logging/main.go": { "bytes": 272, "mode": 420, "sha256": "7b3cf7fb608cc030569d4bf75d30f0807ba0849543ee469ad5adadd13a3b8667" }, "_examples/rest/go.mod": { "bytes": 141, "mode": 420, "sha256": "18ba038ee1930a7817c888711e6562aa26281658ef1515789b41fc3b47599c61" }, "_examples/rest/go.sum": { "bytes": 688, "mode": 420, "sha256": "3c5053c9c97cfde3e040fd39ff6858ec65288042a624075ea13784b58cfc1037" }, "_examples/rest/main.go": { "bytes": 15501, "mode": 420, "sha256": "0b9e1e73d7c649601508b3bb6c46b1587da6346f9cf33d6070f06f8e5c3a9298" }, "_examples/rest/routes.json": { "bytes": 11317, "mode": 420, "sha256": "a16c95138e7f52046f617d5a98ebb1c83217d0672ed06dfece652f98ff4e2da2" }, "_examples/rest/routes.md": { "bytes": 4665, "mode": 420, "sha256": "26951bf691542d7ca05d990dc9bddaa90bfb01497bb4f55c4cfb97581319e6f2" }, "_examples/router-walk/main.go": { "bytes": 914, "mode": 420, "sha256": "5e8548ddda78f646d448602e6922252d079803c555086b3f00280b00d10efed6" }, "_examples/todos-resource/main.go": { "bytes": 748, "mode": 420, "sha256": "a0a551b6d6ca81210b129cd2a70d76e38370b2461be78813e6f117cfef6da020" }, "_examples/todos-resource/todos.go": { "bytes": 1453, "mode": 420, "sha256": "5979a0124dbb9febcc1c6846ed843590d40f5ae440d2694e57c0860bf7bc395c" }, "_examples/todos-resource/users.go": { "bytes": 1323, "mode": 420, "sha256": "212c60277ace9afb95ef02729be959c2c39472a14854d2af95c711c265e3778f" }, "_examples/versions/data/article.go": { "bytes": 388, "mode": 420, "sha256": "90aa75226b4514e40033fb406de1319f419c4af5291a82e21a615ba7b5a121f8" }, "_examples/versions/data/errors.go": { "bytes": 542, "mode": 420, "sha256": "e2803582a823e474441392b40e958bf1e1545613d61d1b7911cf6556854635bf" }, "_examples/versions/go.mod": { "bytes": 152, "mode": 420, "sha256": "fd833daea12d311fd9c7182d433095eb224be3a4c80b26311e848c7e452affb5" }, "_examples/versions/go.sum": { "bytes": 491, "mode": 420, "sha256": "0712aab90567f5fa0c11762c05494f8f6b42993b18573679ce165b805ad4e733" }, "_examples/versions/main.go": { "bytes": 4072, "mode": 420, "sha256": "16f5c10e86dadb44039863545041cfbc60de40271b71ea1b1ea62ca46ca2a207" }, "_examples/versions/presenter/v1/article.go": { "bytes": 399, "mode": 420, "sha256": "6183e68da9fde3998f49f528775d302a2462427d24d7d72a1f3511501b8bd817" }, "_examples/versions/presenter/v2/article.go": { "bytes": 625, "mode": 420, "sha256": "8b1ab4c9e381ac1116f2a0572e173b9ddd6b7e889fe1cd6aeb1e75a7d9c10209" }, "_examples/versions/presenter/v3/article.go": { "bytes": 1002, "mode": 420, "sha256": "19a384a64f6009a8565d3b8bae774ed26d1d730ba6f4e5b510ab23f594833173" }, "chain.go": { "bytes": 1517, "mode": 420, "sha256": "8c22d7bbc23f4b4d46ded5ef721a9c3a173031fa2c2c9a7b48c46c2b07e8bd80" }, "chi.go": { "bytes": 4688, "mode": 420, "sha256": "3eaf980c6907f98497be9ec759ae601510f799656fd0663c2c3e202ba4fc5ec9" }, "context.go": { "bytes": 4831, "mode": 420, "sha256": "b453c9c10998064775d2d9886a30d37f1d42a39555ef7b52847af4952fa90f56" }, "go.mod": { "bytes": 149, "mode": 420, "sha256": "a8921a2ecd771d342ee6e7f45065941a943f17c39f1cee4633dd264efa7e97ae" }, "middleware/basic_auth.go": { "bytes": 852, "mode": 420, "sha256": "d1cfa0a32e9871cfba478590d1c1010297df20e53bbf83f34b09a4ec76e8b278" }, "middleware/clean_path.go": { "bytes": 658, "mode": 420, "sha256": "00cf47dd47cf4b6a1fa29dd3d5cdff4f7de8adbea410801128afe8aeaed35f0d" }, "middleware/compress.go": { "bytes": 11491, "mode": 420, "sha256": "3965e92c59ea9a1fb48fa47705870ad379a7ef2c39a41dfb211b5975f86c2773" }, "middleware/content_charset.go": { "bytes": 1239, "mode": 420, "sha256": "54e0df171b3d78cabeb8af3878e861e264f1e95c993352c4edabc94cb3532295" }, "middleware/content_encoding.go": { "bytes": 1087, "mode": 420, "sha256": "a1b35d124400a423d385eca9d066593c790e867db165af75e25b31b649d37fd8" }, "middleware/content_type.go": { "bytes": 1265, "mode": 420, "sha256": "5cedd359e3390edc613557681dda3cbc60faa2e4efb2a8974464876377b3a797" }, "middleware/get_head.go": { "bytes": 977, "mode": 420, "sha256": "76af2014d2080f597a0205f51265badcad7af64d09652a79ed1a214074f5c582" }, "middleware/heartbeat.go": { "bytes": 755, "mode": 420, "sha256": "fc242f8c645cfc7640a36bccccb490cad9136ed07a751b0998f554412c29bca4" }, "middleware/logger.go": { "bytes": 4978, "mode": 420, "sha256": "3b47fe124f65cb60406896cafb7e1b3e179039d8ff852ddf31994875fdef3e64" }, "middleware/maybe.go": { "bytes": 636, "mode": 420, "sha256": "d600d7ea5b3184ea8ea952a145b1fca21e458b94601eae4a6cb215b3a04a3dee" }, "middleware/middleware.go": { "bytes": 684, "mode": 420, "sha256": "8789f84814d815185cb5a7bc6c247969b67d0ff9b8045ee1c95f4c9ad59ff4b1" }, "middleware/nocache.go": { "bytes": 1430, "mode": 420, "sha256": "389eb1e308194561aea139b8d56d49f46b9fb30d84f8da146f5deaea66c5f5cc" }, "middleware/page_route.go": { "bytes": 519, "mode": 420, "sha256": "03f3b50c4a55c345b52ce8f4b6d5da4b977647dd66e2e59b5f3635bda93e779c" }, "middleware/path_rewrite.go": { "bytes": 422, "mode": 420, "sha256": "0f3c01a40e320494a093d804376f3be8519b86285b5e24e8937bcee2c13c9279" }, "middleware/profiler.go": { "bytes": 1325, "mode": 420, "sha256": "16b08d9316eb363cd21aa07a5bddc371b2539333124f9468e5cce9253c4cf655" }, "middleware/realip.go": { "bytes": 1826, "mode": 420, "sha256": "8bf96831b9d8da8aab450e5036b92319a7e9480562e48c143b9e5a38d7adf040" }, "middleware/recoverer.go": { "bytes": 4858, "mode": 420, "sha256": "5bb87fe7d8d78862758c2c566db65937d00148855e2375baf1ad50d91cb635dd" }, "middleware/request_id.go": { "bytes": 2966, "mode": 420, "sha256": "287ac51224b728167000cb8efa060e7b3ff8172445c919e204fb21f858b6490f" }, "middleware/request_size.go": { "bytes": 454, "mode": 420, "sha256": "81a98f72a81442a01a4353be9833fda6803f585bf768cebde5a34ebc1c44c390" }, "middleware/route_headers.go": { "bytes": 4157, "mode": 420, "sha256": "19dce12b9e5ad910782b6fe553737e86e91a311a04aac8029bbf168b1afc6e6a" }, "middleware/strip.go": { "bytes": 2009, "mode": 420, "sha256": "e0043bb1f4a05290599cc756ccd3b60f2a6245708852ff5d057d26848591290b" }, "middleware/sunset.go": { "bytes": 700, "mode": 420, "sha256": "16d99c4da576c4b7c024a12da139421d5659290250bed8f3d3ff6e0ed5d93b0e" }, "middleware/supress_notfound.go": { "bytes": 852, "mode": 420, "sha256": "b3c6cb935d27aaddef0dcb5d165447babf5e9bb42cf28b4ee4e5f4693810888f" }, "middleware/terminal.go": { "bytes": 1885, "mode": 420, "sha256": "da7433dde376ab7deef82ff5acad6bbbc64beca4dad95372468a5747e23dfaa3" }, "middleware/throttle.go": { "bytes": 3933, "mode": 420, "sha256": "0b1d8983f9344502164a9d6534614efd7a0a45e3cea0571c7075b455ffbdf2c9" }, "middleware/timeout.go": { "bytes": 1222, "mode": 420, "sha256": "3e83d007ec300b4ea605d97a336351e562ecd84b32c2b26206791d11ce7501c0" }, "middleware/url_format.go": { "bytes": 1786, "mode": 420, "sha256": "3b2045310974325041cee84b235c92f3716d582aac04a3617df43d2eca00cb3d" }, "middleware/value.go": { "bytes": 436, "mode": 420, "sha256": "2ccb524ee5ccd68885ff0d1de052068026f5c3298705fec930175e2ec06a1f91" }, "middleware/wrap_writer.go": { "bytes": 6080, "mode": 420, "sha256": "6910a3750fb03f79a0eabda47f2b826482df1219a78b9d057248ca0e50bdd486" }, "mux.go": { "bytes": 16661, "mode": 420, "sha256": "56cf12330e1fcfc11ebb5861b714b2bb3178fdcbf5fa5ae2317eb5c8c332160e" }, "path_value.go": { "bytes": 537, "mode": 420, "sha256": "05827f643e0153ca95763474a707f2e656c4d4a3d016cefb52a8ee92fa483a0c" }, "path_value_fallback.go": { "bytes": 541, "mode": 420, "sha256": "cb2f0c7c6c29de7566124accf9dfaf6bd863c85e925db6cc12c56f213e1e7d3c" }, "tree.go": { "bytes": 20698, "mode": 420, "sha256": "c7acff5e14cb351ecec7c5f7ec8b7aef422600fb954e71a7be73bc03547dd467" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.github/FUNDING.yml", "/testbed/.gitignore", "/testbed/CHANGELOG.md", "/testbed/CONTRIBUTING.md", "/testbed/LICENSE", "/testbed/Makefile", "/testbed/README.md", "/testbed/SECURITY.md", "/testbed/_examples/README.md", "/testbed/_examples/chi.svg", "/testbed/_examples/custom-handler/main.go", "/testbed/_examples/custom-method/main.go", "/testbed/_examples/fileserver/data/notes.txt", "/testbed/_examples/fileserver/main.go", "/testbed/_examples/graceful/main.go", "/testbed/_examples/hello-world/main.go", "/testbed/_examples/limits/main.go", "/testbed/_examples/logging/main.go", "/testbed/_examples/rest/go.mod", "/testbed/_examples/rest/go.sum", "/testbed/_examples/rest/main.go", "/testbed/_examples/rest/routes.json", "/testbed/_examples/rest/routes.md", "/testbed/_examples/router-walk/main.go", "/testbed/_examples/todos-resource/main.go", "/testbed/_examples/todos-resource/todos.go", "/testbed/_examples/todos-resource/users.go", "/testbed/_examples/versions/data/article.go", "/testbed/_examples/versions/data/errors.go", "/testbed/_examples/versions/go.mod", "/testbed/_examples/versions/go.sum", "/testbed/_examples/versions/main.go", "/testbed/_examples/versions/presenter/v1/article.go", "/testbed/_examples/versions/presenter/v2/article.go", "/testbed/_examples/versions/presenter/v3/article.go", "/testbed/chain.go", "/testbed/chi.go", "/testbed/context.go", "/testbed/go.mod", "/testbed/middleware/basic_auth.go", "/testbed/middleware/clean_path.go", "/testbed/middleware/compress.go", "/testbed/middleware/content_charset.go", "/testbed/middleware/content_encoding.go", "/testbed/middleware/content_type.go", "/testbed/middleware/get_head.go", "/testbed/middleware/heartbeat.go", "/testbed/middleware/logger.go", "/testbed/middleware/maybe.go", "/testbed/middleware/middleware.go", "/testbed/middleware/nocache.go", "/testbed/middleware/page_route.go", "/testbed/middleware/path_rewrite.go", "/testbed/middleware/profiler.go", "/testbed/middleware/realip.go", "/testbed/middleware/recoverer.go", "/testbed/middleware/request_id.go", "/testbed/middleware/request_size.go", "/testbed/middleware/route_headers.go", "/testbed/middleware/strip.go", "/testbed/middleware/sunset.go", "/testbed/middleware/supress_notfound.go", "/testbed/middleware/terminal.go", "/testbed/middleware/throttle.go", "/testbed/middleware/timeout.go", "/testbed/middleware/url_format.go", "/testbed/middleware/value.go", "/testbed/middleware/wrap_writer.go", "/testbed/mux.go", "/testbed/path_value.go", "/testbed/path_value_fallback.go", "/testbed/tree.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-4c935f9a1651fcba-starter-v1@sha256:bbed00cf0d9a5a2069d8473257b0e669cdf51b8fee4b724ec869acdfcada8fe1", "workdir": "/testbed"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134{ "agent_image": "registry.hf.space/harness-hub-scale800-eb7aab0c9210972a-starter-v1@sha256:b4c53990c2b6126c77ee4b23c87cadbb6672a34b1238ed48f4a13c4c10c72136", "expected_task_inventory_sha256": "819d6548983b696c11812ec524a7a9f60dc6a1d389cd6da91ee07fe360a427e8", "flavor": "cpu-basic", "max_script_bytes": 1048576, "max_submission_bytes": 16777216, "max_tool_output_bytes": 1048576, "namespace": "burtenshaw", "private_paths": [ "/tests", "/solution" ], "public_source_files": { ".travis.yml": { "bytes": 63, "mode": 420, "sha256": "002486b3576743c98726b8f3c320cc28b458517f72c9fc06c93ba00d5563e8ec" }, "LICENSE": { "bytes": 1080, "mode": 420, "sha256": "2c6de2798f2ec318d5e6724e60895c91f852dd216747bd882990c053f913b311" }, "Makefile": { "bytes": 235, "mode": 420, "sha256": "80d53df7b10e67f9922dd7b4464c645951fb0ad2a3c056ae5ef65ca9740e4884" }, "README.md": { "bytes": 4758, "mode": 420, "sha256": "3e5abf68f957e71c766d3a51e8af48df056784da58aaeecea786bddd1e664412" }, "bar.go": { "bytes": 5950, "mode": 420, "sha256": "8004ed6fe64fb71e6d8fcda0a7224ffa9cee7b82595c7ec8f3a98035dcc32d6d" }, "doc.go": { "bytes": 103, "mode": 420, "sha256": "a4d5a07dfdb28aadae02c30d29da6f0e689fa43852eadb5263bb818a1bd86b4d" }, "doc/example_full.gif": { "bytes": 690035, "mode": 420, "sha256": "50e61b105952fe6e1026646bdee423b9239b541dad6b6debf695cb413754830b" }, "doc/example_multi.gif": { "bytes": 803345, "mode": 420, "sha256": "05153e1f4967274b984ec403a62be53ff92e29470b681c75708f44b75ca6a466" }, "doc/example_simple.gif": { "bytes": 235255, "mode": 420, "sha256": "8c7487286a95eca7672dbadec3783d61198d47a5d9f580d4545d0d60ce9b0932" }, "example/bypass/bypass.go": { "bytes": 820, "mode": 420, "sha256": "dab6f41333a518471f3c82ee128b9d2cddc2e29985f63d2cbc87019f59de21bb" }, "example/full/full.go": { "bytes": 952, "mode": 420, "sha256": "1787fffbec667aac6a2f088ed2feb6aa54a376a9e3ac66edc926bfe71cbcef1d" }, "example/incr/incr.go": { "bytes": 827, "mode": 420, "sha256": "a1acafa53db126426f29b2bb7abf38cf15a1810b767ce1b6df7ba9e5c0123ffc" }, "example/multi/multi.go": { "bytes": 694, "mode": 420, "sha256": "cd693211dababbaeaf0d01347ddbc052ddfe1822365c04bf2cc8b0eebb2e0424" }, "example/simple/simple.go": { "bytes": 348, "mode": 420, "sha256": "af3b22ed2190a139bf6678fa27da2db4e56373ed34b0c95a1cb2ca723104446a" }, "go.mod": { "bytes": 139, "mode": 420, "sha256": "0fa457786117f60ec1edabf00640ed25fa3656f804ca77d6b0e3624bc64a9341" }, "go.sum": { "bytes": 547, "mode": 420, "sha256": "ccb6a7a352a14d0d885ca074060cdd628906d355d7d1e1ee820c1a6369ecdccd" }, "progress.go": { "bytes": 3027, "mode": 420, "sha256": "841afb33aad8cfc85ecb7bd130bf573220dffe447fd99ee75dc8402e42a2d546" }, "util/strutil/strutil.go": { "bytes": 1706, "mode": 420, "sha256": "cd398066d502fac1bd8be6ebadbd3122d3307d39c0e1d7f8e2079e50094eaed1" } }, "reward_key": "reward", "reward_path": "/logs/verifier/reward.txt", "submission_paths": [ "/testbed/.travis.yml", "/testbed/LICENSE", "/testbed/Makefile", "/testbed/README.md", "/testbed/bar.go", "/testbed/doc.go", "/testbed/doc/example_full.gif", "/testbed/doc/example_multi.gif", "/testbed/doc/example_simple.gif", "/testbed/example/bypass/bypass.go", "/testbed/example/full/full.go", "/testbed/example/incr/incr.go", "/testbed/example/multi/multi.go", "/testbed/example/simple/simple.go", "/testbed/go.mod", "/testbed/go.sum", "/testbed/progress.go", "/testbed/util/strutil/strutil.go" ], "timeout_seconds": 600, "verifier_command": [ "/bin/bash", "/tests/test.sh" ], "verifier_image": "registry.hf.space/harness-hub-scale800-eb7aab0c9210972a-starter-v1@sha256:b4c53990c2b6126c77ee4b23c87cadbb6672a34b1238ed48f4a13c4c10c72136", "workdir": "/testbed"}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014140751115c3ea09446fd2844b902628c1d520a87cbe8fe773553a8eecb27f2831 claim.jsondc80e07c53093de31b26d295e19f99185506451ba21b4a05c729b5b213d2aa33 controller-receipt.json70dc4b13e186a312078535b031e504aabf6e36db0ef977790a2f37ce510a613e processes/0000.json74582f318ef8fede7cc7d220da37de75b49ad507ef07fd85bd079ee35a045391 processes/0001.json23ce6a4a50a516faa0d1805c21474240e7622de17e89de0286827346a0319d38 processes/0002.jsona345d49bf9c2e50f19899fddf74b08f8ac5cb04b7a82477fbe69fc896eaad359 processes/0003.json32066312e850c1f901f62b800b52db13f2ae4e365ec0d678a8216c1cf2b27daf processes/0004.json942979fbd25d79f261b8a1b0affd021d7712977a364356cfbf71bd52c04baa21 processes/0005.json41c06d94bd31d0d411a503e3e82986cff95bd8d39803a922733ed89c31436f71 report.jsonaab3173ad51dcfc97a7b90e20d1388066f48397296ee652553bd72797be454a1 trials/0000/lifecycle.jsonl443ebb31a1f469dda76a40c5bf1c4fa0b59855543ff3aacdbb773258278ea82a trials/0000/records.json9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa trials/0000/reward.raw00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2 trials/0000/submission/.github/FUNDING.yml625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215 trials/0000/submission/.github/SECURITY.md01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313 trials/0000/submission/.github/dependabot.yml299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc trials/0000/submission/.gitignore864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b trials/0000/submission/.travis.yml3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f trials/0000/submission/LICENSE5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b trials/0000/submission/README.md385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd trials/0000/submission/SECURITY.md27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216 trials/0000/submission/azure-pipelines.yml8f89fcc605c995cf39eb5a1b4377499017d54e478f7b51ac772290ea7fe9812f trials/0000/submission/bitset.go11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750 trials/0000/submission/bitset_iter.go4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63 trials/0000/submission/cmd/pextgen/main.goe1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd trials/0000/submission/go.mode3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trials/0000/submission/go.sum9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5 trials/0000/submission/pext.gen.goe2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58 trials/0000/submission/popcnt.go01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854 trials/0000/submission/select.gobbcf5a8831411e0013f2a2b721005604d13e400b1c1b757b705af04dde0f1c4f trials/0000/trial.json69966aedbf03dd3ca22ed5831bf8fce37351860084190613f50d5ff14d61c954 trials/0000/worker-claim.json349e7225ba141b4bb324a12fe8bc24ba074607e4edf89839a387e1a6a95ff376 trials/0001/lifecycle.jsonl5cf984f137bce4d8c6baf82e92a6c2911c4921bf1624d282a6e30a0b743b1a85 trials/0001/records.json4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 trials/0001/reward.raw00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2 trials/0001/submission/.github/FUNDING.yml625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215 trials/0001/submission/.github/SECURITY.md01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313 trials/0001/submission/.github/dependabot.yml299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc trials/0001/submission/.gitignore864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b trials/0001/submission/.travis.yml3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f trials/0001/submission/LICENSE5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b trials/0001/submission/README.md385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd trials/0001/submission/SECURITY.md27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216 trials/0001/submission/azure-pipelines.ymlb7d0009b4a68db3cea6add8b96db1316579f21414bb1030bbb58258f92fd0918 trials/0001/submission/bitset.go11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750 trials/0001/submission/bitset_iter.go4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63 trials/0001/submission/cmd/pextgen/main.goe1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd trials/0001/submission/go.mode3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trials/0001/submission/go.sum9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5 trials/0001/submission/pext.gen.goe2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58 trials/0001/submission/popcnt.go01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854 trials/0001/submission/select.god4843f0d70819e0e9ca13332ef7304c63b37da2d702c8d9d582ac61a4883c2a4 trials/0001/trial.json1f4f1b9b22564b7e11b5f3770d1f401a46075ea9dc5c238fdc2f01903304ce7c trials/0001/worker-claim.jsone88dee481e09cd899a78d0237fdc9e68c4bbaf3f3094a22cd954d6f1fa12d7eb trials/0002/lifecycle.jsonle101feb4a56aff59cb6b73d988ce93d499eddef68c311a6695a75bc58f70b7c0 trials/0002/records.json4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865 trials/0002/reward.raw00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2 trials/0002/submission/.github/FUNDING.yml625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215 trials/0002/submission/.github/SECURITY.md01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313 trials/0002/submission/.github/dependabot.yml299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc trials/0002/submission/.gitignore864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b trials/0002/submission/.travis.yml3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f trials/0002/submission/LICENSE5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b trials/0002/submission/README.md385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd trials/0002/submission/SECURITY.md27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216 trials/0002/submission/azure-pipelines.ymlb7d0009b4a68db3cea6add8b96db1316579f21414bb1030bbb58258f92fd0918 trials/0002/submission/bitset.go11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750 trials/0002/submission/bitset_iter.go4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63 trials/0002/submission/cmd/pextgen/main.goe1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd trials/0002/submission/go.mode3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trials/0002/submission/go.sum9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5 trials/0002/submission/pext.gen.goe2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58 trials/0002/submission/popcnt.go01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854 trials/0002/submission/select.go55bbd563bec6c798ed988df1397a610b266a9406be9b54cfab49118c195f9027 trials/0002/trial.json9bb55ccd3bd27410febaaca3d1ba191da7d2b8396e5d105723f07ef4edf5ce65 trials/0002/worker-claim.jsona07ff78d98dbf8cd9b00dcc0f3217c50702a3ca935c73a12cd51a72cb90fc0ad trials/0003/lifecycle.jsonl3156055962918537767bad16d7703ac8864d62ed870ac5f3a309861f4f7836a0 trials/0003/records.json9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa trials/0003/reward.raw00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2 trials/0003/submission/.github/FUNDING.yml625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215 trials/0003/submission/.github/SECURITY.md01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313 trials/0003/submission/.github/dependabot.yml299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc trials/0003/submission/.gitignore864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b trials/0003/submission/.travis.yml3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f trials/0003/submission/LICENSE5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b trials/0003/submission/README.md385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd trials/0003/submission/SECURITY.md27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216 trials/0003/submission/azure-pipelines.yml8f89fcc605c995cf39eb5a1b4377499017d54e478f7b51ac772290ea7fe9812f trials/0003/submission/bitset.go11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750 trials/0003/submission/bitset_iter.go4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63 trials/0003/submission/cmd/pextgen/main.goe1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd trials/0003/submission/go.mode3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trials/0003/submission/go.sum9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5 trials/0003/submission/pext.gen.goe2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58 trials/0003/submission/popcnt.go01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854 trials/0003/submission/select.goe12487ac41e78f85efbcaae449f7e2aeb6539a53d8975e465bf25b159a2f2419 trials/0003/trial.json51d4673de2ffd699ffc5e1a69cda64394e0d8719e884f36f142a273c55d62e6c trials/0003/worker-claim.json6fae82025ae8d90634efcd2451b3c50a40713adb9ba97da0dab80eac7c46c12a trials/0004/lifecycle.jsonl43e1992e45f374b21adf10e3b5bccaae57f91bb620ceea742385297629397ba5 trials/0004/records.json9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa trials/0004/reward.raw00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2 trials/0004/submission/.github/FUNDING.yml625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215 trials/0004/submission/.github/SECURITY.md01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313 trials/0004/submission/.github/dependabot.yml299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc trials/0004/submission/.gitignore864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b trials/0004/submission/.travis.yml3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f trials/0004/submission/LICENSE5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b trials/0004/submission/README.md385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd trials/0004/submission/SECURITY.md27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216 trials/0004/submission/azure-pipelines.yml8f89fcc605c995cf39eb5a1b4377499017d54e478f7b51ac772290ea7fe9812f trials/0004/submission/bitset.go11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750 trials/0004/submission/bitset_iter.go4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63 trials/0004/submission/cmd/pextgen/main.goe1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd trials/0004/submission/go.mode3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trials/0004/submission/go.sum9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5 trials/0004/submission/pext.gen.goe2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58 trials/0004/submission/popcnt.go01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854 trials/0004/submission/select.go839e32cdffeed86a6dec35be353e28f7a7fcd8a6e2402da44573f0a20c9cab11 trials/0004/trial.jsona05a2cd4deb6010c4d872de3310cefa6815dad57d62ff44162ed99fa00ee8e90 trials/0004/worker-claim.jsona2be39945e4e22a4bf5c522b5cb74b51843e08aa6ac74e1d1334900233b59596 trials/0005/lifecycle.jsonlfafad5c8437ab7d5254ebba90dee8180cf05d228e9fe846190dec15dd392dcdb trials/0005/records.json9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa trials/0005/reward.raw00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2 trials/0005/submission/.github/FUNDING.yml625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215 trials/0005/submission/.github/SECURITY.md01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313 trials/0005/submission/.github/dependabot.yml299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc trials/0005/submission/.gitignore864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b trials/0005/submission/.travis.yml3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f trials/0005/submission/LICENSE5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b trials/0005/submission/README.md385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd trials/0005/submission/SECURITY.md27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216 trials/0005/submission/azure-pipelines.yml8f89fcc605c995cf39eb5a1b4377499017d54e478f7b51ac772290ea7fe9812f trials/0005/submission/bitset.go11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750 trials/0005/submission/bitset_iter.go4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63 trials/0005/submission/cmd/pextgen/main.goe1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd trials/0005/submission/go.mode3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 trials/0005/submission/go.sum9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5 trials/0005/submission/pext.gen.goe2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58 trials/0005/submission/popcnt.go01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854 trials/0005/submission/select.go2649c29608ffb029888cacb0bda3a8a218e64cefc1c503c9e2815964b9203735 trials/0005/trial.json880e74a0d92f209dc326d98124a2167ad5bff27153da67b5cdb8059b39561477 trials/0005/worker-claim.json123456{ "plan_sha256": "868e0ba257afc317ea6be3b8b3c6b569210dab95143f9e350976fb548f9f8afe", "reservation_id": "hfjobs-go-next-v3:868e0ba257afc317ea6be3b8", "spend_ledger": "/Users/ben/.t3/worktrees/OpenEnv/ben-hub-validation-pipeline/outputs/full-hub-run-20261110/spend-ledger.json", "status": "reserved_execution_one_shot"}12345678910111213141516171819202122232425262728293031323334353637383940{ "admitted": true, "halted_for_cleanup": false, "inference_calls": 0, "native_validation": false, "plan_sha256": "868e0ba257afc317ea6be3b8b3c6b569210dab95143f9e350976fb548f9f8afe", "processes": [ { "index": 0, "process_exit_code": 0, "supervisor_timed_out": false }, { "index": 1, "process_exit_code": 0, "supervisor_timed_out": false }, { "index": 2, "process_exit_code": 0, "supervisor_timed_out": false }, { "index": 3, "process_exit_code": 0, "supervisor_timed_out": false }, { "index": 4, "process_exit_code": 0, "supervisor_timed_out": false }, { "index": 5, "process_exit_code": 0, "supervisor_timed_out": false } ], "reservation_id": "hfjobs-go-next-v3:868e0ba257afc317ea6be3b8"}12345{ "index": 0, "process_exit_code": 0, "supervisor_timed_out": false}12345{ "index": 1, "process_exit_code": 0, "supervisor_timed_out": false}12345{ "index": 2, "process_exit_code": 0, "supervisor_timed_out": false}12345{ "index": 3, "process_exit_code": 0, "supervisor_timed_out": false}12345{ "index": 4, "process_exit_code": 0, "supervisor_timed_out": false}12345{ "index": 5, "process_exit_code": 0, "supervisor_timed_out": false}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393{ "admitted": true, "exact_reward_maps": { "nop": { "reward": "0" }, "oracle": { "reward": "1" }, "oracle-replay": { "reward": "1" }, "validation/canaries/delete-tests.sh": { "reward": "0" }, "validation/canaries/original-bug.sh": { "reward": "0" }, "validation/canaries/stale-reward.sh": { "reward": "0" } }, "execution_backend": "huggingface-sandbox-jobs", "expected_roles": [ "nop", "oracle", "oracle-replay", "validation/canaries/delete-tests.sh", "validation/canaries/original-bug.sh", "validation/canaries/stale-reward.sh" ], "expected_source_digest": "fd735d67815338602863f1f27c9c85a8ab30867f4a0dd8b9ac3127c6b71a007d", "hostile_code_verifier_integrity_qualified": false, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "job_ids": [ "6af5ccf997c30a21be6d6968", "6af5cd1937daa033b628566f", "6af5ccf937daa033b628560a", "6af5cd4137daa033b62856e9", "6af5cd5597c30a21be6d6a43", "6af5cd7837daa033b6285779", "6af5cd8537daa033b6285794", "6af5cdb297c30a21be6d6b6b", "6af5cdd837daa033b6285852", "6af5ce1537daa033b62858fa", "6af5cdfc37daa033b62858ba", "6af5ce1e97c30a21be6d6c64" ], "limitations": [ "Operator-collected Job evidence; this is not a native ValidationReport.", "The collector must inspect actual image, ownership and terminal cleanup of both Jobs per trial.", "Content hashes alone do not attest remote modes, architecture or hostile-code verifier isolation." ], "manifest": { "capabilities": { "canaries": "validation/canaries", "llm_judged": false, "oracle": { "form": "script", "location": "solution/solve.sh" }, "rubric_tree": false, "set_state": false, "task_api": false, "verifier": { "entry": "tests/test.sh", "kind": "script" } }, "execution": { "agent_boundary": "process", "contract_path": "validation/openenv.json", "kind": "harbor_task", "profile": "harbor-semantic-v1", "requires_credentials": false }, "judge": null, "manifest_schema_version": "2", "name": "openenv-hf-gate-_6k5gzpq", "network": { "allowed_hosts": [], "mode": "public" }, "resources": { "cpu": 1.0, "disk_mb": 4096, "episode_timeout_s": 600.0, "gpu_types": [], "gpus": 0, "memory_mb": 2048 }, "reward": { "floor_margin": 0.1, "oracle_tolerance": 0.0, "range": [ 0.0, 1.0 ], "variance_tolerance": null }, "signature": "task.toml", "task_distribution": null, "types": { "tags": [ "swe", "go", "repository-repair" ] }, "version": null }, "native_validation": false, "profile": "harbor-semantic-jobs-v1", "raw_reward_sha256": { "nop": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa", "oracle": "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865", "oracle-replay": "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865", "validation/canaries/delete-tests.sh": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa", "validation/canaries/original-bug.sh": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa", "validation/canaries/stale-reward.sh": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa" }, "results": [ { "check_id": "static.manifest", "evidence": [ "captured Harbor declarations parsed; canaries are mandatory" ], "measured": {}, "status": "pass" }, { "check_id": "runtime.startup", "evidence": [ "all declared trials have distinct, bound, clean Job pairs" ], "measured": { "agent_exit_codes": { "nop": 0, "oracle": 0, "oracle-replay": 0, "validation/canaries/delete-tests.sh": 0, "validation/canaries/original-bug.sh": 0, "validation/canaries/stale-reward.sh": 0 } }, "status": "pass" }, { "check_id": "runtime.reward_well_formed", "evidence": [ "all exact raw reward maps satisfy the declared range" ], "measured": {}, "status": "pass" }, { "check_id": "runtime.episode_determinism", "evidence": [ "oracle replay reproduced the full exact reward map and exit code" ], "measured": {}, "status": "pass" }, { "check_id": "semantic.oracle_max", "duration_s": 2.579099964350462e-05, "evidence": [ "every oracle run reached the declared maximum within tolerance" ], "measured": { "declared_max": 1.0, "oracle_exit_codes": [ 0, 0 ], "oracle_rewards": [ 1.0, 1.0 ], "oracle_tolerance": 0.0 }, "remediation": null, "status": "pass" }, { "check_id": "semantic.floor_gap", "duration_s": 1.3999990187585354e-05, "evidence": [ "the do-nothing reward leaves the declared margin" ], "measured": { "declared_margin": 0.1, "declared_max": 1.0, "measured_floor": 0.0, "oracle_reward": 1.0 }, "remediation": null, "status": "pass" }, { "check_id": "semantic.canary_floor", "duration_s": 1.091696321964264e-05, "evidence": [ "every canary stayed at the do-nothing reward" ], "measured": { "canary_rewards": { "validation/canaries/delete-tests.sh": 0.0, "validation/canaries/original-bug.sh": 0.0, "validation/canaries/stale-reward.sh": 0.0 }, "measured_floor": 0.0 }, "remediation": null, "status": "pass" } ], "rfc008_complete": false, "schema_version": 1, "target_model_calibrated": false, "task_digest": "fd735d67815338602863f1f27c9c85a8ab30867f4a0dd8b9ac3127c6b71a007d", "task_files": { "environment/Dockerfile": { "mode": "0o644", "sha256": "e48a34cdeae46a2285d630a8d6413f0b04fea16c0594089df7f323a93eee90e0", "size": 184 }, "environment/source/.github/FUNDING.yml": { "mode": "0o644", "sha256": "00c2ce055f1bb49c71ff95cfe4b03e61bbe458e72fd08264f956a4a9f08352c2", "size": 292 }, "environment/source/.github/SECURITY.md": { "mode": "0o644", "sha256": "625015bf5fbff4495115fbce18a8cf38d2d6bdb7cb15b9197f8d6f82c0710215", "size": 885 }, "environment/source/.github/dependabot.yml": { "mode": "0o644", "sha256": "01fcc43b305d562d8b9e315d1279ff28601af10bd349f778c6234050b3306313", "size": 510 }, "environment/source/.gitignore": { "mode": "0o644", "sha256": "299d9f593f6bc092a21b514fa18a3eeab05a35c24fe0d22dbf4189b5df3996cc", "size": 274 }, "environment/source/.travis.yml": { "mode": "0o644", "sha256": "864ad720e4757601f643ab7d4beef8bd63198550c18056225def54cf658b175b", "size": 663 }, "environment/source/LICENSE": { "mode": "0o644", "sha256": "3ef376b769105f14098dd45e9d08ed3568c77d38ad33c470634606048e62119f", "size": 1480 }, "environment/source/README.md": { "mode": "0o644", "sha256": "5c96bc6128649a48b97d0985eed44a9a09f6fde619e67b0751dfbf775a488f9b", "size": 5189 }, "environment/source/SECURITY.md": { "mode": "0o644", "sha256": "385a66054ea24984ce518078150d30f9e56647c69636075fab4e2c14044c58fd", "size": 141 }, "environment/source/azure-pipelines.yml": { "mode": "0o644", "sha256": "27022db62e79be1325231876ccb0960089a4449676d6e7667efde4a89cd6d216", "size": 1088 }, "environment/source/bitset.go": { "mode": "0o644", "sha256": "8f89fcc605c995cf39eb5a1b4377499017d54e478f7b51ac772290ea7fe9812f", "size": 47836 }, "environment/source/bitset_iter.go": { "mode": "0o644", "sha256": "11025b610c891c267a9116c418ef98ab5aecd72d681e49423dac60312d414750", "size": 433 }, "environment/source/cmd/pextgen/main.go": { "mode": "0o644", "sha256": "4f1f617e9666310a81f1ad9a984cd647de5b95c486574401797d376648bd5a63", "size": 3016 }, "environment/source/go.mod": { "mode": "0o644", "sha256": "e1d76f51cb52ad77a366c14e391f29ff1adba192135a9a4cbeca5e87ad7e41fd", "size": 50 }, "environment/source/go.sum": { "mode": "0o644", "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "size": 0 }, "environment/source/pext.gen.go": { "mode": "0o644", "sha256": "9724417f2842ce796ada58e2977eaf94447b16d4270a81daef99c630eabbe7b5", "size": 504581 }, "environment/source/popcnt.go": { "mode": "0o644", "sha256": "e2f45369cc4efecf44f2d9de1390459070ee7ac8e6dc4f8d9b18716732e00c58", "size": 774 }, "environment/source/select.go": { "mode": "0o644", "sha256": "01cc0f9ccc46ac016aa66cf636c08e73ec66984a1fce0af387200f06f2670854", "size": 672 }, "instruction.md": { "mode": "0o644", "sha256": "ef1aa2bff6f451e011bb91fea2a12b115b643407f736907904314cdca0599af1", "size": 1444 }, "provenance.json": { "mode": "0o644", "sha256": "73c5fad414c990617955bdd15c7f4443fe2adbdec093bb7070a07dd2d276fb85", "size": 9447 }, "solution/solve.sh": { "mode": "0o755", "sha256": "0f3d9888e92cae7e0d77197f962716f5ac01b51dfa89a785439e1c092f77016e", "size": 64147 }, "task.toml": { "mode": "0o644", "sha256": "baaa1fb1347085b13a4046edaf86b15d5b807a395ec7d661a71775c4927642b1", "size": 161 }, "tests/frozen/bitset_benchmark_test.go": { "mode": "0o644", "sha256": "790dd661ee439e4f930b485b6038858f36cd673c11c3eaf1217c2fe1e4d9b1ad", "size": 15273 }, "tests/frozen/bitset_iter_test.go": { "mode": "0o644", "sha256": "69ddef9f967c051c10bcfb1445ce3580810e965a2456f23379030f9db1783fa3", "size": 1483 }, "tests/frozen/bitset_test.go": { "mode": "0o644", "sha256": "36810260202d7304c38dab2dfe634bf786d75999337144d1f73e04236645fe1f", "size": 68283 }, "tests/frozen/popcnt_test.go": { "mode": "0o644", "sha256": "3b598125af8ba5b207052ddb406851157e79f5a36640e080467f170861f90cd5", "size": 1312 }, "tests/grade.py": { "mode": "0o644", "sha256": "7203729df26cb672597badbbc17d6ff0c8b837fcb325a1fbb56700b966c900a3", "size": 5840 }, "tests/manifest.json": { "mode": "0o644", "sha256": "ead8c67ee97c96a0e2a35782a57ff64e48ef421a3c172a3ea576808505ee3beb", "size": 28456 }, "tests/test.sh": { "mode": "0o755", "sha256": "a91b8a0ea67df94d6eb8276a247725047ac59f6f48ad3e477f3ad7c52b348442", "size": 66 }, "validation/canaries/delete-tests.sh": { "mode": "0o755", "sha256": "a194068a571b4b1eeaf492aeeff4cf603de884d53eac7703c4f848894816833f", "size": 110 }, "validation/canaries/original-bug.sh": { "mode": "0o755", "sha256": "e44b80d0ec4a064f44daf6c21c70e15344bcebdf4a3be2addb289f7d523db0fe", "size": 22 }, "validation/canaries/stale-reward.sh": { "mode": "0o755", "sha256": "36dd7830307eaac882fc7e330ad34bf2c6e7a13842a49d1d66cc2ada37c3869a", "size": 85 }, "validation/openenv.json": { "mode": "0o644", "sha256": "722a26626cc70b11b92cbde59aff58561f78285caad29cdc5dd5f771f2aba8a0", "size": 537 } }, "task_inventory_sha256": "ad7fe8de3322a01152846e1a0c742197073212ae4a93f31249222423f6729e51", "trainability_established": false, "training_admissible": false, "verifier_digest": "de31a054210678b15200c42bd43896916f9c0c9b07d838baee045cc75ff03dfb"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ "at_utc": "2026-11-12T14:28:09.647913+00:00", "event": { "creation_label": "59922de98aed4626998965b89343807a", "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "namespace": "burtenshaw", "status": "creating_job" }}{ "at_utc": "2026-11-12T14:28:21.939155+00:00", "event": { "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "sandbox_id": "6af5ccf997c30a21be6d6968", "status": "created_job" }}{ "at_utc": "2026-11-12T14:28:31.890426+00:00", "event": { "grader": false, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": "6af5ccf997c30a21be6d6968", "status": "public_source_seeded" }}{ "at_utc": "2026-11-12T14:28:40.993744+00:00", "event": { "cleanup_job_ids": null, "cleanup_verified": true, "creation_label": "59922de98aed4626998965b89343807a", "error": null, "grade_sandbox_id": null, "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": "6af5ccf997c30a21be6d6968" }}{ "at_utc": "2026-11-12T14:28:40.998527+00:00", "event": { "creation_label": "b1a0abbb9f2c4438be37e0438645d9c2", "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "namespace": "burtenshaw", "status": "creating_job" }}{ "at_utc": "2026-11-12T14:29:05.082958+00:00", "event": { "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "sandbox_id": "6af5cd1937daa033b628566f", "status": "created_job" }}{ "at_utc": "2026-11-12T14:29:15.408668+00:00", "event": { "grader": true, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": "6af5cd1937daa033b628566f", "status": "public_source_seeded" }}{ "at_utc": "2026-11-12T14:29:38.763567+00:00", "event": { "cleanup_job_ids": null, "cleanup_verified": true, "creation_label": "b1a0abbb9f2c4438be37e0438645d9c2", "error": null, "grade_sandbox_id": "6af5cd1937daa033b628566f", "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": null }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "agent": { "agent_exit_code": 0, "cleanup_verified": true, "creation_label": "59922de98aed4626998965b89343807a", "error": null, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "image_reference_kind": "control_plane_immutable_reference", "input_tokens": 0, "latency_seconds": 31.346035707974806, "limitations": [ "Immutable images are control-plane references, not measured runtime digests.", "Sandbox RPC exposes the execution bearer to the workload server; hostile-code credential isolation is not qualified.", "The verifier executes submitted code as the same user; verifier integrity against hostile submissions is not qualified.", "Inference Providers do not pin served weights to the recorded model source revision.", "Target prompt reservation uses a byte/framing assumption, not a serving-tokenizer or billing guarantee." ], "model_metadata": {}, "output_tokens": 0, "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "role": "nop", "sandbox_id": "6af5ccf997c30a21be6d6968", "submission_digest": "e83ec4cefa184ccee7700dbe2d2b3ed0e2bec34923e080a0abbaed28f0de81c6", "transcript": [ { "exit_code": 0, "output": "", "role": "nop" } ], "usage": { "input_tokens": 0, "output_tokens": 0 } }, "grader": { "cleanup_verified": true, "creation_label": "b1a0abbb9f2c4438be37e0438645d9c2", "error": null, "grade_sandbox_id": "6af5cd1937daa033b628566f", "image_reference_kind": "control_plane_immutable_reference", "latency_seconds": 57.76945550000528, "limitations": [ "Immutable images are control-plane references, not measured runtime digests.", "Sandbox RPC exposes the execution bearer to the workload server; hostile-code credential isolation is not qualified.", "The verifier executes submitted code as the same user; verifier integrity against hostile submissions is not qualified.", "Inference Providers do not pin served weights to the recorded model source revision.", "Target prompt reservation uses a byte/framing assumption, not a serving-tokenizer or billing guarantee." ], "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "reward": 0.0, "transcript": [ { "exit_code": 0, "output": "", "output_truncated": false } ], "verifier_image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9" }}123version https://git-lfs.github.com/spec/v1oid sha256:9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aasize 212345# You can add one username per supported platform and one custom linkpatreon: # Replace with your Patreon usernameopen_collective: # Replace with your Open Collective usernameko_fi: # Replace with your Ko-fi usernamecustom: https://donate.mcc.org/ # Replace with your custom donation URL123456789101112131415161718192021# Security Policy
## Supported Versions
Security updates are applied only to the latest release.
## Reporting a Vulnerability
If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released.
Please use the following contact information for reporting a vulnerability:
- [Daniel Lemire](https://github.com/lemire) - [daniel@lemire.me](mailto:daniel@lemire.me)
In your report, please include:
- A description of the vulnerability and its impact- How to reproduce the it- Affected versions
This project is maintained by a team of volunteers on a reasonable-effort basis. As such, please give us at least 90 days to work on a fix before public exposure.123456789101112131415# To get started with Dependabot version updates, you'll need to specify which# package ecosystems to update and where the package manifests are located.# Please see the documentation for all configuration options:# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly" groups: github-actions: patterns: - "*"1234567891011121314151617181920212223242526# Compiled Object files, Static and Dynamic libs (Shared Objects)*.o*.a*.so
# Folders_obj_test
# Architecture specific extensions/prefixes*.[568vq][568vq].out
*.cgo1.go*.cgo2.c_cgo_defun.c_cgo_gotypes.go_cgo_export.*
_testmain.go
*.exe*.test*.prof
target12345678910111213141516171819202122232425262728293031323334353637language: go
sudo: false
branches: except: - release
branches: only: - master - travis
go: - "1.11.x" - tip
matrix: allow_failures: - go: tip
before_install: - if [ -n "$GH_USER" ]; then git config --global github.user ${GH_USER}; fi; - if [ -n "$GH_TOKEN" ]; then git config --global github.token ${GH_TOKEN}; fi; - go get github.com/mattn/goveralls
before_script: - make deps
script: - make qa
after_failure: - cat ./target/test/report.xml
after_success: - if [ "$TRAVIS_GO_VERSION" = "1.11.1" ]; then $HOME/gopath/bin/goveralls -covermode=count -coverprofile=target/report/coverage.out -service=travis-ci; fi;123456789101112131415161718192021222324252627Copyright (c) 2014 Will Fitzgerald. All rights reserved.
Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions aremet:
* Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the abovecopyright notice, this list of conditions and the following disclaimerin the documentation and/or other materials provided with thedistribution. * Neither the name of Google Inc. nor the names of itscontributors may be used to endorse or promote products derived fromthis software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOTLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FORA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHTOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOTLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANYTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166# bitset
*Go language library to map between non-negative integers and boolean values*
[](https://github.com/willf/bitset/actions?query=workflow%3ATest)[](https://goreportcard.com/report/github.com/willf/bitset)[](https://pkg.go.dev/github.com/bits-and-blooms/bitset?tab=doc)
This library is part of the [awesome go collection](https://github.com/avelino/awesome-go). It is used in production by several important systems:
* [beego](https://github.com/beego/beego)* [CubeFS](https://github.com/cubefs/cubefs)* [Amazon EKS Distro](https://github.com/aws/eks-distro)* [sourcegraph](https://github.com/sourcegraph/sourcegraph-public-snapshot)* [torrent](https://github.com/anacrolix/torrent)
## Description
Package bitset implements bitsets, a mapping between non-negative integers and boolean values.It should be more efficient than map[uint] bool.
It provides methods for setting, clearing, flipping, and testing individual integers.
But it also provides set intersection, union, difference, complement, and symmetric operations, as well as tests to check whether any, all, or no bits are set, and querying a bitset's current length and number of positive bits.
BitSets are expanded to the size of the largest set bit; the memory allocation is approximately Max bits, where Max is the largest set bit. BitSets are never shrunk automatically, but `Shrink` and `Compact` methods are available. On creation, a hint can be given for the number of bits that will be used.
Many of the methods, including Set, Clear, and Flip, return a BitSet pointer, which allows for chaining.
### Example use:
```gopackage main
import ( "fmt" "math/rand"
"github.com/bits-and-blooms/bitset")
func main() { fmt.Printf("Hello from BitSet!\n") var b bitset.BitSet // play some Go Fish for i := 0; i < 100; i++ { card1 := uint(rand.Intn(52)) card2 := uint(rand.Intn(52)) b.Set(card1) if b.Test(card2) { fmt.Println("Go Fish!") } b.Clear(card1) }
// Chaining b.Set(10).Set(11)
for i, e := b.NextSet(0); e; i, e = b.NextSet(i + 1) { fmt.Println("The following bit is set:", i) } if b.Intersection(bitset.New(100).Set(10)).Count() == 1 { fmt.Println("Intersection works.") } else { fmt.Println("Intersection doesn't work???") }}```
If you have Go 1.23 or better, you can iterate over the set bits like so:
```gofor i := range b.EachSet() {}```
Package documentation is at: https://pkg.go.dev/github.com/bits-and-blooms/bitset?tab=doc
## Serialization
You may serialize a bitset safely and portably to a streamof bytes as follows:```Go const length = 9585 const oneEvery = 97 bs := bitset.New(length) // Add some bits for i := uint(0); i < length; i += oneEvery { bs = bs.Set(i) }
var buf bytes.Buffer n, err := bs.WriteTo(&buf) if err != nil { // failure } // Here n == buf.Len()```You can later deserialize the result as follows:
```Go // Read back from buf bs = bitset.New() n, err = bs.ReadFrom(&buf) if err != nil { // error } // n is the number of bytes read```
The `ReadFrom` function attempts to read the data into the existingBitSet instance, to minimize memory allocations.
*Performance tip*: When reading and writing to a file or a network connection, you may get better performance by wrapping your streams with `bufio` instances.
E.g., ```Go f, err := os.Create("myfile") w := bufio.NewWriter(f)``````Go f, err := os.Open("myfile") r := bufio.NewReader(f)```
## Memory Usage
The memory usage of a bitset using `N` bits is at least `N/8` bytes. The number of bits in a bitset is at least as large as one plus the greatest bit index you have accessed. Thus it is possible to run out of memory while using a bitset. If you have lots of bits, you might prefer compressed bitsets, like the [Roaring bitmaps](https://roaringbitmap.org) and its [Go implementation](https://github.com/RoaringBitmap/roaring).
The `roaring` library allows you to go back and forth between compressed Roaring bitmaps and the conventional bitset instances:```Go mybitset := roaringbitmap.ToBitSet() newroaringbitmap := roaring.FromBitSet(mybitset)```
### Goroutine safety
In general, it's not safe to access the same BitSet using different goroutines--they are unsynchronized for performance.
Should you want to access a BitSet from more than one goroutine, you should provide synchronization. Typically this is done by using channels to pass the *BitSet around (in Go style; so there is only ever one owner), or by using `sync.Mutex` to serialize operations on BitSets.
## Installation
```bashgo get github.com/bits-and-blooms/bitset```
## Contributing
If you wish to contribute to this project, please branch and issue a pull request against master ("[GitHub Flow](https://guides.github.com/introduction/flow/)")
## Running all tests
Before committing the code, please check if it passes tests, has adequate coverage, etc.```bashgo testgo test -cover```12345# Security Policy
## Reporting a Vulnerability
You can report privately a vulnerability by email at daniel@lemire.me (current maintainer).123456789101112131415161718192021222324252627282930313233343536373839# Go# Build your Go project.# Add steps that test, save build artifacts, deploy, and more:# https://docs.microsoft.com/azure/devops/pipelines/languages/go
trigger:- master
pool: vmImage: 'Ubuntu-16.04'
variables: GOBIN: '$(GOPATH)/bin' # Go binaries path GOROOT: '/usr/local/go1.11' # Go installation path GOPATH: '$(system.defaultWorkingDirectory)/gopath' # Go workspace path modulePath: '$(GOPATH)/src/github.com/$(build.repository.name)' # Path to the module's code
steps:- script: | mkdir -p '$(GOBIN)' mkdir -p '$(GOPATH)/pkg' mkdir -p '$(modulePath)' shopt -s extglob shopt -s dotglob mv !(gopath) '$(modulePath)' echo '##vso[task.prependpath]$(GOBIN)' echo '##vso[task.prependpath]$(GOROOT)/bin' displayName: 'Set up the Go workspace'
- script: | go version go get -v -t -d ./... if [ -f Gopkg.toml ]; then curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh dep ensure fi go build -v . workingDirectory: '$(modulePath)' displayName: 'Get dependencies, then build'1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756/*Package bitset implements bitsets, a mappingbetween non-negative integers and boolean values. It should be moreefficient than map[uint] bool.
It provides methods for setting, clearing, flipping, and testingindividual integers.
But it also provides set intersection, union, difference,complement, and symmetric operations, as well as tests tocheck whether any, all, or no bits are set, and querying abitset's current length and number of positive bits.
BitSets are expanded to the size of the largest set bit; thememory allocation is approximately Max bits, where Max isthe largest set bit. BitSets are never shrunk. On creation,a hint can be given for the number of bits that will be used.
Many of the methods, including Set,Clear, and Flip, returna BitSet pointer, which allows for chaining.
Example use:
import "bitset" var b BitSet b.Set(10).Set(11) if b.Test(1000) { b.Clear(1000) } if B.Intersection(bitset.New(100).Set(10)).Count() > 1 { fmt.Println("Intersection works.") }
As an alternative to BitSets, one should check out the 'big' package,which provides a (less set-theoretical) view of bitsets.*/package bitset
import ( "bytes" "encoding/base64" "encoding/binary" "encoding/json" "errors" "fmt" "io" "math/bits" "strconv")
// the wordSize of a bit setconst wordSize = 64
// the wordSize of a bit set in bytesconst wordBytes = wordSize / 8
// wordMask is wordSize-1, used for bit indexing in a wordconst wordMask = wordSize - 1
// log2WordSize is lg(wordSize)const log2WordSize = 6
// allBits has every bit setconst allBits uint64 = 0xffffffffffffffff
// default binary BigEndianvar binaryOrder binary.ByteOrder = binary.BigEndian
// default json encoding base64.URLEncodingvar base64Encoding = base64.URLEncoding
// Base64StdEncoding Marshal/Unmarshal BitSet with base64.StdEncoding(Default: base64.URLEncoding)func Base64StdEncoding() { base64Encoding = base64.StdEncoding }
// LittleEndian sets Marshal/Unmarshal Binary as Little Endian (Default: binary.BigEndian)func LittleEndian() { binaryOrder = binary.LittleEndian }
// BigEndian sets Marshal/Unmarshal Binary as Big Endian (Default: binary.BigEndian)func BigEndian() { binaryOrder = binary.BigEndian }
// BinaryOrder returns the current binary order, see also LittleEndian()// and BigEndian() to change the order.func BinaryOrder() binary.ByteOrder { return binaryOrder }
// A BitSet is a set of bits. The zero value of a BitSet is an empty set of length 0.type BitSet struct { length uint set []uint64}
// Error is used to distinguish errors (panics) generated in this package.type Error string
// safeSet will fixup b.set to be non-nil and return the field valuefunc (b *BitSet) safeSet() []uint64 { if b.set == nil { b.set = make([]uint64, wordsNeeded(0)) } return b.set}
// SetBitsetFrom fills the bitset with an array of integers without creating a new BitSet instancefunc (b *BitSet) SetBitsetFrom(buf []uint64) { b.length = uint(len(buf)) * 64 b.set = buf}
// From is a constructor used to create a BitSet from an array of wordsfunc From(buf []uint64) *BitSet { return FromWithLength(uint(len(buf))*64, buf)}
// FromWithLength constructs from an array of words and length in bits.// This function is for advanced users, most users should prefer// the From function.// As a user of FromWithLength, you are responsible for ensuring// that the length is correct: your slice should have length at// least (length+63)/64 in 64-bit words.func FromWithLength(length uint, set []uint64) *BitSet { if len(set) < wordsNeeded(length) { panic("BitSet.FromWithLength: slice is too short") } return &BitSet{length, set}}
// Bytes returns the bitset as array of 64-bit words, giving direct access to the internal representation.// It is not a copy, so changes to the returned slice will affect the bitset.// It is meant for advanced users.//// Deprecated: Bytes is deprecated. Use [BitSet.Words] instead.func (b *BitSet) Bytes() []uint64 { return b.set}
// Words returns the bitset as array of 64-bit words, giving direct access to the internal representation.// It is not a copy, so changes to the returned slice will affect the bitset.// It is meant for advanced users.func (b *BitSet) Words() []uint64 { return b.set}
// wordsNeeded calculates the number of words needed for i bitsfunc wordsNeeded(i uint) int { if i > (Cap() - wordMask) { return int(Cap() >> log2WordSize) } return int((i + wordMask) >> log2WordSize)}
// wordsNeededUnbound calculates the number of words needed for i bits, possibly exceeding the capacity.// This function is useful if you know that the capacity cannot be exceeded (e.g., you have an existing BitSet).func wordsNeededUnbound(i uint) int { return (int(i) + wordMask) >> log2WordSize}
// wordsIndex calculates the index of words in a `uint64`func wordsIndex(i uint) uint { return i & wordMask}
// New creates a new BitSet with a hint that length bits will be required.// The memory usage is at least length/8 bytes.// In case of allocation failure, the function will return a BitSet with zero// capacity.func New(length uint) (bset *BitSet) { defer func() { if r := recover(); r != nil { bset = &BitSet{ 0, make([]uint64, 0), } } }()
bset = &BitSet{ length, make([]uint64, wordsNeeded(length)), }
return bset}
// MustNew creates a new BitSet with the given length bits.// It panics if length exceeds the possible capacity or by a lack of memory.func MustNew(length uint) (bset *BitSet) { if length >= Cap() { panic("You are exceeding the capacity") }
return &BitSet{ length, make([]uint64, wordsNeeded(length)), // may panic on lack of memory }}
// Cap returns the total possible capacity, or number of bits// that can be stored in the BitSet theoretically. Under 32-bit system,// it is 4294967295 and under 64-bit system, it is 18446744073709551615.// Note that this is further limited by the maximum allocation size in Go,// and your available memory, as any Go data structure.func Cap() uint { return ^uint(0)}
// Len returns the number of bits in the BitSet.// Note that it differ from Count function.func (b *BitSet) Len() uint { return b.length}
// extendSet adds additional words to incorporate new bits if neededfunc (b *BitSet) extendSet(i uint) { if i >= Cap() { panic("You are exceeding the capacity") } nsize := wordsNeeded(i + 1) if b.set == nil { b.set = make([]uint64, nsize) } else if cap(b.set) >= nsize { b.set = b.set[:nsize] // fast resize } else if len(b.set) < nsize { newset := make([]uint64, nsize, 2*nsize) // increase capacity 2x copy(newset, b.set) b.set = newset } b.length = i + 1}
// Test whether bit i is set.func (b *BitSet) Test(i uint) bool { if i >= b.length { return false } return b.set[i>>log2WordSize]&(1<<wordsIndex(i)) != 0}
// GetWord64AtBit retrieves bits i through i+63 as a single uint64 valuefunc (b *BitSet) GetWord64AtBit(i uint) uint64 { firstWordIndex := int(i >> log2WordSize) subWordIndex := wordsIndex(i)
// The word that the index falls within, shifted so the index is at bit 0 var firstWord, secondWord uint64 if firstWordIndex < len(b.set) { firstWord = b.set[firstWordIndex] >> subWordIndex }
// The next word, masked to only include the necessary bits and shifted to cover the // top of the word if (firstWordIndex + 1) < len(b.set) { secondWord = b.set[firstWordIndex+1] << uint64(wordSize-subWordIndex) }
return firstWord | secondWord}
// Set bit i to 1, the capacity of the bitset is automatically// increased accordingly.// Warning: using a very large value for 'i'// may lead to a memory shortage and a panic: the caller is responsible// for providing sensible parameters in line with their memory capacity.// The memory usage is at least slightly over i/8 bytes.func (b *BitSet) Set(i uint) *BitSet { if i >= b.length { // if we need more bits, make 'em b.extendSet(i) } b.set[i>>log2WordSize] |= 1 << wordsIndex(i) return b}
// Clear bit i to 0. This never cause a memory allocation. It is always safe.func (b *BitSet) Clear(i uint) *BitSet { if i >= b.length { return b } b.set[i>>log2WordSize] &^= 1 << wordsIndex(i) return b}
// SetTo sets bit i to value.// Warning: using a very large value for 'i'// may lead to a memory shortage and a panic: the caller is responsible// for providing sensible parameters in line with their memory capacity.func (b *BitSet) SetTo(i uint, value bool) *BitSet { if value { return b.Set(i) } return b.Clear(i)}
// Flip bit at i.// Warning: using a very large value for 'i'// may lead to a memory shortage and a panic: the caller is responsible// for providing sensible parameters in line with their memory capacity.func (b *BitSet) Flip(i uint) *BitSet { if i >= b.length { return b.Set(i) } b.set[i>>log2WordSize] ^= 1 << wordsIndex(i) return b}
// FlipRange bit in [start, end).// Warning: using a very large value for 'end'// may lead to a memory shortage and a panic: the caller is responsible// for providing sensible parameters in line with their memory capacity.func (b *BitSet) FlipRange(start, end uint) *BitSet { if start >= end { return b }
if end-1 >= b.length { // if we need more bits, make 'em b.extendSet(end - 1) }
startWord := int(start >> log2WordSize) endWord := int(end >> log2WordSize)
// b.set[startWord] ^= ^(^uint64(0) << wordsIndex(start)) // e.g: // start = 71, // startWord = 1 // wordsIndex(start) = 71 % 64 = 7 // (^uint64(0) << 7) = 0b111111....11110000000 // // mask = ^(^uint64(0) << 7) = 0b000000....00001111111 // // flips the first 7 bits in b.set[1] and // in the range loop, the b.set[1] gets again flipped // so the two expressions flip results in a flip // in b.set[1] from [7,63] // // handle startWord special, get's reflipped in range loop b.set[startWord] ^= ^(^uint64(0) << wordsIndex(start))
for idx := range b.set[startWord:endWord] { b.set[startWord+idx] = ^b.set[startWord+idx] }
// handle endWord special // e.g. // end = 135 // endWord = 2 // // wordsIndex(-7) = 57 // see the golang spec: // "For unsigned integer values, the operations +, -, *, and << are computed // modulo 2n, where n is the bit width of the unsigned integer's type." // // mask = ^uint64(0) >> 57 = 0b00000....0001111111 // // flips in b.set[2] from [0,7] // // is end at word boundary? if idx := wordsIndex(-end); idx != 0 { b.set[endWord] ^= ^uint64(0) >> wordsIndex(idx) }
return b}
// Shrink shrinks BitSet so that the provided value is the last possible// set value. It clears all bits > the provided index and reduces the size// and length of the set.//// Note that the parameter value is not the new length in bits: it is the// maximal value that can be stored in the bitset after the function call.// The new length in bits is the parameter value + 1. Thus it is not possible// to use this function to set the length to 0, the minimal value of the length// after this function call is 1.//// A new slice is allocated to store the new bits, so you may see an increase in// memory usage until the GC runs. Normally this should not be a problem, but if you// have an extremely large BitSet its important to understand that the old BitSet will// remain in memory until the GC frees it.// If you are memory constrained, this function may cause a panic.func (b *BitSet) Shrink(lastbitindex uint) *BitSet { length := lastbitindex + 1 idx := wordsNeeded(length) if idx > len(b.set) { return b } shrunk := make([]uint64, idx) copy(shrunk, b.set[:idx]) b.set = shrunk b.length = length lastWordUsedBits := length % 64 if lastWordUsedBits != 0 { b.set[idx-1] &= allBits >> uint64(64-wordsIndex(lastWordUsedBits)) } return b}
// Compact shrinks BitSet to so that we preserve all set bits, while minimizing// memory usage. Compact calls Shrink.// A new slice is allocated to store the new bits, so you may see an increase in// memory usage until the GC runs. Normally this should not be a problem, but if you// have an extremely large BitSet its important to understand that the old BitSet will// remain in memory until the GC frees it.// If you are memory constrained, this function may cause a panic.func (b *BitSet) Compact() *BitSet { idx := len(b.set) - 1 for ; idx >= 0 && b.set[idx] == 0; idx-- { } newlength := uint((idx + 1) << log2WordSize) if newlength >= b.length { return b // nothing to do } if newlength > 0 { return b.Shrink(newlength - 1) } // We preserve one word return b.Shrink(63)}
// InsertAt takes an index which indicates where a bit should be// inserted. Then it shifts all the bits in the set to the left by 1, starting// from the given index position, and sets the index position to 0.//// Depending on the size of your BitSet, and where you are inserting the new entry,// this method could be extremely slow and in some cases might cause the entire BitSet// to be recopied.func (b *BitSet) InsertAt(idx uint) *BitSet { insertAtElement := idx >> log2WordSize
// if length of set is a multiple of wordSize we need to allocate more space first if b.isLenExactMultiple() { b.set = append(b.set, uint64(0)) }
var i uint for i = uint(len(b.set) - 1); i > insertAtElement; i-- { // all elements above the position where we want to insert can simply by shifted b.set[i] <<= 1
// we take the most significant bit of the previous element and set it as // the least significant bit of the current element b.set[i] |= (b.set[i-1] & 0x8000000000000000) >> 63 }
// generate a mask to extract the data that we need to shift left // within the element where we insert a bit dataMask := uint64(1)<<uint64(wordsIndex(idx)) - 1
// extract that data that we'll shift data := b.set[i] & (^dataMask)
// set the positions of the data mask to 0 in the element where we insert b.set[i] &= dataMask
// shift data mask to the left and insert its data to the slice element b.set[i] |= data << 1
// add 1 to length of BitSet b.length++
return b}
// String creates a string representation of the BitSet. It is only intended for// human-readable output and not for serialization.func (b *BitSet) String() string { // follows code from https://github.com/RoaringBitmap/roaring var buffer bytes.Buffer start := []byte("{") buffer.Write(start) counter := 0 i, e := b.NextSet(0) for e { counter = counter + 1 // to avoid exhausting the memory if counter > 0x40000 { buffer.WriteString("...") break } buffer.WriteString(strconv.FormatInt(int64(i), 10)) i, e = b.NextSet(i + 1) if e { buffer.WriteString(",") } } buffer.WriteString("}") return buffer.String()}
// DeleteAt deletes the bit at the given index position from// within the bitset// All the bits residing on the left of the deleted bit get// shifted right by 1// The running time of this operation may potentially be// relatively slow, O(length)func (b *BitSet) DeleteAt(i uint) *BitSet { // the index of the slice element where we'll delete a bit deleteAtElement := i >> log2WordSize
// generate a mask for the data that needs to be shifted right // within that slice element that gets modified dataMask := ^((uint64(1) << wordsIndex(i)) - 1)
// extract the data that we'll shift right from the slice element data := b.set[deleteAtElement] & dataMask
// set the masked area to 0 while leaving the rest as it is b.set[deleteAtElement] &= ^dataMask
// shift the previously extracted data to the right and then // set it in the previously masked area b.set[deleteAtElement] |= (data >> 1) & dataMask
// loop over all the consecutive slice elements to copy each // lowest bit into the highest position of the previous element, // then shift the entire content to the right by 1 for i := int(deleteAtElement) + 1; i < len(b.set); i++ { b.set[i-1] |= (b.set[i] & 1) << 63 b.set[i] >>= 1 }
b.length = b.length - 1
return b}
// AppendTo appends all set bits to buf and returns the (maybe extended) buf.// In case of allocation failure, the function will panic.//// See also [BitSet.AsSlice] and [BitSet.NextSetMany].func (b *BitSet) AppendTo(buf []uint) []uint { // In theory, we could overflow uint, but in practice, we will not. for idx, word := range b.set { for word != 0 { // In theory idx<<log2WordSize could overflow, but it will not overflow // in practice. buf = append(buf, uint(idx<<log2WordSize+bits.TrailingZeros64(word)))
// clear the rightmost set bit word &= word - 1 } }
return buf}
// AsSlice returns all set bits as slice.// It panics if the capacity of buf is < b.Count()//// See also [BitSet.AppendTo] and [BitSet.NextSetMany].func (b *BitSet) AsSlice(buf []uint) []uint { buf = buf[:cap(buf)] // len = cap
size := 0 for idx, word := range b.set { for ; word != 0; size++ { // panics if capacity of buf is exceeded. // In theory idx<<log2WordSize could overflow, but it will not overflow // in practice. buf[size] = uint(idx<<log2WordSize + bits.TrailingZeros64(word))
// clear the rightmost set bit word &= word - 1 } }
buf = buf[:size] return buf}
// NextSet returns the next bit set from the specified index,// including possibly the current index// along with an error code (true = valid, false = no set bit found)// for i,e := v.NextSet(0); e; i,e = v.NextSet(i + 1) {...}//// Users concerned with performance may want to use NextSetMany to// retrieve several values at once.func (b *BitSet) NextSet(i uint) (uint, bool) { x := int(i >> log2WordSize) if x >= len(b.set) { return 0, false }
// process first (partial) word word := b.set[x] >> wordsIndex(i) if word != 0 { return i + uint(bits.TrailingZeros64(word)), true }
// process the following full words until next bit is set // x < len(b.set), no out-of-bounds panic in following slice expression x++ for idx, word := range b.set[x:] { if word != 0 { return uint((x+idx)<<log2WordSize + bits.TrailingZeros64(word)), true } }
return 0, false}
// NextSetMany returns many next bit sets from the specified index,// including possibly the current index and up to cap(buffer).// If the returned slice has len zero, then no more set bits were found//// buffer := make([]uint, 256) // this should be reused// j := uint(0)// j, buffer = bitmap.NextSetMany(j, buffer)// for ; len(buffer) > 0; j, buffer = bitmap.NextSetMany(j,buffer) {// for k := range buffer {// do something with buffer[k]// }// j += 1// }//// It is possible to retrieve all set bits as follow://// indices := make([]uint, bitmap.Count())// bitmap.NextSetMany(0, indices)//// It is also possible to retrieve all set bits with [BitSet.AppendTo]// or [BitSet.AsSlice].//// However if Count() is large, it might be preferable to// use several calls to NextSetMany for memory reasons.func (b *BitSet) NextSetMany(i uint, buffer []uint) (uint, []uint) { // In theory, we could overflow uint, but in practice, we will not. capacity := cap(buffer) result := buffer[:capacity]
x := int(i >> log2WordSize) if x >= len(b.set) || capacity == 0 { return 0, result[:0] }
// process first (partial) word word := b.set[x] >> wordsIndex(i)
size := 0 for word != 0 { result[size] = i + uint(bits.TrailingZeros64(word))
size++ if size == capacity { return result[size-1], result[:size] }
// clear the rightmost set bit word &= word - 1 }
// process the following full words // x < len(b.set), no out-of-bounds panic in following slice expression x++ for idx, word := range b.set[x:] { for word != 0 { result[size] = uint((x+idx)<<log2WordSize + bits.TrailingZeros64(word))
size++ if size == capacity { return result[size-1], result[:size] }
// clear the rightmost set bit word &= word - 1 } }
if size > 0 { return result[size-1], result[:size] } return 0, result[:0]}
// NextClear returns the next clear bit from the specified index,// including possibly the current index// along with an error code (true = valid, false = no bit found i.e. all bits are set)func (b *BitSet) NextClear(i uint) (uint, bool) { x := int(i >> log2WordSize) if x >= len(b.set) { return 0, false }
// process first (maybe partial) word word := b.set[x] word = word >> wordsIndex(i) wordAll := allBits >> wordsIndex(i)
index := i + uint(bits.TrailingZeros64(^word)) if word != wordAll && index < b.length { return index, true }
// process the following full words until next bit is cleared // x < len(b.set), no out-of-bounds panic in following slice expression x++ for idx, word := range b.set[x:] { if word != allBits { index = uint((x+idx)*wordSize + bits.TrailingZeros64(^word)) if index < b.length { return index, true } } }
return 0, false}
// PreviousSet returns the previous set bit from the specified index,// including possibly the current index// along with an error code (true = valid, false = no bit found i.e. all bits are clear)func (b *BitSet) PreviousSet(i uint) (uint, bool) { x := int(i >> log2WordSize) if x >= len(b.set) { return 0, false } word := b.set[x]
// Clear the bits above the index word = word & ((1 << (wordsIndex(i) + 1)) - 1) if word != 0 { return uint(x<<log2WordSize+bits.Len64(word)) - 1, true }
for x--; x >= 0; x-- { word = b.set[x] if word != 0 { return uint(x<<log2WordSize+bits.Len64(word)) - 1, true } } return 0, false}
// PreviousClear returns the previous clear bit from the specified index,// including possibly the current index// along with an error code (true = valid, false = no clear bit found i.e. all bits are set)func (b *BitSet) PreviousClear(i uint) (uint, bool) { x := int(i >> log2WordSize) if x >= len(b.set) { return 0, false } word := b.set[x]
// Flip all bits and find the highest one bit word = ^word
// Clear the bits above the index word = word & ((1 << (wordsIndex(i) + 1)) - 1)
if word != 0 { return uint(x<<log2WordSize+bits.Len64(word)) - 1, true }
for x--; x >= 0; x-- { word = b.set[x] word = ^word if word != 0 { return uint(x<<log2WordSize+bits.Len64(word)) - 1, true } } return 0, false}
// ClearAll clears the entire BitSet.// It does not free the memory.func (b *BitSet) ClearAll() *BitSet { if b != nil && b.set != nil { for i := range b.set { b.set[i] = 0 } } return b}
// SetAll sets the entire BitSetfunc (b *BitSet) SetAll() *BitSet { if b != nil && b.set != nil { for i := range b.set { b.set[i] = allBits }
b.cleanLastWord() } return b}
// wordCount returns the number of words used in a bit setfunc (b *BitSet) wordCount() int { return wordsNeededUnbound(b.length)}
// Clone this BitSet, returning a new BitSet that has the same bits set.// In case of allocation failure, the function will return an empty BitSet.func (b *BitSet) Clone() *BitSet { c := New(b.length) if b.set != nil { // Clone should not modify current object copy(c.set, b.set) } return c}
// Copy into a destination BitSet using the Go array copy semantics:// the number of bits copied is the minimum of the number of bits in the current// BitSet (Len()) and the destination Bitset.// We return the number of bits copied in the destination BitSet.func (b *BitSet) Copy(c *BitSet) (count uint) { if c == nil { return } if b.set != nil { // Copy should not modify current object copy(c.set, b.set) } count = c.length if b.length < c.length { count = b.length } // Cleaning the last word is needed to keep the invariant that other functions, such as Count, require // that any bits in the last word that would exceed the length of the bitmask are set to 0. c.cleanLastWord() return}
// CopyFull copies into a destination BitSet such that the destination is// identical to the source after the operation, allocating memory if necessary.func (b *BitSet) CopyFull(c *BitSet) { if c == nil { return } c.length = b.length if len(b.set) == 0 { if c.set != nil { c.set = c.set[:0] } } else { if cap(c.set) < len(b.set) { c.set = make([]uint64, len(b.set)) } else { c.set = c.set[:len(b.set)] } copy(c.set, b.set) }}
// Count (number of set bits).// Also known as "popcount" or "population count".func (b *BitSet) Count() uint { if b != nil && b.set != nil { return uint(popcntSlice(b.set)) } return 0}
// Equal tests the equivalence of two BitSets.// False if they are of different sizes, otherwise true// only if all the same bits are setfunc (b *BitSet) Equal(c *BitSet) bool { if c == nil || b == nil { return c == b } if b.length != c.length { return false } if b.length == 0 { // if they have both length == 0, then could have nil set return true } wn := b.wordCount() // bounds check elimination if wn <= 0 { return true } _ = b.set[wn-1] _ = c.set[wn-1] for p := 0; p < wn; p++ { if c.set[p] != b.set[p] { return false } } return true}
func panicIfNull(b *BitSet) { if b == nil { panic(Error("BitSet must not be null")) }}
// Difference of base set and other set// This is the BitSet equivalent of &^ (and not)func (b *BitSet) Difference(compare *BitSet) (result *BitSet) { panicIfNull(b) panicIfNull(compare) result = b.Clone() // clone b (in case b is bigger than compare) l := compare.wordCount() if l > b.wordCount() { l = b.wordCount() } for i := 0; i < l; i++ { result.set[i] = b.set[i] &^ compare.set[i] } return}
// DifferenceCardinality computes the cardinality of the differencefunc (b *BitSet) DifferenceCardinality(compare *BitSet) uint { panicIfNull(b) panicIfNull(compare) l := compare.wordCount() if l > b.wordCount() { l = b.wordCount() } cnt := uint64(0) cnt += popcntMaskSlice(b.set[:l], compare.set[:l]) cnt += popcntSlice(b.set[l:]) return uint(cnt)}
// InPlaceDifference computes the difference of base set and other set// This is the BitSet equivalent of &^ (and not)func (b *BitSet) InPlaceDifference(compare *BitSet) { panicIfNull(b) panicIfNull(compare) l := compare.wordCount() if l > b.wordCount() { l = b.wordCount() } if l <= 0 { return } // bounds check elimination data, cmpData := b.set, compare.set _ = data[l-1] _ = cmpData[l-1] for i := 0; i < l; i++ { data[i] &^= cmpData[i] }}
// Convenience function: return two bitsets ordered by// increasing length. Note: neither can be nilfunc sortByLength(a *BitSet, b *BitSet) (ap *BitSet, bp *BitSet) { if a.length <= b.length { ap, bp = a, b } else { ap, bp = b, a } return}
// Intersection of base set and other set// This is the BitSet equivalent of & (and)// In case of allocation failure, the function will return an empty BitSet.func (b *BitSet) Intersection(compare *BitSet) (result *BitSet) { panicIfNull(b) panicIfNull(compare) b, compare = sortByLength(b, compare) result = New(b.length) for i, word := range b.set { result.set[i] = word & compare.set[i] } return}
// IntersectionCardinality computes the cardinality of the intersectionfunc (b *BitSet) IntersectionCardinality(compare *BitSet) uint { panicIfNull(b) panicIfNull(compare) b, compare = sortByLength(b, compare) cnt := popcntAndSlice(b.set, compare.set) return uint(cnt)}
// InPlaceIntersection destructively computes the intersection of// base set and the compare set.// This is the BitSet equivalent of & (and)func (b *BitSet) InPlaceIntersection(compare *BitSet) { panicIfNull(b) panicIfNull(compare) l := compare.wordCount() if l > b.wordCount() { l = b.wordCount() } if l > 0 { // bounds check elimination data, cmpData := b.set, compare.set _ = data[l-1] _ = cmpData[l-1]
for i := 0; i < l; i++ { data[i] &= cmpData[i] } } if l >= 0 { for i := l; i < len(b.set); i++ { b.set[i] = 0 } } if compare.length > 0 { if compare.length-1 >= b.length { b.extendSet(compare.length - 1) } }}
// Union of base set and other set// This is the BitSet equivalent of | (or)func (b *BitSet) Union(compare *BitSet) (result *BitSet) { panicIfNull(b) panicIfNull(compare) b, compare = sortByLength(b, compare) result = compare.Clone() for i, word := range b.set { result.set[i] = word | compare.set[i] } return}
// UnionCardinality computes the cardinality of the uniton of the base set// and the compare set.func (b *BitSet) UnionCardinality(compare *BitSet) uint { panicIfNull(b) panicIfNull(compare) b, compare = sortByLength(b, compare) cnt := popcntOrSlice(b.set, compare.set) if len(compare.set) > len(b.set) { cnt += popcntSlice(compare.set[len(b.set):]) } return uint(cnt)}
// InPlaceUnion creates the destructive union of base set and compare set.// This is the BitSet equivalent of | (or).func (b *BitSet) InPlaceUnion(compare *BitSet) { panicIfNull(b) panicIfNull(compare) l := compare.wordCount() if l > b.wordCount() { l = b.wordCount() } if compare.length > 0 && compare.length-1 >= b.length { b.extendSet(compare.length - 1) } if l > 0 { // bounds check elimination data, cmpData := b.set, compare.set _ = data[l-1] _ = cmpData[l-1]
for i := 0; i < l; i++ { data[i] |= cmpData[i] } } if len(compare.set) > l { for i := l; i < len(compare.set); i++ { b.set[i] = compare.set[i] } }}
// SymmetricDifference of base set and other set// This is the BitSet equivalent of ^ (xor)func (b *BitSet) SymmetricDifference(compare *BitSet) (result *BitSet) { panicIfNull(b) panicIfNull(compare) b, compare = sortByLength(b, compare) // compare is bigger, so clone it result = compare.Clone() for i, word := range b.set { result.set[i] = word ^ compare.set[i] } return}
// SymmetricDifferenceCardinality computes the cardinality of the symmetric differencefunc (b *BitSet) SymmetricDifferenceCardinality(compare *BitSet) uint { panicIfNull(b) panicIfNull(compare) b, compare = sortByLength(b, compare) cnt := popcntXorSlice(b.set, compare.set) if len(compare.set) > len(b.set) { cnt -= popcntSlice(compare.set[len(b.set):]) } return uint(cnt)}
// InPlaceSymmetricDifference creates the destructive SymmetricDifference of base set and other set// This is the BitSet equivalent of ^ (xor)func (b *BitSet) InPlaceSymmetricDifference(compare *BitSet) { panicIfNull(b) panicIfNull(compare) l := compare.wordCount() if l > b.wordCount() { l = b.wordCount() } if compare.length > 0 && compare.length-1 >= b.length { b.extendSet(compare.length - 1) } if l > 0 { // bounds check elimination data, cmpData := b.set, compare.set _ = data[l-1] _ = cmpData[l-1] for i := 0; i < l; i++ { data[i] ^= cmpData[i] } } if len(compare.set) > l { for i := l; i < len(compare.set); i++ { b.set[i] = compare.set[i] } }}
// Is the length an exact multiple of word sizes?func (b *BitSet) isLenExactMultiple() bool { return wordsIndex(b.length) == 0}
// Clean last word by setting unused bits to 0func (b *BitSet) cleanLastWord() { if !b.isLenExactMultiple() { b.set[len(b.set)-1] &= allBits >> (wordSize - wordsIndex(b.length)) }}
// Complement computes the (local) complement of a bitset (up to length bits)// In case of allocation failure, the function will return an empty BitSet.func (b *BitSet) Complement() (result *BitSet) { panicIfNull(b) result = New(b.length) for i, word := range b.set { result.set[i] = ^word } result.cleanLastWord() return}
// All returns true if all bits are set, false otherwise. Returns true for// empty sets.func (b *BitSet) All() bool { panicIfNull(b) return b.Count() == b.length}
// None returns true if no bit is set, false otherwise. Returns true for// empty sets.func (b *BitSet) None() bool { panicIfNull(b) if b != nil && b.set != nil { for _, word := range b.set { if word > 0 { return false } } } return true}
// Any returns true if any bit is set, false otherwisefunc (b *BitSet) Any() bool { panicIfNull(b) return !b.None()}
// IsSuperSet returns true if this is a superset of the other setfunc (b *BitSet) IsSuperSet(other *BitSet) bool { l := other.wordCount() if b.wordCount() < l { l = b.wordCount() } for i, word := range other.set[:l] { if b.set[i]&word != word { return false } } return popcntSlice(other.set[l:]) == 0}
// IsStrictSuperSet returns true if this is a strict superset of the other setfunc (b *BitSet) IsStrictSuperSet(other *BitSet) bool { return b.Count() > other.Count() && b.IsSuperSet(other)}
// DumpAsBits dumps a bit set as a string of bits. Following the usual convention in Go,// the least significant bits are printed last (index 0 is at the end of the string).// This is useful for debugging and testing. It is not suitable for serialization.func (b *BitSet) DumpAsBits() string { if b.set == nil { return "." } buffer := bytes.NewBufferString("") i := len(b.set) - 1 for ; i >= 0; i-- { fmt.Fprintf(buffer, "%064b.", b.set[i]) } return buffer.String()}
// BinaryStorageSize returns the binary storage requirements (see WriteTo) in bytes.func (b *BitSet) BinaryStorageSize() int { return wordBytes + wordBytes*b.wordCount()}
func readUint64Array(reader io.Reader, data []uint64) error { length := len(data) bufferSize := 128 buffer := make([]byte, bufferSize*wordBytes) for i := 0; i < length; i += bufferSize { end := i + bufferSize if end > length { end = length buffer = buffer[:wordBytes*(end-i)] } chunk := data[i:end] if _, err := io.ReadFull(reader, buffer); err != nil { return err } for i := range chunk { chunk[i] = uint64(binaryOrder.Uint64(buffer[8*i:])) } } return nil}
func writeUint64Array(writer io.Writer, data []uint64) error { bufferSize := 128 buffer := make([]byte, bufferSize*wordBytes) for i := 0; i < len(data); i += bufferSize { end := i + bufferSize if end > len(data) { end = len(data) buffer = buffer[:wordBytes*(end-i)] } chunk := data[i:end] for i, x := range chunk { binaryOrder.PutUint64(buffer[8*i:], x) } _, err := writer.Write(buffer) if err != nil { return err } } return nil}
// WriteTo writes a BitSet to a stream. The format is:// 1. uint64 length// 2. []uint64 set// The length is the number of bits in the BitSet.//// The set is a slice of uint64s containing between length and length + 63 bits.// It is interpreted as a big-endian array of uint64s by default (see BinaryOrder())// meaning that the first 8 bits are stored at byte index 7, the next 8 bits are stored// at byte index 6... the bits 64 to 71 are stored at byte index 8, etc.// If you change the binary order, you need to do so for both reading and writing.// We recommend using the default binary order.//// Upon success, the number of bytes written is returned.//// Performance: if this function is used to write to a disk or network// connection, it might be beneficial to wrap the stream in a bufio.Writer.// E.g.,//// f, err := os.Create("myfile")// w := bufio.NewWriter(f)func (b *BitSet) WriteTo(stream io.Writer) (int64, error) { length := uint64(b.length) // Write length err := binary.Write(stream, binaryOrder, &length) if err != nil { // Upon failure, we do not guarantee that we // return the number of bytes written. return int64(0), err } err = writeUint64Array(stream, b.set[:b.wordCount()]) if err != nil { // Upon failure, we do not guarantee that we // return the number of bytes written. return int64(wordBytes), err } return int64(b.BinaryStorageSize()), nil}
// ReadFrom reads a BitSet from a stream written using WriteTo// The format is:// 1. uint64 length// 2. []uint64 set// See WriteTo for details.// Upon success, the number of bytes read is returned.// If the current BitSet is not large enough to hold the data,// it is extended. In case of error, the BitSet is either// left unchanged or made empty if the error occurs too late// to preserve the content.//// Performance: if this function is used to read from a disk or network// connection, it might be beneficial to wrap the stream in a bufio.Reader.// E.g.,//// f, err := os.Open("myfile")// r := bufio.NewReader(f)func (b *BitSet) ReadFrom(stream io.Reader) (int64, error) { var length uint64 err := binary.Read(stream, binaryOrder, &length) if err != nil { if err == io.EOF { err = io.ErrUnexpectedEOF } return 0, err } newlength := uint(length)
if uint64(newlength) != length { return 0, errors.New("unmarshalling error: type mismatch") } nWords := wordsNeeded(uint(newlength)) if cap(b.set) >= nWords { b.set = b.set[:nWords] } else { b.set = make([]uint64, nWords) }
b.length = newlength
err = readUint64Array(stream, b.set) if err != nil { if err == io.EOF { err = io.ErrUnexpectedEOF } // We do not want to leave the BitSet partially filled as // it is error prone. b.set = b.set[:0] b.length = 0 return 0, err }
return int64(b.BinaryStorageSize()), nil}
// MarshalBinary encodes a BitSet into a binary form and returns the result.// Please see WriteTo for details.func (b *BitSet) MarshalBinary() ([]byte, error) { var buf bytes.Buffer _, err := b.WriteTo(&buf) if err != nil { return []byte{}, err }
return buf.Bytes(), err}
// UnmarshalBinary decodes the binary form generated by MarshalBinary.// Please see WriteTo for details.func (b *BitSet) UnmarshalBinary(data []byte) error { buf := bytes.NewReader(data) _, err := b.ReadFrom(buf) return err}
// MarshalJSON marshals a BitSet as a JSON structurefunc (b BitSet) MarshalJSON() ([]byte, error) { buffer := bytes.NewBuffer(make([]byte, 0, b.BinaryStorageSize())) _, err := b.WriteTo(buffer) if err != nil { return nil, err }
// URLEncode all bytes return json.Marshal(base64Encoding.EncodeToString(buffer.Bytes()))}
// UnmarshalJSON unmarshals a BitSet from JSON created using MarshalJSONfunc (b *BitSet) UnmarshalJSON(data []byte) error { // Unmarshal as string var s string err := json.Unmarshal(data, &s) if err != nil { return err }
// URLDecode string buf, err := base64Encoding.DecodeString(s) if err != nil { return err }
_, err = b.ReadFrom(bytes.NewReader(buf)) return err}
// Rank returns the number of set bits up to and including the index// that are set in the bitset.// See https://en.wikipedia.org/wiki/Ranking#Ranking_in_statisticsfunc (b *BitSet) Rank(index uint) (rank uint) { index++ // Rank is up to and including
// needed more than once length := len(b.set)
// TODO: built-in min requires go1.21 or later // idx := min(int(index>>6), len(b.set)) idx := int(index >> 6) if idx > length { idx = length }
// sum up the popcounts until idx ... // TODO: cannot range over idx (...): requires go1.22 or later // for j := range idx { for j := 0; j < idx; j++ { if w := b.set[j]; w != 0 { rank += uint(bits.OnesCount64(w)) } }
// ... plus partial word at idx, // make Rank inlineable and faster in the end // don't test index&63 != 0, just add, less branching if idx < length { rank += uint(bits.OnesCount64(b.set[idx] << (64 - index&63))) }
return}
// Select returns the index of the jth set bit, where j is the argument.// The caller is responsible to ensure that 0 <= j < Count(): when j is// out of range, the function returns the length of the bitset (b.length).//// Note that this function differs in convention from the Rank function which// returns 1 when ranking the smallest value. We follow the conventional// textbook definition of Select and Rank.func (b *BitSet) Select(index uint) uint { leftover := index for idx, word := range b.set { w := uint(bits.OnesCount64(word)) if w > leftover { return uint(idx)*64 + select64(word, leftover) } leftover -= w } return b.length}
// top detects the top bit setfunc (b *BitSet) top() (uint, bool) { for idx := len(b.set) - 1; idx >= 0; idx-- { if word := b.set[idx]; word != 0 { return uint(idx<<log2WordSize+bits.Len64(word)) - 1, true } }
return 0, false}
// ShiftLeft shifts the bitset like << operation would do.//// Left shift may require bitset size extension. We try to avoid the// unnecessary memory operations by detecting the leftmost set bit.// The function will panic if shift causes excess of capacity.func (b *BitSet) ShiftLeft(bits uint) { panicIfNull(b)
if bits == 0 { return }
top, ok := b.top() if !ok { return }
// capacity check if top+bits < bits { panic("You are exceeding the capacity") }
// destination set dst := b.set
// not using extendSet() to avoid unneeded data copying nsize := wordsNeeded(top + bits) if len(b.set) < nsize { dst = make([]uint64, nsize) } if top+bits >= b.length { b.length = top + bits + 1 }
pad, idx := top%wordSize, top>>log2WordSize shift, pages := bits%wordSize, bits>>log2WordSize if bits%wordSize == 0 { // happy case: just add pages copy(dst[pages:nsize], b.set) } else { if pad+shift >= wordSize { dst[idx+pages+1] = b.set[idx] >> (wordSize - shift) }
for i := int(idx); i >= 0; i-- { if i > 0 { dst[i+int(pages)] = (b.set[i] << shift) | (b.set[i-1] >> (wordSize - shift)) } else { dst[i+int(pages)] = b.set[i] << shift } } }
// zeroing extra pages for i := 0; i < int(pages); i++ { dst[i] = 0 }
b.set = dst}
// ShiftRight shifts the bitset like >> operation would do.func (b *BitSet) ShiftRight(bits uint) { panicIfNull(b)
if bits == 0 { return }
top, ok := b.top() if !ok { return }
if bits >= top { b.set = make([]uint64, wordsNeeded(b.length)) return }
pad, idx := top%wordSize, top>>log2WordSize shift, pages := bits%wordSize, bits>>log2WordSize if bits%wordSize == 0 { // happy case: just clear pages b.set = b.set[pages:] b.length -= pages * wordSize } else { for i := 0; i <= int(idx-pages); i++ { if i < int(idx-pages) { b.set[i] = (b.set[i+int(pages)] >> shift) | (b.set[i+int(pages)+1] << (wordSize - shift)) } else { b.set[i] = b.set[i+int(pages)] >> shift } }
if pad < shift { b.set[int(idx-pages)] = 0 } }
for i := int(idx-pages) + 1; i <= int(idx); i++ { b.set[i] = 0 }}
// OnesBetween returns the number of set bits in the range [from, to).// The range is inclusive of 'from' and exclusive of 'to'.// Returns 0 if from >= to.func (b *BitSet) OnesBetween(from, to uint) uint { panicIfNull(b)
if from >= to { return 0 }
// Calculate indices and masks for the starting and ending words startWord := from >> log2WordSize // Divide by wordSize endWord := to >> log2WordSize startOffset := from & wordMask // Mod wordSize endOffset := to & wordMask
// Case 1: Bits lie within a single word if startWord == endWord { // Create mask for bits between from and to mask := uint64((1<<endOffset)-1) &^ ((1 << startOffset) - 1) return uint(bits.OnesCount64(b.set[startWord] & mask)) }
var count uint
// Case 2: Bits span multiple words // 2a: Count bits in first word (from startOffset to end of word) startMask := ^uint64((1 << startOffset) - 1) // Mask for bits >= startOffset count = uint(bits.OnesCount64(b.set[startWord] & startMask))
// 2b: Count all bits in complete words between start and end if endWord > startWord+1 { count += uint(popcntSlice(b.set[startWord+1 : endWord])) }
// 2c: Count bits in last word (from start of word to endOffset) if endOffset > 0 { endMask := uint64(1<<endOffset) - 1 // Mask for bits < endOffset count += uint(bits.OnesCount64(b.set[endWord] & endMask)) }
return count}
// Extract extracts bits according to a mask and returns the result// in a new BitSet. See ExtractTo for details.func (b *BitSet) Extract(mask *BitSet) *BitSet { dst := New(mask.Count()) b.ExtractTo(mask, dst) return dst}
// ExtractTo copies bits from the BitSet using positions specified in mask// into a compacted form in dst. The number of set bits in mask determines// the number of bits that will be extracted.//// For example, if mask has bits set at positions 1,4,5, then ExtractTo will// take bits at those positions from the source BitSet and pack them into// consecutive positions 0,1,2 in the destination BitSet.func (b *BitSet) ExtractTo(mask *BitSet, dst *BitSet) { panicIfNull(b) panicIfNull(mask) panicIfNull(dst)
if len(mask.set) == 0 || len(b.set) == 0 { return }
// Ensure destination has enough space for extracted bits resultBits := uint(popcntSlice(mask.set)) if dst.length < resultBits { dst.extendSet(resultBits - 1) }
outPos := uint(0) length := len(mask.set) if len(b.set) < length { length = len(b.set) }
// Process each word for i := 0; i < length; i++ { if mask.set[i] == 0 { continue // Skip words with no bits to extract }
// Extract and compact bits according to mask extracted := pext(b.set[i], mask.set[i]) bitsExtracted := uint(bits.OnesCount64(mask.set[i]))
// Calculate destination position wordIdx := outPos >> log2WordSize bitOffset := outPos & wordMask
// Write extracted bits, handling word boundary crossing dst.set[wordIdx] |= extracted << bitOffset if bitOffset+bitsExtracted > wordSize { dst.set[wordIdx+1] = extracted >> (wordSize - bitOffset) }
outPos += bitsExtracted }}
// Deposit creates a new BitSet and deposits bits according to a mask.// See DepositTo for details.func (b *BitSet) Deposit(mask *BitSet) *BitSet { dst := New(mask.length) b.DepositTo(mask, dst) return dst}
// DepositTo spreads bits from a compacted form in the BitSet into positions// specified by mask in dst. This is the inverse operation of Extract.//// For example, if mask has bits set at positions 1,4,5, then DepositTo will// take consecutive bits 0,1,2 from the source BitSet and place them into// positions 1,4,5 in the destination BitSet.func (b *BitSet) DepositTo(mask *BitSet, dst *BitSet) { panicIfNull(b) panicIfNull(mask) panicIfNull(dst)
if len(dst.set) == 0 || len(mask.set) == 0 || len(b.set) == 0 { return }
inPos := uint(0) length := len(mask.set) if len(dst.set) < length { length = len(dst.set) }
// Process each word for i := 0; i < length; i++ { if mask.set[i] == 0 { continue // Skip words with no bits to deposit }
// Calculate source word index wordIdx := inPos >> log2WordSize if wordIdx >= uint(len(b.set)) { break // No more source bits available }
// Get source bits, handling word boundary crossing sourceBits := b.set[wordIdx] bitOffset := inPos & wordMask if wordIdx+1 < uint(len(b.set)) && bitOffset != 0 { // Combine bits from current and next word sourceBits = (sourceBits >> bitOffset) | (b.set[wordIdx+1] << (wordSize - bitOffset)) } else { sourceBits >>= bitOffset }
// Deposit bits according to mask dst.set[i] = (dst.set[i] &^ mask.set[i]) | pdep(sourceBits, mask.set[i]) inPos += uint(bits.OnesCount64(mask.set[i])) }}
//go:generate go run cmd/pextgen/main.go -pkg=bitset
func pext(w, m uint64) (result uint64) { var outPos uint
// Process byte by byte for i := 0; i < 8; i++ { shift := i << 3 // i * 8 using bit shift b := uint8(w >> shift) mask := uint8(m >> shift)
extracted := pextLUT[b][mask] bits := popLUT[mask]
result |= uint64(extracted) << outPos outPos += uint(bits) }
return result}
func pdep(w, m uint64) (result uint64) { var inPos uint
// Process byte by byte for i := 0; i < 8; i++ { shift := i << 3 // i * 8 using bit shift mask := uint8(m >> shift) bits := popLUT[mask]
// Get the bits we'll deposit from the source b := uint8(w >> inPos)
// Deposit them according to the mask for this byte deposited := pdepLUT[b][mask]
// Add to result result |= uint64(deposited) << shift inPos += uint(bits) }
return result}1234567891011121314151617181920212223//go:build go1.23// +build go1.23
package bitset
import ( "iter" "math/bits")
func (b *BitSet) EachSet() iter.Seq[uint] { return func(yield func(uint) bool) { for wordIndex, word := range b.set { idx := 0 for trail := bits.TrailingZeros64(word); trail != 64; trail = bits.TrailingZeros64(word >> idx) { if !yield(uint(wordIndex<<log2WordSize + idx + trail)) { return } idx += trail + 1 } } }}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139package main
import ( "bytes" "flag" "fmt" "go/format" "math/bits" "os")
// pextByte handles single-byte PEXT operationfunc pextByte(b, m uint8) uint8 { var result, bitPos uint8 for i := uint8(0); i < 8; i++ { if m&(1<<i) != 0 { if b&(1<<i) != 0 { result |= 1 << bitPos } bitPos++ } } return result}
// pdepByte handles single-byte PDEP operationfunc pdepByte(b, m uint8) uint8 { var result, bitPos uint8 for i := uint8(0); i < 8; i++ { if m&(1<<i) != 0 { if b&(1<<bitPos) != 0 { result |= 1 << i } bitPos++ } } return result}
func generateTable(name string, data interface{}, comment string) string { var buf bytes.Buffer
if comment != "" { fmt.Fprintf(&buf, "// %s\n", comment) } fmt.Fprintf(&buf, "var %s = ", name)
switch v := data.(type) { case [256]uint8: buf.WriteString("[256]uint8{") for i, val := range v { if i%16 == 0 { buf.WriteString("\n\t") } fmt.Fprintf(&buf, "%d,", val) } buf.WriteString("\n}")
case [256][256]uint8: buf.WriteString("[256][256]uint8{") for i, row := range v { if i%4 == 0 { buf.WriteString("\n\t") } buf.WriteString("{") for j, val := range row { if j%16 == 0 { buf.WriteString("\n\t\t") } fmt.Fprintf(&buf, "%d,", val) } buf.WriteString("\n\t},") } buf.WriteString("\n}") }
return buf.String()}
func main() { packageName := flag.String("pkg", "", "package name for generated code") flag.Parse()
if *packageName == "" { fmt.Fprintln(os.Stderr, "package name is required") return }
// Initialize lookup tables var pextLUT [256][256]uint8 var pdepLUT [256][256]uint8 var popLUT [256]uint8
for b := 0; b < 256; b++ { popLUT[b] = uint8(bits.OnesCount8(uint8(b))) for m := 0; m < 256; m++ { pextLUT[b][m] = pextByte(uint8(b), uint8(m)) pdepLUT[b][m] = pdepByte(uint8(b), uint8(m)) } }
// Generate code var buf bytes.Buffer buf.WriteString("// Code generated by cmd/pextgen/main.go; DO NOT EDIT.\n") buf.WriteString("//\n") buf.WriteString("// To regenerate this file:\n") buf.WriteString("// go run cmd/pextgen/main.go\n") buf.WriteString("\n") fmt.Fprintf(&buf, "package %s\n\n", *packageName)
tables := []struct { name string data interface{} comment string }{ {"pextLUT", pextLUT, "pextLUT contains pre-computed parallel bit extraction results"}, {"pdepLUT", pdepLUT, "pdepLUT contains pre-computed parallel bit deposit results"}, {"popLUT", popLUT, "popLUT contains pre-computed population counts"}, }
for _, table := range tables { buf.WriteString(generateTable(table.name, table.data, table.comment)) buf.WriteString("\n\n") }
// Format the generated code formatted, err := format.Source(buf.Bytes()) if err != nil { fmt.Fprintf(os.Stderr, "Failed to format code: %v\n", err) os.Exit(1) }
// Write to tables.go err = os.WriteFile("pext.gen.go", formatted, 0644) if err != nil { fmt.Fprintf(os.Stderr, "Failed to write file: %v\n", err) os.Exit(1) }}123module github.com/bits-and-blooms/bitset
go 1.16123456789101112131415161718192021222324252627282930313233343536373839404142package bitset
import "math/bits"
func popcntSlice(s []uint64) (cnt uint64) { for _, x := range s { cnt += uint64(bits.OnesCount64(x)) } return}
func popcntMaskSlice(s, m []uint64) (cnt uint64) { _ = m[len(s)-1] // BCE for i := range s { cnt += uint64(bits.OnesCount64(s[i] &^ m[i])) } return}
func popcntAndSlice(s, m []uint64) (cnt uint64) { _ = m[len(s)-1] // BCE for i := range s { cnt += uint64(bits.OnesCount64(s[i] & m[i])) } return}
func popcntOrSlice(s, m []uint64) (cnt uint64) { _ = m[len(s)-1] // BCE for i := range s { cnt += uint64(bits.OnesCount64(s[i] | m[i])) } return}
func popcntXorSlice(s, m []uint64) (cnt uint64) { _ = m[len(s)-1] // BCE for i := range s { cnt += uint64(bits.OnesCount64(s[i] ^ m[i])) } return}1234567891011121314151617181920212223242526272829303132333435363738394041424344454647package bitset
import "math/bits"
func select64(w uint64, j uint) uint { seen := 0 // Divide 64bit part := w & 0xFFFFFFFF n := uint(bits.OnesCount64(part)) if n <= j { part = w >> 32 seen += 32 j -= n } ww := part
// Divide 32bit part = ww & 0xFFFF
n = uint(bits.OnesCount64(part)) if n <= j { part = ww >> 16 seen += 16 j -= n } ww = part
// Divide 16bit part = ww & 0xFF n = uint(bits.OnesCount64(part)) if n <= j { part = ww >> 8 seen += 8 j -= n } ww = part
// Lookup in final byte counter := 0 for ; counter < 8; counter++ { j -= uint((ww >> counter) & 1) if j+1 == 0 { break } } return uint(seen + counter)}12345678910111213141516{ "agent_exit_code": 0, "cleanup_verified": true, "error": null, "grade_sandbox_id": "6af5cd1937daa033b628566f", "grader_image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "raw_reward_path": "reward.raw", "raw_reward_sha256": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa", "role": "nop", "sandbox_id": "6af5ccf997c30a21be6d6968", "task_digest": "fd735d67815338602863f1f27c9c85a8ab30867f4a0dd8b9ac3127c6b71a007d", "task_inventory_sha256": "ad7fe8de3322a01152846e1a0c742197073212ae4a93f31249222423f6729e51", "verifier_digest": "de31a054210678b15200c42bd43896916f9c0c9b07d838baee045cc75ff03dfb", "verifier_exit_code": 0}1234{ "index": 0, "plan_sha256": "868e0ba257afc317ea6be3b8b3c6b569210dab95143f9e350976fb548f9f8afe"}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778{ "at_utc": "2026-11-12T14:28:09.653169+00:00", "event": { "creation_label": "8bb300a4d56345eb9507d20285ea56c7", "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "namespace": "burtenshaw", "status": "creating_job" }}{ "at_utc": "2026-11-12T14:29:00.965776+00:00", "event": { "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "sandbox_id": "6af5ccf937daa033b628560a", "status": "created_job" }}{ "at_utc": "2026-11-12T14:29:11.218487+00:00", "event": { "grader": false, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": "6af5ccf937daa033b628560a", "status": "public_source_seeded" }}{ "at_utc": "2026-11-12T14:29:21.106715+00:00", "event": { "cleanup_job_ids": null, "cleanup_verified": true, "creation_label": "8bb300a4d56345eb9507d20285ea56c7", "error": null, "grade_sandbox_id": null, "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": "6af5ccf937daa033b628560a" }}{ "at_utc": "2026-11-12T14:29:21.110178+00:00", "event": { "creation_label": "cccd64f104db4d34b07b855f712fddf7", "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "namespace": "burtenshaw", "status": "creating_job" }}{ "at_utc": "2026-11-12T14:29:47.822188+00:00", "event": { "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "sandbox_id": "6af5cd4137daa033b62856e9", "status": "created_job" }}{ "at_utc": "2026-11-12T14:29:58.065137+00:00", "event": { "grader": true, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": "6af5cd4137daa033b62856e9", "status": "public_source_seeded" }}{ "at_utc": "2026-11-12T14:30:26.750953+00:00", "event": { "cleanup_job_ids": null, "cleanup_verified": true, "creation_label": "cccd64f104db4d34b07b855f712fddf7", "error": null, "grade_sandbox_id": "6af5cd4137daa033b62856e9", "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "sandbox_id": null }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ "agent": { "agent_exit_code": 0, "cleanup_verified": true, "creation_label": "8bb300a4d56345eb9507d20285ea56c7", "error": null, "image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9", "image_reference_kind": "control_plane_immutable_reference", "input_tokens": 0, "latency_seconds": 71.45346737501677, "limitations": [ "Immutable images are control-plane references, not measured runtime digests.", "Sandbox RPC exposes the execution bearer to the workload server; hostile-code credential isolation is not qualified.", "The verifier executes submitted code as the same user; verifier integrity against hostile submissions is not qualified.", "Inference Providers do not pin served weights to the recorded model source revision.", "Target prompt reservation uses a byte/framing assumption, not a serving-tokenizer or billing guarantee." ], "model_metadata": {}, "output_tokens": 0, "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "role": "oracle", "sandbox_id": "6af5ccf937daa033b628560a", "submission_digest": "7df2297dfa55cf697ad4012f5b536af50f03e0eebbc261f6bbb81389c135bdda", "transcript": [ { "exit_code": 0, "output": "", "role": "oracle" } ], "usage": { "input_tokens": 0, "output_tokens": 0 } }, "grader": { "cleanup_verified": true, "creation_label": "cccd64f104db4d34b07b855f712fddf7", "error": null, "grade_sandbox_id": "6af5cd4137daa033b62856e9", "image_reference_kind": "control_plane_immutable_reference", "latency_seconds": 65.64362262497889, "limitations": [ "Immutable images are control-plane references, not measured runtime digests.", "Sandbox RPC exposes the execution bearer to the workload server; hostile-code credential isolation is not qualified.", "The verifier executes submitted code as the same user; verifier integrity against hostile submissions is not qualified.", "Inference Providers do not pin served weights to the recorded model source revision.", "Target prompt reservation uses a byte/framing assumption, not a serving-tokenizer or billing guarantee." ], "public_seed_sha256": "1a81e2ae92345108b46a82e518f1d036eec17cd0114749f6870abb8dc74fab5b", "reward": 1.0, "transcript": [ { "exit_code": 0, "output": "", "output_truncated": false } ], "verifier_image_ref": "registry.hf.space/harness-hub-scale800-a91d078628985ab5-starter-v1@sha256:f13aa4ff52b15391e35fbe1d0ce02c59fbee52539ff28c2059045cc80c7ff8d9" }}123version https://git-lfs.github.com/spec/v1oid sha256:4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865size 212345# You can add one username per supported platform and one custom linkpatreon: # Replace with your Patreon usernameopen_collective: # Replace with your Open Collective usernameko_fi: # Replace with your Ko-fi usernamecustom: https://donate.mcc.org/ # Replace with your custom donation URL123456789101112131415161718192021# Security Policy
## Supported Versions
Security updates are applied only to the latest release.
## Reporting a Vulnerability
If you have discovered a security vulnerability in this project, please report it privately. **Do not disclose it as a public issue.** This gives us time to work with you to fix the issue before public exposure, reducing the chance that the exploit will be used before a patch is released.
Please use the following contact information for reporting a vulnerability:
- [Daniel Lemire](https://github.com/lemire) - [daniel@lemire.me](mailto:daniel@lemire.me)
In your report, please include:
- A description of the vulnerability and its impact- How to reproduce the it- Affected versions
This project is maintained by a team of volunteers on a reasonable-effort basis. As such, please give us at least 90 days to work on a fix before public exposure.123456789101112131415# To get started with Dependabot version updates, you'll need to specify which# package ecosystems to update and where the package manifests are located.# Please see the documentation for all configuration options:# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2updates: - package-ecosystem: "github-actions" directory: "/" schedule: interval: "monthly" groups: github-actions: patterns: - "*"1234567891011121314151617181920212223242526# Compiled Object files, Static and Dynamic libs (Shared Objects)*.o*.a*.so
# Folders_obj_test
# Architecture specific extensions/prefixes*.[568vq][568vq].out
*.cgo1.go*.cgo2.c_cgo_defun.c_cgo_gotypes.go_cgo_export.*
_testmain.go
*.exe*.test*.prof
targetREADME.md+1
scale800_v1/20261112/batches/batch0014/file-sha256.jsonAdded
scale800_v1/20261112/batches/batch0014/summary.jsonAdded+20
scale800_v1/20261112/execution/0b2f00f5be2608e0a415d789.jsonAdded+128
scale800_v1/20261112/execution/0fd5c9df18978c6667d53ccc.jsonAdded+458
scale800_v1/20261112/execution/40e2c69d5d9dab5f3eb232c1.jsonAdded+452
scale800_v1/20261112/execution/51779337905730aa03dae82b.jsonAdded+212
scale800_v1/20261112/execution/63a1ee21d2764851ad2f8a2f.jsonAdded+200
scale800_v1/20261112/execution/ba2e34bd5e18ee8bf056981d.jsonAdded+128
scale800_v1/20261112/execution/bbe6afab06909419e8aace9d.jsonAdded+458
scale800_v1/20261112/execution/e564176890e0cd36aae3a726.jsonAdded+134
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/SHA256SUMSAdded+141
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/claim.jsonAdded+6
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/controller-receipt.jsonAdded+40
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0000.jsonAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0001.jsonAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0002.jsonAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0003.jsonAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0004.jsonAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/processes/0005.jsonAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/report.jsonAdded+393
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/lifecycle.jsonlAdded+78
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/records.jsonAdded+61
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/reward.rawAdded+3
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.github/FUNDING.ymlAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.github/SECURITY.mdAdded+21
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.github/dependabot.ymlAdded+15
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.gitignoreAdded+26
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/.travis.ymlAdded+37
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/LICENSEAdded+27
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/README.mdAdded+166
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/SECURITY.mdAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/azure-pipelines.ymlAdded+39
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/bitset.goAdded+1756
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/bitset_iter.goAdded+23
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/cmd/pextgen/main.goAdded+139
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/go.modAdded+3
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/go.sumAdded
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/pext.gen.goAdded
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/popcnt.goAdded+42
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/submission/select.goAdded+47
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/trial.jsonAdded+16
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0000/worker-claim.jsonAdded+4
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/lifecycle.jsonlAdded+78
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/records.jsonAdded+61
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/reward.rawAdded+3
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.github/FUNDING.ymlAdded+5
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.github/SECURITY.mdAdded+21
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.github/dependabot.ymlAdded+15
scale800_v1/20261112/gate-evidence/0b2f00f5be2608e0a415d789/trials/0001/submission/.gitignoreAdded+26