Repository Analysis

rohitg00/ai-engineering-from-scratch

Learn it. Build it. Ship it for others.

9.4 Low AI signal View on GitHub
9.4
Adjusted Score
9.4
Raw Score
100%
Time Factor
2026-05-27
Last Push
25,145
Stars
Python
Language
315,115
Lines of Code
2069
Files
1816
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 4HIGH 34MEDIUM 413LOW 1365

Pattern Findings

1816 matches across 16 categories. Click a row to expand file-level details.

Decorative Section Separators402 hits · 1248 pts
SeverityFileLineSnippet
MEDIUMsite/build.js22// ─── Parse ROADMAP.md for lesson statuses ────────────────────────────
MEDIUMsite/build.js55// ─── Parse README.md for phases and lessons ──────────────────────────
MEDIUMsite/build.js225// ─── Extract lesson summary + keywords from docs/en.md ───────────────
MEDIUMsite/build.js263// ─── Parse glossary/terms.md ──────────────────────────────────────────
MEDIUMsite/build.js304// ─── Discover outputs/ artifacts (skills / prompts / agents) ──────────
MEDIUMsite/build.js392// ─── Main build ──────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js17 // ── Constants ────────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js22 // ── Module state ─────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js28 // ── Search index ─────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js102 // ── Scoring ──────────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js174 // ── Utilities ────────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js218 // ── Palette DOM (created lazily on first open) ────────────────────────
MEDIUMsite/cmdpalette.js287 // ── Open / close ─────────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js337 // ── Render results ───────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js432 // ── Event handlers ───────────────────────────────────────────────────
MEDIUMsite/cmdpalette.js510 // ── Global keyboard shortcut (Cmd/Ctrl+K) ────────────────────────────
MEDIUMsite/cmdpalette.js524 // ── Init: wire trigger buttons + eagerly build index ─────────────────
MEDIUMsite/cmdpalette.js545 // ── Public API ────────────────────────────────────────────────────────
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py25# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py27# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py49# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py51# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py104# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py106# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py149# ------------------------------------------------------------------
MEDIUM…-and-protocols/23-capstone-tool-ecosystem/code/main.py151# ------------------------------------------------------------------
MEDIUM…s-and-protocols/08-building-an-mcp-client/code/main.py18# ------------------------------------------------------------------
MEDIUM…s-and-protocols/08-building-an-mcp-client/code/main.py20# ------------------------------------------------------------------
MEDIUM…s-and-protocols/08-building-an-mcp-client/code/main.py65# ------------------------------------------------------------------
MEDIUM…s-and-protocols/08-building-an-mcp-client/code/main.py67# ------------------------------------------------------------------
MEDIUM…ls-and-protocols/22-skills-and-agent-sdks/code/main.py22# ------------------------------------------------------------------
MEDIUM…ls-and-protocols/22-skills-and-agent-sdks/code/main.py24# ------------------------------------------------------------------
MEDIUM…ls-and-protocols/22-skills-and-agent-sdks/code/main.py81# ------------------------------------------------------------------
MEDIUM…ls-and-protocols/22-skills-and-agent-sdks/code/main.py83# ------------------------------------------------------------------
MEDIUM…ls-and-protocols/22-skills-and-agent-sdks/code/main.py142# ------------------------------------------------------------------
MEDIUM…ls-and-protocols/22-skills-and-agent-sdks/code/main.py144# ------------------------------------------------------------------
MEDIUM…-protocols/17-mcp-gateways-and-registries/code/main.py24# ------------------------------------------------------------------
MEDIUM…-protocols/17-mcp-gateways-and-registries/code/main.py26# ------------------------------------------------------------------
MEDIUM…-protocols/17-mcp-gateways-and-registries/code/main.py44# ------------------------------------------------------------------
MEDIUM…-protocols/17-mcp-gateways-and-registries/code/main.py46# ------------------------------------------------------------------
MEDIUM…-protocols/17-mcp-gateways-and-registries/code/main.py101# ------------------------------------------------------------------
MEDIUM…-protocols/17-mcp-gateways-and-registries/code/main.py103# ------------------------------------------------------------------
MEDIUM…cols/03-parallel-and-streaming-tool-calls/code/main.py21# ------------------------------------------------------------------
MEDIUM…cols/03-parallel-and-streaming-tool-calls/code/main.py23# ------------------------------------------------------------------
MEDIUM…cols/03-parallel-and-streaming-tool-calls/code/main.py49# ------------------------------------------------------------------
MEDIUM…cols/03-parallel-and-streaming-tool-calls/code/main.py51# ------------------------------------------------------------------
MEDIUM…cols/03-parallel-and-streaming-tool-calls/code/main.py119# ------------------------------------------------------------------
MEDIUM…cols/03-parallel-and-streaming-tool-calls/code/main.py121# ------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py32# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py34# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py90# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py92# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py125# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py128# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py178# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py180# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py330# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py332# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py352# ---------------------------------------------------------------------------
MEDIUM…ools-and-protocols/18-mcp-auth-production/code/main.py354# ---------------------------------------------------------------------------
342 more matches not shown…
Hyper-Verbose Identifiers587 hits · 689 pts
SeverityFileLineSnippet
LOWsite/lesson.html2465 function updateMermaidThemeAndRerender() {
LOWsite/lesson.html2561 function getMermaidModalFocusables() {
LOW…5-streaming-speech-to-speech-moshi-hibiki/code/main.py42def inner_monologue_next_token(text_so_far, user_mimi_stream):
LOWphases/11-llm-engineering/07-advanced-rag/code/main.py202def create_parent_child_chunks(text, parent_size=200, child_size=50):
LOWphases/11-llm-engineering/07-advanced-rag/code/main.py260def evaluate_retrieval_recall(queries_with_relevant, retrieval_fn, k=5):
LOWphases/11-llm-engineering/07-advanced-rag/docs/en.md335def create_parent_child_chunks(text, parent_size=200, child_size=50):
LOWphases/11-llm-engineering/07-advanced-rag/docs/en.md396def evaluate_retrieval_recall(queries_with_relevant, retrieval_fn, k=5):
LOWphases/11-llm-engineering/07-advanced-rag/docs/en.md427def rerank_with_cross_encoder(query, candidates, chunks, top_k=5):
LOW…gineering/09-function-calling/code/function_calling.py305def run_function_calling_loop(user_message, max_iterations=5):
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md403def run_function_calling_loop(user_message, max_iterations=5):
LOW…1-llm-engineering/10-evaluation/code/eval_framework.py183def wilson_confidence_interval(successes, total, z=1.96):
LOW…1-llm-engineering/10-evaluation/code/eval_framework.py195def bootstrap_confidence_interval(scores, n_bootstrap=1000, confidence=0.95):
LOWphases/11-llm-engineering/10-evaluation/docs/en.md425def wilson_confidence_interval(successes, total, z=1.96):
LOWphases/11-llm-engineering/10-evaluation/docs/en.md437def bootstrap_confidence_interval(scores, n_bootstrap=1000, confidence=0.95):
LOW…/11-llm-engineering/03-structured-outputs/code/main.py157def demonstrate_constrained_decoding():
LOW…/11-llm-engineering/03-structured-outputs/code/main.py224def run_schema_validation_demo():
LOW…/11-llm-engineering/03-structured-outputs/code/main.py248def run_schema_generation_demo():
LOW…/11-llm-engineering/03-structured-outputs/code/main.py287def run_constrained_decoding_demo():
LOW…/11-llm-engineering/03-structured-outputs/code/main.py294def run_extraction_pipeline_demo():
LOW…es/11-llm-engineering/03-structured-outputs/docs/en.md304def demonstrate_constrained_decoding():
LOW…engineering/02-few-shot-cot/code/advanced_prompting.py140def build_zero_shot_cot_prompt(question):
LOW…engineering/02-few-shot-cot/code/advanced_prompting.py213def generate_initial_thoughts(question, client, model, breadth=3):
LOW…eep-learning-core/04-activation-functions/code/main.py81def vanishing_gradient_experiment(activation_fn, name, n_layers=10, n_inputs=5):
LOW…-deep-learning-core/04-activation-functions/docs/en.md311def vanishing_gradient_experiment(activation_fn, name, n_layers=10, n_inputs=5):
LOW…s/03-deep-learning-core/05-loss-functions/code/main.py50def categorical_cross_entropy(logits, target_index, eps=1e-15):
LOW…ses/03-deep-learning-core/05-loss-functions/docs/en.md244def categorical_cross_entropy(logits, target_index, eps=1e-15):
LOW…undations-to-advanced/18-multilingual-nlp/code/main.py29def simulate_transfer_accuracy(target, source):
LOW…dations-to-advanced/02-bag-of-words-tfidf/code/main.py39def inverse_document_frequency(df, n_docs):
LOW…undations-to-advanced/02-bag-of-words-tfidf/docs/en.md91def inverse_document_frequency(df, n_docs):
LOW…nd-protocols/10-mcp-resources-and-prompts/code/main.py78def handle_resources_subscribe(params: dict) -> dict:
LOW…nd-protocols/10-mcp-resources-and-prompts/code/main.py83def handle_resources_unsubscribe(params: dict) -> dict:
LOW…gent-engineering/26-failure-modes-agentic/code/main.py37def detect_hallucinated_action(trace: Trace) -> str | None:
LOW…gent-engineering/26-failure-modes-agentic/code/main.py98def detect_success_hallucination(trace: Trace) -> str | None:
LOW…33-instructions-as-executable-constraints/code/main.py110 def opened_question_when_unsure(self, trace: TurnTrace) -> bool:
LOW…tooling/12-debugging-and-profiling/code/debug_tools.py259def demo_conditional_breakpoint():
LOW…and-tooling/05-jupyter-notebooks/code/notebook_tips.py84def magic_command_equivalents():
LOW…ety-alignment/17-wmdp-dual-use-evaluation/code/main.py40def apply_rmu_style_unlearning(model_accuracy: dict,
LOW…lignment/04-sycophancy-rlhf-amplification/code/main.py66def agreement_penalty_correction(r: dict[str, float], alpha: float) -> dict[str, float]:
LOW…fety-alignment/02-reward-hacking-goodhart/code/main.py137def kl_constrained_policy_sweep(proxy: ProxyRM,
LOW…/06-mesa-optimization-deceptive-alignment/code/main.py60def pseudo_no_awareness_policy(ex: Example, mesa_goal: int = 0) -> int:
LOW…d-swarms/23-failure-modes-mast-groupthink/code/main.py141def demo_incident_categorization() -> None:
LOW…lti-agent-and-swarms/02-fipa-acl-heritage/code/main.py71def mcp_resources_read_to_acl(req: dict) -> ACLMessage:
LOW…/22-production-scaling-queues-checkpoints/code/main.py51def run_agent_with_checkpoint(store: CheckpointStore, thread_id: str,
LOW…formers-deep-dive/03-multi-head-attention/code/main.py80def scaled_dot_product_attention(Q: Matrix, K: Matrix, V: Matrix):
LOW…formers-deep-dive/16-speculative-decoding/code/main.py108def expected_tokens_per_verify(alpha, N):
LOW…ransformers-deep-dive/05-full-transformer/code/main.py129def scaled_dot_product_attention(Q, K, V, causal=False):
LOW…/02-self-attention-from-scratch/code/self_attention.py10def scaled_dot_product_attention(Q, K, V):
LOW…rs-deep-dive/02-self-attention-from-scratch/docs/en.md192def scaled_dot_product_attention(Q, K, V):
LOW…deep-dive/07-gpt-causal-language-modeling/code/main.py24def attention_scores_with_mask(raw_scores, mask):
LOW…math-foundations/18-convex-optimization/code/convex.py267def demo_condition_number_effect():
LOW…math-foundations/18-convex-optimization/code/convex.py306def demo_lagrange_multipliers():
LOW…math-foundations/18-convex-optimization/code/convex.py380def demo_regularization_geometry():
LOW…math-foundations/18-convex-optimization/code/convex.py443def demo_first_vs_second_order():
LOW…math-foundations/18-convex-optimization/code/convex.py519def demo_convex_vs_nonconvex_landscape():
LOW…ations/02-vectors-matrices-operations/code/matrices.py239def demo_neural_network_layer():
LOW…ations/02-vectors-matrices-operations/code/matrices.py295def demo_weight_matrix_intuition():
LOW…h-foundations/17-linear-systems/code/linear_systems.py139def demo_gaussian_elimination():
LOW…h-foundations/17-linear-systems/code/linear_systems.py382def demo_linear_regression_full():
LOW…ions/10-dimensionality-reduction/code/dim_reduction.py285def demo_reconstruction_error():
LOW…-math-foundations/16-sampling-methods/code/sampling.py11def sample_exponential_inverse_cdf(lam):
527 more matches not shown…
Unused Imports520 hits · 513 pts
SeverityFileLineSnippet
LOWscripts/link_check.py29
LOWscripts/build_catalog.py49
LOWscripts/scaffold_workbench.py26
LOWscripts/check_readme_counts.py27
LOWscripts/audit_lessons.py12
LOWscripts/install_skills.py27
LOWscripts/lesson_run.py30
LOWscripts/_lib.py9
LOW…peech-and-audio/04-speech-recognition-asr/code/main.py9
LOW…speech-and-audio/10-audio-language-models/code/main.py10
LOW…-audio/05-whisper-architecture-finetuning/code/main.py9
LOW…ses/06-speech-and-audio/07-text-to-speech/code/main.py10
LOW…llm-engineering/14-model-context-protocol/code/main.py13
LOW…ases/11-llm-engineering/15-prompt-caching/code/main.py14
LOW…ases/11-llm-engineering/15-prompt-caching/code/main.py16
LOW…m-engineering/16-langgraph-state-machines/code/main.py23
LOW…1-llm-engineering/10-evaluation/code/eval_framework.py1
LOW…1-llm-engineering/10-evaluation/code/eval_framework.py6
LOW…-engineering/17-agent-framework-tradeoffs/code/main.py12
LOW…-engineering/17-agent-framework-tradeoffs/code/main.py18
LOW…11-llm-engineering/05-context-engineering/code/main.py2
LOW…m-engineering/13-production-app/code/production_app.py3
LOW…m-engineering/13-production-app/code/production_app.py13
LOW…engineering/02-few-shot-cot/code/advanced_prompting.py1
LOW…1-llm-engineering/11-caching-cost/code/caching_cost.py5
LOW…1-llm-engineering/11-caching-cost/code/caching_cost.py5
LOW…foundations-to-advanced/25-entity-linking/code/main.py2
LOW…-to-advanced/27-llm-evaluation-frameworks/code/main.py2
LOW…ns-to-advanced/17-chatbots-rule-to-neural/code/main.py2
LOW…-and-protocols/23-capstone-tool-ecosystem/code/main.py16
LOW…-and-protocols/23-capstone-tool-ecosystem/code/main.py22
LOW…-and-protocols/23-capstone-tool-ecosystem/code/main.py22
LOW…s-and-protocols/08-building-an-mcp-client/code/main.py11
LOW…s-and-protocols/08-building-an-mcp-client/code/main.py13
LOW…-tools-and-protocols/21-llm-routing-layer/code/main.py11
LOW…-tools-and-protocols/21-llm-routing-layer/code/main.py13
LOW…-tools-and-protocols/21-llm-routing-layer/code/main.py17
LOW…ls-and-protocols/22-skills-and-agent-sdks/code/main.py12
LOW…ls-and-protocols/22-skills-and-agent-sdks/code/main.py14
LOW…tools-and-protocols/01-the-tool-interface/code/main.py17
LOW…-tools-and-protocols/04-structured-output/code/main.py14
LOW…-protocols/17-mcp-gateways-and-registries/code/main.py15
LOW…-protocols/17-mcp-gateways-and-registries/code/main.py18
LOW…-protocols/17-mcp-gateways-and-registries/code/main.py21
LOW…d-protocols/02-function-calling-deep-dive/code/main.py10
LOW…3-tools-and-protocols/06-mcp-fundamentals/code/main.py10
LOW…cols/03-parallel-and-streaming-tool-calls/code/main.py13
LOWphases/13-tools-and-protocols/14-mcp-apps/code/main.py13
LOWphases/13-tools-and-protocols/14-mcp-apps/code/main.py16
LOWphases/13-tools-and-protocols/14-mcp-apps/code/main.py17
LOW…es/13-tools-and-protocols/19-a2a-protocol/code/main.py14
LOW…-protocols/15-mcp-security-tool-poisoning/code/main.py13
LOW…s-and-protocols/16-mcp-security-oauth-2-1/code/main.py14
LOW…nd-protocols/10-mcp-resources-and-prompts/code/main.py14
LOW…nd-protocols/10-mcp-resources-and-prompts/code/main.py17
LOW…nd-protocols/10-mcp-resources-and-prompts/code/main.py17
LOW…ools-and-protocols/20-opentelemetry-genai/code/main.py14
LOW…ools-and-protocols/20-opentelemetry-genai/code/main.py22
LOW…13-tools-and-protocols/13-mcp-async-tasks/code/main.py16
LOW…13-tools-and-protocols/13-mcp-async-tasks/code/main.py19
460 more matches not shown…
Deep Nesting144 hits · 144 pts
SeverityFileLineSnippet
LOWscripts/link_check.py115
LOWscripts/link_check.py278
LOWscripts/install_skills.py74
LOWscripts/install_skills.py91
LOW…audio/06-speaker-recognition-verification/code/main.py135
LOW…peech-and-audio/04-speech-recognition-asr/code/main.py27
LOW…ech-and-audio/12-voice-assistant-pipeline/code/main.py69
LOW…ses/06-speech-and-audio/07-text-to-speech/code/main.py53
LOW…ch-and-audio/02-spectrograms-mel-features/code/main.py85
LOW…llm-engineering/14-model-context-protocol/code/main.py79
LOW…m-engineering/16-langgraph-state-machines/code/main.py116
LOW…gineering/09-function-calling/code/function_calling.py199
LOW…es/11-llm-engineering/08-fine-tuning-lora/code/lora.py35
LOW…1-llm-engineering/10-evaluation/code/eval_framework.py300
LOW…/11-llm-engineering/03-structured-outputs/code/main.py10
LOW…/11-llm-engineering/03-structured-outputs/code/main.py121
LOW…es/11-llm-engineering/04-embeddings/code/embeddings.py109
LOW…m-engineering/13-production-app/code/production_app.py359
LOW…ering/01-prompt-engineering/code/prompt_engineering.py321
LOW…13-debugging-neural-networks/code/debug_neural_nets.py140
LOW…s/03-deep-learning-core/10-mini-framework/code/main.py373
LOW…eep-learning-core/01-the-perceptron/code/perceptron.py12
LOW…eep-learning-core/01-the-perceptron/code/perceptron.py132
LOW…-learning-core/09-learning-rate-schedules/code/main.py76
LOW…-learning-core/09-learning-rate-schedules/code/main.py148
LOW…/03-deep-learning-core/03-backpropagation/code/main.py188
LOW…ep-learning-core/08-weight-initialization/code/main.py64
LOW…ep-learning-core/08-weight-initialization/code/main.py126
LOW…ep-learning-core/08-weight-initialization/code/main.py157
LOW…ep-learning-core/08-weight-initialization/code/main.py166
LOW…ns-to-advanced/23-chunking-strategies-rag/code/main.py36
LOW…ations-to-advanced/07-pos-tagging-parsing/code/main.py52
LOW…s-to-advanced/03-word-embeddings-word2vec/code/main.py22
LOW…s-to-advanced/06-named-entity-recognition/code/main.py6
LOW…s-to-advanced/06-named-entity-recognition/code/main.py20
LOW…s-to-advanced/06-named-entity-recognition/code/main.py43
LOW…dations-to-advanced/12-text-summarization/code/main.py20
LOW…foundations-to-advanced/15-topic-modeling/code/main.py13
LOW…ons-to-advanced/04-glove-fasttext-subword/code/main.py13
LOW…ons-to-advanced/24-coreference-resolution/code/main.py27
LOW…-advanced/14-information-retrieval-search/code/main.py58
LOW…s-and-protocols/08-building-an-mcp-client/code/main.py109
LOW…-tools-and-protocols/04-structured-output/code/main.py60
LOW…-tools-and-protocols/04-structured-output/code/main.py176
LOW…-protocols/15-mcp-security-tool-poisoning/code/main.py71
LOW…orcement-learning/07-actor-critic-a2c-a3c/code/main.py104
LOW…orcement-learning/07-actor-critic-a2c-a3c/code/main.py149
LOW…einforcement-learning/04-q-learning-sarsa/code/main.py80
LOWphases/09-reinforcement-learning/08-ppo/code/main.py112
LOWphases/09-reinforcement-learning/08-ppo/code/main.py173
LOW…nt-learning/06-policy-gradients-reinforce/code/main.py84
LOW…nt-learning/06-policy-gradients-reinforce/code/main.py115
LOW…s/14-agent-engineering/36-scope-contracts/code/main.py114
LOW…gent-engineering/26-failure-modes-agentic/code/main.py69
LOW…gent-engineering/04-tree-of-thoughts-lats/code/main.py76
LOW…es/14-agent-engineering/01-the-agent-loop/code/main.py124
LOW…tooling/12-debugging-and-profiling/code/debug_tools.py64
LOW…ases/08-generative-ai/10-video-generation/code/main.py109
LOW…enerative-ai/19-visual-autoregressive-var/code/main.py40
LOW…rative-ai/03-gans-generator-discriminator/code/main.py70
84 more matches not shown…
Cross-Language Confusion14 hits · 82 pts
SeverityFileLineSnippet
HIGH…ering/01-prompt-engineering/code/prompt_engineering.py418 'Output: {"sentiment": "negative", "food": null, "service": "negative"}'
HIGHphases/13-tools-and-protocols/14-mcp-apps/code/main.py71 if (e.data && e.data.id === id) {{
HIGH…formers-deep-dive/16-speculative-decoding/code/main.py136 print("=== acceptance rate vs KL(q || p) ===")
HIGH…h-foundations/14-norms-and-distances/code/distances.py375 print(f" KL(P || Q) = {kl_pq:.4f} nats")
HIGH…h-foundations/14-norms-and-distances/code/distances.py376 print(f" KL(Q || P) = {kl_qp:.4f} nats")
HIGH…h-foundations/14-norms-and-distances/code/distances.py386 print(f" KL(P || Q) = {kl_divergence(p2, q2):.4f} nats")
HIGH…h-foundations/14-norms-and-distances/code/distances.py387 print(f" KL(Q || P) = {kl_divergence(q2, p2):.4f} nats")
HIGH…tions/09-information-theory/code/information_theory.py225 print(f" KL(true || good): {kl_good:.4f} bits")
HIGH…tions/09-information-theory/code/information_theory.py226 print(f" KL(true || bad): {kl_bad:.4f} bits")
HIGH…tions/09-information-theory/code/information_theory.py240 print(f" KL(P || Q) = {kl_divergence(p, q):.4f} bits")
HIGH…tions/09-information-theory/code/information_theory.py241 print(f" KL(Q || P) = {kl_divergence(q, p):.4f} bits")
HIGH…one-projects/05-autonomous-research-agent/code/main.py136 tree.push(root)
HIGH…one-projects/05-autonomous-research-agent/code/main.py160 tree.push(ch)
HIGH…s-systems/10-claude-code-permission-modes/code/main.py161 Action("shell", "git add /tmp/secrets.txt && git push"),
Cross-File Repetition15 hits · 75 pts
SeverityFileLineSnippet
HIGHphases/11-llm-engineering/07-advanced-rag/code/main.py0acme corp refund policy. all standard plan customers are eligible for a full refund within 30 days of purchase. enterpri
HIGHphases/11-llm-engineering/06-rag/code/main.py0acme corp refund policy. all standard plan customers are eligible for a full refund within 30 days of purchase. enterpri
HIGH…es/11-llm-engineering/04-embeddings/code/embeddings.py0acme corp refund policy. all standard plan customers are eligible for a full refund within 30 days of purchase. enterpri
HIGHphases/11-llm-engineering/07-advanced-rag/code/main.py0acme corp product overview. acme corp offers three product tiers: starter, professional, and enterprise. the starter pla
HIGHphases/11-llm-engineering/06-rag/code/main.py0acme corp product overview. acme corp offers three product tiers: starter, professional, and enterprise. the starter pla
HIGH…es/11-llm-engineering/04-embeddings/code/embeddings.py0acme corp product overview. acme corp offers three product tiers: starter, professional, and enterprise. the starter pla
HIGHphases/11-llm-engineering/07-advanced-rag/code/main.py0acme corp security practices. acme corp maintains soc 2 type ii compliance and undergoes annual third-party security aud
HIGHphases/11-llm-engineering/06-rag/code/main.py0acme corp security practices. acme corp maintains soc 2 type ii compliance and undergoes annual third-party security aud
HIGH…es/11-llm-engineering/04-embeddings/code/embeddings.py0acme corp security practices. acme corp maintains soc 2 type ii compliance and undergoes annual third-party security aud
HIGHphases/11-llm-engineering/07-advanced-rag/code/main.py0acme corp api documentation. the acme api uses rest with json request and response bodies. authentication is via bearer
HIGHphases/11-llm-engineering/06-rag/code/main.py0acme corp api documentation. the acme api uses rest with json request and response bodies. authentication is via bearer
HIGH…es/11-llm-engineering/04-embeddings/code/embeddings.py0acme corp api documentation. the acme api uses rest with json request and response bodies. authentication is via bearer
HIGHphases/11-llm-engineering/07-advanced-rag/code/main.py0acme corp uptime and reliability. acme corp guarantees 99.9% uptime for professional plans and 99.99% uptime for enterpr
HIGHphases/11-llm-engineering/06-rag/code/main.py0acme corp uptime and reliability. acme corp guarantees 99.9% uptime for professional plans and 99.99% uptime for enterpr
HIGH…es/11-llm-engineering/04-embeddings/code/embeddings.py0acme corp uptime and reliability. acme corp guarantees 99.9% uptime for professional plans and 99.99% uptime for enterpr
Excessive Try-Catch Wrapping56 hits · 61 pts
SeverityFileLineSnippet
LOWscripts/link_check.py258 except Exception as exc:
LOWscripts/link_check.py343 except Exception as exc:
LOW…m-engineering/16-langgraph-state-machines/code/main.py56 except Exception as exc:
LOW…gineering/09-function-calling/code/function_calling.py30 except Exception as e:
LOW…gineering/09-function-calling/code/function_calling.py128 except Exception as e:
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md216 except Exception as e:
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md298 except Exception as e:
LOW…engineering/02-few-shot-cot/code/advanced_prompting.py326 except Exception as e:
LOW…13-tools-and-protocols/13-mcp-async-tasks/code/main.py100 except Exception as e:
LOW…/13-tools-and-protocols/09-mcp-transports/code/main.py156 except Exception:
LOW…s-and-protocols/07-building-an-mcp-server/code/main.py151 except Exception as e:
LOW…s-and-protocols/07-building-an-mcp-server/code/main.py218 except Exception as e:
LOW…ools-and-protocols/18-mcp-auth-production/code/main.py246 except Exception:
LOW…ent-engineering/02-rewoo-plan-and-execute/code/main.py43 except Exception as e:
LOW…t-engineering/42-agent-workbench-capstone/code/main.py547 except Exception as exc:
LOW…tputs/agent-workbench-pack/scripts/generate_handoff.py112 except Exception as exc:
LOW…nt-engineering/10-skill-libraries-voyager/code/main.py100 except Exception as e:
LOW…/14-agent-engineering/17-claude-agent-sdk/code/main.py100 except Exception as e:
LOW…gent-engineering/34-repo-memory-and-state/code/main.py108 except Exception:
LOW…ineering/06-tool-use-and-function-calling/code/main.py134 except Exception as e:
LOW…-agent-engineering/14-autogen-actor-model/code/main.py67 except Exception as e:
LOW…es/14-agent-engineering/01-the-agent-loop/code/main.py52 except Exception as e:
LOW…es/14-agent-engineering/01-the-agent-loop/code/main.py62 except Exception as e:
LOW…ineering/07-memory-virtual-context-memgpt/code/main.py136 except Exception as e:
LOW…00-setup-and-tooling/01-dev-environment/code/verify.py38 except Exception:
MEDIUM…00-setup-and-tooling/01-dev-environment/code/verify.py25def run_check(name, check_fn, detail_fn=None):
LOW…i-agent-and-swarms/08-role-specialization/code/main.py75 except Exception as e:
LOW…i-agent-and-swarms/08-role-specialization/code/main.py84 except Exception as e:
MEDIUM…gent-and-swarms/07-society-of-mind-debate/code/main.py94 print(f"Error vs truth: {abs(control_mean - TRUE_ANSWER):.2f}")
LOW…tch/09-constitutional-ai-self-improvement/code/main.py80 except Exception:
LOW…tch/09-constitutional-ai-self-improvement/code/main.py137 except Exception:
LOW…ratch/09-constitutional-ai-self-improvement/docs/en.md216 except Exception:
LOW…projects/15-constitutional-safety-harness/code/main.py33 except Exception:
LOW…tone-projects/13-mcp-server-with-registry/code/main.py140 except Exception as exc:
LOW…stone-projects/42-large-corpus-downloader/code/main.py355 except Exception:
LOW…apstone-projects/43-hdf5-tokenized-corpus/code/main.py273 except Exception:
LOW…apstone-projects/43-hdf5-tokenized-corpus/code/main.py277 except Exception:
LOW…apstone-projects/43-hdf5-tokenized-corpus/code/main.py292 except Exception:
MEDIUM…apstone-projects/43-hdf5-tokenized-corpus/code/main.py140def __exit__(self, exc_type, exc, tb) -> None:
LOW…one-projects/24-plan-execute-control-flow/code/main.py156 except Exception as exc:
LOW…-capstone-projects/56-iteration-scheduler/code/main.py202 except Exception as exc:
LOW…-capstone-projects/56-iteration-scheduler/code/main.py264 except Exception:
LOW…tone-projects/23-function-call-dispatcher/code/main.py190 except Exception as exc:
LOW…tone-projects/23-function-call-dispatcher/code/main.py240 except Exception as exc:
LOW…s/19-capstone-projects/49-lm-eval-harness/code/main.py96 except Exception:
LOW…s/19-capstone-projects/49-lm-eval-harness/code/main.py225 except Exception:
LOW…s/19-capstone-projects/49-lm-eval-harness/code/main.py237 except Exception:
LOW…stone-projects/22-jsonrpc-stdio-transport/code/main.py150 except Exception as exc:
LOW…capstone-projects/48-distributed-fsdp-ddp/code/main.py278 except Exception as exc:
LOW…capstone-projects/48-distributed-fsdp-ddp/code/main.py338 except Exception:
LOW…-projects/01-terminal-native-coding-agent/code/main.py214 except Exception as exc:
LOW…l-fundamentals/12-hyperparameter-tuning/code/tuning.py560 except Exception:
LOW…/04-computer-vision/01-image-fundamentals/code/main.py28 except Exception:
MEDIUM…/04-computer-vision/01-image-fundamentals/code/main.py22def load_rgb(url, timeout=5):
LOW…computer-vision/16-vision-pipeline-capstone/docs/en.md258 except Exception:
LOW…vision/08-instance-segmentation-mask-rcnn/code/main.py98 except Exception as e:
Over-Commented Block50 hits · 50 pts
SeverityFileLineSnippet
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md561
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md581# }]
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md601# )
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md621# "type": "object",
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md641# {"role": "assistant", "content": response.content},
LOW…ases/11-llm-engineering/09-function-calling/docs/en.md661# command="npx",
LOWphases/11-llm-engineering/10-evaluation/docs/en.md741#
LOWphases/11-llm-engineering/10-evaluation/docs/en.md761
LOWphases/11-llm-engineering/10-evaluation/docs/en.md781# evaluate([test_case], [relevancy, faithfulness])
LOWphases/11-llm-engineering/10-evaluation/docs/en.md801# steps:
LOWphases/11-llm-engineering/12-guardrails/docs/en.md741
LOWphases/11-llm-engineering/12-guardrails/docs/en.md761# result = response.results[0]
LOWphases/11-llm-engineering/12-guardrails/docs/en.md781#
LOWphases/11-llm-engineering/12-guardrails/docs/en.md801# config.yml:
LOWphases/11-llm-engineering/12-guardrails/docs/en.md821# user ask about something else
LOWphases/11-llm-engineering/12-guardrails/docs/en.md841# )
LOW…es/11-llm-engineering/03-structured-outputs/docs/en.md421
LOW…es/11-llm-engineering/03-structured-outputs/docs/en.md441# {"role": "user", "content": "Sony WH-1000XM5, $348, in stock"},
LOW…es/11-llm-engineering/03-structured-outputs/docs/en.md461# max_tokens=1024,
LOW…es/11-llm-engineering/03-structured-outputs/docs/en.md481### Instructor Library
LOWphases/11-llm-engineering/13-production-app/docs/en.md1001## Use It
LOWphases/11-llm-engineering/13-production-app/docs/en.md1021# user_id: str
LOWphases/11-llm-engineering/13-production-app/docs/en.md1041#
LOWphases/11-llm-engineering/13-production-app/docs/en.md1061Replace the simulated LLM calls with actual provider SDKs.
LOWphases/11-llm-engineering/13-production-app/docs/en.md1081# async def call_anthropic(prompt, model="claude-sonnet-4-20250514"):
LOW…es/11-llm-engineering/01-prompt-engineering/docs/en.md881# client = OpenAI()
LOW…es/11-llm-engineering/01-prompt-engineering/docs/en.md901OpenAI's system message is processed first and given high attention weight. Temperature=0.0 makes the output determinist
LOW…es/11-llm-engineering/01-prompt-engineering/docs/en.md921# "role": "assistant",
LOW…es/11-llm-engineering/01-prompt-engineering/docs/en.md941# "gemini-1.5-pro",
LOW…es/11-llm-engineering/01-prompt-engineering/docs/en.md961#
LOWphases/11-llm-engineering/11-caching-cost/docs/en.md761# model="claude-sonnet-4-20250514",
LOWphases/11-llm-engineering/11-caching-cost/docs/en.md781
LOWphases/11-llm-engineering/11-caching-cost/docs/en.md801
LOWphases/11-llm-engineering/11-caching-cost/docs/en.md821#
LOWphases/11-llm-engineering/11-caching-cost/docs/en.md841# client = OpenAI()
LOW…tools-and-protocols/01-the-tool-interface/code/main.ts1// Phase 13 Lesson 01 — the tool interface, in TypeScript.
LOW…es/13-tools-and-protocols/19-a2a-protocol/code/main.ts1// Phase 13 Lesson 19 — A2A agent-to-agent protocol, in TypeScript.
LOW…s-and-protocols/07-building-an-mcp-server/code/main.ts1// Phase 13 Lesson 07 — toy MCP server, in TypeScript, stdlib only.
LOW…-engineering/13-langgraph-stateful-graphs/code/main.ts1// Phase 14 Lesson 13 — LangGraph-shaped stateful graph, in TypeScript.
LOW…ineering/06-tool-use-and-function-calling/code/main.ts1// Phase 14 Lesson 06 — tool use and function calling, in TypeScript.
LOW…es/14-agent-engineering/01-the-agent-loop/code/main.ts1// Phase 14 Lesson 01 — toy ReAct agent loop, in TypeScript.
LOW…/00-setup-and-tooling/10-terminal-and-shell/docs/en.md241# Port forward (access remote Jupyter/TensorBoard locally)
LOWphases/10-llms-from-scratch/11-quantization/docs/en.md781# bits=4,
LOWphases/10-llms-from-scratch/11-quantization/docs/en.md801# model_id = "meta-llama/Llama-3.1-8B"
LOWphases/10-llms-from-scratch/10-evaluation/docs/en.md421# Command line:
LOWphases/10-llms-from-scratch/10-evaluation/docs/en.md461### RAGAS for RAG evaluation
LOW…jects/03-realtime-voice-assistant/code/ts/src/index.ts1// Capstone 19/03: realtime voice web client (multi-file TypeScript).
LOW…s/01-terminal-native-coding-agent/code/ts/src/index.ts1// Capstone 19/01: terminal-native coding agent harness (multi-file TypeScript).
LOW…one-projects/02-rag-over-codebase/code/ts/src/index.ts1// Capstone 19/02: code RAG query API (multi-file TypeScript).
LOW…utonomous-systems/16-checkpoints-rollback/code/main.py101
Hallucination Indicators4 hits · 50 pts
SeverityFileLineSnippet
CRITICAL…9-capstone-projects/36-training-loop-eval/code/main.py159 block.attn.out_proj.weight.data.mul_(scale)
CRITICAL…9-capstone-projects/36-training-loop-eval/code/main.py160 block.mlp.fc2.weight.data.mul_(scale)
CRITICAL…9-capstone-projects/35-gpt-model-assembly/code/main.py156 block.attn.out_proj.weight.data.mul_(scale)
CRITICAL…9-capstone-projects/35-gpt-model-assembly/code/main.py157 block.mlp.fc2.weight.data.mul_(scale)
Synthetic Comment Markers4 hits · 20 pts
SeverityFileLineSnippet
HIGH…llms-from-scratch/06-instruction-tuning-sft/docs/en.md25Stanford Alpaca proved you don't need millions of examples. In March 2023, they fine-tuned Llama 7B on just 52,000 instr
HIGH…llms-from-scratch/06-instruction-tuning-sft/docs/en.md61Simple and widely used. The `input` field is optional -- many instructions don't need additional context. Stanford relea
HIGH…modal-ai/05-llava-visual-instruction-tuning/docs/en.md3> LLaVA (April 2023) is the most copied multimodal architecture on the planet. It replaced BLIP-2's Q-Former with a 2-la
HIGH…modal-ai/05-llava-visual-instruction-tuning/docs/en.md164| ShareGPT4V | "Better captions" | 1M dense captions generated by GPT-4V, used for higher-quality alignment |
Verbosity Indicators6 hits · 11 pts
SeverityFileLineSnippet
LOWscripts/scaffold-lesson.sh77### Step 1: [name]
LOWscripts/scaffold-lesson.sh85### Step 2: [name]
LOW…s/15-autonomous-systems/11-browser-agents/code/main.py91 # Step 1: fetch. Apply sanitizer if enabled.
LOW…s/15-autonomous-systems/11-browser-agents/code/main.py97 # Step 2: "read" the combined context. In a real stack, URL fragment
LOW…s/15-autonomous-systems/11-browser-agents/code/main.py101 # Step 3: decide what to post.
LOW…s/15-autonomous-systems/11-browser-agents/code/main.py117 # Step 4: R/W boundary check.
Slop Phrases5 hits · 10 pts
SeverityFileLineSnippet
MEDIUM…1-llm-engineering/10-evaluation/code/eval_framework.py259 reference_output="I cannot provide instructions for illegal activities.",
MEDIUMphases/11-llm-engineering/12-guardrails/code/main.ts327 return { response: "I cannot provide that response. Let me help you differently.", report };
MEDIUM…es/11-llm-engineering/12-guardrails/code/guardrails.py341 return "I apologize, but I cannot provide that response. Let me help you differently.", report
MEDIUM…m-engineering/13-production-app/code/production_app.py337 "Let me know if you need more detail on any specific aspect."
MEDIUM…m-engineering/13-production-app/code/production_app.py478 result["text"] = "I cannot provide that response as it was flagged by our safety system."
AI Slop Vocabulary2 hits · 9 pts
SeverityFileLineSnippet
MEDIUM…ne-projects/27-eval-harness-fixture-tasks/code/main.py332# The harness
MEDIUM…e-projects/29-end-to-end-coding-task-demo/code/main.py32# Minimal harness primitives, copied with intent from lessons 25-28.
Overly Generic Function Names5 hits · 5 pts
SeverityFileLineSnippet
LOW…m-engineering/13-production-app/code/production_app.py430 async def handle_request(self, user_id, query, template_name="general_chat", variables=None):
LOW…t-engineering/19-benchmarks-swebench-gaia/code/main.py34def run_task(task: Task) -> TaskResult:
LOW…rms/24-evaluation-coordination-benchmarks/code/main.py42def run_task(system: SystemSim, task_id: str, seen: bool, rng: random.Random) -> TaskResult:
LOW…s/19-capstone-projects/49-lm-eval-harness/code/main.py289def run_task(
LOW…odal-ai/25-multimodal-agents-computer-use/code/main.py87def run_task(task: Task) -> dict:
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippet
HIGH…engineering/02-few-shot-cot/code/advanced_prompting.py510 client = OpenAI(api_key=os.environ.get("OPENAI_API_KEY", "your-api-key"))
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippet
LOW…-tools-and-protocols/04-structured-output/code/main.py143 "customer": "Acme Corp",