Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- server/QUESTIONS.json +122 -0
server/QUESTIONS.json
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"1": {
|
| 3 |
+
"lang": "Python",
|
| 4 |
+
"tier": "Junior",
|
| 5 |
+
"task": "Resolve relative import failure in package structure.",
|
| 6 |
+
"template_dir": "level_1",
|
| 7 |
+
"ans": "from . import core",
|
| 8 |
+
"hint": "The main.py is inside the package; it needs a relative import dot."
|
| 9 |
+
},
|
| 10 |
+
"2": {
|
| 11 |
+
"lang": "JavaScript",
|
| 12 |
+
"tier": "Junior",
|
| 13 |
+
"task": "Fix the ES Module vs CommonJS export mismatch.",
|
| 14 |
+
"template_dir": "level_2",
|
| 15 |
+
"ans": "import { log }",
|
| 16 |
+
"hint": "You cannot 'require' a file that uses 'export const'."
|
| 17 |
+
},
|
| 18 |
+
"3": {
|
| 19 |
+
"lang": "Python",
|
| 20 |
+
"tier": "Junior",
|
| 21 |
+
"task": "Fix the mutable default argument logic error.",
|
| 22 |
+
"template_dir": "level_3",
|
| 23 |
+
"ans": "box=None",
|
| 24 |
+
"hint": "Default lists are instantiated once at definition time, not call time."
|
| 25 |
+
},
|
| 26 |
+
"4": {
|
| 27 |
+
"lang": "C++",
|
| 28 |
+
"tier": "Junior",
|
| 29 |
+
"task": "Add missing header guards to prevent redefinition.",
|
| 30 |
+
"template_dir": "level_4",
|
| 31 |
+
"ans": "#pragma once",
|
| 32 |
+
"hint": "The compiler sees the same function twice because the header isn't guarded."
|
| 33 |
+
},
|
| 34 |
+
"5": {
|
| 35 |
+
"lang": "Java",
|
| 36 |
+
"tier": "Junior",
|
| 37 |
+
"task": "Fix Access Modifier blocking external test visibility.",
|
| 38 |
+
"template_dir": "level_5",
|
| 39 |
+
"ans": "public boolean",
|
| 40 |
+
"hint": "Tests in a different package cannot access 'private' methods."
|
| 41 |
+
},
|
| 42 |
+
"6": {
|
| 43 |
+
"lang": "Python/Django",
|
| 44 |
+
"tier": "Senior",
|
| 45 |
+
"task": "Optimize the N+1 Query bottleneck in the ORM.",
|
| 46 |
+
"template_dir": "level_6",
|
| 47 |
+
"ans": "select_related('author')",
|
| 48 |
+
"hint": "Use a join to fetch authors in the same query as the posts."
|
| 49 |
+
},
|
| 50 |
+
"7": {
|
| 51 |
+
"lang": "Rust",
|
| 52 |
+
"tier": "Senior",
|
| 53 |
+
"task": "Resolve Thread-Safety/Ownership conflict for shared state.",
|
| 54 |
+
"template_dir": "level_7",
|
| 55 |
+
"ans": "Arc<Mutex<",
|
| 56 |
+
"hint": "Wrap the mutable integer in an Atomic Reference Counter and a Mutex."
|
| 57 |
+
},
|
| 58 |
+
"8": {
|
| 59 |
+
"lang": "JavaScript",
|
| 60 |
+
"tier": "Senior",
|
| 61 |
+
"task": "Fix memory leak caused by dangling IntersectionObservers.",
|
| 62 |
+
"template_dir": "level_8",
|
| 63 |
+
"ans": "obs.disconnect()",
|
| 64 |
+
"hint": "Observers must be manually torn down when the component unmounts."
|
| 65 |
+
},
|
| 66 |
+
"9": {
|
| 67 |
+
"lang": "Go",
|
| 68 |
+
"tier": "Senior",
|
| 69 |
+
"task": "Fix unbuffered channel deadlock in the main routine.",
|
| 70 |
+
"template_dir": "level_9",
|
| 71 |
+
"ans": "make(chan int, 1)",
|
| 72 |
+
"hint": "The sender is blocking before the receiver can start."
|
| 73 |
+
},
|
| 74 |
+
"10": {
|
| 75 |
+
"lang": "Python/FastAPI",
|
| 76 |
+
"tier": "Senior",
|
| 77 |
+
"task": "Prevent global state pollution in async requests.",
|
| 78 |
+
"template_dir": "level_10",
|
| 79 |
+
"ans": "ContextVar",
|
| 80 |
+
"hint": "Global variables are shared across async threads; use context-local vars."
|
| 81 |
+
},
|
| 82 |
+
"11": {
|
| 83 |
+
"lang": "System/Search",
|
| 84 |
+
"tier": "Architect",
|
| 85 |
+
"task": "The repo is too large. Spawn sub-agents to map Auth logic.",
|
| 86 |
+
"template_dir": "level_11",
|
| 87 |
+
"ans": "spawn_sub_agent",
|
| 88 |
+
"hint": "Use a specialized sub-agent to grep through the 100+ virtual files."
|
| 89 |
+
},
|
| 90 |
+
"12": {
|
| 91 |
+
"lang": "System/MCP",
|
| 92 |
+
"tier": "Architect",
|
| 93 |
+
"task": "Use Weather MCP to gate the automated deployment.",
|
| 94 |
+
"template_dir": "level_12",
|
| 95 |
+
"ans": "mcp.call_tool('weather_v1'",
|
| 96 |
+
"hint": "Check the weather tool in metadata; abort if storm_risk > 80%."
|
| 97 |
+
},
|
| 98 |
+
"13": {
|
| 99 |
+
"lang": "System/Web",
|
| 100 |
+
"tier": "Architect",
|
| 101 |
+
"task": "Search for breaking changes in OpenAI v1.0 migration.",
|
| 102 |
+
"template_dir": "level_13",
|
| 103 |
+
"ans": "web_search",
|
| 104 |
+
"hint": "The library syntax changed. Search the web for the new client init."
|
| 105 |
+
},
|
| 106 |
+
"14": {
|
| 107 |
+
"lang": "System/Conflict",
|
| 108 |
+
"tier": "Architect",
|
| 109 |
+
"task": "Resolve a multi-file merge conflict in auth.py.",
|
| 110 |
+
"template_dir": "level_14",
|
| 111 |
+
"ans": "accept_incoming",
|
| 112 |
+
"hint": "Manually clean the git conflict markers (<<<<, ====, >>>>)."
|
| 113 |
+
},
|
| 114 |
+
"15": {
|
| 115 |
+
"lang": "System/Final",
|
| 116 |
+
"tier": "Architect",
|
| 117 |
+
"task": "Final Boss: Deploy Full-Stack via Orchestration.",
|
| 118 |
+
"template_dir": "level_15",
|
| 119 |
+
"ans": "orchestrate_full_stack",
|
| 120 |
+
"hint": "Spawn agents for DB, API, and UI. Deploy all layers via MCP."
|
| 121 |
+
}
|
| 122 |
+
}
|