release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 2)
559318d verified Download heldout/beetbox__confuse-697e96cd08ad/solution/patch.diff from Benjamin-eecs/openrsi-commit-runtime-assets: direct link, hf CLI and curl.
- Browser
- Download file 663 Bytes
-
https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout/beetbox__confuse-697e96cd08ad/solution/patch.diff
- Command line
-
hf download hf://datasets/Benjamin-eecs/openrsi-commit-runtime-assets/heldout/beetbox__confuse-697e96cd08ad/solution/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout/beetbox__confuse-697e96cd08ad/solution/patch.diff
663 Bytes
| diff --git a/confuse/templates.py b/confuse/templates.py | |
| index 1afa92b..f18f34e 100644 | |
| --- a/confuse/templates.py | |
| +++ b/confuse/templates.py | |
| class Sequence(Template): | |
| def value(self, view, template=None): | |
| """Get a list of items validated against the template. | |
| """ | |
| + try: | |
| + collection, _ = view.first() | |
| + except exceptions.NotFoundError: | |
| + pass | |
| + else: | |
| + if not isinstance(collection, (list, tuple)): | |
| + self.fail(u'must be a list', view, True) | |
| + | |
| out = [] | |
| for item in view: | |
| out.append(self.subtemplate.value(item, self)) | |