Learn it. Build it. Ship it for others.
This report presents the forensic synthetic code analysis of rohitg00/ai-engineering-from-scratch, a Python project with 38,255 GitHub stars. SynthScan v2.0 examined 347,746 lines of code across 2228 source files, recording 3638 pattern matches distributed across 20 syntactic categories. The overall adjusted score of 17.5 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 3638 distinct pattern matches across 20 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | site/figures-frontier.js | 159 | // ── world-model-rollout: imagine future states with a learned model ──────── | COMMENT |
| MEDIUM | site/figures-frontier.js | 243 | // ── pass-at-k: pass@k = 1 - (1-p)^k rises toward 1 as k grows ─────────────── | COMMENT |
| MEDIUM | site/figures-frontier.js | 279 | // ── eval-harness-matrix: tasks x variants grid, aggregate per variant ────── | COMMENT |
| MEDIUM | site/figures-frontier.js | 332 | // ── canary-rollout: traffic split, error rate, rollback trigger ──────────── | COMMENT |
| MEDIUM | site/figures-math2.js | 74 | // ── tensor-broadcast: do two shapes align trailing dims? ────────────────── | COMMENT |
| MEDIUM | site/figures-math2.js | 220 | // ── monte-carlo-pi: fraction inside the quarter circle estimates pi ──────── | COMMENT |
| MEDIUM | site/figures-math2.js | 321 | // ── random-walk-diffusion: spread of a 1D walk grows like sqrt(t) ────────── | COMMENT |
| MEDIUM | site/figures-math2.js | 420 | // ── graph-degree-distribution: degrees sum to twice the edge count ───────── | COMMENT |
| MEDIUM | site/figures-nlp2.js | 23 | // ── bow-tfidf: raw term frequency vs tf-idf = tf · log(N/df) ──────────────── | COMMENT |
| MEDIUM | site/figures-nlp2.js | 68 | // ── rnn-unroll: h_t = tanh(W h_{t-1} + U x_t) as a chain of cells ─────────── | COMMENT |
| MEDIUM | site/figures-nlp2.js | 144 | // ── seq2seq-alignment: encoder-decoder attention, rows sum to 1 ───────────── | COMMENT |
| MEDIUM | site/figures-nlp2.js | 245 | // ── ngram-backoff: higher n captures more context but sparser counts ──────── | COMMENT |
| MEDIUM | site/figures-nlp2.js | 274 | // ── ner-bio-tagging: BIO tags per token, drag which span is the entity ────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 96 | // ── kv-cache: drag the dims, watch the cache size ────────────────────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 189 | // ── softmax-temperature: divide the logits, reshape the distribution ─────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 258 | // ── l2-regularization: raise lambda, watch every weight shrink ───────────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 295 | // ── lr-schedule: compare warmup, cosine, step, and exponential decay ─────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 388 | // ── scaling-laws: Chinchilla loss and the 20-tokens-per-parameter rule ───── | COMMENT |
| MEDIUM | site/lesson-figures.js | 421 | // ── quantization: bits per weight against model size and precision ───────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 459 | // ── rope-explorer: rotary frequencies across position and dimension ──────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 497 | // ── lora-params: rank against trainable fraction of a weight matrix ──────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 529 | // ── precision-recall-threshold: slide the cutoff, watch P, R, F1 trade ───── | COMMENT |
| MEDIUM | site/lesson-figures.js | 569 | // ── cross-entropy-loss: the price of being confident and wrong ───────────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 599 | // ── cosine-similarity: the angle is the similarity ───────────────────────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 626 | // ── tokenizer-tradeoff: vocabulary size against tokens and table cost ────── | COMMENT |
| MEDIUM | site/lesson-figures.js | 655 | // ── rag-chunking: chunk size and overlap against count and context ───────── | COMMENT |
| MEDIUM | site/build.js | 30 | // ─── Parse ROADMAP.md for lesson statuses ──────────────────────────── | COMMENT |
| MEDIUM | site/build.js | 63 | // ─── Parse README.md for phases and lessons ────────────────────────── | COMMENT |
| MEDIUM | site/build.js | 233 | // ─── Extract lesson summary + keywords from docs/en.md ─────────────── | COMMENT |
| MEDIUM | site/build.js | 271 | // ─── Parse glossary/terms.md ────────────────────────────────────────── | COMMENT |
| MEDIUM | site/build.js | 312 | // ─── Discover outputs/ artifacts (skills / prompts / agents) ────────── | COMMENT |
| MEDIUM | site/build.js | 400 | // ─── Main build ────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/build.js | 488 | // ─── sitemap.xml from the same PHASES the site renders ─────────────────── | COMMENT |
| MEDIUM | site/build.js | 513 | // ─── llms.txt: a link-rich map of the curriculum for AI agents ─────────── | COMMENT |
| MEDIUM | site/build.js | 542 | // ─── Regenerate README stats block + lessons badge from source ─────────── | COMMENT |
| MEDIUM⚡ | site/cmdpalette.js | 17 | // ── Constants ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | site/cmdpalette.js | 22 | // ── Module state ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM⚡ | site/cmdpalette.js | 28 | // ── Search index ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 102 | // ── Scoring ────────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 174 | // ── Utilities ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 218 | // ── Palette DOM (created lazily on first open) ──────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 287 | // ── Open / close ───────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 337 | // ── Render results ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 432 | // ── Event handlers ─────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 510 | // ── Global keyboard shortcut (Cmd/Ctrl+K) ──────────────────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 524 | // ── Init: wire trigger buttons + eagerly build index ───────────────── | COMMENT |
| MEDIUM | site/cmdpalette.js | 545 | // ── Public API ──────────────────────────────────────────────────────── | COMMENT |
| MEDIUM | site/figures-vision-speech.js | 23 | // ── convolution-kernel: slide a 3x3 kernel over a fixed 8x8 image ────────── | COMMENT |
| MEDIUM | site/figures-vision-speech.js | 89 | // ── pooling: 2x2 max or average pooling over a 4x4 grid, stride 2 ────────── | COMMENT |
| MEDIUM | site/figures-vision-speech.js | 147 | // ── receptive-field: how many input pixels one deep neuron sees ──────────── | COMMENT |
| MEDIUM | site/figures-vision-speech.js | 175 | // ── conv-output-size: floor((W - K + 2P)/S) + 1 with a strip diagram ─────── | COMMENT |
| MEDIUM | site/figures-vision-speech.js | 223 | // ── cnn-param-count: conv weight sharing vs a dense layer ────────────────── | COMMENT |
| MEDIUM | site/figures-vision-speech.js | 293 | // ── mel-scale: linear Hz against the mel curve ───────────────────────────── | COMMENT |
| MEDIUM | site/figures-dl.js | 10 | // ── perceptron-boundary: drag the weights, move the decision line ────────── | COMMENT |
| MEDIUM | site/figures-dl.js | 68 | // ── mlp-forward: drag the inputs, watch a 2-3-1 net fire ─────────────────── | COMMENT |
| MEDIUM | site/figures-dl.js | 126 | // ── backprop-vanishing: product of activation derivatives across depth ───── | COMMENT |
| MEDIUM | site/figures-dl.js | 301 | // ── dropout-mask: drag p, drop a deterministic fraction of units ─────────── | COMMENT |
| MEDIUM | site/figures-dl.js | 340 | // ── batchnorm-effect: shift the input, watch BN re-center it ─────────────── | COMMENT |
| MEDIUM | site/figures-dl.js | 379 | // ── learning-curves: capacity vs train/val loss, mark early stopping ─────── | COMMENT |
| MEDIUM | site/figures-dl.js | 417 | // ── gradient-clipping: tame an exploding update by capping the norm ──────── | COMMENT |
| 523 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | .claude/skills/check-understanding/SKILL.md | 54 | ### Step 1: Resolve the Phase | COMMENT |
| LOW⚡ | .claude/skills/check-understanding/SKILL.md | 58 | ### Step 2: Read the Phase Content | COMMENT |
| LOW⚡ | .claude/skills/check-understanding/SKILL.md | 64 | ### Step 3: Generate 8 Questions | COMMENT |
| LOW | .claude/skills/check-understanding/SKILL.md | 86 | ### Step 4: Present Questions One at a Time | COMMENT |
| LOW | .claude/skills/check-understanding/SKILL.md | 103 | ### Step 5: Track and Score | COMMENT |
| LOW | .claude/skills/check-understanding/SKILL.md | 109 | ### Step 6: Show Results | COMMENT |
| LOW | .claude/skills/check-understanding/SKILL.md | 129 | ### Step 7: Wrong Answer Breakdown | COMMENT |
| LOW | .claude/skills/check-understanding/SKILL.md | 141 | ### Step 8: What Next? | COMMENT |
| LOW | …/06-speech-and-audio/13-neural-audio-codecs/docs/en.md | 79 | ### Step 1: encode with EnCodec | COMMENT |
| LOW | …/06-speech-and-audio/13-neural-audio-codecs/docs/en.md | 97 | ### Step 2: decode and measure reconstruction | COMMENT |
| LOW | …/06-speech-and-audio/13-neural-audio-codecs/docs/en.md | 109 | ### Step 3: the semantic-acoustic split (Mimi-style) | COMMENT |
| LOW | …/06-speech-and-audio/13-neural-audio-codecs/docs/en.md | 124 | ### Step 4: why AR LM over codec tokens works | COMMENT |
| LOW | …/15-streaming-speech-to-speech-moshi-hibiki/docs/en.md | 77 | ### Step 1: the interface | COMMENT |
| LOW | …/15-streaming-speech-to-speech-moshi-hibiki/docs/en.md | 93 | ### Step 2: the full-duplex loop | COMMENT |
| LOW | …/15-streaming-speech-to-speech-moshi-hibiki/docs/en.md | 110 | ### Step 3: the training objective (conceptual) | COMMENT |
| LOW | …/15-streaming-speech-to-speech-moshi-hibiki/docs/en.md | 119 | ### Step 4: where Moshi wins and where it doesn't | COMMENT |
| LOW | …d-audio/06-speaker-recognition-verification/docs/en.md | 54 | ### Step 1: toy embedding from MFCC statistics | COMMENT |
| LOW | …d-audio/06-speaker-recognition-verification/docs/en.md | 69 | ### Step 2: cosine similarity + threshold | COMMENT |
| LOW | …d-audio/06-speaker-recognition-verification/docs/en.md | 82 | ### Step 3: EER from similarity pairs | COMMENT |
| LOW | …d-audio/06-speaker-recognition-verification/docs/en.md | 98 | ### Step 4: production with SpeechBrain | COMMENT |
| LOW | …d-audio/06-speaker-recognition-verification/docs/en.md | 112 | ### Step 5: diarize with pyannote | COMMENT |
| LOW | …-speech-and-audio/04-speech-recognition-asr/docs/en.md | 53 | ### Step 1: greedy CTC decode | COMMENT |
| LOW | …-speech-and-audio/04-speech-recognition-asr/docs/en.md | 70 | ### Step 2: beam-search CTC | COMMENT |
| LOW | …-speech-and-audio/04-speech-recognition-asr/docs/en.md | 90 | ### Step 3: WER | COMMENT |
| LOW | …-speech-and-audio/04-speech-recognition-asr/docs/en.md | 111 | ### Step 4: inference against Whisper | COMMENT |
| LOW | …-speech-and-audio/04-speech-recognition-asr/docs/en.md | 122 | ### Step 5: streaming with Parakeet or wav2vec 2.0 | COMMENT |
| LOW | …peech-and-audio/12-voice-assistant-pipeline/docs/en.md | 56 | ### Step 1: mic capture with chunking (pseudocode) | COMMENT |
| LOW | …peech-and-audio/12-voice-assistant-pipeline/docs/en.md | 70 | ### Step 2: VAD-gated turn capture | COMMENT |
| LOW | …peech-and-audio/12-voice-assistant-pipeline/docs/en.md | 91 | ### Step 3: streaming STT → LLM → TTS | COMMENT |
| LOW | …peech-and-audio/12-voice-assistant-pipeline/docs/en.md | 101 | ### Step 4: tool calling inside the LLM loop | COMMENT |
| LOW | …peech-and-audio/12-voice-assistant-pipeline/docs/en.md | 117 | ### Step 5: interruption handling | COMMENT |
| LOW | …06-speech-and-audio/03-audio-classification/docs/en.md | 54 | ### Step 1: featurize | COMMENT |
| LOW | …06-speech-and-audio/03-audio-classification/docs/en.md | 65 | ### Step 2: fixed-length summary | COMMENT |
| LOW | …06-speech-and-audio/03-audio-classification/docs/en.md | 79 | ### Step 3: k-NN | COMMENT |
| LOW | …06-speech-and-audio/03-audio-classification/docs/en.md | 94 | ### Step 4: upgrade to CNN on log-mels | COMMENT |
| LOW | …06-speech-and-audio/03-audio-classification/docs/en.md | 118 | ### Step 5: the 2026 default — fine-tune BEATs | COMMENT |
| LOW | …ses/06-speech-and-audio/09-music-generation/docs/en.md | 73 | ### Step 1: generate with MusicGen | COMMENT |
| LOW | …ses/06-speech-and-audio/09-music-generation/docs/en.md | 87 | ### Step 2: melody conditioning | COMMENT |
| LOW | …ses/06-speech-and-audio/09-music-generation/docs/en.md | 100 | ### Step 3: FAD evaluation | COMMENT |
| LOW | …ses/06-speech-and-audio/09-music-generation/docs/en.md | 111 | ### Step 4: adding to the LLM-music workflow | COMMENT |
| LOW | …peech-and-audio/08-voice-cloning-conversion/docs/en.md | 62 | ### Step 1: decompose with recognition-synthesis (code-only demo in main.py) | COMMENT |
| LOW | …peech-and-audio/08-voice-cloning-conversion/docs/en.md | 73 | ### Step 2: zero-shot clone with F5-TTS | COMMENT |
| LOW | …peech-and-audio/08-voice-cloning-conversion/docs/en.md | 87 | ### Step 3: voice conversion with KNN-VC | COMMENT |
| LOW | …peech-and-audio/08-voice-cloning-conversion/docs/en.md | 98 | ### Step 4: embed a watermark | COMMENT |
| LOW | …peech-and-audio/08-voice-cloning-conversion/docs/en.md | 110 | ### Step 5: consent gate | COMMENT |
| LOW | …6-speech-and-audio/10-audio-language-models/docs/en.md | 85 | ### Step 1: query Qwen2.5-Omni | COMMENT |
| LOW | …6-speech-and-audio/10-audio-language-models/docs/en.md | 106 | ### Step 2: the projector pattern | COMMENT |
| LOW | …6-speech-and-audio/10-audio-language-models/docs/en.md | 124 | ### Step 3: benchmarking MMAU / LongAudioBench | COMMENT |
| LOW | …s/06-speech-and-audio/01-audio-fundamentals/docs/en.md | 55 | ### Step 1: read a clip and plot the waveform | COMMENT |
| LOW | …s/06-speech-and-audio/01-audio-fundamentals/docs/en.md | 64 | ### Step 2: synthesize a sine wave from first principles | COMMENT |
| LOW | …s/06-speech-and-audio/01-audio-fundamentals/docs/en.md | 76 | ### Step 3: compute the DFT by hand | COMMENT |
| LOW | …s/06-speech-and-audio/01-audio-fundamentals/docs/en.md | 91 | ### Step 4: find the dominant frequency | COMMENT |
| LOW | …s/06-speech-and-audio/01-audio-fundamentals/docs/en.md | 95 | ### Step 5: demonstrate aliasing | COMMENT |
| LOW | …d-audio/16-anti-spoofing-audio-watermarking/docs/en.md | 75 | ### Step 1: a simple spectral-feature detector (toy) | COMMENT |
| LOW | …d-audio/16-anti-spoofing-audio-watermarking/docs/en.md | 98 | ### Step 2: AudioSeal embed + detect | COMMENT |
| LOW | …d-audio/16-anti-spoofing-audio-watermarking/docs/en.md | 117 | ### Step 3: evaluation — EER | COMMENT |
| LOW | …d-audio/16-anti-spoofing-audio-watermarking/docs/en.md | 131 | ### Step 4: the production integration | COMMENT |
| LOW | …peech-and-audio/17-audio-evaluation-metrics/docs/en.md | 116 | ### Step 1: WER with normalization | COMMENT |
| LOW | …peech-and-audio/17-audio-evaluation-metrics/docs/en.md | 131 | ### Step 2: TTS round-trip WER | COMMENT |
| LOW | …peech-and-audio/17-audio-evaluation-metrics/docs/en.md | 143 | ### Step 3: SECS for voice cloning | COMMENT |
| 1090 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | site/lesson.html | 2635 | function updateMermaidThemeAndRerender() { | CODE |
| LOW | site/lesson.html | 2731 | function getMermaidModalFocusables() { | CODE |
| LOW | …5-streaming-speech-to-speech-moshi-hibiki/code/main.py | 42 | def inner_monologue_next_token(text_so_far, user_mimi_stream): | CODE |
| LOW | phases/11-llm-engineering/07-advanced-rag/code/main.py | 202 | def create_parent_child_chunks(text, parent_size=200, child_size=50): | CODE |
| LOW | phases/11-llm-engineering/07-advanced-rag/code/main.py | 260 | def evaluate_retrieval_recall(queries_with_relevant, retrieval_fn, k=5): | CODE |
| LOW | phases/11-llm-engineering/07-advanced-rag/docs/en.md | 335 | def create_parent_child_chunks(text, parent_size=200, child_size=50): | CODE |
| LOW | phases/11-llm-engineering/07-advanced-rag/docs/en.md | 396 | def evaluate_retrieval_recall(queries_with_relevant, retrieval_fn, k=5): | CODE |
| LOW | phases/11-llm-engineering/07-advanced-rag/docs/en.md | 427 | def rerank_with_cross_encoder(query, candidates, chunks, top_k=5): | CODE |
| LOW | …gineering/09-function-calling/code/function_calling.py | 305 | def run_function_calling_loop(user_message, max_iterations=5): | CODE |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 403 | def run_function_calling_loop(user_message, max_iterations=5): | CODE |
| LOW | …1-llm-engineering/10-evaluation/code/eval_framework.py | 183 | def wilson_confidence_interval(successes, total, z=1.96): | CODE |
| LOW | …1-llm-engineering/10-evaluation/code/eval_framework.py | 195 | def bootstrap_confidence_interval(scores, n_bootstrap=1000, confidence=0.95): | CODE |
| LOW | phases/11-llm-engineering/10-evaluation/docs/en.md | 425 | def wilson_confidence_interval(successes, total, z=1.96): | CODE |
| LOW | phases/11-llm-engineering/10-evaluation/docs/en.md | 437 | def bootstrap_confidence_interval(scores, n_bootstrap=1000, confidence=0.95): | CODE |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 157 | def demonstrate_constrained_decoding(): | CODE |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 224 | def run_schema_validation_demo(): | CODE |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 248 | def run_schema_generation_demo(): | CODE |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 287 | def run_constrained_decoding_demo(): | CODE |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 294 | def run_extraction_pipeline_demo(): | CODE |
| LOW | …es/11-llm-engineering/03-structured-outputs/docs/en.md | 304 | def demonstrate_constrained_decoding(): | CODE |
| LOW | …engineering/02-few-shot-cot/code/advanced_prompting.py | 140 | def build_zero_shot_cot_prompt(question): | CODE |
| LOW | …engineering/02-few-shot-cot/code/advanced_prompting.py | 213 | def generate_initial_thoughts(question, client, model, breadth=3): | CODE |
| LOW | …eep-learning-core/04-activation-functions/code/main.py | 81 | def vanishing_gradient_experiment(activation_fn, name, n_layers=10, n_inputs=5): | CODE |
| LOW | …-deep-learning-core/04-activation-functions/docs/en.md | 315 | def vanishing_gradient_experiment(activation_fn, name, n_layers=10, n_inputs=5): | CODE |
| LOW | …s/03-deep-learning-core/05-loss-functions/code/main.py | 50 | def categorical_cross_entropy(logits, target_index, eps=1e-15): | CODE |
| LOW | …ses/03-deep-learning-core/05-loss-functions/docs/en.md | 248 | def categorical_cross_entropy(logits, target_index, eps=1e-15): | CODE |
| LOW | …undations-to-advanced/18-multilingual-nlp/code/main.py | 29 | def simulate_transfer_accuracy(target, source): | CODE |
| LOW | …dations-to-advanced/02-bag-of-words-tfidf/code/main.py | 39 | def inverse_document_frequency(df, n_docs): | CODE |
| LOW | …undations-to-advanced/02-bag-of-words-tfidf/docs/en.md | 95 | def inverse_document_frequency(df, n_docs): | CODE |
| LOW | …nd-protocols/10-mcp-resources-and-prompts/code/main.py | 78 | def handle_resources_subscribe(params: dict) -> dict: | CODE |
| LOW | …nd-protocols/10-mcp-resources-and-prompts/code/main.py | 83 | def handle_resources_unsubscribe(params: dict) -> dict: | CODE |
| LOW | …gent-engineering/26-failure-modes-agentic/code/main.py | 37 | def detect_hallucinated_action(trace: Trace) -> str | None: | CODE |
| LOW | …gent-engineering/26-failure-modes-agentic/code/main.py | 98 | def detect_success_hallucination(trace: Trace) -> str | None: | CODE |
| LOW | …33-instructions-as-executable-constraints/code/main.py | 110 | def opened_question_when_unsure(self, trace: TurnTrace) -> bool: | STRING |
| LOW | …tooling/12-debugging-and-profiling/code/debug_tools.py | 259 | def demo_conditional_breakpoint(): | CODE |
| LOW | …and-tooling/05-jupyter-notebooks/code/notebook_tips.py | 84 | def magic_command_equivalents(): | CODE |
| LOW | …ety-alignment/17-wmdp-dual-use-evaluation/code/main.py | 40 | def apply_rmu_style_unlearning(model_accuracy: dict, | CODE |
| LOW | …lignment/04-sycophancy-rlhf-amplification/code/main.py | 66 | def agreement_penalty_correction(r: dict[str, float], alpha: float) -> dict[str, float]: | CODE |
| LOW | …fety-alignment/02-reward-hacking-goodhart/code/main.py | 137 | def kl_constrained_policy_sweep(proxy: ProxyRM, | CODE |
| LOW | …/06-mesa-optimization-deceptive-alignment/code/main.py | 60 | def pseudo_no_awareness_policy(ex: Example, mesa_goal: int = 0) -> int: | CODE |
| LOW | …d-swarms/23-failure-modes-mast-groupthink/code/main.py | 141 | def demo_incident_categorization() -> None: | CODE |
| LOW | …lti-agent-and-swarms/02-fipa-acl-heritage/code/main.py | 71 | def mcp_resources_read_to_acl(req: dict) -> ACLMessage: | CODE |
| LOW | …/22-production-scaling-queues-checkpoints/code/main.py | 51 | def run_agent_with_checkpoint(store: CheckpointStore, thread_id: str, | STRING |
| LOW | …formers-deep-dive/03-multi-head-attention/code/main.py | 80 | def scaled_dot_product_attention(Q: Matrix, K: Matrix, V: Matrix): | CODE |
| LOW | …formers-deep-dive/16-speculative-decoding/code/main.py | 108 | def expected_tokens_per_verify(alpha, N): | CODE |
| LOW | …ransformers-deep-dive/05-full-transformer/code/main.py | 129 | def scaled_dot_product_attention(Q, K, V, causal=False): | CODE |
| LOW | …/02-self-attention-from-scratch/code/self_attention.py | 10 | def scaled_dot_product_attention(Q, K, V): | CODE |
| LOW⚡ | …rs-deep-dive/02-self-attention-from-scratch/docs/en.md | 195 | def scaled_dot_product_attention(Q, K, V): | CODE |
| LOW | …deep-dive/07-gpt-causal-language-modeling/code/main.py | 24 | def attention_scores_with_mask(raw_scores, mask): | CODE |
| LOW | …math-foundations/18-convex-optimization/code/convex.py | 267 | def demo_condition_number_effect(): | CODE |
| LOW | …math-foundations/18-convex-optimization/code/convex.py | 306 | def demo_lagrange_multipliers(): | CODE |
| LOW | …math-foundations/18-convex-optimization/code/convex.py | 380 | def demo_regularization_geometry(): | CODE |
| LOW | …math-foundations/18-convex-optimization/code/convex.py | 443 | def demo_first_vs_second_order(): | CODE |
| LOW | …math-foundations/18-convex-optimization/code/convex.py | 519 | def demo_convex_vs_nonconvex_landscape(): | CODE |
| LOW | …ations/02-vectors-matrices-operations/code/matrices.py | 239 | def demo_neural_network_layer(): | CODE |
| LOW | …ations/02-vectors-matrices-operations/code/matrices.py | 295 | def demo_weight_matrix_intuition(): | CODE |
| LOW | …h-foundations/17-linear-systems/code/linear_systems.py | 139 | def demo_gaussian_elimination(): | CODE |
| LOW | …h-foundations/17-linear-systems/code/linear_systems.py | 382 | def demo_linear_regression_full(): | CODE |
| LOW | …ions/10-dimensionality-reduction/code/dim_reduction.py | 285 | def demo_reconstruction_error(): | CODE |
| LOW | …-math-foundations/16-sampling-methods/code/sampling.py | 11 | def sample_exponential_inverse_cdf(lam): | CODE |
| 779 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/link_check.py | 29 | CODE | |
| LOW | scripts/build_catalog.py | 49 | CODE | |
| LOW | scripts/scaffold_workbench.py | 26 | CODE | |
| LOW | scripts/check_readme_counts.py | 27 | CODE | |
| LOW | scripts/audit_lessons.py | 12 | CODE | |
| LOW | scripts/install_skills.py | 27 | CODE | |
| LOW | scripts/lesson_run.py | 30 | CODE | |
| LOW | scripts/_lib.py | 9 | CODE | |
| LOW | …peech-and-audio/04-speech-recognition-asr/code/main.py | 9 | CODE | |
| LOW | …speech-and-audio/10-audio-language-models/code/main.py | 10 | CODE | |
| LOW | …-audio/05-whisper-architecture-finetuning/code/main.py | 9 | CODE | |
| LOW | …ses/06-speech-and-audio/07-text-to-speech/code/main.py | 10 | CODE | |
| LOW | …llm-engineering/14-model-context-protocol/code/main.py | 13 | CODE | |
| LOW | …ases/11-llm-engineering/15-prompt-caching/code/main.py | 14 | CODE | |
| LOW | …ases/11-llm-engineering/15-prompt-caching/code/main.py | 16 | CODE | |
| LOW | …m-engineering/16-langgraph-state-machines/code/main.py | 23 | CODE | |
| LOW | …1-llm-engineering/10-evaluation/code/eval_framework.py | 1 | CODE | |
| LOW | …1-llm-engineering/10-evaluation/code/eval_framework.py | 6 | CODE | |
| LOW | …-engineering/17-agent-framework-tradeoffs/code/main.py | 12 | CODE | |
| LOW | …-engineering/17-agent-framework-tradeoffs/code/main.py | 18 | CODE | |
| LOW | …11-llm-engineering/05-context-engineering/code/main.py | 2 | CODE | |
| LOW | …m-engineering/13-production-app/code/production_app.py | 3 | CODE | |
| LOW | …m-engineering/13-production-app/code/production_app.py | 13 | CODE | |
| LOW | …engineering/02-few-shot-cot/code/advanced_prompting.py | 1 | CODE | |
| LOW | …1-llm-engineering/11-caching-cost/code/caching_cost.py | 5 | CODE | |
| LOW | …1-llm-engineering/11-caching-cost/code/caching_cost.py | 5 | CODE | |
| LOW | …foundations-to-advanced/25-entity-linking/code/main.py | 2 | CODE | |
| LOW | …-to-advanced/27-llm-evaluation-frameworks/code/main.py | 2 | CODE | |
| LOW | …ns-to-advanced/17-chatbots-rule-to-neural/code/main.py | 2 | CODE | |
| LOW | …-and-protocols/23-capstone-tool-ecosystem/code/main.py | 16 | CODE | |
| LOW | …-and-protocols/23-capstone-tool-ecosystem/code/main.py | 22 | CODE | |
| LOW | …-and-protocols/23-capstone-tool-ecosystem/code/main.py | 22 | CODE | |
| LOW | …s-and-protocols/08-building-an-mcp-client/code/main.py | 11 | CODE | |
| LOW | …s-and-protocols/08-building-an-mcp-client/code/main.py | 13 | CODE | |
| LOW | …-tools-and-protocols/21-llm-routing-layer/code/main.py | 11 | CODE | |
| LOW | …-tools-and-protocols/21-llm-routing-layer/code/main.py | 13 | CODE | |
| LOW | …-tools-and-protocols/21-llm-routing-layer/code/main.py | 17 | CODE | |
| LOW | …ls-and-protocols/22-skills-and-agent-sdks/code/main.py | 12 | CODE | |
| LOW | …ls-and-protocols/22-skills-and-agent-sdks/code/main.py | 14 | CODE | |
| LOW | …tools-and-protocols/01-the-tool-interface/code/main.py | 17 | CODE | |
| LOW | …-tools-and-protocols/04-structured-output/code/main.py | 14 | CODE | |
| LOW | …-protocols/17-mcp-gateways-and-registries/code/main.py | 15 | CODE | |
| LOW | …-protocols/17-mcp-gateways-and-registries/code/main.py | 18 | CODE | |
| LOW | …-protocols/17-mcp-gateways-and-registries/code/main.py | 21 | CODE | |
| LOW | …d-protocols/02-function-calling-deep-dive/code/main.py | 10 | CODE | |
| LOW | …3-tools-and-protocols/06-mcp-fundamentals/code/main.py | 10 | CODE | |
| LOW | …cols/03-parallel-and-streaming-tool-calls/code/main.py | 13 | CODE | |
| LOW | phases/13-tools-and-protocols/14-mcp-apps/code/main.py | 13 | CODE | |
| LOW | phases/13-tools-and-protocols/14-mcp-apps/code/main.py | 16 | CODE | |
| LOW | phases/13-tools-and-protocols/14-mcp-apps/code/main.py | 17 | CODE | |
| LOW | …es/13-tools-and-protocols/19-a2a-protocol/code/main.py | 14 | CODE | |
| LOW | …-protocols/15-mcp-security-tool-poisoning/code/main.py | 13 | CODE | |
| LOW | …s-and-protocols/16-mcp-security-oauth-2-1/code/main.py | 14 | CODE | |
| LOW | …nd-protocols/10-mcp-resources-and-prompts/code/main.py | 14 | CODE | |
| LOW | …nd-protocols/10-mcp-resources-and-prompts/code/main.py | 17 | CODE | |
| LOW | …nd-protocols/10-mcp-resources-and-prompts/code/main.py | 17 | CODE | |
| LOW | …ools-and-protocols/20-opentelemetry-genai/code/main.py | 14 | CODE | |
| LOW | …ools-and-protocols/20-opentelemetry-genai/code/main.py | 22 | CODE | |
| LOW | …13-tools-and-protocols/13-mcp-async-tasks/code/main.py | 16 | CODE | |
| LOW | …13-tools-and-protocols/13-mcp-async-tasks/code/main.py | 19 | CODE | |
| 559 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | site/data.js | 2056 | "url": "https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/11-llm-engineering/12-guardrail | CODE |
| MEDIUM | site/data.js | 2791 | "url": "https://github.com/rohitg00/ai-engineering-from-scratch/tree/main/phases/14-agent-engineering/26-failure | CODE |
| MEDIUM | glossary/myths.md | 69 | ## "Bigger context window = better" | COMMENT |
| MEDIUM | glossary/terms.md | 282 | ### RAG (Retrieval-Augmented Generation) | COMMENT |
| MEDIUM | …peech-and-audio/08-voice-cloning-conversion/docs/en.md | 73 | ### Step 2: zero-shot clone with F5-TTS | COMMENT |
| MEDIUM | phases/11-llm-engineering/07-advanced-rag/docs/en.md | 1 | # Advanced RAG (Chunking, Reranking, Hybrid Search) | COMMENT |
| MEDIUM | phases/11-llm-engineering/07-advanced-rag/docs/en.md | 530 | - [Asai et al., "Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflection" (ICLR 2024)](https://ar | CODE |
| MEDIUM | …ineering/07-advanced-rag/outputs/skill-advanced-rag.md | 10 | # Advanced RAG Pattern | COMMENT |
| MEDIUM | …ineering/07-advanced-rag/outputs/skill-advanced-rag.md | 21 | ## When to upgrade from basic RAG | COMMENT |
| MEDIUM | phases/11-llm-engineering/06-rag/docs/en.md | 1 | # RAG (Retrieval-Augmented Generation) | COMMENT |
| MEDIUM | phases/11-llm-engineering/06-rag/docs/en.md | 28 | ### The RAG Pattern | COMMENT |
| MEDIUM | phases/11-llm-engineering/06-rag/docs/en.md | 58 | ### Why RAG Beats Fine-Tuning | COMMENT |
| MEDIUM | phases/11-llm-engineering/06-rag/docs/en.md | 277 | ### Step 5: The Complete RAG Pipeline | COMMENT |
| MEDIUM | …1-llm-engineering/06-rag/outputs/skill-rag-pipeline.md | 10 | # RAG Pipeline Pattern | COMMENT |
| MEDIUM | …1-llm-engineering/06-rag/outputs/skill-rag-pipeline.md | 21 | ## When to use RAG | COMMENT |
| MEDIUM | …1-llm-engineering/06-rag/outputs/skill-rag-pipeline.md | 28 | ## When NOT to use RAG | COMMENT |
| MEDIUM | …s/11-llm-engineering/05-context-engineering/docs/en.md | 544 | ### RAG as Context Engineering | COMMENT |
| MEDIUM | phases/11-llm-engineering/12-guardrails/code/main.ts | 3 | // code/guardrails.py and the OWASP LLM defense-in-depth pattern. | COMMENT |
| MEDIUM | phases/11-llm-engineering/12-guardrails/code/main.ts | 6 | // https://github.com/presidio-oss/hai-guardrails | COMMENT |
| MEDIUM⚡ | phases/11-llm-engineering/12-guardrails/docs/en.md | 836 | # Install: pip install guardrails-ai | COMMENT |
| MEDIUM⚡ | phases/11-llm-engineering/12-guardrails/docs/en.md | 838 | # import guardrails as gd | COMMENT |
| MEDIUM⚡ | phases/11-llm-engineering/12-guardrails/docs/en.md | 839 | # from guardrails.hub import DetectPII, ToxicLanguage, CompetitorCheck | COMMENT |
| MEDIUM | phases/11-llm-engineering/12-guardrails/docs/en.md | 856 | Guardrails AI has 50+ validators on their hub. Install validators individually: `guardrails hub install hub://guardrails | CODE |
| MEDIUM | phases/11-llm-engineering/12-guardrails/docs/en.md | 896 | - [NeMo Guardrails Documentation](https://docs.nvidia.com/nemo/guardrails/) -- NVIDIA's guide to implementing programmab | CODE |
| MEDIUM | …ring/12-guardrails/outputs/skill-guardrail-patterns.md | 14 | ## When to add guardrails | COMMENT |
| MEDIUM | phases/11-llm-engineering/13-production-app/docs/en.md | 1147 | - [Eugene Yan, "Patterns for Building LLM-based Systems"](https://eugeneyan.com/writing/llm-patterns/) -- architectural | CODE |
| MEDIUM | …ions-to-advanced/23-chunking-strategies-rag/docs/en.md | 1 | # Chunking Strategies for RAG | COMMENT |
| MEDIUM | …undations-to-advanced/13-question-answering/docs/en.md | 57 | ### Step 2: a retrieval-augmented pipeline (sketch) | COMMENT |
| MEDIUM | …undations-to-advanced/13-question-answering/docs/en.md | 92 | ### Step 3: generative with RAG | COMMENT |
| MEDIUM | …foundations-to-advanced/18-multilingual-nlp/docs/en.md | 54 | ### Step 1: zero-shot cross-lingual classification | COMMENT |
| MEDIUM | …foundations-to-advanced/18-multilingual-nlp/docs/en.md | 107 | ### Step 3: few-shot fine-tuning strategy | COMMENT |
| MEDIUM | …to-advanced/14-information-retrieval-search/docs/en.md | 170 | ### The hard-won lessons from 2026 production RAG | COMMENT |
| MEDIUM | …tions-to-advanced/21-nli-textual-entailment/docs/en.md | 72 | ### Step 2: zero-shot classification | COMMENT |
| MEDIUM | …tions-to-advanced/21-nli-textual-entailment/docs/en.md | 88 | ### Step 3: faithfulness check for RAG | COMMENT |
| MEDIUM | …13-tools-and-protocols/21-llm-routing-layer/docs/en.md | 148 | - [Portkey — docs](https://portkey.ai/docs) — production routing with guardrails | CODE |
| MEDIUM | …nd-protocols/17-mcp-gateways-and-registries/docs/en.md | 141 | - [agentic-community — MCP gateway registry](https://github.com/agentic-community/mcp-gateway-registry) — open-source re | CODE |
| MEDIUM⚡ | …nforcement-learning/11-sim-to-real-transfer/docs/en.md | 68 | ### Step 3: evaluate zero-shot on "real" slips | COMMENT |
| MEDIUM | …09-reinforcement-learning/10-multi-agent-rl/docs/en.md | 54 | ### Step 1: the multi-agent env | COMMENT |
| MEDIUM | …agent-engineering/23-otel-genai-conventions/docs/en.md | 127 | - [AutoGen v0.4 (Microsoft Research)](https://www.microsoft.com/en-us/research/articles/autogen-v0-4-reimagining-the-fou | CODE |
| MEDIUM⚡ | …agent-engineering/37-runtime-feedback-loops/docs/en.md | 121 | - [Guardrails AI x MLflow — deterministic safety, PII, quality validators](https://guardrailsai.com/blog/guardrails-mlfl | CODE |
| MEDIUM⚡ | …agent-engineering/37-runtime-feedback-loops/docs/en.md | 122 | - [Aport.io, Best AI Agent Guardrails 2026: Pre-Action Authorization Compared](https://aport.io/blog/best-ai-agent-guard | CODE |
| MEDIUM⚡ | …agent-engineering/37-runtime-feedback-loops/docs/en.md | 123 | - [Andrii Furmanets, AI Agents in 2026: Practical Architecture for Tools, Memory, Evals, Guardrails](https://andriifurma | CODE |
| MEDIUM | …14-agent-engineering/29-production-runtimes/docs/en.md | 139 | - [AutoGen v0.4 (Microsoft Research)](https://www.microsoft.com/en-us/research/articles/autogen-v0-4-reimagining-the-fou | CODE |
| MEDIUM | …nt-engineering/13-langgraph-stateful-graphs/docs/en.md | 120 | - [AutoGen v0.4, Microsoft Research](https://www.microsoft.com/en-us/research/articles/autogen-v0-4-reimagining-the-foun | CODE |
| MEDIUM | …ses/14-agent-engineering/36-scope-contracts/docs/en.md | 158 | - [logi-cmd/agent-guardrails — merge gates and scope validation](https://github.com/logi-cmd/agent-guardrails) — violati | CODE |
| MEDIUM | …ses/14-agent-engineering/36-scope-contracts/docs/en.md | 160 | - [Agentic Coding Is Not a Trap (production logs)](https://dev.to/jtorchia/agentic-coding-is-not-a-trap-i-answered-the-v | CODE |
| MEDIUM | …ineering/31-agent-workbench-why-models-fail/docs/en.md | 209 | - [Jaymin West, Agentic Engineering — Chapter 6: Harnesses](https://www.jayminwest.com/agentic-engineering-book/6-harnes | CODE |
| MEDIUM | …agent-engineering/05-self-refine-and-critic/docs/en.md | 76 | ### OpenAI Agents SDK output guardrails | COMMENT |
| MEDIUM | …agent-engineering/05-self-refine-and-critic/docs/en.md | 140 | - [OpenAI Agents SDK docs](https://openai.github.io/openai-agents-python/) — output guardrails as CRITIC-shaped verifier | CODE |
| MEDIUM | …s/14-agent-engineering/16-openai-agents-sdk/docs/en.md | 121 | - [OpenAI Agents SDK docs](https://openai.github.io/openai-agents-python/) — primitives, handoffs, guardrails, tracing | CODE |
| MEDIUM | …agent-engineering/35-initialization-scripts/docs/en.md | 121 | - [microservices.io, GenAI dev platform: guardrails](https://microservices.io/post/architecture/2026/03/09/genai-develop | CODE |
| MEDIUM | …g/33-instructions-as-executable-constraints/docs/en.md | 55 | ### Rules versus framework guardrails | COMMENT |
| MEDIUM⚡ | …g/33-instructions-as-executable-constraints/docs/en.md | 143 | - [OpenAI Agents SDK guardrails](https://platform.openai.com/docs/guides/agents-sdk/guardrails) | CODE |
| MEDIUM⚡ | …g/33-instructions-as-executable-constraints/docs/en.md | 148 | - [microservices.io, GenAI development platform — part 1: guardrails](https://microservices.io/post/architecture/2026/03 | CODE |
| MEDIUM⚡ | …g/33-instructions-as-executable-constraints/docs/en.md | 150 | - [logi-cmd/agent-guardrails](https://github.com/logi-cmd/agent-guardrails) — merge-gate implementation: scope, mutation | CODE |
| MEDIUM | …ngineering/24-agent-observability-platforms/docs/en.md | 118 | - [Comet Opik](https://www.comet.com/site/products/opik/) — optimization + guardrails | CODE |
| MEDIUM⚡ | …/14-agent-engineering/38-verification-gates/docs/en.md | 133 | - [OpenAI Agents SDK guardrails](https://platform.openai.com/docs/guides/agents-sdk/guardrails) | CODE |
| MEDIUM⚡ | …/14-agent-engineering/38-verification-gates/docs/en.md | 134 | - [microservices.io, GenAI dev platform: guardrails](https://microservices.io/post/architecture/2026/03/09/genai-develop | CODE |
| MEDIUM⚡ | …/14-agent-engineering/38-verification-gates/docs/en.md | 135 | - [ICMD, The 2026 Playbook for Agentic AI Ops](https://icmd.app/article/the-2026-playbook-for-agentic-ai-ops-guardrails- | CODE |
| MEDIUM⚡ | …/14-agent-engineering/38-verification-gates/docs/en.md | 137 | - [logi-cmd/agent-guardrails — merge gate spec](https://github.com/logi-cmd/agent-guardrails) — scope + mutation-testing | CODE |
| 36 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/link_check.py | 115 | CODE | |
| LOW | scripts/link_check.py | 278 | CODE | |
| LOW | scripts/install_skills.py | 74 | CODE | |
| LOW | scripts/install_skills.py | 91 | CODE | |
| LOW | …audio/06-speaker-recognition-verification/code/main.py | 135 | CODE | |
| LOW | …peech-and-audio/04-speech-recognition-asr/code/main.py | 27 | CODE | |
| LOW | …ech-and-audio/12-voice-assistant-pipeline/code/main.py | 69 | CODE | |
| LOW | …ses/06-speech-and-audio/07-text-to-speech/code/main.py | 53 | CODE | |
| LOW | …ch-and-audio/02-spectrograms-mel-features/code/main.py | 85 | CODE | |
| LOW | …llm-engineering/14-model-context-protocol/code/main.py | 79 | CODE | |
| LOW | …m-engineering/16-langgraph-state-machines/code/main.py | 116 | CODE | |
| LOW | …gineering/09-function-calling/code/function_calling.py | 199 | CODE | |
| LOW | …es/11-llm-engineering/08-fine-tuning-lora/code/lora.py | 35 | CODE | |
| LOW | …1-llm-engineering/10-evaluation/code/eval_framework.py | 300 | CODE | |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 10 | CODE | |
| LOW | …/11-llm-engineering/03-structured-outputs/code/main.py | 121 | CODE | |
| LOW | …es/11-llm-engineering/04-embeddings/code/embeddings.py | 109 | CODE | |
| LOW | …m-engineering/13-production-app/code/production_app.py | 359 | CODE | |
| LOW | …ering/01-prompt-engineering/code/prompt_engineering.py | 321 | CODE | |
| LOW | …13-debugging-neural-networks/code/debug_neural_nets.py | 140 | CODE | |
| LOW | …s/03-deep-learning-core/10-mini-framework/code/main.py | 373 | CODE | |
| LOW | …eep-learning-core/01-the-perceptron/code/perceptron.py | 12 | CODE | |
| LOW | …eep-learning-core/01-the-perceptron/code/perceptron.py | 132 | CODE | |
| LOW | …-learning-core/09-learning-rate-schedules/code/main.py | 76 | CODE | |
| LOW | …-learning-core/09-learning-rate-schedules/code/main.py | 148 | CODE | |
| LOW | …/03-deep-learning-core/03-backpropagation/code/main.py | 188 | CODE | |
| LOW | …ep-learning-core/08-weight-initialization/code/main.py | 64 | CODE | |
| LOW | …ep-learning-core/08-weight-initialization/code/main.py | 126 | CODE | |
| LOW | …ep-learning-core/08-weight-initialization/code/main.py | 157 | CODE | |
| LOW | …ep-learning-core/08-weight-initialization/code/main.py | 166 | CODE | |
| LOW | …ns-to-advanced/23-chunking-strategies-rag/code/main.py | 36 | CODE | |
| LOW | …ations-to-advanced/07-pos-tagging-parsing/code/main.py | 52 | CODE | |
| LOW | …s-to-advanced/03-word-embeddings-word2vec/code/main.py | 22 | CODE | |
| LOW | …s-to-advanced/06-named-entity-recognition/code/main.py | 6 | CODE | |
| LOW | …s-to-advanced/06-named-entity-recognition/code/main.py | 20 | CODE | |
| LOW | …s-to-advanced/06-named-entity-recognition/code/main.py | 43 | CODE | |
| LOW | …dations-to-advanced/12-text-summarization/code/main.py | 20 | CODE | |
| LOW | …foundations-to-advanced/15-topic-modeling/code/main.py | 13 | CODE | |
| LOW | …ons-to-advanced/04-glove-fasttext-subword/code/main.py | 13 | CODE | |
| LOW | …ons-to-advanced/24-coreference-resolution/code/main.py | 27 | CODE | |
| LOW | …-advanced/14-information-retrieval-search/code/main.py | 58 | CODE | |
| LOW | …s-and-protocols/08-building-an-mcp-client/code/main.py | 109 | CODE | |
| LOW | …-tools-and-protocols/04-structured-output/code/main.py | 60 | CODE | |
| LOW | …-tools-and-protocols/04-structured-output/code/main.py | 176 | CODE | |
| LOW | …-protocols/15-mcp-security-tool-poisoning/code/main.py | 71 | CODE | |
| LOW | …orcement-learning/07-actor-critic-a2c-a3c/code/main.py | 104 | CODE | |
| LOW | …orcement-learning/07-actor-critic-a2c-a3c/code/main.py | 149 | CODE | |
| LOW | …einforcement-learning/04-q-learning-sarsa/code/main.py | 80 | CODE | |
| LOW | phases/09-reinforcement-learning/08-ppo/code/main.py | 112 | CODE | |
| LOW | phases/09-reinforcement-learning/08-ppo/code/main.py | 173 | CODE | |
| LOW | …nt-learning/06-policy-gradients-reinforce/code/main.py | 84 | CODE | |
| LOW | …nt-learning/06-policy-gradients-reinforce/code/main.py | 115 | CODE | |
| LOW | …s/14-agent-engineering/36-scope-contracts/code/main.py | 114 | CODE | |
| LOW | …gent-engineering/26-failure-modes-agentic/code/main.py | 69 | CODE | |
| LOW | …gent-engineering/04-tree-of-thoughts-lats/code/main.py | 76 | CODE | |
| LOW | …es/14-agent-engineering/01-the-agent-loop/code/main.py | 124 | CODE | |
| LOW | …tooling/12-debugging-and-profiling/code/debug_tools.py | 64 | CODE | |
| LOW | …ases/08-generative-ai/10-video-generation/code/main.py | 109 | CODE | |
| LOW | …enerative-ai/19-visual-autoregressive-var/code/main.py | 40 | CODE | |
| LOW | …rative-ai/03-gans-generator-discriminator/code/main.py | 70 | CODE | |
| 96 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …ering/01-prompt-engineering/code/prompt_engineering.py | 418 | 'Output: {"sentiment": "negative", "food": null, "service": "negative"}' | CODE |
| HIGH | phases/13-tools-and-protocols/14-mcp-apps/code/main.py | 71 | if (e.data && e.data.id === id) {{ | CODE |
| HIGH | …formers-deep-dive/16-speculative-decoding/code/main.py | 136 | print("=== acceptance rate vs KL(q || p) ===") | CODE |
| HIGH⚡ | …h-foundations/14-norms-and-distances/code/distances.py | 375 | print(f" KL(P || Q) = {kl_pq:.4f} nats") | CODE |
| HIGH⚡ | …h-foundations/14-norms-and-distances/code/distances.py | 376 | print(f" KL(Q || P) = {kl_qp:.4f} nats") | CODE |
| HIGH⚡ | …h-foundations/14-norms-and-distances/code/distances.py | 386 | print(f" KL(P || Q) = {kl_divergence(p2, q2):.4f} nats") | CODE |
| HIGH⚡ | …h-foundations/14-norms-and-distances/code/distances.py | 387 | print(f" KL(Q || P) = {kl_divergence(q2, p2):.4f} nats") | CODE |
| HIGH | …tions/09-information-theory/code/information_theory.py | 225 | print(f" KL(true || good): {kl_good:.4f} bits") | CODE |
| HIGH | …tions/09-information-theory/code/information_theory.py | 226 | print(f" KL(true || bad): {kl_bad:.4f} bits") | CODE |
| HIGH | …tions/09-information-theory/code/information_theory.py | 240 | print(f" KL(P || Q) = {kl_divergence(p, q):.4f} bits") | CODE |
| HIGH | …tions/09-information-theory/code/information_theory.py | 241 | print(f" KL(Q || P) = {kl_divergence(q, p):.4f} bits") | CODE |
| HIGH | …one-projects/05-autonomous-research-agent/code/main.py | 136 | tree.push(root) | CODE |
| HIGH⚡ | …one-projects/05-autonomous-research-agent/code/main.py | 160 | tree.push(ch) | CODE |
| HIGH | …s-systems/10-claude-code-permission-modes/code/main.py | 161 | Action("shell", "git add /tmp/secrets.txt && git push"), | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | phases/11-llm-engineering/07-advanced-rag/code/main.py | 0 | acme corp refund policy. all standard plan customers are eligible for a full refund within 30 days of purchase. enterpri | STRING |
| HIGH | phases/11-llm-engineering/06-rag/code/main.py | 0 | acme corp refund policy. all standard plan customers are eligible for a full refund within 30 days of purchase. enterpri | STRING |
| HIGH | …es/11-llm-engineering/04-embeddings/code/embeddings.py | 0 | acme corp refund policy. all standard plan customers are eligible for a full refund within 30 days of purchase. enterpri | STRING |
| HIGH | phases/11-llm-engineering/07-advanced-rag/code/main.py | 0 | acme corp product overview. acme corp offers three product tiers: starter, professional, and enterprise. the starter pla | STRING |
| HIGH | phases/11-llm-engineering/06-rag/code/main.py | 0 | acme corp product overview. acme corp offers three product tiers: starter, professional, and enterprise. the starter pla | STRING |
| HIGH | …es/11-llm-engineering/04-embeddings/code/embeddings.py | 0 | acme corp product overview. acme corp offers three product tiers: starter, professional, and enterprise. the starter pla | STRING |
| HIGH | phases/11-llm-engineering/07-advanced-rag/code/main.py | 0 | acme corp security practices. acme corp maintains soc 2 type ii compliance and undergoes annual third-party security aud | STRING |
| HIGH | phases/11-llm-engineering/06-rag/code/main.py | 0 | acme corp security practices. acme corp maintains soc 2 type ii compliance and undergoes annual third-party security aud | STRING |
| HIGH | …es/11-llm-engineering/04-embeddings/code/embeddings.py | 0 | acme corp security practices. acme corp maintains soc 2 type ii compliance and undergoes annual third-party security aud | STRING |
| HIGH | phases/11-llm-engineering/07-advanced-rag/code/main.py | 0 | acme corp api documentation. the acme api uses rest with json request and response bodies. authentication is via bearer | STRING |
| HIGH | phases/11-llm-engineering/06-rag/code/main.py | 0 | acme corp api documentation. the acme api uses rest with json request and response bodies. authentication is via bearer | STRING |
| HIGH | …es/11-llm-engineering/04-embeddings/code/embeddings.py | 0 | acme corp api documentation. the acme api uses rest with json request and response bodies. authentication is via bearer | STRING |
| HIGH | phases/11-llm-engineering/07-advanced-rag/code/main.py | 0 | acme corp uptime and reliability. acme corp guarantees 99.9% uptime for professional plans and 99.99% uptime for enterpr | STRING |
| HIGH | phases/11-llm-engineering/06-rag/code/main.py | 0 | acme corp uptime and reliability. acme corp guarantees 99.9% uptime for professional plans and 99.99% uptime for enterpr | STRING |
| HIGH | …es/11-llm-engineering/04-embeddings/code/embeddings.py | 0 | acme corp uptime and reliability. acme corp guarantees 99.9% uptime for professional plans and 99.99% uptime for enterpr | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/link_check.py | 258 | except Exception as exc: | CODE |
| LOW | scripts/link_check.py | 343 | except Exception as exc: | CODE |
| LOW | …m-engineering/16-langgraph-state-machines/code/main.py | 56 | except Exception as exc: | CODE |
| LOW | …gineering/09-function-calling/code/function_calling.py | 30 | except Exception as e: | CODE |
| LOW | …gineering/09-function-calling/code/function_calling.py | 128 | except Exception as e: | CODE |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 216 | except Exception as e: | CODE |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 298 | except Exception as e: | CODE |
| LOW | …engineering/02-few-shot-cot/code/advanced_prompting.py | 326 | except Exception as e: | CODE |
| LOW | …13-tools-and-protocols/13-mcp-async-tasks/code/main.py | 100 | except Exception as e: | CODE |
| LOW | …/13-tools-and-protocols/09-mcp-transports/code/main.py | 156 | except Exception: | CODE |
| LOW | …s-and-protocols/07-building-an-mcp-server/code/main.py | 151 | except Exception as e: | CODE |
| LOW | …s-and-protocols/07-building-an-mcp-server/code/main.py | 218 | except Exception as e: | CODE |
| LOW | …ools-and-protocols/18-mcp-auth-production/code/main.py | 233 | except Exception: | CODE |
| LOW | …ent-engineering/02-rewoo-plan-and-execute/code/main.py | 43 | except Exception as e: | CODE |
| LOW | …t-engineering/42-agent-workbench-capstone/code/main.py | 547 | except Exception as exc: | CODE |
| LOW | …tputs/agent-workbench-pack/scripts/generate_handoff.py | 112 | except Exception as exc: | CODE |
| LOW | …nt-engineering/10-skill-libraries-voyager/code/main.py | 100 | except Exception as e: | CODE |
| LOW | …/14-agent-engineering/17-claude-agent-sdk/code/main.py | 100 | except Exception as e: | CODE |
| LOW | …gent-engineering/34-repo-memory-and-state/code/main.py | 108 | except Exception: | CODE |
| LOW | …ineering/06-tool-use-and-function-calling/code/main.py | 134 | except Exception as e: | CODE |
| LOW | …-agent-engineering/14-autogen-actor-model/code/main.py | 67 | except Exception as e: | CODE |
| LOW | …es/14-agent-engineering/01-the-agent-loop/code/main.py | 52 | except Exception as e: | CODE |
| LOW | …es/14-agent-engineering/01-the-agent-loop/code/main.py | 62 | except Exception as e: | CODE |
| LOW | …ineering/07-memory-virtual-context-memgpt/code/main.py | 136 | except Exception as e: | CODE |
| LOW | …00-setup-and-tooling/01-dev-environment/code/verify.py | 38 | except Exception: | CODE |
| MEDIUM | …00-setup-and-tooling/01-dev-environment/code/verify.py | 25 | def run_check(name, check_fn, detail_fn=None): | CODE |
| LOW | …i-agent-and-swarms/08-role-specialization/code/main.py | 75 | except Exception as e: | CODE |
| LOW | …i-agent-and-swarms/08-role-specialization/code/main.py | 84 | except Exception as e: | CODE |
| MEDIUM | …gent-and-swarms/07-society-of-mind-debate/code/main.py | 94 | print(f"Error vs truth: {abs(control_mean - TRUE_ANSWER):.2f}") | CODE |
| LOW | …tch/09-constitutional-ai-self-improvement/code/main.py | 80 | except Exception: | CODE |
| LOW | …tch/09-constitutional-ai-self-improvement/code/main.py | 137 | except Exception: | CODE |
| LOW | …ratch/09-constitutional-ai-self-improvement/docs/en.md | 216 | except Exception: | CODE |
| LOW | …ojects/60-projection-layer-modality-align/code/main.py | 36 | except Exception: | CODE |
| LOW⚡ | …projects/15-constitutional-safety-harness/code/main.py | 33 | except Exception: | CODE |
| LOW⚡ | …tone-projects/13-mcp-server-with-registry/code/main.py | 140 | except Exception as exc: | CODE |
| LOW | …stone-projects/42-large-corpus-downloader/code/main.py | 355 | except Exception: | CODE |
| LOW | …apstone-projects/43-hdf5-tokenized-corpus/code/main.py | 273 | except Exception: | CODE |
| LOW | …apstone-projects/43-hdf5-tokenized-corpus/code/main.py | 277 | except Exception: | CODE |
| LOW | …apstone-projects/43-hdf5-tokenized-corpus/code/main.py | 292 | except Exception: | CODE |
| MEDIUM | …apstone-projects/43-hdf5-tokenized-corpus/code/main.py | 140 | def __exit__(self, exc_type, exc, tb) -> None: | CODE |
| LOW | …one-projects/24-plan-execute-control-flow/code/main.py | 156 | except Exception as exc: | CODE |
| LOW | …-capstone-projects/56-iteration-scheduler/code/main.py | 202 | except Exception as exc: | CODE |
| LOW | …-capstone-projects/56-iteration-scheduler/code/main.py | 264 | except Exception: | CODE |
| LOW | …tone-projects/23-function-call-dispatcher/code/main.py | 190 | except Exception as exc: | CODE |
| LOW | …tone-projects/23-function-call-dispatcher/code/main.py | 240 | except Exception as exc: | CODE |
| LOW | …s/19-capstone-projects/49-lm-eval-harness/code/main.py | 96 | except Exception: | CODE |
| LOW | …s/19-capstone-projects/49-lm-eval-harness/code/main.py | 225 | except Exception: | CODE |
| LOW | …s/19-capstone-projects/49-lm-eval-harness/code/main.py | 237 | except Exception: | CODE |
| LOW | …stone-projects/22-jsonrpc-stdio-transport/code/main.py | 150 | except Exception as exc: | CODE |
| LOW | …capstone-projects/48-distributed-fsdp-ddp/code/main.py | 278 | except Exception as exc: | CODE |
| LOW | …capstone-projects/48-distributed-fsdp-ddp/code/main.py | 338 | except Exception: | CODE |
| LOW | …-projects/81-end-to-end-distributed-train/code/main.py | 387 | except Exception: | CODE |
| LOW | …-projects/01-terminal-native-coding-agent/code/main.py | 214 | except Exception as exc: | CODE |
| LOW | …one-projects/83-prompt-injection-detector/code/main.py | 87 | except Exception: | CODE |
| LOW | …one-projects/83-prompt-injection-detector/code/main.py | 102 | except Exception: | CODE |
| LOW⚡ | …/19-capstone-projects/72-code-exec-metric/code/main.py | 99 | except Exception as exc: | CODE |
| LOW⚡ | …/19-capstone-projects/72-code-exec-metric/code/main.py | 107 | except Exception as exc: | CODE |
| LOW⚡ | …/19-capstone-projects/72-code-exec-metric/code/main.py | 117 | except Exception as exc: | CODE |
| LOW | …/19-capstone-projects/72-code-exec-metric/code/main.py | 162 | except Exception as exc: | STRING |
| LOW | …/19-capstone-projects/72-code-exec-metric/code/main.py | 213 | except Exception: | STRING |
| 5 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | …s/19-capstone-projects/59-vit-transformer/code/main.py | 226 | grad_norm = enc2.front.patch.proj.weight.grad.norm().item() | CODE |
| CRITICAL | …9-capstone-projects/36-training-loop-eval/code/main.py | 159 | block.attn.out_proj.weight.data.mul_(scale) | CODE |
| CRITICAL | …9-capstone-projects/36-training-loop-eval/code/main.py | 160 | block.mlp.fc2.weight.data.mul_(scale) | CODE |
| CRITICAL⚡ | …9-capstone-projects/35-gpt-model-assembly/code/main.py | 156 | block.attn.out_proj.weight.data.mul_(scale) | CODE |
| CRITICAL⚡ | …9-capstone-projects/35-gpt-model-assembly/code/main.py | 157 | block.mlp.fc2.weight.data.mul_(scale) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 561 | COMMENT | |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 581 | # }] | COMMENT |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 601 | # ) | COMMENT |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 621 | # "type": "object", | COMMENT |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 641 | # {"role": "assistant", "content": response.content}, | COMMENT |
| LOW | …ases/11-llm-engineering/09-function-calling/docs/en.md | 661 | # command="npx", | COMMENT |
| LOW | phases/11-llm-engineering/10-evaluation/docs/en.md | 741 | # | COMMENT |
| LOW | phases/11-llm-engineering/10-evaluation/docs/en.md | 761 | COMMENT | |
| LOW | phases/11-llm-engineering/10-evaluation/docs/en.md | 781 | # evaluate([test_case], [relevancy, faithfulness]) | COMMENT |
| LOW | phases/11-llm-engineering/10-evaluation/docs/en.md | 801 | # steps: | COMMENT |
| LOW | phases/11-llm-engineering/12-guardrails/docs/en.md | 761 | # model="omni-moderation-latest", | COMMENT |
| LOW | phases/11-llm-engineering/12-guardrails/docs/en.md | 781 | # from transformers import AutoTokenizer, AutoModelForCausalLM | COMMENT |
| LOW | phases/11-llm-engineering/12-guardrails/docs/en.md | 801 | # NeMo Guardrails uses Colang -- a DSL for defining conversational rails. | COMMENT |
| LOW | phases/11-llm-engineering/12-guardrails/docs/en.md | 821 | # user ask about banking | COMMENT |
| LOW | phases/11-llm-engineering/12-guardrails/docs/en.md | 841 | # guard = gd.Guard().use_many( | COMMENT |
| LOW | …es/11-llm-engineering/03-structured-outputs/docs/en.md | 421 | COMMENT | |
| LOW | …es/11-llm-engineering/03-structured-outputs/docs/en.md | 441 | # {"role": "user", "content": "Sony WH-1000XM5, $348, in stock"}, | COMMENT |
| LOW | …es/11-llm-engineering/03-structured-outputs/docs/en.md | 461 | # max_tokens=1024, | COMMENT |
| LOW | …es/11-llm-engineering/03-structured-outputs/docs/en.md | 481 | ### Instructor Library | COMMENT |
| LOW | phases/11-llm-engineering/13-production-app/docs/en.md | 1001 | ## Use It | COMMENT |
| LOW | phases/11-llm-engineering/13-production-app/docs/en.md | 1021 | # user_id: str | COMMENT |
| LOW | phases/11-llm-engineering/13-production-app/docs/en.md | 1041 | # | COMMENT |
| LOW | phases/11-llm-engineering/13-production-app/docs/en.md | 1061 | Replace the simulated LLM calls with actual provider SDKs. | COMMENT |
| LOW | phases/11-llm-engineering/13-production-app/docs/en.md | 1081 | # async def call_anthropic(prompt, model="claude-sonnet-4-20250514"): | COMMENT |
| LOW | …es/11-llm-engineering/01-prompt-engineering/docs/en.md | 881 | # client = OpenAI() | COMMENT |
| LOW | …es/11-llm-engineering/01-prompt-engineering/docs/en.md | 901 | OpenAI's system message is processed first and given high attention weight. Temperature=0.0 makes the output determinist | COMMENT |
| LOW | …es/11-llm-engineering/01-prompt-engineering/docs/en.md | 921 | # "role": "assistant", | COMMENT |
| LOW | …es/11-llm-engineering/01-prompt-engineering/docs/en.md | 941 | # "gemini-1.5-pro", | COMMENT |
| LOW | …es/11-llm-engineering/01-prompt-engineering/docs/en.md | 961 | # | COMMENT |
| LOW | phases/11-llm-engineering/11-caching-cost/docs/en.md | 761 | # model="claude-sonnet-4-20250514", | COMMENT |
| LOW | phases/11-llm-engineering/11-caching-cost/docs/en.md | 781 | COMMENT | |
| LOW | phases/11-llm-engineering/11-caching-cost/docs/en.md | 801 | COMMENT | |
| LOW | phases/11-llm-engineering/11-caching-cost/docs/en.md | 821 | # | COMMENT |
| LOW | phases/11-llm-engineering/11-caching-cost/docs/en.md | 841 | # client = OpenAI() | COMMENT |
| LOW | …tools-and-protocols/01-the-tool-interface/code/main.ts | 1 | // Phase 13 Lesson 01 — the tool interface, in TypeScript. | COMMENT |
| LOW | …es/13-tools-and-protocols/19-a2a-protocol/code/main.ts | 1 | // Phase 13 Lesson 19 — A2A agent-to-agent protocol, in TypeScript. | COMMENT |
| LOW | …s-and-protocols/07-building-an-mcp-server/code/main.ts | 1 | // Phase 13 Lesson 07 — toy MCP server, in TypeScript, stdlib only. | COMMENT |
| LOW | …-engineering/13-langgraph-stateful-graphs/code/main.ts | 1 | // Phase 14 Lesson 13 — LangGraph-shaped stateful graph, in TypeScript. | COMMENT |
| LOW | …ineering/06-tool-use-and-function-calling/code/main.ts | 1 | // Phase 14 Lesson 06 — tool use and function calling, in TypeScript. | COMMENT |
| LOW | …es/14-agent-engineering/01-the-agent-loop/code/main.ts | 1 | // Phase 14 Lesson 01 — toy ReAct agent loop, in TypeScript. | COMMENT |
| LOW | …/00-setup-and-tooling/10-terminal-and-shell/docs/en.md | 241 | # Port forward (access remote Jupyter/TensorBoard locally) | COMMENT |
| LOW | phases/10-llms-from-scratch/11-quantization/docs/en.md | 781 | # from transformers import AutoTokenizer | COMMENT |
| LOW | phases/10-llms-from-scratch/11-quantization/docs/en.md | 801 | # pip install autoawq | COMMENT |
| LOW | phases/10-llms-from-scratch/10-evaluation/docs/en.md | 421 | The standard tool for running benchmarks on any model. | COMMENT |
| LOW | …jects/03-realtime-voice-assistant/code/ts/src/index.ts | 1 | // Capstone 19/03: realtime voice web client (multi-file TypeScript). | COMMENT |
| LOW | …s/01-terminal-native-coding-agent/code/ts/src/index.ts | 1 | // Capstone 19/01: terminal-native coding agent harness (multi-file TypeScript). | COMMENT |
| LOW | …one-projects/02-rag-over-codebase/code/ts/src/index.ts | 1 | // Capstone 19/02: code RAG query API (multi-file TypeScript). | COMMENT |
| LOW | …utonomous-systems/16-checkpoints-rollback/code/main.py | 101 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …llms-from-scratch/06-instruction-tuning-sft/docs/en.md | 25 | Stanford Alpaca proved you don't need millions of examples. In March 2023, they fine-tuned Llama 7B on just 52,000 instr | CODE |
| HIGH | …llms-from-scratch/06-instruction-tuning-sft/docs/en.md | 61 | Simple and widely used. The `input` field is optional -- many instructions don't need additional context. Stanford relea | CODE |
| HIGH | …modal-ai/05-llava-visual-instruction-tuning/docs/en.md | 3 | > LLaVA (April 2023) is the most copied multimodal architecture on the planet. It replaced BLIP-2's Q-Former with a 2-la | CODE |
| HIGH | …modal-ai/05-llava-visual-instruction-tuning/docs/en.md | 164 | | ShareGPT4V | "Better captions" | 1M dense captions generated by GPT-4V, used for higher-quality alignment | | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …oundations/05-chain-rule-and-autodiff/code/autodiff.py | 210 | CODE | |
| LOW | …-math-foundations/21-graph-theory/code/graph_theory.py | 150 | CODE | |
| LOW | …-llms-from-scratch/05-scaling-distributed/code/main.py | 85 | CODE | |
| LOW | …pstone-projects/58-vision-encoder-patches/code/main.py | 102 | CODE | |
| LOW | …-capstone-projects/56-iteration-scheduler/code/main.py | 117 | CODE | |
| LOW | …19-capstone-projects/34-transformer-block/code/main.py | 111 | CODE | |
| LOW | …pstone-projects/47-checkpoint-save-resume/code/main.py | 366 | CODE | |
| LOW | …s/19-capstone-projects/59-vit-transformer/code/main.py | 103 | CODE | |
| LOW | …capstone-projects/48-distributed-fsdp-ddp/code/main.py | 294 | CODE | |
| LOW | …/85-content-classifier-integration/code/classifiers.py | 148 | CODE | |
| LOW | …9-capstone-projects/35-gpt-model-assembly/code/main.py | 91 | CODE | |
| LOW | …04-computer-vision/14-vision-transformers/code/main.py | 40 | CODE | |
| LOW | …odal-ai/04-flamingo-gated-cross-attention/code/main.py | 86 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/scaffold-lesson.sh | 77 | ### Step 1: [name] | COMMENT |
| LOW | scripts/scaffold-lesson.sh | 85 | ### Step 2: [name] | COMMENT |
| LOW⚡ | …s/15-autonomous-systems/11-browser-agents/code/main.py | 91 | # Step 1: fetch. Apply sanitizer if enabled. | COMMENT |
| LOW⚡ | …s/15-autonomous-systems/11-browser-agents/code/main.py | 97 | # Step 2: "read" the combined context. In a real stack, URL fragment | COMMENT |
| LOW⚡ | …s/15-autonomous-systems/11-browser-agents/code/main.py | 101 | # Step 3: decide what to post. | COMMENT |
| LOW | …s/15-autonomous-systems/11-browser-agents/code/main.py | 117 | # Step 4: R/W boundary check. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …1-llm-engineering/10-evaluation/code/eval_framework.py | 259 | reference_output="I cannot provide instructions for illegal activities.", | CODE |
| MEDIUM | phases/11-llm-engineering/12-guardrails/code/main.ts | 327 | return { response: "I cannot provide that response. Let me help you differently.", report }; | CODE |
| MEDIUM | …es/11-llm-engineering/12-guardrails/code/guardrails.py | 341 | return "I apologize, but I cannot provide that response. Let me help you differently.", report | CODE |
| MEDIUM | …m-engineering/13-production-app/code/production_app.py | 337 | "Let me know if you need more detail on any specific aspect." | CODE |
| MEDIUM | …m-engineering/13-production-app/code/production_app.py | 478 | result["text"] = "I cannot provide that response as it was flagged by our safety system." | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …nd-protocols/10-mcp-resources-and-prompts/code/main.py | 38 | def update_note(nid: str, new_body: str) -> None: | CODE |
| LOW | …-engineering/13-langgraph-stateful-graphs/code/main.py | 41 | def set_entry(self, name: str) -> None: | CODE |
| LOW | …tooling/12-debugging-and-profiling/code/debug_tools.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | …nd-swarms/17-generative-agents-simulation/code/main.py | 53 | def update_plan(self, tick: int) -> None: | CODE |
| LOW | …pstone-projects/66-reranker-cross-encoder/code/main.py | 35 | def _set_seed(seed: int = SEED) -> None: | CODE |
| LOW | …19-capstone-projects/34-transformer-block/code/main.py | 195 | def _set_eval_mode(stack: BlockStack) -> None: | CODE |
| LOW | …apstone-projects/45-gradient-clipping-amp/code/main.py | 183 | def set_loss_fn(self, fn: Callable[[torch.Tensor, torch.Tensor], torch.Tensor]) -> None: | CODE |
| LOW | …apstone-projects/45-gradient-clipping-amp/code/main.py | 186 | def set_lr(self, lr: float) -> None: | CODE |
| LOW | …/19-capstone-projects/44-cosine-lr-warmup/code/main.py | 150 | def set_lr(self, lr: float) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | …ne-projects/27-eval-harness-fixture-tasks/code/main.py | 332 | # The harness | COMMENT |
| MEDIUM⚡ | …e-projects/29-end-to-end-coding-task-demo/code/main.py | 32 | # Minimal harness primitives, copied with intent from lessons 25-28. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …m-engineering/13-production-app/code/production_app.py | 430 | async def handle_request(self, user_id, query, template_name="general_chat", variables=None): | CODE |
| LOW | …t-engineering/19-benchmarks-swebench-gaia/code/main.py | 34 | def run_task(task: Task) -> TaskResult: | CODE |
| LOW | …rms/24-evaluation-coordination-benchmarks/code/main.py | 42 | def run_task(system: SystemSim, task_id: str, seen: bool, rng: random.Random) -> TaskResult: | CODE |
| LOW | …s/19-capstone-projects/49-lm-eval-harness/code/main.py | 289 | def run_task( | CODE |
| LOW | …odal-ai/25-multimodal-agents-computer-use/code/main.py | 87 | def run_task(task: Task) -> dict: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …engineering/02-few-shot-cot/code/advanced_prompting.py | 510 | client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY", "your-api-key")) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-tools-and-protocols/04-structured-output/code/main.py | 143 | "customer": "Acme Corp", | CODE |
| LOW | …dal-ai/05-llava-visual-instruction-tuning/code/main.py | 76 | "placeholder": placeholder, | CODE |
| LOW | …utonomous-systems/14-kill-switches-canaries/docs/en.md | 93 | 1. Run `code/main.py`. Confirm the circuit breaker fires on turn 5 (fifth identical call) and the canary fires on turn 9 | CODE |