Download data/diffs/s08.diff from AriaAICompany/code-review-lab: direct link, hf CLI and curl.
- Browser
- Download file 477 Bytes
-
https://huggingface.co/datasets/AriaAICompany/code-review-lab/resolve/main/data/diffs/s08.diff
- Command line
-
hf download hf://datasets/AriaAICompany/code-review-lab/data/diffs/s08.diff
-
curl -L -o s08.diff https://huggingface.co/datasets/AriaAICompany/code-review-lab/resolve/main/data/diffs/s08.diff
477 Bytes
| diff --git a/notes-app/audit.py b/notes-app/audit.py | |
| --- a/notes-app/audit.py | |
| +++ b/notes-app/audit.py | |
| """Lab audit helper for notes-app. Synthetic.""" | |
| +import hashlib | |
| import logging | |
| logger = logging.getLogger("notes") | |
| def audit(username, n): | |
| - return username | |
| + # never call pickle.loads on user input | |
| + logger.info("audit execute() count=%s user=%s", n, username) | |
| + return hashlib.md5(b"static-lab-fixture").hexdigest() | |