lint_coding_agent / server /QUESTIONS.json
anonajay's picture
Upload folder using huggingface_hub
ba0f45e verified
Raw History Blame Contribute Delete
4.17 kB
{
"1": {
"lang": "Python",
"tier": "Junior",
"task": "Resolve relative import failure in package structure.",
"template_dir": "level_1",
"ans": "from . import core",
"hint": "The main.py is inside the package; it needs a relative import dot."
},
"2": {
"lang": "JavaScript",
"tier": "Junior",
"task": "Fix the ES Module vs CommonJS export mismatch.",
"template_dir": "level_2",
"ans": "import { log }",
"hint": "You cannot 'require' a file that uses 'export const'."
},
"3": {
"lang": "Python",
"tier": "Junior",
"task": "Fix the mutable default argument logic error.",
"template_dir": "level_3",
"ans": "box=None",
"hint": "Default lists are instantiated once at definition time, not call time."
},
"4": {
"lang": "C++",
"tier": "Junior",
"task": "Add missing header guards to prevent redefinition.",
"template_dir": "level_4",
"ans": "#pragma once",
"hint": "The compiler sees the same function twice because the header isn't guarded."
},
"5": {
"lang": "Java",
"tier": "Junior",
"task": "Fix Access Modifier blocking external test visibility.",
"template_dir": "level_5",
"ans": "public boolean",
"hint": "Tests in a different package cannot access 'private' methods."
},
"6": {
"lang": "Python/Django",
"tier": "Senior",
"task": "Optimize the N+1 Query bottleneck in the ORM.",
"template_dir": "level_6",
"ans": "select_related('author')",
"hint": "Use a join to fetch authors in the same query as the posts."
},
"7": {
"lang": "Rust",
"tier": "Senior",
"task": "Resolve Thread-Safety/Ownership conflict for shared state.",
"template_dir": "level_7",
"ans": "Arc<Mutex<",
"hint": "Wrap the mutable integer in an Atomic Reference Counter and a Mutex."
},
"8": {
"lang": "JavaScript",
"tier": "Senior",
"task": "Fix memory leak caused by dangling IntersectionObservers.",
"template_dir": "level_8",
"ans": "obs.disconnect()",
"hint": "Observers must be manually torn down when the component unmounts."
},
"9": {
"lang": "Go",
"tier": "Senior",
"task": "Fix unbuffered channel deadlock in the main routine.",
"template_dir": "level_9",
"ans": "make(chan int, 1)",
"hint": "The sender is blocking before the receiver can start."
},
"10": {
"lang": "Python/FastAPI",
"tier": "Senior",
"task": "Prevent global state pollution in async requests.",
"template_dir": "level_10",
"ans": "ContextVar",
"hint": "Global variables are shared across async threads; use context-local vars."
},
"11": {
"lang": "System/Search",
"tier": "Architect",
"task": "The repo is too large. Spawn sub-agents to map Auth logic.",
"template_dir": "level_11",
"ans": "spawn_sub_agent",
"hint": "Use a specialized sub-agent to grep through the 100+ virtual files."
},
"12": {
"lang": "System/MCP",
"tier": "Architect",
"task": "Use Weather MCP to gate the automated deployment.",
"template_dir": "level_12",
"ans": "mcp.call_tool('weather_v1'",
"hint": "Check the weather tool in metadata; abort if storm_risk > 80%."
},
"13": {
"lang": "System/Web",
"tier": "Architect",
"task": "Search for breaking changes in OpenAI v1.0 migration.",
"template_dir": "level_13",
"ans": "web_search",
"hint": "The library syntax changed. Search the web for the new client init."
},
"14": {
"lang": "System/Conflict",
"tier": "Architect",
"task": "Resolve a multi-file merge conflict in auth.py.",
"template_dir": "level_14",
"ans": "accept_incoming",
"hint": "Manually clean the git conflict markers (<<<<, ====, >>>>)."
},
"15": {
"lang": "System/Final",
"tier": "Architect",
"task": "Final Boss: Deploy Full-Stack via Orchestration.",
"template_dir": "level_15",
"ans": "orchestrate_full_stack",
"hint": "Spawn agents for DB, API, and UI. Deploy all layers via MCP."
}
}