Datasets:
Download scripts/reusable_support/validation_policy.py from CrossSWE/CrossSWE-Bench: direct link, hf CLI and curl.
- Browser
- Download file 467 Bytes
-
https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/scripts/reusable_support/validation_policy.py
- Command line
-
hf download hf://datasets/CrossSWE/CrossSWE-Bench/scripts/reusable_support/validation_policy.py
-
curl -L -o validation_policy.py https://huggingface.co/datasets/CrossSWE/CrossSWE-Bench/resolve/main/scripts/reusable_support/validation_policy.py
467 Bytes
| """User-authorized acceptance policy; never mutate frozen contracts.""" | |
| def endpoint_plan(contract, repository_keys): | |
| keys = list(repository_keys) | |
| if not keys or len(keys) != len(set(keys)) or any(not key for key in keys): | |
| raise ValueError('Repository identities must be nonempty and unique') | |
| return [{'world': name, 'repeat': 1, 'fixed': {key: fixed for key in keys}} | |
| for name, fixed in [('all_buggy', False), ('all_fixed', True)]] | |