21 Lessons, Get Started Building with Generative AI
This report presents the forensic synthetic code analysis of microsoft/generative-ai-for-beginners, a Jupyter Notebook project with 112,965 GitHub stars. SynthScan v2.0 examined 529,491 lines of code across 2445 source files, recording 1169 pattern matches distributed across 14 syntactic categories. The overall adjusted score of 8.3 places this repository in the Low 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 1169 distinct pattern matches across 14 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 |
|---|---|---|---|---|
| HIGH | 05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/sl/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/sk/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ur/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/sw/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/pl/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/sv/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/he/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ms/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/km/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/da/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/mr/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/no/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ja/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/el/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/it/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/cs/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/te/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ru/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/tl/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ro/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/zh-CN/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/uk/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/sr/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/pcm/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/pa/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/pt-PT/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ml/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/kn/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/zh-TW/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/my/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ar/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/hr/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/pt-BR/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/hu/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/nl/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/bg/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/bn/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ne/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/hi/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/de/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ko/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/fi/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/id/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/fr/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/es/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/et/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/fa/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/lt/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/zh-HK/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/ta/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/zh-MO/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/th/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | translations/tr/05-advanced-prompts/README.md | 0 | <h1>books api</h1> <p>a prototype api for retrieving books.</p> | STRING |
| HIGH | 20-mistral/README.md | 0 | context information is below. --------------------- {retrieved_chunks} --------------------- given the context informati | STRING |
| HIGH | translations/sl/20-mistral/README.md | 0 | context information is below. --------------------- {retrieved_chunks} --------------------- given the context informati | STRING |
| HIGH | translations/sk/20-mistral/README.md | 0 | context information is below. --------------------- {retrieved_chunks} --------------------- given the context informati | STRING |
| HIGH | translations/ur/20-mistral/README.md | 0 | context information is below. --------------------- {retrieved_chunks} --------------------- given the context informati | STRING |
| HIGH | translations/sw/20-mistral/README.md | 0 | context information is below. --------------------- {retrieved_chunks} --------------------- given the context informati | STRING |
| HIGH | translations/pl/20-mistral/README.md | 0 | context information is below. --------------------- {retrieved_chunks} --------------------- given the context informati | STRING |
| 555 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | 10-building-low-code-ai-applications/README.md | 75 | [Microsoft Copilot Studio](https://learn.microsoft.com/microsoft-copilot-studio/fundamentals-what-is-copilot-studio?WT.m | CODE |
| MEDIUM | 20-mistral/README.md | 33 | ### RAG Example using Mistral Large 2 | COMMENT |
| MEDIUM | 02-exploring-and-comparing-different-llms/README.md | 163 | ### Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | 15-rag-and-vector-databases/README.md | 1 | # Retrieval Augmented Generation (RAG) and Vector Databases | COMMENT |
| MEDIUM | 15-rag-and-vector-databases/README.md | 41 | ## Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | 15-rag-and-vector-databases/README.md | 238 | ## Use Cases for using RAG (Retrieval Augmented Generation) and vector databases | COMMENT |
| MEDIUM | translations/sl/20-mistral/README.md | 31 | ### Primer RAG z uporabo Mistral Large 2 | COMMENT |
| MEDIUM | …sl/02-exploring-and-comparing-different-llms/README.md | 162 | ### Generacija z obogatenim pridobivanjem podatkov (RAG) | COMMENT |
| MEDIUM | translations/sl/15-rag-and-vector-databases/README.md | 1 | # Retrieval Augmented Generation (RAG) in vektorske baze podatkov | COMMENT |
| MEDIUM | translations/sl/15-rag-and-vector-databases/README.md | 41 | ## Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/sl/15-rag-and-vector-databases/README.md | 45 | ### Kako delujejo RAG (Retrieval Augmented Generation) | COMMENT |
| MEDIUM | translations/sl/15-rag-and-vector-databases/README.md | 69 | ### Zakaj uporabiti RAG? | COMMENT |
| MEDIUM | translations/sl/15-rag-and-vector-databases/README.md | 237 | ## Primeri uporabe RAG in vektorskih baz podatkov | COMMENT |
| MEDIUM | translations/sk/20-mistral/README.md | 30 | ### Príklad RAG použitia s Mistral Large 2 | COMMENT |
| MEDIUM | …sk/02-exploring-and-comparing-different-llms/README.md | 162 | ### Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/sk/15-rag-and-vector-databases/README.md | 1 | # Retrieval Augmented Generation (RAG) a vektorové databázy | COMMENT |
| MEDIUM | translations/sk/15-rag-and-vector-databases/README.md | 41 | ## Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/sk/15-rag-and-vector-databases/README.md | 45 | ### Ako fungujú RAG (Retrieval Augmented Generation) | COMMENT |
| MEDIUM | translations/sk/15-rag-and-vector-databases/README.md | 69 | ### Prečo používať RAG? | COMMENT |
| MEDIUM | translations/sk/15-rag-and-vector-databases/README.md | 237 | ## Príklady použitia RAG (Retrieval Augmented Generation) a vektorových databáz | COMMENT |
| MEDIUM | translations/ur/20-mistral/README.md | 31 | ### Mistral Large 2 کا استعمال کرتے ہوئے RAG کی مثال | COMMENT |
| MEDIUM | …ur/02-exploring-and-comparing-different-llms/README.md | 162 | ### ریٹریول آگمنٹڈ جنریشن (RAG) | COMMENT |
| MEDIUM | translations/ur/15-rag-and-vector-databases/README.md | 1 | # بازیافت میں اضافہ شدہ تخلیق (RAG) اور ویکٹر ڈیٹا بیسز | COMMENT |
| MEDIUM | translations/ur/15-rag-and-vector-databases/README.md | 41 | ## بازیافت میں اضافہ شدہ تخلیق (RAG) | COMMENT |
| MEDIUM | translations/ur/15-rag-and-vector-databases/README.md | 45 | ### RAG کیسے کام کرتے ہیں (بازیافت میں اضافہ شدہ تخلیق) | COMMENT |
| MEDIUM | translations/ur/15-rag-and-vector-databases/README.md | 69 | ### آپ RAG کیوں استعمال کریں؟ | COMMENT |
| MEDIUM | translations/ur/15-rag-and-vector-databases/README.md | 237 | ## RAG (بازیافت میں اضافہ شدہ تخلیق) اور ویکٹر ڈیٹا بیسز کے استعمال کے کیسز | COMMENT |
| MEDIUM | translations/sw/20-mistral/README.md | 31 | ### Mfano wa RAG ukitumia Mistral Large 2 | COMMENT |
| MEDIUM | …sw/02-exploring-and-comparing-different-llms/README.md | 163 | ### Uzalishaji Ulioimarishwa na Urejeshaji (RAG) | COMMENT |
| MEDIUM | translations/sw/15-rag-and-vector-databases/README.md | 1 | # Kuzalishwa kwa Uboreshaji wa Upataji (RAG) na Hifadhidata za Vector | COMMENT |
| MEDIUM | translations/sw/15-rag-and-vector-databases/README.md | 41 | ## Kuzalishwa kwa Uboreshaji wa Upataji (RAG) | COMMENT |
| MEDIUM | translations/sw/15-rag-and-vector-databases/README.md | 45 | ### Jinsi RAG (Kuzalishwa kwa Uboreshaji wa Upataji) hufanya kazi | COMMENT |
| MEDIUM | translations/sw/15-rag-and-vector-databases/README.md | 69 | ### Kwa nini utumie RAG? | COMMENT |
| MEDIUM | translations/sw/15-rag-and-vector-databases/README.md | 237 | ## Matumizi ya kutumia RAG (Kuzalishwa kwa Uboreshaji wa Upataji) na hifadhidata za vector | COMMENT |
| MEDIUM | translations/pl/20-mistral/README.md | 31 | ### Przykład RAG z użyciem Mistral Large 2 | COMMENT |
| MEDIUM | …pl/02-exploring-and-comparing-different-llms/README.md | 162 | ### Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/pl/15-rag-and-vector-databases/README.md | 1 | # Retrieval Augmented Generation (RAG) i bazy danych wektorowych | COMMENT |
| MEDIUM | translations/pl/15-rag-and-vector-databases/README.md | 41 | ## Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/pl/15-rag-and-vector-databases/README.md | 45 | ### Jak działają RAG (Retrieval Augmented Generation) | COMMENT |
| MEDIUM | translations/pl/15-rag-and-vector-databases/README.md | 69 | ### Dlaczego warto używać RAG? | COMMENT |
| MEDIUM | translations/pl/15-rag-and-vector-databases/README.md | 238 | ## Przykłady użycia RAG i baz danych wektorowych | COMMENT |
| MEDIUM | translations/vi/20-mistral/README.md | 30 | ### Ví dụ RAG sử dụng Mistral Large 2 | COMMENT |
| MEDIUM | …vi/02-exploring-and-comparing-different-llms/README.md | 162 | ### Tạo nội dung tăng cường truy xuất (RAG) | COMMENT |
| MEDIUM | translations/vi/15-rag-and-vector-databases/README.md | 1 | # Retrieval Augmented Generation (RAG) và Cơ sở Dữ liệu Vector | COMMENT |
| MEDIUM | translations/vi/15-rag-and-vector-databases/README.md | 41 | ## Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/vi/15-rag-and-vector-databases/README.md | 45 | ### Cách RAG (Retrieval Augmented Generation) hoạt động | COMMENT |
| MEDIUM | translations/vi/15-rag-and-vector-databases/README.md | 69 | ### Tại sao bạn nên dùng RAG? | COMMENT |
| MEDIUM | translations/vi/15-rag-and-vector-databases/README.md | 237 | ## Các trường hợp sử dụng RAG (Retrieval Augmented Generation) và cơ sở dữ liệu vector | COMMENT |
| MEDIUM | translations/sv/20-mistral/README.md | 31 | ### RAG-exempel med Mistral Large 2 | COMMENT |
| MEDIUM | …sv/02-exploring-and-comparing-different-llms/README.md | 162 | ### Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/sv/15-rag-and-vector-databases/README.md | 1 | # Retrieval Augmented Generation (RAG) och vektordatabaser | COMMENT |
| MEDIUM | translations/sv/15-rag-and-vector-databases/README.md | 41 | ## Retrieval Augmented Generation (RAG) | COMMENT |
| MEDIUM | translations/sv/15-rag-and-vector-databases/README.md | 237 | ## Användningsområden för RAG (Retrieval Augmented Generation) och vektordatabaser | COMMENT |
| MEDIUM | translations/he/20-mistral/README.md | 30 | ### דוגמה ל-RAG עם Mistral Large 2 | COMMENT |
| MEDIUM | …he/02-exploring-and-comparing-different-llms/README.md | 162 | ### יצירת מידע מוגברת על ידי אחזור (RAG) | COMMENT |
| MEDIUM | translations/he/15-rag-and-vector-databases/README.md | 1 | # יצירה מוגברת של שליפה (RAG) ומסדי נתונים וקטוריים | COMMENT |
| MEDIUM | translations/he/15-rag-and-vector-databases/README.md | 41 | ## יצירה מוגברת של שליפה (RAG) | COMMENT |
| MEDIUM | translations/he/15-rag-and-vector-databases/README.md | 237 | ## שימושים עבור RAG (יצירה מוגברת של שליפה) ומסדי נתונים וקטוריים | COMMENT |
| MEDIUM | translations/ms/20-mistral/README.md | 30 | ### Contoh RAG menggunakan Mistral Large 2 | COMMENT |
| MEDIUM | …ms/02-exploring-and-comparing-different-llms/README.md | 162 | ### Retrieval Augmented Generation (RAG) | COMMENT |
| 294 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ing-search-applications/scripts/transcript_download.py | 109 | except Exception as exception: | CODE |
| LOW | …ch-applications/scripts/transcript_enrich_summaries.py | 145 | except Exception as e: | CODE |
| LOW | docs/SECURITY_GUIDELINES.md | 198 | except Exception: | CODE |
| LOW | docs/SECURITY_GUIDELINES.md | 212 | except Exception as e: | CODE |
| LOW | translations/sl/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/sl/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/sk/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/sk/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/ur/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/ur/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/sw/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/sw/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/pl/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/pl/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/vi/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/vi/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/sv/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/sv/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/he/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/he/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/ms/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/ms/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/km/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/km/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/da/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/da/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/mr/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/mr/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/no/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/no/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/ja/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/ja/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/el/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/el/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/it/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/it/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/cs/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/cs/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/te/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/te/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/ru/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/ru/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/tl/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/tl/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/ro/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/ro/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/zh-CN/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/zh-CN/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/uk/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/uk/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/sr/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/sr/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/pcm/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/pcm/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/pa/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/pa/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/pt-PT/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/pt-PT/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| LOW | translations/ml/docs/SECURITY_GUIDELINES.md | 197 | except Exception: | CODE |
| LOW | translations/ml/docs/SECURITY_GUIDELINES.md | 211 | except Exception as e: | CODE |
| 54 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | shared/python/input_validation.py | 14 | Validate and convert string input to an integer within bounds. Args: value: The string value to valida | STRING |
| HIGH | shared/python/input_validation.py | 53 | Validate and sanitize text input. Args: value: The string value to validate. max_length: Maxim | STRING |
| HIGH | shared/python/input_validation.py | 97 | Sanitize user input intended for use in LLM prompts. This function removes potentially dangerous characters an | STRING |
| HIGH | shared/python/input_validation.py | 155 | Validate an email address format. Args: email: The email address to validate. Returns: Th | STRING |
| HIGH | shared/python/input_validation.py | 179 | Validate a URL format. Args: url: The URL to validate. require_https: If True, only allow HTTP | STRING |
| HIGH | shared/python/env_utils.py | 12 | Get a required environment variable or raise an error with helpful message. Args: var_name: The name o | STRING |
| HIGH | shared/python/env_utils.py | 39 | Validate that multiple environment variables are set. Args: *var_names: Variable names to check. | STRING |
| HIGH | shared/python/api_utils.py | 18 | Make an HTTP request with proper timeout and error handling. Args: url: The URL to request. me | STRING |
| HIGH | shared/python/api_utils.py | 57 | Create an OpenAI client with proper configuration. Args: api_key: Optional API key. If not provided, r | STRING |
| HIGH | shared/python/api_utils.py | 95 | Create an Azure OpenAI (Microsoft Foundry) client with proper configuration. The client targets the Azure Open | STRING |
| HIGH | shared/python/api_utils.py | 148 | Download an image from a URL and save it to disk. Args: url: The URL of the image to download. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …earch-applications/scripts/transcript_enrich_bucket.py | 84 | def append_text_to_previous_segment(text): | CODE |
| LOW | …earch-applications/scripts/transcript_enrich_bucket.py | 108 | def parse_json_vtt_transcript(vtt, metadata): | CODE |
| LOW | tests/test_api_utils.py | 22 | def test_returns_response_on_success(self, monkeypatch): | CODE |
| LOW⚡ | tests/test_api_utils.py | 48 | def test_missing_key_raises_value_error(self, monkeypatch): | CODE |
| LOW⚡ | tests/test_api_utils.py | 56 | def test_missing_endpoint_raises_value_error(self, monkeypatch): | CODE |
| LOW⚡ | tests/test_api_utils.py | 63 | def test_missing_key_raises_value_error(self, monkeypatch): | CODE |
| LOW | tests/test_input_validation.py | 21 | def test_below_minimum_raises(self): | CODE |
| LOW | tests/test_input_validation.py | 25 | def test_above_maximum_raises(self): | CODE |
| LOW | tests/test_input_validation.py | 41 | def test_empty_not_allowed_raises(self): | CODE |
| LOW | tests/test_input_validation.py | 45 | def test_empty_allowed_returns_empty(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 58 | def test_plain_text_unchanged(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 61 | def test_removes_template_injection(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 66 | def test_removes_variable_substitution(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 74 | def test_removes_javascript_url(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 85 | def test_only_invalid_characters_raises(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 91 | def test_valid_email_lowercased(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 97 | def test_invalid_email_raises(self, bad): | CODE |
| LOW⚡ | tests/test_input_validation.py | 106 | def test_http_rejected_when_https_required(self): | CODE |
| LOW⚡ | tests/test_input_validation.py | 110 | def test_http_allowed_when_not_required(self): | CODE |
| LOW⚡ | tests/test_env_utils.py | 12 | def test_get_required_env_returns_value(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 17 | def test_get_required_env_missing_raises(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 23 | def test_get_required_env_empty_raises(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 29 | def test_get_required_env_includes_description(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 35 | def test_validate_env_vars_returns_mapping(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 42 | def test_validate_env_vars_reports_all_missing(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 52 | def test_get_env_with_default_uses_default(monkeypatch): | CODE |
| LOW⚡ | tests/test_env_utils.py | 57 | def test_get_env_with_default_uses_value(monkeypatch): | CODE |
| LOW | shared/python/api_utils.py | 91 | def create_azure_openai_client( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | shared/python/__init__.py | 8 | CODE | |
| LOW | shared/python/__init__.py | 8 | CODE | |
| LOW | shared/python/__init__.py | 8 | CODE | |
| LOW | shared/python/__init__.py | 13 | CODE | |
| LOW | shared/python/__init__.py | 13 | CODE | |
| LOW | shared/python/__init__.py | 14 | CODE | |
| LOW | shared/python/__init__.py | 14 | CODE | |
| LOW | shared/python/__init__.py | 14 | CODE | |
| LOW | 09-building-image-applications/python/aoai-app.py | 1 | CODE | |
| LOW | …ilding-image-applications/python/aoai-app-variation.py | 1 | CODE | |
| LOW | 09-building-image-applications/python/aoai-solution.py | 1 | CODE | |
| LOW | 06-text-generation-apps/python/oai-study-buddy.py | 2 | CODE | |
| LOW | 06-text-generation-apps/python/oai-history-bot.py | 2 | CODE | |
| LOW | 06-text-generation-apps/python/oai-app-recipe.py | 2 | CODE | |
| LOW | 06-text-generation-apps/python/oai-app.py | 2 | CODE | |
| LOW | 06-text-generation-apps/python/githubmodels-app.py | 3 | CODE | |
| LOW | 06-text-generation-apps/python/githubmodels-app.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …ing-search-applications/scripts/transcript_download.py | 135 | # Create a request object with the playlist ID and the max results | COMMENT |
| MEDIUM | 09-building-image-applications/python/aoai-app.py | 24 | # Create an image by using the image generation API | COMMENT |
| MEDIUM | 09-building-image-applications/python/oai-app.py | 20 | # Create an image by using the image generation API | COMMENT |
| MEDIUM | 09-building-image-applications/python/aoai-solution.py | 43 | # Create an image by using the image generation API | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | 12-designing-ux-for-ai-applications/README.md | 64 | When AI helps inform decisions such as imparting knowledge to future generations, it is critical for teachers and parent | CODE |
| HIGH | 13-securing-ai-applications/README.md | 114 | Data security, governance, and compliance are critical for any organization that wants to leverage the power of data and | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | 11-integrating-with-function-calling/README.md | 202 | ### Step 1 - creating messages | STRING |
| LOW | 11-integrating-with-function-calling/README.md | 214 | ### Step 2 - creating functions | STRING |
| LOW | 11-integrating-with-function-calling/README.md | 265 | ### Step 3 - Making the function call | STRING |
| LOW | .github/skills/azure-openai-to-responses/SKILL.md | 91 | ## Step 0: Client migration (prerequisite) | COMMENT |
| LOW | .github/skills/azure-openai-to-responses/SKILL.md | 118 | ## Step 1: Detect legacy call sites | COMMENT |
| LOW | .github/skills/azure-openai-to-responses/SKILL.md | 133 | ## Step 2: Apply migration | COMMENT |
| LOW | …ons/pcm/11-integrating-with-function-calling/README.md | 197 | ### Step 1 - create messages | STRING |
| LOW | …ons/pcm/11-integrating-with-function-calling/README.md | 209 | ### Step 2 - create functions | STRING |
| LOW | …ons/pcm/11-integrating-with-function-calling/README.md | 259 | ### Step 3 - Make di function call | STRING |
| LOW | …ions/en/11-integrating-with-function-calling/README.md | 197 | ### Step 1 - Creating messages | STRING |
| LOW | …ions/en/11-integrating-with-function-calling/README.md | 209 | ### Step 2 - Creating functions | STRING |
| LOW | …ions/en/11-integrating-with-function-calling/README.md | 259 | ### Step 3 - Making the function call | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …-search-applications/scripts/transcript_enrich_lite.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ing-search-applications/scripts/transcript_download.py | 17 | logger = logging.getLogger(__name__) | CODE |
| LOW | …h-applications/scripts/transcript_enrich_embeddings.py | 40 | logger = logging.getLogger(__name__) | CODE |
| LOW | …ch-applications/scripts/transcript_enrich_summaries.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | …earch-applications/scripts/transcript_enrich_bucket.py | 16 | logger = logging.getLogger(__name__) | CODE |
| LOW | …arch-applications/scripts/transcript_enrich_speaker.py | 23 | logger = logging.getLogger(__name__) | CODE |
| LOW | shared/python/__init__.py | 20 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .devcontainer/post-create.sh | 1 | #!/bin/bash | COMMENT |
| LOW | 09-building-image-applications/python/aoai-solution.py | 81 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ing-search-applications/scripts/transcript_download.py | 146 | # Iterate over the items in the response and append the video IDs to the list | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/test_input_validation.py | 92 | assert validate_email("User@Example.COM") == "user@example.com" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …earch-applications/scripts/transcript_enrich_bucket.py | 108 | CODE |