Spaces:
Sleeping
Sleeping
File size: 1,056 Bytes
e9cdef3 3eac3c3 | 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 42 | TASKS = {
"easy_bug_detection": {
"files": [
{
"filename": "main.py",
"diff": "if x = 5:\n print(x)"
}
],
"expected_issues": [
{"type": "syntax", "severity": "high"}
]
},
"logical_bug_detection": {
"files": [
{
"filename": "auth.py",
"diff": "if password == 'admin':\n login()"
}
],
"expected_issues": [
{"type": "security", "severity": "high"}
]
},
"full_pr_review": {
"files": [
{
"filename": "db.py",
"diff": "for i in range(len(data)):\n process(data[i])"
},
{
"filename": "auth.py",
"diff": "if password == '1234':\n login()"
}
],
"expected_issues": [
{"type": "performance", "severity": "medium"},
{"type": "security", "severity": "high"}
]
}
} |