Download fixtures/pattern_lab/src/legacy.py from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/src/legacy.py
- Command line
-
hf download hf://datasets/tailot/codex-python/fixtures/pattern_lab/src/legacy.py
-
curl -L -o legacy.py https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/src/legacy.py
438 Bytes
| """A module that outgrew one of its import lines. | |
| One of the two import lines below binds a name no other line of this file reads: | |
| that is the shape the unused import card of this bundle removes, and the two lines | |
| sit on consecutive lines, so one anchor can take the unread one out. | |
| """ | |
| import json | |
| import os | |
| def read_size(path): | |
| return os.path.getsize(path) | |
| def note_path(name): | |
| return os.path.join("notes", name + ".txt") | |