Spaces:
Sleeping
Sleeping
File size: 1,376 Bytes
5235bfa f00408b eb32c3c 5235bfa f72c418 f00408b eb32c3c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 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"
|