Spaces:
Runtime error
Runtime error
Download hard_logic.json from Zaidoppa/RepoReviewer: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/spaces/Zaidoppa/RepoReviewer/resolve/main/hard_logic.json
- Command line
-
hf download hf://spaces/Zaidoppa/RepoReviewer/hard_logic.json
-
curl -L -o hard_logic.json https://huggingface.co/spaces/Zaidoppa/RepoReviewer/resolve/main/hard_logic.json
833 Bytes
| { | |
| "pr": { | |
| "title": "Optimize discount logic", | |
| "author": "dev_senior", | |
| "description": "Refactored the apply_discount function to handle zero-value carts.", | |
| "files_changed": ["src/billing.py"] | |
| }, | |
| "rules": [ | |
| "1. All Python functions must use snake_case.", | |
| "2. NO HARDCODED SECRETS ALLOWED.", | |
| "3. All tests must pass." | |
| ], | |
| "file_system": { | |
| "src/billing.py": "def apply_discount(cart_total, discount_rate):\n if cart_total >= 0:\n return cart_total - (cart_total * discount_rate)\n return cart_total\n" | |
| }, | |
| "ci_checks": { | |
| "linter": "No style errors found.", | |
| "tests": "FAIL: test_negative_cart_value. Expected Exception, got 0." | |
| }, | |
| "target_solution": { | |
| "action_type": "request_changes", | |
| "line_number": 2, | |
| "required_keyword": ">" | |
| } | |
| } |