|
Download tasks/format-code-task-000020/instruction.md from FineEnvs/MiMo-V2.6-RL-harbor-code: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000020/instruction.md
- Command line
-
hf download hf://datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/tasks/format-code-task-000020/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/FineEnvs/MiMo-V2.6-RL-harbor-code/resolve/main/tasks/format-code-task-000020/instruction.md
1.33 kB
Fix the following issue:
Problem Statement
I'm working with a custom ACSet implementation, and elements(mySet) immediately throws a MethodError; I hit the same kind of MethodError when passing one of these ACSet instances as the sample typ to inverse_elements for both an Elements object and an Elements morphism.
Expected Outcomes
elementsshould work for ACSet instances beyond the built-in struct-backed cases, producing anElementsvalue that reflects the input instance instead of failing during method lookup.inverse_elementsshould accept an ACSet instance as the sampletypwhen converting anAbstractElementsvalue back, and should return the corresponding ACSet result rather than a method-dispatch failure.inverse_elementsshould also accept an ACSet instance as the sampletypwhen converting an Elements morphism back, and should return the corresponding ACSet transformation rather than a method-dispatch failure.- Existing behavior for struct-backed ACSets should remain compatible.
Implementation Notes
The concrete data structures, validation locations, and code organization are up to the implementer. The fix should be driven by the public behavior of ACSet values participating in the category-of-elements round trip, not by special-casing only one test fixture.