Spaces:
Sleeping
Sleeping
Download openenv.yaml from vinith17/CodeBug: direct link, hf CLI and curl.
- Browser
- Download file 1.38 kB
-
https://huggingface.co/spaces/vinith17/CodeBug/resolve/main/openenv.yaml
- Command line
-
hf download hf://spaces/vinith17/CodeBug/openenv.yaml
-
curl -L -o openenv.yaml https://huggingface.co/spaces/vinith17/CodeBug/resolve/main/openenv.yaml
1.38 kB
| name: "CodeBug Review Environment" | |
| version: "1.2.0" | |
| description: "RL environment where an AI agent reviews code snippets to identify bugs. Five tasks covering logic and security. Reward strictly in (0,1) per step." | |
| entry_point: "main:app" | |
| environment_class: "environment.CodeBugEnvironment" | |
| action_class: "models.CodeReviewAction" | |
| observation_class: "models.CodeReviewObservation" | |
| author: "vinith17" | |
| tags: ["rl", "code-review", "security", "agent", "pytorch-hackathon"] | |
| tasks: | |
| - id: "task_easy_001" | |
| name: "Balance Transfer Boundary Bug" | |
| description: "Detect strict > instead of >= in balance check." | |
| difficulty: "easy" | |
| grader: "tasks.easy.grader:grade" | |
| - id: "task_medium_002" | |
| name: "Find Max Off-by-One" | |
| description: "Detect range(len(x)-1) skipping the last element." | |
| difficulty: "medium" | |
| grader: "tasks.medium.grader:grade" | |
| - id: "task_hard_003" | |
| name: "SQL Injection Detection" | |
| description: "Detect f-string SQL injection." | |
| difficulty: "hard" | |
| grader: "tasks.hard.grader:grade" | |
| - id: "task_extra_004" | |
| name: "Hardcoded API Key" | |
| description: "Detect hardcoded secrets." | |
| difficulty: "hard" | |
| grader: "tasks.extra1.grader:grade" | |
| - id: "task_extra_005" | |
| name: "Division by Zero" | |
| description: "Detect division without zero-check." | |
| difficulty: "medium" | |
| grader: "tasks.extra2.grader:grade" | |