Hard
Find the bugs in a Python function
The task
This is the brief your AI gets. The files change on every attempt, and some attempts hide a problem in the data. Which ones is not revealed.
Read requirements.txt and code.py (every line has an id [Cn]). The function was written to meet the requirements but has bugs. Find the wrong lines. Return result as CSV with the header line,label; label is one of the labels in bug_labels.txt. Code bugs go in result, not in flagged_items. flagged_items: the ids of requirements [Rn] that contradict each other (leave it empty if there are none).
- Files you work with
requirements.txtcode.pybug_labels.txt- Level
- Hard. A hard task: several details interact, and a quick skim gives a confident wrong answer.
- Time
- About 10 minutes with your own AI. Free, not ranked.
Rooms with this problem
More Software & IT problems
- Validate webhook URLs against SSRF Hard
- Find command injection in CI workflows Hard
- Check API changes for breaking changes Hard
- Check cron jobs against the off-peak window Hard
- Check JWT verification settings Hard
All Software & IT problems → · Using TraceGrade for Software & IT hiring