Download content/fixtures/code.py from akunasoftware/test-corpus: direct link, hf CLI and curl.
- Browser
- Download file 665 Bytes
-
https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.py
- Command line
-
hf download hf://datasets/akunasoftware/test-corpus/content/fixtures/code.py
-
curl -L -o code.py https://huggingface.co/datasets/akunasoftware/test-corpus/resolve/main/content/fixtures/code.py
665 Bytes
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| class ReviewNote: | |
| section: str | |
| owner: str | |
| message: str | |
| def build_release_notes(notes: list[ReviewNote]) -> list[str]: | |
| return [ | |
| f"{note.section}: {note.owner} confirmed {note.message}" | |
| for note in notes | |
| if note.owner | |
| ] | |
| def main() -> None: | |
| notes = [ | |
| ReviewNote("inventory", "Mina", "cycle counts are balanced"), | |
| ReviewNote("quality", "Owen", "extraction fixture marker: shared code sample"), | |
| ] | |
| for line in build_release_notes(notes): | |
| print(line) | |
| if __name__ == "__main__": | |
| main() | |