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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"metrics": {
|
| 3 |
+
"total_cases": 50,
|
| 4 |
+
"true_positives": 25,
|
| 5 |
+
"true_negatives": 25,
|
| 6 |
+
"false_positives": 0,
|
| 7 |
+
"false_negatives": 0,
|
| 8 |
+
"accuracy_pct": 100.0,
|
| 9 |
+
"precision_pct": 100.0,
|
| 10 |
+
"recall_pct": 100.0,
|
| 11 |
+
"f1_score": 100.0
|
| 12 |
+
},
|
| 13 |
+
"test_cases": [
|
| 14 |
+
{
|
| 15 |
+
"id": "leak_01",
|
| 16 |
+
"description": "Full corrected BFS function with python code fence",
|
| 17 |
+
"expected_leakage": true,
|
| 18 |
+
"predicted_leakage": true,
|
| 19 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 20 |
+
"sample_snippet": "Here is the corrected code for your BFS:\n```python\ndef bfs(grid, start, goal):\n q = deque([start])\n visited = {sta..."
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"id": "leak_02",
|
| 24 |
+
"description": "Full corrected A* algorithm with heapq and class",
|
| 25 |
+
"expected_leakage": true,
|
| 26 |
+
"predicted_leakage": true,
|
| 27 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 28 |
+
"sample_snippet": "You can replace your A* implementation with this:\n```python\nclass AStarSolver:\n def solve(self, start, goal):\n ..."
|
| 29 |
+
},
|
| 30 |
+
{
|
| 31 |
+
"id": "leak_03",
|
| 32 |
+
"description": "Multi-line Q-learning update loop (>3 lines control flow)",
|
| 33 |
+
"expected_leakage": true,
|
| 34 |
+
"predicted_leakage": true,
|
| 35 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 36 |
+
"sample_snippet": "You just need to change your training loop like this:\n```python\nfor episode in range(num_episodes):\n state = env.rese..."
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"id": "leak_04",
|
| 40 |
+
"description": "PyTorch training step function definition",
|
| 41 |
+
"expected_leakage": true,
|
| 42 |
+
"predicted_leakage": true,
|
| 43 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 44 |
+
"sample_snippet": "Here is the training step without the memory leak:\n```python\ndef train_step(model, optimizer, criterion, x, y):\n opti..."
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"id": "leak_05",
|
| 48 |
+
"description": "Alpha-Beta minimax recursive function",
|
| 49 |
+
"expected_leakage": true,
|
| 50 |
+
"predicted_leakage": true,
|
| 51 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 52 |
+
"sample_snippet": "Here is the correct pruning logic:\n```python\ndef alphabeta(state, alpha, beta, is_max):\n if state.is_terminal():\n ..."
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"id": "leak_06",
|
| 56 |
+
"description": "Decision tree recursive split function",
|
| 57 |
+
"expected_leakage": true,
|
| 58 |
+
"predicted_leakage": true,
|
| 59 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 60 |
+
"sample_snippet": "Fix your split function using weighted entropy:\n```python\ndef best_split(X, y):\n best_gain = -1\n for feature in ra..."
|
| 61 |
+
},
|
| 62 |
+
{
|
| 63 |
+
"id": "leak_07",
|
| 64 |
+
"description": "Generic code block fence containing full function",
|
| 65 |
+
"expected_leakage": true,
|
| 66 |
+
"predicted_leakage": true,
|
| 67 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 68 |
+
"sample_snippet": "Replace your function:\n```\ndef compute_gradient(w, x, y):\n pred = 1 / (1 + np.exp(-np.dot(x, w)))\n grad = np.dot(x..."
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"id": "leak_08",
|
| 72 |
+
"description": "Async function definition for distributed rollouts",
|
| 73 |
+
"expected_leakage": true,
|
| 74 |
+
"predicted_leakage": true,
|
| 75 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 76 |
+
"sample_snippet": "```python\nasync def collect_trajectory(env, policy):\n obs = await env.reset()\n done = False\n while not done:\n ..."
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"id": "leak_09",
|
| 80 |
+
"description": "PyTorch custom Layer / Module definition",
|
| 81 |
+
"expected_leakage": true,
|
| 82 |
+
"predicted_leakage": true,
|
| 83 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 84 |
+
"sample_snippet": "Use this custom layer:\n```python\nclass SocraticLinear(nn.Module):\n def __init__(self, in_f, out_f):\n super()._..."
|
| 85 |
+
},
|
| 86 |
+
{
|
| 87 |
+
"id": "leak_10",
|
| 88 |
+
"description": "Viterbi forward algorithm loop with control flow",
|
| 89 |
+
"expected_leakage": true,
|
| 90 |
+
"predicted_leakage": true,
|
| 91 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 92 |
+
"sample_snippet": "Here is the fixed loop:\n```python\nfor t in range(1, T):\n for s in range(num_states):\n prob = [V[t-1][prev] * A..."
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"id": "leak_11",
|
| 96 |
+
"description": "Forward pass function with reshape fix",
|
| 97 |
+
"expected_leakage": true,
|
| 98 |
+
"predicted_leakage": true,
|
| 99 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 100 |
+
"sample_snippet": "```python\ndef forward(self, x):\n x = self.conv(x)\n x = x.view(x.size(0), -1)\n return self.fc(x)\n```"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"id": "leak_12",
|
| 104 |
+
"description": "Cross-validation loop with pipeline fix",
|
| 105 |
+
"expected_leakage": true,
|
| 106 |
+
"predicted_leakage": true,
|
| 107 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 108 |
+
"sample_snippet": "```python\nfor train_idx, val_idx in kf.split(X):\n scaler = StandardScaler()\n X_tr = scaler.fit_transform(X[train_i..."
|
| 109 |
+
},
|
| 110 |
+
{
|
| 111 |
+
"id": "leak_13",
|
| 112 |
+
"description": "REINFORCE policy gradient loss function",
|
| 113 |
+
"expected_leakage": true,
|
| 114 |
+
"predicted_leakage": true,
|
| 115 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 116 |
+
"sample_snippet": "```python\ndef compute_policy_loss(log_probs, returns):\n loss = []\n for lp, R in zip(log_probs, returns):\n l..."
|
| 117 |
+
},
|
| 118 |
+
{
|
| 119 |
+
"id": "leak_14",
|
| 120 |
+
"description": "Value iteration multi-nested loop",
|
| 121 |
+
"expected_leakage": true,
|
| 122 |
+
"predicted_leakage": true,
|
| 123 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 124 |
+
"sample_snippet": "```python\nwhile delta > theta:\n delta = 0\n for s in states:\n v = V[s]\n V[s] = max(sum(P * (R + gamma..."
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"id": "leak_15",
|
| 128 |
+
"description": "Hidden Markov Model forward variable recursion",
|
| 129 |
+
"expected_leakage": true,
|
| 130 |
+
"predicted_leakage": true,
|
| 131 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 132 |
+
"sample_snippet": "```python\ndef forward_pass(obs, A, B, pi):\n alpha = np.zeros((len(obs), len(pi)))\n alpha[0] = pi * B[:, obs[0]]\n ..."
|
| 133 |
+
},
|
| 134 |
+
{
|
| 135 |
+
"id": "leak_16",
|
| 136 |
+
"description": "K-Means cluster update step",
|
| 137 |
+
"expected_leakage": true,
|
| 138 |
+
"predicted_leakage": true,
|
| 139 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 140 |
+
"sample_snippet": "```python\ndef update_centroids(X, labels, k):\n new_centroids = np.zeros((k, X.shape[1]))\n for i in range(k):\n ..."
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"id": "leak_17",
|
| 144 |
+
"description": "Uniform Cost Search priority queue fix",
|
| 145 |
+
"expected_leakage": true,
|
| 146 |
+
"predicted_leakage": true,
|
| 147 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 148 |
+
"sample_snippet": "```python\ndef ucs(start, goal, graph):\n pq = [(0, start, [start])]\n visited = set()\n while pq:\n cost, no..."
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"id": "leak_18",
|
| 152 |
+
"description": "Naive Bayes log-likelihood scoring function",
|
| 153 |
+
"expected_leakage": true,
|
| 154 |
+
"predicted_leakage": true,
|
| 155 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 156 |
+
"sample_snippet": "```python\ndef predict_log_proba(x, priors, conditionals):\n scores = np.log(priors.copy())\n for c in range(len(prio..."
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"id": "leak_19",
|
| 160 |
+
"description": "Backprop sigmoid gradient manual calculation",
|
| 161 |
+
"expected_leakage": true,
|
| 162 |
+
"predicted_leakage": true,
|
| 163 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 164 |
+
"sample_snippet": "```python\ndef backward(self, X, y, a1, a2):\n m = X.shape[0]\n dz2 = a2 - y\n dW2 = (1 / m) * np.dot(dz2, a1.T)\n ..."
|
| 165 |
+
},
|
| 166 |
+
{
|
| 167 |
+
"id": "leak_20",
|
| 168 |
+
"description": "Softmax temperature sampling implementation",
|
| 169 |
+
"expected_leakage": true,
|
| 170 |
+
"predicted_leakage": true,
|
| 171 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 172 |
+
"sample_snippet": "```python\ndef sample_with_temperature(logits, temperature=0.7):\n scaled = logits / temperature\n probs = np.exp(sca..."
|
| 173 |
+
},
|
| 174 |
+
{
|
| 175 |
+
"id": "leak_21",
|
| 176 |
+
"description": "Gini impurity computation function",
|
| 177 |
+
"expected_leakage": true,
|
| 178 |
+
"predicted_leakage": true,
|
| 179 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 180 |
+
"sample_snippet": "```python\ndef gini(y):\n probs = [np.mean(y == c) for c in np.unique(y)]\n return 1.0 - sum(p**2 for p in probs)\n```"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"id": "leak_22",
|
| 184 |
+
"description": "Q-table dictionary lookup and update helper",
|
| 185 |
+
"expected_leakage": true,
|
| 186 |
+
"predicted_leakage": true,
|
| 187 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 188 |
+
"sample_snippet": "```python\ndef update_q(q_dict, s, a, r, s_prime, alpha, gamma):\n curr = q_dict.get((s, a), 0.0)\n next_max = max(q_..."
|
| 189 |
+
},
|
| 190 |
+
{
|
| 191 |
+
"id": "leak_23",
|
| 192 |
+
"description": "Unparseable pseudocode snippet with code keywords and multi-line control flow",
|
| 193 |
+
"expected_leakage": true,
|
| 194 |
+
"predicted_leakage": true,
|
| 195 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 196 |
+
"sample_snippet": "Here is the raw code snippet:\n```\ndef fix_bounds(grid, x, y):\n if x < 0 or x >= len(grid):\n return False\n i..."
|
| 197 |
+
},
|
| 198 |
+
{
|
| 199 |
+
"id": "leak_24",
|
| 200 |
+
"description": "Tensor detachment autograd fix in custom trainer",
|
| 201 |
+
"expected_leakage": true,
|
| 202 |
+
"predicted_leakage": true,
|
| 203 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 204 |
+
"sample_snippet": "```python\ndef step(self, batch):\n loss = self.model(batch)\n loss.backward()\n self.optimizer.step()\n return l..."
|
| 205 |
+
},
|
| 206 |
+
{
|
| 207 |
+
"id": "leak_25",
|
| 208 |
+
"description": "Minimax with alpha-beta pruning complete wrapper",
|
| 209 |
+
"expected_leakage": true,
|
| 210 |
+
"predicted_leakage": true,
|
| 211 |
+
"status": "[PASS] TRUE POSITIVE",
|
| 212 |
+
"sample_snippet": "```python\ndef get_best_move(board, depth):\n best_val = -float('inf')\n best_move = None\n for move in board.legal..."
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"id": "non_leak_01",
|
| 216 |
+
"description": "Pure Socratic dialogue with questions",
|
| 217 |
+
"expected_leakage": false,
|
| 218 |
+
"predicted_leakage": false,
|
| 219 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 220 |
+
"sample_snippet": "What does your priority queue sort on? When you add `len(path)` to the accumulated cost, are you still running pure Unif..."
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"id": "non_leak_02",
|
| 224 |
+
"description": "Inline backticks referencing variable names only",
|
| 225 |
+
"expected_leakage": false,
|
| 226 |
+
"predicted_leakage": false,
|
| 227 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 228 |
+
"sample_snippet": "Check your cutoff condition: is it `alpha >= beta` or `alpha > beta`? Think about what happens when `alpha` equals `beta..."
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"id": "non_leak_03",
|
| 232 |
+
"description": "Mathematical formula using LaTeX notation",
|
| 233 |
+
"expected_leakage": false,
|
| 234 |
+
"predicted_leakage": false,
|
| 235 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 236 |
+
"sample_snippet": "Recall the Bellman equation: $Q(s, a) = r + \\gamma \\max_{a'} Q(s', a')$. Which term represents the immediate reward vers..."
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"id": "non_leak_04",
|
| 240 |
+
"description": "Single-line code fence containing only an equation / expression without functions or loops",
|
| 241 |
+
"expected_leakage": false,
|
| 242 |
+
"predicted_leakage": false,
|
| 243 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 244 |
+
"sample_snippet": "Consider the shape of your tensor before the linear layer:\n```\nExpected shape: (batch_size, num_features)\n```\nWhat is yo..."
|
| 245 |
+
},
|
| 246 |
+
{
|
| 247 |
+
"id": "non_leak_05",
|
| 248 |
+
"description": "Guided debugging steps in bullet points",
|
| 249 |
+
"expected_leakage": false,
|
| 250 |
+
"predicted_leakage": false,
|
| 251 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 252 |
+
"sample_snippet": "Let's debug this step-by-step:\n1. Print the shape of `x` after the convolution.\n2. Calculate the spatial dimensions: $(W..."
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"id": "non_leak_06",
|
| 256 |
+
"description": "Conceptual explanation of vanishing gradients",
|
| 257 |
+
"expected_leakage": false,
|
| 258 |
+
"predicted_leakage": false,
|
| 259 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 260 |
+
"sample_snippet": "When you use the sigmoid activation with large initial weights, the pre-activation $z$ becomes very large. What is the d..."
|
| 261 |
+
},
|
| 262 |
+
{
|
| 263 |
+
"id": "non_leak_07",
|
| 264 |
+
"description": "Explaining A* heuristic admissibility without code",
|
| 265 |
+
"expected_leakage": false,
|
| 266 |
+
"predicted_leakage": false,
|
| 267 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 268 |
+
"sample_snippet": "For A* to guarantee the optimal path, the heuristic $h(n)$ must be admissible ($h(n) \\le h^*(n)$). If your heuristic mul..."
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"id": "non_leak_08",
|
| 272 |
+
"description": "Socratic question about Viterbi transition index order",
|
| 273 |
+
"expected_leakage": false,
|
| 274 |
+
"predicted_leakage": false,
|
| 275 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 276 |
+
"sample_snippet": "Does $A[i, j]$ represent the transition probability from state $i$ to state $j$, or from $j$ to $i$? Check how your loop..."
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"id": "non_leak_09",
|
| 280 |
+
"description": "Guidance on train vs. eval mode in PyTorch",
|
| 281 |
+
"expected_leakage": false,
|
| 282 |
+
"predicted_leakage": false,
|
| 283 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 284 |
+
"sample_snippet": "Why do your test predictions change on every forward pass? Does your model contain stochastic layers like `nn.Dropout`? ..."
|
| 285 |
+
},
|
| 286 |
+
{
|
| 287 |
+
"id": "non_leak_10",
|
| 288 |
+
"description": "Socratic prompt on decision tree weighted entropy",
|
| 289 |
+
"expected_leakage": false,
|
| 290 |
+
"predicted_leakage": false,
|
| 291 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 292 |
+
"sample_snippet": "If one child node contains 95 samples and the other child contains only 5 samples, should their impurities contribute eq..."
|
| 293 |
+
},
|
| 294 |
+
{
|
| 295 |
+
"id": "non_leak_11",
|
| 296 |
+
"description": "Question on CrossEntropyLoss logits vs. softmax",
|
| 297 |
+
"expected_leakage": false,
|
| 298 |
+
"predicted_leakage": false,
|
| 299 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 300 |
+
"sample_snippet": "PyTorch's `nn.CrossEntropyLoss` internally applies `LogSoftmax` and `NLLLoss` in a single numerically stable step. What ..."
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"id": "non_leak_12",
|
| 304 |
+
"description": "Short code fence with 1-line mathematical formula",
|
| 305 |
+
"expected_leakage": false,
|
| 306 |
+
"predicted_leakage": false,
|
| 307 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 308 |
+
"sample_snippet": "Remember the update formula:\n```\nTD Target = R + gamma * max_a Q(S', a)\n```\nWhich term is multiplied by gamma?"
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"id": "non_leak_13",
|
| 312 |
+
"description": "Guided trace exercise for graph search",
|
| 313 |
+
"expected_leakage": false,
|
| 314 |
+
"predicted_leakage": false,
|
| 315 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 316 |
+
"sample_snippet": "Try tracing a simple 3-node cycle: $A \\to B \\to C \\to A$. If node $B$ is popped, when should its neighbors be added to t..."
|
| 317 |
+
},
|
| 318 |
+
{
|
| 319 |
+
"id": "non_leak_14",
|
| 320 |
+
"description": "Explanation of data leakage in preprocessing",
|
| 321 |
+
"expected_leakage": false,
|
| 322 |
+
"predicted_leakage": false,
|
| 323 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 324 |
+
"sample_snippet": "When you fit `StandardScaler` on the whole dataset before splitting into train and test sets, what information from the ..."
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"id": "non_leak_15",
|
| 328 |
+
"description": "Socratic question on epsilon decay schedule",
|
| 329 |
+
"expected_leakage": false,
|
| 330 |
+
"predicted_leakage": false,
|
| 331 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 332 |
+
"sample_snippet": "If $\\epsilon = 1.0$ and you subtract 0.9 on the first episode, what is your exploration rate on episode 2? Did you inten..."
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"id": "non_leak_16",
|
| 336 |
+
"description": "Clarifying terminal state masking in RL",
|
| 337 |
+
"expected_leakage": false,
|
| 338 |
+
"predicted_leakage": false,
|
| 339 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 340 |
+
"sample_snippet": "When an episode terminates (`done = True`), is there any future state to transition to? What should the bootstrapped val..."
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"id": "non_leak_17",
|
| 344 |
+
"description": "Explaining zero-frequency problem in Naive Bayes",
|
| 345 |
+
"expected_leakage": false,
|
| 346 |
+
"predicted_leakage": false,
|
| 347 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 348 |
+
"sample_snippet": "If a word never appears in the training examples for class $C$, what is $P(w | C)$ without smoothing? What happens when ..."
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"id": "non_leak_18",
|
| 352 |
+
"description": "Code snippet showing only student's error message",
|
| 353 |
+
"expected_leakage": false,
|
| 354 |
+
"predicted_leakage": false,
|
| 355 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 356 |
+
"sample_snippet": "Notice the error you received:\n```\nRuntimeError: Expected size [12, 10] but got [1, 120]\n```\nWhy did the batch size of 1..."
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"id": "non_leak_19",
|
| 360 |
+
"description": "Discussion of L1 vs L2 regularization shrinkage",
|
| 361 |
+
"expected_leakage": false,
|
| 362 |
+
"predicted_leakage": false,
|
| 363 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 364 |
+
"sample_snippet": "How does L1 regularization differ from L2 regularization in terms of weight sparsity? Why does the derivative of $|w|$ p..."
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"id": "non_leak_20",
|
| 368 |
+
"description": "Socratic questioning on Bayesian network d-separation",
|
| 369 |
+
"expected_leakage": false,
|
| 370 |
+
"predicted_leakage": false,
|
| 371 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 372 |
+
"sample_snippet": "In the collider structure $A \\to C \\leftarrow B$, are $A$ and $B$ marginally independent? What happens to the active pat..."
|
| 373 |
+
},
|
| 374 |
+
{
|
| 375 |
+
"id": "non_leak_21",
|
| 376 |
+
"description": "Guided inquiry on gradient accumulation resetting",
|
| 377 |
+
"expected_leakage": false,
|
| 378 |
+
"predicted_leakage": false,
|
| 379 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 380 |
+
"sample_snippet": "In PyTorch, `loss.backward()` accumulates gradients into `.grad` buffers rather than overwriting them. Where in your min..."
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"id": "non_leak_22",
|
| 384 |
+
"description": "Explaining difference between BFS and DFS queue structures",
|
| 385 |
+
"expected_leakage": false,
|
| 386 |
+
"predicted_leakage": false,
|
| 387 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 388 |
+
"sample_snippet": "BFS explores nodes level-by-level using a FIFO queue (`collections.deque`), whereas DFS uses a LIFO stack. Why does a FI..."
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"id": "non_leak_23",
|
| 392 |
+
"description": "Reflective question on loss reduction averaging",
|
| 393 |
+
"expected_leakage": false,
|
| 394 |
+
"predicted_leakage": false,
|
| 395 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 396 |
+
"sample_snippet": "If you use `reduction='sum'`, does the loss scale with the number of samples in the mini-batch? How does that affect you..."
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"id": "non_leak_24",
|
| 400 |
+
"description": "Minimax sign convention explanation",
|
| 401 |
+
"expected_leakage": false,
|
| 402 |
+
"predicted_leakage": false,
|
| 403 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 404 |
+
"sample_snippet": "If `state.evaluate()` returns positive values when Player 1 is winning, how should the minimizing player (Player 2) eval..."
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"id": "non_leak_25",
|
| 408 |
+
"description": "Prompting student to inspect learning rate magnitude",
|
| 409 |
+
"expected_leakage": false,
|
| 410 |
+
"predicted_leakage": false,
|
| 411 |
+
"status": "[PASS] TRUE NEGATIVE",
|
| 412 |
+
"sample_snippet": "If your network weights explode to `inf` within 3 iterations, check the scale of your learning rate. Try reducing $\\alph..."
|
| 413 |
+
}
|
| 414 |
+
]
|
| 415 |
+
}
|