diff --git a/gitgalaxy/galaxyscope.py b/gitgalaxy/galaxyscope.py index 4d699aa81..81046a751 100644 --- a/gitgalaxy/galaxyscope.py +++ b/gitgalaxy/galaxyscope.py @@ -718,8 +718,11 @@ def __init__( # The primary heuristic math engine converting raw Structural Signatures to risk exposure vectors self.processor = SignalProcessor(aperture_config=config, parent_logger=logger) - # Third-Gate gatekeeper identifying and dropping un-parseable data dumps - self.auditor = StatisticalAuditor(parent_logger=logger) + # Third-Gate gatekeeper identifying and dropping un-parseable data dumps. + # lang_defs MUST be passed: without it the auditor's per-language loop treats + # every language as inert (see StatisticalAuditor.audit's Dynamic Auditability + # Check) and its data-dump / packed-payload / MAD floors never run (#2325). + self.auditor = StatisticalAuditor(parent_logger=logger, lang_defs=lang_defs) # Constructs the physical import DAG and calculates PageRank/Downstream Exposure self.network_sensor = NetworkRiskSensor(parent_logger=logger) diff --git a/gitgalaxy/metrics/statistical_auditor.py b/gitgalaxy/metrics/statistical_auditor.py index 368722816..a016c5d3d 100644 --- a/gitgalaxy/metrics/statistical_auditor.py +++ b/gitgalaxy/metrics/statistical_auditor.py @@ -15,7 +15,6 @@ # galaxyscope:ignore sec_high_risk_execution, sec_hardcoded_secrets, sec_io import logging -import math import statistics from typing import Any, Optional @@ -41,6 +40,13 @@ class StatisticalAuditor: 1. Heuristic Consensus: Resolves ambiguous file extensions (.h, .m) based on repo-wide trends. 2. Polyglot Baseline Defense: Bypasses strict statistical checks for heavily blended files. 3. Noise Rejection: Outliers are stripped of logic claims and moved to the exclusion queue. + + NOTE: the per-language outlier loop only runs when `lang_defs` is supplied (it needs + each language's rule set to tell a genuinely-inert data format apart from real code). + The orchestrator MUST pass it (#2325 -- it previously did not, so every language hit + the inert bypass and the MAD / density floors never fired). A former "Low-Sample + Threshold Guard" that reverted small-footprint languages to plaintext was removed with + the same fix; see the note in `audit()`. """ def __init__( @@ -108,10 +114,6 @@ def audit(self, parsed_files: list[dict[str, Any]]) -> tuple[list[dict[str, Any] self.logger.info(f"Scanning {len(parsed_files)} artifacts for structural anomalies and data dumps...") - total_files = max(len(parsed_files), 1) - orphan_threshold = max(3, int(math.log10(total_files) * 2)) - self.logger.debug(f"Dynamic Ecosystem Orphan Threshold set to: <= {orphan_threshold} files.") - verified_files, unparsable_files = [], [] # ====================================================================== @@ -303,31 +305,17 @@ def audit(self, parsed_files: list[dict[str, Any]]) -> tuple[list[dict[str, Any] self.logger.debug(f"[{lid}] Bypassed {len(group)} artifact(s) (Static Asset: 0 Active Signals).") continue - # ================================================================== - # GATE C: LOW-SAMPLE THRESHOLD GUARD - # ================================================================== - # If a language only has a tiny presence (<= orphan_threshold) in the repo... - if len(group) <= orphan_threshold: - # Require an absolute Tier 0 Convergent Lock for orphans to survive. - # If ALL files in this tiny group are Tier 1 or worse (> 0), banish them. - all_weak_claims = all( - artifact.get("telemetry", {}).get("identity_lock_tier", artifact.get("lock_tier", 4)) > 0 - for artifact in group - ) - - if all_weak_claims: - relegation_reason = ( - f"Statistically Insignificant Sample (Population {len(group)}). Reverting to plaintext." - ) - self.logger.warning(f"[{lid}] {relegation_reason}") - - for artifact in group: - # Strip the hallucination, keep the mass visible in the topological map - artifact["lang_id"] = "plaintext" - artifact["telemetry"]["identity_source_proof"] = "Low-Sample Guard Fallback" - artifact["equations"] = {} # Static assets have no logic equations - verified_files.append(artifact) - continue + # NOTE: a "Low-Sample Threshold Guard" (GATE C) used to sit here -- it reverted + # any language with <= orphan_threshold files to plaintext unless every file had + # a Tier-0 "Absolute Consensus" lock. Removed with #2325: this auditor never + # actually ran in production (it was constructed without `lang_defs`, so every + # group hit the inert bypass above), and the guard's core assumption is wrong -- + # a clean single-extension file (`foo.css`, `foo.kt`, `foo.nix`) locks at Tier 2 + # "Single Indicator (Ext)", never Tier 0, so turning the guard on would have + # erased ~13 legitimately-classified languages (css, kotlin, nix, objective-c, + # scheme, proto, tcl, yacc, ...) from any repo with a small footprint of them. + # Small-sample hallucination is already handled upstream by the Heuristic + # Extension Consensus triage and the Tier-4/undeterminable pre-filters. # ================================================================== # GATE D: STATISTICAL OUTLIER DETECTION (MAD & Density Floors) diff --git a/tests/golden_master_audit.json b/tests/golden_master_audit.json index 8b0696601..d4e73df15 100644 --- a/tests/golden_master_audit.json +++ b/tests/golden_master_audit.json @@ -12,8 +12,8 @@ }, "Target Root Name": "data", "Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data", - "Analysis ISO Timestamp": "2026-08-27T13:47:14.895369+00:00", - "Total Scan Duration": "34.22 seconds" + "Analysis ISO Timestamp": "2026-08-27T14:36:12.958883+00:00", + "Total Scan Duration": "34.2 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -25,11 +25,11 @@ "2. Global Ecosystem Summary": { "summary": { "total_files": 1104, - "verified_files": 938, - "total_loc": 603434, + "verified_files": 937, + "total_loc": 603294, "dominant_language": "c", "volatility_index": 0.0, - "Percent_Visible": 85.0 + "Percent_Visible": 84.9 }, "repo_macro_species": { "name": "Cluster 3", @@ -38,7 +38,7 @@ "raw_drift": 0.414 }, "unparsable_files": { - "ambig_file_count": 166, + "ambig_file_count": 167, "size_limit": 0, "binary": 0, "unparsable": 0, @@ -110,6 +110,10 @@ ".cff": { "Blocked (Unsupported Extension: '.cff')": 2 }, + ".js": { + "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1, + "Packed Payload Guard (Impossible Density: 3.32 hits/line)": 1 + }, ".am": { "Blocked (Unsupported Extension: '.am')": 2 }, @@ -138,9 +142,6 @@ ".html": { "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1 }, - ".js": { - "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1 - }, ".kts": { "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1 }, @@ -195,10 +196,10 @@ } }, "health": { - "avg_cognitive_load": 24.882, - "avg_safety_score": 38.809, - "avg_tech_debt": 24.93, - "avg_documentation": 21.537 + "avg_cognitive_load": 24.878, + "avg_safety_score": 38.851, + "avg_tech_debt": 24.941, + "avg_documentation": 21.454 }, "composition": { "xml": { @@ -352,9 +353,9 @@ "impact": 0.30000000000000004 }, "javascript": { - "files": 19, - "loc": 23453, - "impact": 18446.66 + "files": 18, + "loc": 23313, + "impact": 18289.86 }, "typescript": { "files": 24, @@ -470,7 +471,7 @@ "ecosystem_fingerprint": { "ml_clusters": { "Unclassified": { - "count": 868, + "count": 867, "pct": 92.5 } }, @@ -2482,21 +2483,21 @@ } }, "javascript/threejs": { - "file_count": 7, - "total_mass": 7872.3, + "file_count": 6, + "total_mass": 7715.5, "avg_exposures": { - "cognitive_load": 44.26, - "safety_score": 57.19, - "tech_debt": 38.36, - "verification": 68.9, - "api_exposure": 4.99, - "concurrency": 28.64, - "state_flux": 72.34, - "dead_code": 2.85, + "cognitive_load": 46.97, + "safety_score": 66.72, + "tech_debt": 42.36, + "verification": 80.0, + "api_exposure": 2.6, + "concurrency": 33.42, + "state_flux": 84.4, + "dead_code": 3.33, "spec_match": 100.0, "stability": 50.0, "churn": 0.0, - "documentation": 28.25, + "documentation": 16.29, "secrets_risk": 0.0 } }, @@ -3231,7 +3232,7 @@ "typosquat_hits": 8, "Global Architectural Fingerprint": { "Active Execution Logic (ML Clusters)": { - "Unclassified": "92.5% (868 files)" + "Unclassified": "92.5% (867 files)" }, "Static Assets (Static Categories)": { "Static: Literature & Documentation": "7.5% (70 files)" @@ -3249,7 +3250,7 @@ "Critical Targets": [] }, "Scope": { - "Artifacts Evaluated": 938, + "Artifacts Evaluated": 937, "Threat Signatures Monitored": 11, "Vulnerability Vectors Calculated": 1 }, @@ -3433,11 +3434,6 @@ }, "api_exposure": { "highest": [ - { - "name": "Nodes.js", - "path": "javascript/threejs/Nodes.js", - "value": 19.2884 - }, { "name": "server.h", "path": "lua/redis/server.h", @@ -3447,6 +3443,11 @@ "name": "api.ts", "path": "typescript/playwright/api.ts", "value": 17.8757 + }, + { + "name": "main.py", + "path": "python/fastapi/tests/main.py", + "value": 17.6488 } ], "lowest": [ @@ -5332,6 +5333,14 @@ "Size": "751 bytes", "Identity Confidence": "0.0%", "Discovery Proof": "Radar Scan" + }, + { + "Path": "javascript/threejs/Nodes.js", + "Forensic Category": "Excluded Artifact", + "Diagnostic Reason": "Packed Payload Guard (Impossible Density: 3.32 hits/line)", + "Size": "9925 bytes", + "Identity Confidence": "91.0%", + "Discovery Proof": "Single Indicator (Ext: .js)" } ], "6. Parsed Files (Scanned Artifacts)": { @@ -48742,9 +48751,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1533.23, + "X": 7203.98, "Y": -12.93, - "Z": 5506.98 + "Z": 1688.17 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -50196,9 +50205,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1515.55, + "X": 7221.67, "Y": 60.53, - "Z": 4975.37 + "Z": 1156.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -51069,9 +51078,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": -1135.66, + "X": 7601.55, "Y": 119.87, - "Z": 5372.91 + "Z": 1554.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -51226,9 +51235,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -1867.38, + "X": 6869.83, "Y": -100.48, - "Z": 5780.44 + "Z": 1961.63 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -59194,9 +59203,9 @@ "Identity Proof": "Absolute Consensus (Ext + Shebang)" }, "2. Topological Coordinates": { - "X": -1182.61, + "X": 7554.6, "Y": 56.54, - "Z": 6109.97 + "Z": 2291.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -59412,9 +59421,9 @@ "Identity Proof": "Single Indicator (Ext: .at)" }, "2. Topological Coordinates": { - "X": -2036.64, + "X": 6700.57, "Y": -122.56, - "Z": 5304.32 + "Z": 1485.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -70539,9 +70548,9 @@ "Identity Proof": "Metadata Anchor (README)" }, "2. Topological Coordinates": { - "X": 7693.3, + "X": 1272.38, "Y": -36.78, - "Z": 1379.97 + "Z": -4390.12 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -70696,9 +70705,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6646.05, + "X": 225.12, "Y": 8.53, - "Z": 1535.78 + "Z": -4234.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -70854,9 +70863,9 @@ "Identity Proof": "Single Indicator (Ext: .pm)" }, "2. Topological Coordinates": { - "X": 7231.32, + "X": 810.4, "Y": -1.39, - "Z": 1542.86 + "Z": -4227.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -72722,9 +72731,9 @@ "Identity Proof": "Metadata Anchor (Makefile.PL)" }, "2. Topological Coordinates": { - "X": 7481.06, + "X": 1060.13, "Y": 28.3, - "Z": 2130.31 + "Z": -3639.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -72882,9 +72891,9 @@ "Identity Proof": "Single Indicator (Ext: .pm)" }, "2. Topological Coordinates": { - "X": 7267.42, + "X": 846.5, "Y": -83.58, - "Z": 1133.64 + "Z": -4636.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -73156,9 +73165,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 6908.1, + "X": 487.17, "Y": 50.88, - "Z": 2054.97 + "Z": -3715.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -84850,9 +84859,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5203.35, + "X": -1102.14, "Y": 18.1, - "Z": -1368.14 + "Z": -2191.15 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -87508,9 +87517,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 6036.18, + "X": -269.31, "Y": 206.44, - "Z": -1810.51 + "Z": -2633.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -89132,9 +89141,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5841.24, + "X": -464.26, "Y": 110.24, - "Z": -1097.79 + "Z": -1920.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -92531,9 +92540,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 4998.65, + "X": -1306.84, "Y": 76.43, - "Z": -1468.65 + "Z": -2291.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -95442,9 +95451,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5595.84, + "X": -709.65, "Y": 179.03, - "Z": -1955.08 + "Z": -2778.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -98641,9 +98650,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5575.74, + "X": -729.76, "Y": 147.84, - "Z": -1559.64 + "Z": -2382.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -102900,9 +102909,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5333.92, + "X": -971.57, "Y": 21.69, - "Z": -911.51 + "Z": -1734.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -130078,9 +130087,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -4721.76, + "X": -1041.27, "Y": -131.97, - "Z": -1981.52 + "Z": 5218.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -130691,9 +130700,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -4921.13, + "X": -1240.64, "Y": -190.57, - "Z": -1285.79 + "Z": 5914.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -131453,9 +131462,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5495.56, + "X": -1815.07, "Y": -185.7, - "Z": -1282.7 + "Z": 5917.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -132349,9 +132358,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5197.38, + "X": -1516.89, "Y": -190.97, - "Z": -1843.22 + "Z": 5356.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -134490,9 +134499,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5173.48, + "X": -1492.99, "Y": -143.71, - "Z": -2250.99 + "Z": 4949.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -135211,9 +135220,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5803.23, + "X": -2122.74, "Y": -155.7, - "Z": -1631.98 + "Z": 5568.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -165618,46 +165627,201 @@ } } }, - "javascript/threejs": { - "Directory Group Magnitude": 7872.3, - "File Count": 7, + "python/fastapi/tests": { + "Directory Group Magnitude": 7729.24, + "File Count": 204, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "44.26%", - "Error & Exception Exposure": "57.19%", - "Tech Debt Exposure": "38.36%", - "Testing Exposure": "68.9%", - "API Exposure": "4.99%", - "Concurrency Exposure": "28.64%", - "State Flux Exposure": "72.34%", - "Commented Logic Exposure": "2.85%", - "Specification Exposure": "100.0%", + "Cognitive Load Exposure": "4.89%", + "Error & Exception Exposure": "10.96%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.6%", + "Concurrency Exposure": "23.96%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.31%", + "Specification Exposure": "98.59%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "28.25%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "Files": { - "javascript/threejs/BufferGeometry.js": { + "python/fastapi/tests/__init__.py": { "1. Artifact Identity": { - "Filename": "BufferGeometry.js", - "Path": "javascript/threejs/BufferGeometry.js", - "Language": "Javascript", + "Filename": "__init__.py", + "Path": "python/fastapi/tests/__init__.py", + "Language": "Python", "Architect": "Unknown Architect", - "Indentation Style": "Tabs", - "Parent Entity": "EventDispatcher", + "Indentation Style": "Neutral / No Indentation", "Doc Umbrella": 0.0, - "Alert": "TYPOSQUATTING THREAT: 'math/Vector2.js' mimics 'math/Vector3.js'", - "Folder Dominant Lang": "javascript", + "Folder Dominant Lang": "python", + "Lock Tier": 1.5, + "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" + }, + "2. Topological Coordinates": { + "X": 3175.53, + "Y": -11.84, + "Z": 2270.55 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 1, + "Coding LOC": 0, + "Documentation LOC": 0, + "Structural Magnitude": 10.52, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 2.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "0.0%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "6.67%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 0, + "Function Parameters": 0, + "Function/Method Declarations": 0, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 0, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 0, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 0, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 0, + "Design Camel Case": 0, + "Design Snake Case": 0, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 0, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 0, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [] + }, + "python/fastapi/tests/main.py": { + "1. Artifact Identity": { + "Filename": "main.py", + "Path": "python/fastapi/tests/main.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -1270.08, - "Y": -162.66, - "Z": -2376.39 + "X": 2540.68, + "Y": -49.92, + "Z": -485.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -165666,420 +165830,450 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1459, - "Coding LOC": 588, - "Documentation LOC": 377, - "Structural Magnitude": 616.46, - "Control Flow Ratio": "55.7%", + "Total LOC": 209, + "Coding LOC": 127, + "Documentation LOC": 0, + "Structural Magnitude": 173.44, + "Control Flow Ratio": "3.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.275 + "Raw Cognitive Density": 0.058 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "44.55%", - "Error & Exception Exposure": "90.35%", - "Tech Debt Exposure": "44.92%", - "Testing Exposure": "80.0%", - "API Exposure": "1.9%", + "Cognitive Load Exposure": "2.95%", + "Error & Exception Exposure": "55.34%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "17.65%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "100.0%", - "Commented Logic Exposure": "5.03%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "computeTangents", - "Structural Impact": 21.9, - "Lines of Code (LOC)": 158, - "Control Flow Branches": 13, - "Input Parameters": 0, - "Control Flow Ratio": "61.9%", - "Start Line": 822, - "End Line": 979 + "Function Name": "get_query_optional", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 151, + "End Line": 154 }, { - "Function Name": "computeBoundingSphere", - "Structural Impact": 20.6, - "Lines of Code (LOC)": 111, - "Control Flow Branches": 14, - "Input Parameters": 0, - "Control Flow Ratio": "70.0%", - "Start Line": 703, - "End Line": 813 + "Function Name": "get_query_type_optional", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 163, + "End Line": 166 }, { - "Function Name": "toJSON", - "Structural Impact": 19.4, - "Lines of Code (LOC)": 109, - "Control Flow Branches": 13, - "Input Parameters": 0, - "Control Flow Ratio": "76.5%", - "Start Line": 1212, - "End Line": 1320 + "Function Name": "get_query_param", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 175, + "End Line": 178 }, { - "Function Name": "copy", - "Structural Impact": 16.5, - "Lines of Code (LOC)": 104, - "Control Flow Branches": 7, + "Function Name": "get_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "70.0%", - "Start Line": 1339, - "End Line": 1442 + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "computeBoundingBox", - "Structural Impact": 16.4, - "Lines of Code (LOC)": 69, - "Control Flow Branches": 12, - "Input Parameters": 0, - "Control Flow Ratio": "85.7%", - "Start Line": 628, - "End Line": 696 + "Function Name": "get_str_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 }, { - "Function Name": "toNonIndexed", - "Structural Impact": 15.1, - "Lines of Code (LOC)": 101, - "Control Flow Branches": 9, - "Input Parameters": 0, - "Control Flow Ratio": "52.9%", - "Start Line": 1105, - "End Line": 1205 + "Function Name": "get_int_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 }, { - "Function Name": "setFromPoints", - "Structural Impact": 14.8, - "Lines of Code (LOC)": 41, - "Control Flow Branches": 8, + "Function Name": "get_float_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "72.7%", - "Start Line": 581, - "End Line": 621 + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 }, { - "Function Name": "computeVertexNormals", - "Structural Impact": 13.6, - "Lines of Code (LOC)": 91, - "Control Flow Branches": 8, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 987, - "End Line": 1077 + "Function Name": "get_bool_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 52 }, { - "Function Name": "applyMatrix4", - "Structural Impact": 10.9, - "Lines of Code (LOC)": 49, - "Control Flow Branches": 5, + "Function Name": "get_path_param_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "83.3%", - "Start Line": 363, - "End Line": 411 + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 }, { - "Function Name": "convertBufferAttribute", - "Structural Impact": 10.3, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 1107, - "End Line": 1139 + "Function Name": "get_path_param_min_length", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 62 }, { - "Function Name": "setIndex", - "Structural Impact": 6.4, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 3, + "Function Name": "get_path_param_max_length", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 217, - "End Line": 231 + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 67 }, { - "Function Name": "handleTriangle", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 872, - "End Line": 905 + "Function Name": "get_path_param_min_max_length", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 72 }, { - "Function Name": "handleVertex", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 1, + "Function Name": "get_path_param_gt", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 940, - "End Line": 960 + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 77 }, { - "Function Name": "normalizeNormals", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 1083, - "End Line": 1097 + "Function Name": "get_path_param_gt0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 81, + "End Line": 82 }, { - "Function Name": "addGroup", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_ge", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 322, - "End Line": 332 + "Start Line": 86, + "End Line": 87 }, { - "Function Name": "translate", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_lt", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 499, - "End Line": 509 + "Start Line": 91, + "End Line": 92 }, { - "Function Name": "scale", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_lt0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 521, - "End Line": 531 + "Start Line": 96, + "End Line": 97 }, { - "Function Name": "setIndirect", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 8, + "Function Name": "get_path_param_le", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 240, - "End Line": 247 + "Start Line": 101, + "End Line": 102 }, { - "Function Name": "setAttribute", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, + "Function Name": "get_path_param_lt_gt", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 280, - "End Line": 286 + "Start Line": 106, + "End Line": 107 }, { - "Function Name": "constructor", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 146, + "Function Name": "get_path_param_le_ge", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 198 + "Start Line": 111, + "End Line": 112 }, { - "Function Name": "setDrawRange", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "get_path_param_lt_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 350, - "End Line": 355 + "Start Line": 116, + "End Line": 117 }, { - "Function Name": "rotateX", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_gt_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 437, - "End Line": 447 + "Start Line": 121, + "End Line": 122 }, { - "Function Name": "rotateY", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_le_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 457, - "End Line": 467 + "Start Line": 126, + "End Line": 127 }, { - "Function Name": "rotateZ", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_ge_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 477, - "End Line": 487 + "Start Line": 131, + "End Line": 132 }, { - "Function Name": "lookAt", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_lt_gt_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 541, - "End Line": 551 + "Start Line": 136, + "End Line": 137 }, { - "Function Name": "applyQuaternion", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, + "Function Name": "get_path_param_le_ge_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 419, - "End Line": 427 + "Start Line": 141, + "End Line": 142 }, { - "Function Name": "deleteAttribute", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, + "Function Name": "get_query", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 294, - "End Line": 300 + "Start Line": 146, + "End Line": 147 }, { - "Function Name": "getAttribute", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_type", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 267, - "End Line": 271 + "Start Line": 158, + "End Line": 159 }, { - "Function Name": "hasAttribute", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_type_int_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 308, - "End Line": 312 + "Start Line": 170, + "End Line": 171 }, { - "Function Name": "center", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Function Name": "get_query_param_required", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 558, - "End Line": 568 + "Start Line": 182, + "End Line": 183 }, { - "Function Name": "getIndex", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_param_required_type", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 205, - "End Line": 209 + "Start Line": 187, + "End Line": 188 }, { - "Function Name": "getIndirect", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_type_frozenset", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 197, + "End Line": 198 + }, + { + "Function Name": "get_query_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 202, + "End Line": 203 + }, + { + "Function Name": "get_query_list_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 207, + "End Line": 208 + }, + { + "Function Name": "non_operation", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 258 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "clearGroups", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "non_decorated_route", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 337, - "End Line": 341 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "clone", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_text", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1327, - "End Line": 1331 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "dispose", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_enum_status_code", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1450, - "End Line": 1454 + "Start Line": 192, + "End Line": 193 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 93, - "Sequential Logic Declarations": 74, - "Function Parameters": 35, - "Function/Method Declarations": 35, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 28, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 82, + "Function Parameters": 38, + "Function/Method Declarations": 38, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 387, - "Commented-out Code (Dead Logic)": 1, - "Structured Documentation Blocks": 112, + "Exposed API / Public Exports": 111, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, "Unit Test Assertions": 0, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 37, + "Generic Type Abstractions": 6, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 2, - "Module Dependencies (Imports)": 11, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 40, + "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -166088,19 +166282,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 98, - "Resource Deallocation & Cleanup": 4, + "Immutable Data Declarations": 2, + "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 564, - "Structural Space Indentations": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 2, + "Serialization Parsing": 0, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -166110,16 +166304,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 136, - "Design Camel Case": 46, - "Design Snake Case": 89, - "Design Pascal Case": 0, + "Vectorized Math & Tensor Operations": 27, + "Core Var Decl": 24, + "Design Camel Case": 0, + "Design Snake Case": 22, + "Design Pascal Case": 2, "Design Upper Case": 0, - "Design Short Vars": 37, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 0, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -166129,10 +166323,10 @@ "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 1, + "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 1, + "Non-Standard Unicode / Homoglyphs": 0, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -166143,41 +166337,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 11, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 3, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "../math/Box3.js", - "../math/MathUtils.js", - "../math/Matrix3.js", - "../math/Matrix4.js", - "../math/Sphere.js", - "../math/Vector2.js", - "../math/Vector3.js", - "../utils.js", - "./BufferAttribute.js", - "./EventDispatcher.js", - "./Object3D.js" + "fastapi", + "http" ] }, - "javascript/threejs/Editor.js": { + "python/fastapi/tests/test_additional_properties.py": { "1. Artifact Identity": { - "Filename": "Editor.js", - "Path": "javascript/threejs/Editor.js", - "Language": "Javascript", + "Filename": "test_additional_properties.py", + "Path": "python/fastapi/tests/test_additional_properties.py", + "Language": "Python", "Architect": "Unknown Architect", - "Indentation Style": "Tabs", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", + "Folder Dominant Lang": "python", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -467.3, - "Y": -58.58, - "Z": -1837.0 + "X": 1411.85, + "Y": -199.34, + "Z": 1232.94 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -166186,490 +166372,497 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 820, - "Coding LOC": 458, - "Documentation LOC": 14, - "Structural Magnitude": 631.06, - "Control Flow Ratio": "54.8%", + "Total LOC": 115, + "Coding LOC": 103, + "Documentation LOC": 0, + "Structural Magnitude": 15.16, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.021 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "74.71%", - "Error & Exception Exposure": "96.41%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", - "Testing Exposure": "80.0%", - "API Exposure": "8.44%", - "Concurrency Exposure": "75.79%", - "State Flux Exposure": "100.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.54%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "34.08%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "addHelper", - "Structural Impact": 23.2, - "Lines of Code (LOC)": 85, - "Control Flow Branches": 18, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 88, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "78.3%", - "Start Line": 392, - "End Line": 476 - }, - { - "Function Name": "addObject", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 179, - "End Line": 207 - }, - { - "Function Name": "setObjectMaterial", - "Structural Impact": 8.7, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 540, - "End Line": 552 - }, - { - "Function Name": "fromJSON", - "Structural Impact": 7.4, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "37.5%", - "Start Line": 674, - "End Line": 707 - }, - { - "Function Name": "addMaterial", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 251, - "End Line": 269 - }, - { - "Function Name": "removeMaterial", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 291, - "End Line": 309 + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 114 }, { - "Function Name": "getMaterialById", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, + "Function Name": "foo", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "42.9%", - "Start Line": 331, - "End Line": 349 + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "toJSON", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 3, + "Function Name": "test_additional_properties_post", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 709, - "End Line": 748 - }, - { - "Function Name": "removeScript", - "Structural Impact": 5.9, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 510, - "End Line": 524 - }, - { - "Function Name": "getObjectMaterial", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 526, - "End Line": 538 - }, - { - "Function Name": "save", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 787, - "End Line": 799 - }, - { - "Function Name": "removeObject", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 216, - "End Line": 236 - }, - { - "Function Name": "addMaterialToRefCounter", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 271, - "End Line": 289 - }, - { - "Function Name": "removeMaterialFromRefCounter", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 311, - "End Line": 329 - }, - { - "Function Name": "setScene", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 147, - "End Line": 175 - }, - { - "Function Name": "addScript", - "Structural Impact": 4.1, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 496, - "End Line": 508 - }, - { - "Function Name": "removeHelper", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 478, - "End Line": 492 - }, - { - "Function Name": "selectByUuid", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 589, - "End Line": 603 - }, - { - "Function Name": "clear", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 44, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 627, - "End Line": 670 - }, - { - "Function Name": "addCamera", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 366, - "End Line": 376 - }, - { - "Function Name": "removeCamera", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 378, - "End Line": 388 - }, - { - "Function Name": "selectById", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 576, - "End Line": 587 - }, - { - "Function Name": "focus", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 611, - "End Line": 619 - }, - { - "Function Name": "setViewportCamera", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 554, - "End Line": 559 - }, - { - "Function Name": "Editor", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 129, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 15, - "End Line": 143 - }, - { - "Function Name": "updateMatrixWorld", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 415, - "End Line": 433 - }, - { - "Function Name": "nameObject", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 214 - }, - { - "Function Name": "setGeometryName", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 244, - "End Line": 249 - }, - { - "Function Name": "setMaterialName", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 351, - "End Line": 356 - }, - { - "Function Name": "execute", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 756, - "End Line": 760 - }, - { - "Function Name": "saveArrayBuffer", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 801, - "End Line": 805 - }, - { - "Function Name": "saveString", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 807, - "End Line": 811 - }, - { - "Function Name": "addGeometry", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 238, - "End Line": 242 - }, - { - "Function Name": "addTexture", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 358, - "End Line": 362 - }, - { - "Function Name": "setViewportShading", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 561, - "End Line": 566 - }, + "Start Line": 21, + "End Line": 24 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 31, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 92, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, + "Design Camel Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_additional_properties_bool.py": { + "1. Artifact Identity": { + "Filename": "test_additional_properties_bool.py", + "Path": "python/fastapi/tests/test_additional_properties_bool.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, FooBaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1938.11, + "Y": -188.72, + "Z": 1581.17 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 126, + "Coding LOC": 109, + "Documentation LOC": 0, + "Structural Magnitude": 19.48, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "39.74%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.59%", + "Concurrency Exposure": "22.39%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "select", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 87, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 570, - "End Line": 574 + "Start Line": 39, + "End Line": 125 }, { - "Function Name": "focusById", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "post", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 621, - "End Line": 625 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "objectByUuid", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_call_valid", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 750, - "End Line": 754 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "formatNumber", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_call_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 813, - "End Line": 817 - }, + "Start Line": 28, + "End Line": 30 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 34, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 3, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 95, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, + "Design Camel Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_additional_response_extra.py": { + "1. Artifact Identity": { + "Filename": "test_additional_response_extra.py", + "Path": "python/fastapi/tests/test_additional_response_extra.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1743.54, + "Y": -210.35, + "Z": -1728.1 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 53, + "Coding LOC": 39, + "Documentation LOC": 0, + "Structural Magnitude": 8.28, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.051 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "2.88%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "6.95%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "deselect", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 605, - "End Line": 609 + "Start Line": 30, + "End Line": 52 }, { - "Function Name": "undo", + "Function Name": "test_path_operation", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 762, - "End Line": 766 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "redo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_item", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 768, - "End Line": 772 + "Start Line": 13, + "End Line": 14 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 63, - "Sequential Logic Declarations": 52, - "Function Parameters": 46, - "Function/Method Declarations": 42, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 28, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 16, - "State Mutations / Variable Reassignments": 409, + "Exposed API / Public Exports": 3, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 18, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 41, - "Global State Dependencies": 1, - "Decorators and Annotations": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 7, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 74, + "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -166678,19 +166871,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 10, - "Resource Deallocation & Cleanup": 7, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 433, - "Structural Space Indentations": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 2, + "Serialization Parsing": 0, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -166700,16 +166893,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 43, - "Design Camel Case": 4, - "Design Snake Case": 37, - "Design Pascal Case": 1, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, + "Design Camel Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 4, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -166733,38 +166926,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "./Config.js", - "./History.js", - "./Loader.js", - "./Selector.js", - "./Storage.js", - "./Strings.js", - "three" + "fastapi", + "fastapi.testclient", + "inline_snapshot" ] }, - "javascript/threejs/GLTFLoader.js": { + "python/fastapi/tests/test_additional_responses_bad.py": { "1. Artifact Identity": { - "Filename": "GLTFLoader.js", - "Path": "javascript/threejs/GLTFLoader.js", - "Language": "Javascript", - "Architect": "GLTFExporter", - "Indentation Style": "Tabs", - "Parent Entity": "Loader, Interpolant, GLTFCubicSplineInterpolant", + "Filename": "test_additional_responses_bad.py", + "Path": "python/fastapi/tests/test_additional_responses_bad.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", + "Folder Dominant Lang": "python", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -803.55, - "Y": -74.07, - "Z": -2260.84 + "X": 4641.35, + "Y": 155.59, + "Z": 1304.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -166773,3582 +166961,306 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 4861, - "Coding LOC": 2413, - "Documentation LOC": 613, - "Structural Magnitude": 3082.26, - "Control Flow Ratio": "66.1%", + "Total LOC": 41, + "Coding LOC": 30, + "Documentation LOC": 2, + "Structural Magnitude": 6.8, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.53 + "Raw Cognitive Density": 0.2 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "47.88%", - "Error & Exception Exposure": "75.38%", - "Tech Debt Exposure": "46.56%", - "Testing Exposure": "80.0%", - "API Exposure": "1.63%", - "Concurrency Exposure": "100.0%", - "State Flux Exposure": "100.0%", - "Commented Logic Exposure": "4.91%", + "Cognitive Load Exposure": "4.99%", + "Error & Exception Exposure": "58.03%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "5.88%", + "Concurrency Exposure": "40.48%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "parse", - "Structural Impact": 77.7, - "Lines of Code (LOC)": 122, - "Control Flow Branches": 31, - "Input Parameters": 4, - "Control Flow Ratio": "86.1%", - "Start Line": 429, - "End Line": 550 - }, - { - "Function Name": "_createAnimationTracks", - "Structural Impact": 71.3, - "Lines of Code (LOC)": 103, - "Control Flow Branches": 26, - "Input Parameters": 5, - "Control Flow Ratio": "89.7%", - "Start Line": 4514, - "End Line": 4616 - }, - { - "Function Name": "getDependency", - "Structural Impact": 67.4, - "Lines of Code (LOC)": 101, - "Control Flow Branches": 35, - "Input Parameters": 2, - "Control Flow Ratio": "79.5%", - "Start Line": 2872, - "End Line": 2972 - }, - { - "Function Name": "loadMaterial", - "Structural Impact": 50.1, - "Lines of Code (LOC)": 153, - "Control Flow Branches": 29, - "Input Parameters": 1, - "Control Flow Ratio": "85.3%", - "Start Line": 3542, - "End Line": 3694 - }, - { - "Function Name": "loadMesh", - "Structural Impact": 49.5, - "Lines of Code (LOC)": 142, - "Control Flow Branches": 29, - "Input Parameters": 1, - "Control Flow Ratio": "78.4%", - "Start Line": 3799, - "End Line": 3940 - }, - { - "Function Name": "addMorphTargets", - "Structural Impact": 48.0, - "Lines of Code (LOC)": 80, - "Control Flow Branches": 21, - "Input Parameters": 3, - "Control Flow Ratio": "72.4%", - "Start Line": 2333, - "End Line": 2412 - }, - { - "Function Name": "_loadNodeShallow", - "Structural Impact": 44.1, - "Lines of Code (LOC)": 146, - "Control Flow Branches": 25, - "Input Parameters": 1, - "Control Flow Ratio": "75.8%", - "Start Line": 4274, - "End Line": 4419 - }, - { - "Function Name": "createNodeMesh", - "Structural Impact": 40.9, - "Lines of Code (LOC)": 139, - "Control Flow Branches": 23, - "Input Parameters": 1, - "Control Flow Ratio": "69.7%", - "Start Line": 1691, - "End Line": 1829 - }, - { - "Function Name": "loadAccessor", - "Structural Impact": 39.2, - "Lines of Code (LOC)": 133, - "Control Flow Branches": 22, - "Input Parameters": 1, - "Control Flow Ratio": "78.6%", - "Start Line": 3071, - "End Line": 3203 - }, - { - "Function Name": "computeBounds", - "Structural Impact": 37.5, - "Lines of Code (LOC)": 109, - "Control Flow Branches": 15, - "Input Parameters": 3, - "Control Flow Ratio": "83.3%", - "Start Line": 4669, - "End Line": 4777 + "Function Name": "test_openapi_schema", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 38, + "End Line": 40 }, { - "Function Name": "loadTextureImage", - "Structural Impact": 36.6, - "Lines of Code (LOC)": 53, - "Control Flow Branches": 16, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 3233, - "End Line": 3285 - }, + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 9, + "End Line": 10 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 1, + "Sequential Logic Declarations": 8, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 1, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 2, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 20, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, + "Design Camel Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 1, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "pytest" + ] + }, + "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py": { + "1. Artifact Identity": { + "Filename": "test_additional_responses_custom_model_in_callback.py", + "Path": "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4112.95, + "Y": 142.25, + "Z": 1331.64 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 148, + "Coding LOC": 134, + "Documentation LOC": 0, + "Structural Magnitude": 17.08, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "48.2%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.16%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "_loadLight", - "Structural Impact": 31.7, - "Lines of Code (LOC)": 68, - "Control Flow Branches": 19, - "Input Parameters": 1, - "Control Flow Ratio": "82.6%", - "Start Line": 694, - "End Line": 761 + "Function Name": "test_openapi_schema", + "Structural Impact": 6.8, + "Lines of Code (LOC)": 116, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 147 }, { - "Function Name": "assignFinalMaterial", - "Structural Impact": 29.9, - "Lines of Code (LOC)": 89, - "Control Flow Branches": 17, + "Function Name": "main_route", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "77.3%", - "Start Line": 3439, - "End Line": 3527 - }, - { - "Function Name": "constructor", - "Structural Impact": 27.9, - "Lines of Code (LOC)": 74, - "Control Flow Branches": 13, - "Input Parameters": 2, - "Control Flow Ratio": "76.5%", - "Start Line": 2549, - "End Line": 2622 + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "load", - "Structural Impact": 23.9, - "Lines of Code (LOC)": 76, - "Control Flow Branches": 8, - "Input Parameters": 4, - "Control Flow Ratio": "88.9%", - "Start Line": 264, - "End Line": 339 - }, - { - "Function Name": "loadImageSource", - "Structural Impact": 23.5, - "Lines of Code (LOC)": 88, - "Control Flow Branches": 10, - "Input Parameters": 2, - "Control Flow Ratio": "52.6%", - "Start Line": 3287, - "End Line": 3374 - }, - { - "Function Name": "loadAnimation", - "Structural Impact": 22.9, - "Lines of Code (LOC)": 90, - "Control Flow Branches": 12, - "Input Parameters": 1, - "Control Flow Ratio": "70.6%", - "Start Line": 4059, - "End Line": 4148 - }, - { - "Function Name": "addPrimitiveAttributes", - "Structural Impact": 22.9, - "Lines of Code (LOC)": 59, - "Control Flow Branches": 9, - "Input Parameters": 3, - "Control Flow Ratio": "75.0%", - "Start Line": 4787, - "End Line": 4845 - }, - { - "Function Name": "loadBufferView", - "Structural Impact": 21.7, - "Lines of Code (LOC)": 67, - "Control Flow Branches": 12, - "Input Parameters": 1, - "Control Flow Ratio": "63.2%", - "Start Line": 1605, - "End Line": 1671 - }, - { - "Function Name": "loadScene", - "Structural Impact": 21.2, - "Lines of Code (LOC)": 85, - "Control Flow Branches": 11, - "Input Parameters": 1, - "Control Flow Ratio": "61.1%", - "Start Line": 4428, - "End Line": 4512 - }, - { - "Function Name": "assignTexture", - "Structural Impact": 20.0, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 7, - "Input Parameters": 4, - "Control Flow Ratio": "70.0%", - "Start Line": 3386, - "End Line": 3427 - }, - { - "Function Name": "extendTexture", - "Structural Impact": 19.5, - "Lines of Code (LOC)": 43, - "Control Flow Branches": 9, - "Input Parameters": 2, - "Control Flow Ratio": "81.8%", - "Start Line": 2005, - "End Line": 2047 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 18.2, - "Lines of Code (LOC)": 53, - "Control Flow Branches": 8, - "Input Parameters": 2, - "Control Flow Ratio": "80.0%", - "Start Line": 1019, - "End Line": 1071 - }, - { - "Function Name": "decodePrimitive", - "Structural Impact": 16.8, - "Lines of Code (LOC)": 58, - "Control Flow Branches": 7, - "Input Parameters": 2, - "Control Flow Ratio": "77.8%", - "Start Line": 1929, - "End Line": 1986 - }, - { - "Function Name": "loadNode", - "Structural Impact": 16.7, - "Lines of Code (LOC)": 79, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "57.1%", - "Start Line": 4192, - "End Line": 4270 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 16.3, - "Lines of Code (LOC)": 49, - "Control Flow Branches": 7, - "Input Parameters": 2, - "Control Flow Ratio": "77.8%", - "Start Line": 905, - "End Line": 953 - }, - { - "Function Name": "getImageURIMimeType", - "Structural Impact": 16.0, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 10, - "Input Parameters": 1, - "Control Flow Ratio": "71.4%", - "Start Line": 2533, - "End Line": 2541 - }, - { - "Function Name": "constructor", - "Structural Impact": 15.8, - "Lines of Code (LOC)": 62, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "88.9%", - "Start Line": 1840, - "End Line": 1901 - }, - { - "Function Name": "updateMorphTargets", - "Structural Impact": 15.8, - "Lines of Code (LOC)": 38, - "Control Flow Branches": 7, - "Input Parameters": 2, - "Control Flow Ratio": "77.8%", - "Start Line": 2420, - "End Line": 2457 - }, - { - "Function Name": "parse", - "Structural Impact": 15.4, - "Lines of Code (LOC)": 66, - "Control Flow Branches": 6, - "Input Parameters": 2, - "Control Flow Ratio": "54.5%", - "Start Line": 2636, - "End Line": 2701 - }, - { - "Function Name": "loadSkin", - "Structural Impact": 14.5, - "Lines of Code (LOC)": 64, - "Control Flow Branches": 7, - "Input Parameters": 1, - "Control Flow Ratio": "63.6%", - "Start Line": 3987, - "End Line": 4050 - }, - { - "Function Name": "loadCamera", - "Structural Impact": 14.2, - "Lines of Code (LOC)": 30, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "72.7%", - "Start Line": 3949, - "End Line": 3978 - }, - { - "Function Name": "loadGeometries", - "Structural Impact": 12.9, - "Lines of Code (LOC)": 61, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "54.5%", - "Start Line": 3730, - "End Line": 3790 - }, - { - "Function Name": "_markDefs", - "Structural Impact": 12.5, - "Lines of Code (LOC)": 50, - "Control Flow Branches": 9, - "Input Parameters": 0, - "Control Flow Ratio": "75.0%", - "Start Line": 2708, - "End Line": 2757 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 12.4, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 5, - "Input Parameters": 2, - "Control Flow Ratio": "71.4%", - "Start Line": 1099, - "End Line": 1138 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 11.8, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 5, - "Input Parameters": 2, - "Control Flow Ratio": "71.4%", - "Start Line": 1308, - "End Line": 1335 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 5, - "Input Parameters": 2, - "Control Flow Ratio": "71.4%", - "Start Line": 1217, - "End Line": 1240 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 1458, - "End Line": 1491 - }, - { - "Function Name": "getNormalizedComponentScale", - "Structural Impact": 11.1, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "60.0%", - "Start Line": 2507, - "End Line": 2531 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 10.1, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "66.7%", - "Start Line": 1410, - "End Line": 1438 - }, - { - "Function Name": "createPrimitiveKey", - "Structural Impact": 10.0, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "62.5%", - "Start Line": 2459, - "End Line": 2489 - }, - { - "Function Name": "extendParams", - "Structural Impact": 9.6, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "75.0%", - "Start Line": 813, - "End Line": 843 - }, - { - "Function Name": "_getNodeRef", - "Structural Impact": 9.6, - "Lines of Code (LOC)": 32, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 2795, - "End Line": 2826 - }, - { - "Function Name": "reduceAssociations", - "Structural Impact": 8.9, - "Lines of Code (LOC)": 37, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 4476, - "End Line": 4512 - }, - { - "Function Name": "addUnknownExtensionsToUserData", - "Structural Impact": 8.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 2283, - "End Line": 2298 - }, - { - "Function Name": "createNodeMesh", - "Structural Impact": 8.8, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "44.4%", - "Start Line": 4150, - "End Line": 4183 - }, - { - "Function Name": "loadBuffer", - "Structural Impact": 8.6, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 3011, - "End Line": 3041 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 8.5, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "57.1%", - "Start Line": 1511, - "End Line": 1538 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 8.5, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "57.1%", - "Start Line": 1558, - "End Line": 1585 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 8.1, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 1167, - "End Line": 1189 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 7.9, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 1364, - "End Line": 1382 - }, - { - "Function Name": "assignExtrasToUserData", - "Structural Impact": 7.8, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 2306, - "End Line": 2322 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 7.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 1268, - "End Line": 1280 - }, - { - "Function Name": "constructor", - "Structural Impact": 7.4, - "Lines of Code (LOC)": 119, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 253 - }, - { - "Function Name": "_markDefs", - "Structural Impact": 7.0, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 5, - "Input Parameters": 0, - "Control Flow Ratio": "83.3%", - "Start Line": 673, - "End Line": 692 - }, - { - "Function Name": "getDependencies", - "Structural Impact": 6.8, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2981, - "End Line": 3002 - }, - { - "Function Name": "getMaterialExtension", - "Structural Impact": 6.7, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 614, - "End Line": 626 - }, - { - "Function Name": "createNodeAttachment", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 771, - "End Line": 788 - }, - { - "Function Name": "createUniqueName", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "60.0%", - "Start Line": 3703, - "End Line": 3719 - }, - { - "Function Name": "interpolate_", - "Structural Impact": 6.4, - "Lines of Code (LOC)": 39, - "Control Flow Branches": 1, - "Input Parameters": 4, - "Control Flow Ratio": "33.3%", - "Start Line": 2102, - "End Line": 2140 - }, - { - "Function Name": "updateMappings", - "Structural Impact": 6.4, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 2803, - "End Line": 2826 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 5.9, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 863, - "End Line": 877 - }, - { - "Function Name": "_addNodeRef", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "66.7%", - "Start Line": 2772, - "End Line": 2784 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 981, - "End Line": 991 - }, - { - "Function Name": "_getArrayFromAccessor", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 4618, - "End Line": 4639 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 3212, - "End Line": 3231 - }, - { - "Function Name": "_invokeAll", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2845, - "End Line": 2862 - }, - { - "Function Name": "_onError", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 295, - "End Line": 310 - }, - { - "Function Name": "_invokeOne", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 2828, - "End Line": 2843 - }, - { - "Function Name": "loadBufferView", - "Structural Impact": 4.9, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 3050, - "End Line": 3062 - }, - { - "Function Name": "collectMorphTargets", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 4521, - "End Line": 4529 - }, - { - "Function Name": "constructor", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 1914, - "End Line": 1927 - }, - { - "Function Name": "getDependency", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "33.3%", - "Start Line": 763, - "End Line": 769 - }, - { - "Function Name": "copySampleValue_", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 2082, - "End Line": 2100 - }, - { - "Function Name": "createDefaultMaterial", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2263, - "End Line": 2281 - }, - { - "Function Name": "_createCubicSplineTrackInterpolant", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 4641, - "End Line": 4658 - }, - { - "Function Name": "createAttributesKey", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 2491, - "End Line": 2505 - }, - { - "Function Name": "register", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 391, - "End Line": 401 - }, - { - "Function Name": "unregister", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 409, - "End Line": 419 - }, - { - "Function Name": "InterpolantFactoryMethodGLTFCubicSpline", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 4643, - "End Line": 4653 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 897, - "End Line": 903 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 973, - "End Line": 979 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1011, - "End Line": 1017 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1091, - "End Line": 1097 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1159, - "End Line": 1165 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1209, - "End Line": 1215 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1260, - "End Line": 1266 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1300, - "End Line": 1306 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1356, - "End Line": 1362 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1402, - "End Line": 1408 - }, - { - "Function Name": "GLTFRegistry", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 576, - "End Line": 608 - }, - { - "Function Name": "interpolate_", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 2148, - "End Line": 2156 - }, - { - "Function Name": "constructor", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 2076, - "End Line": 2080 - }, - { - "Function Name": "parseAsync", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 560, - "End Line": 570 - }, - { - "Function Name": "assignAttributeAccessor", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 4793, - "End Line": 4802 - }, - { - "Function Name": "add", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 588, - "End Line": 592 - }, - { - "Function Name": "constructor", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 1598, - "End Line": 1603 - }, - { - "Function Name": "createDracoPrimitive", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3736, - "End Line": 3746 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 663, - "End Line": 671 - }, - { - "Function Name": "onLoad", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3331, - "End Line": 3338 - }, - { - "Function Name": "setDRACOLoader", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 348, - "End Line": 353 - }, - { - "Function Name": "setKTX2Loader", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 362, - "End Line": 367 - }, - { - "Function Name": "setMeshoptDecoder", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 376, - "End Line": 381 - }, - { - "Function Name": "get", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 582, - "End Line": 586 - }, - { - "Function Name": "remove", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 594, - "End Line": 598 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 856, - "End Line": 861 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 890, - "End Line": 895 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 966, - "End Line": 971 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1004, - "End Line": 1009 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1084, - "End Line": 1089 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1152, - "End Line": 1157 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1202, - "End Line": 1207 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1253, - "End Line": 1258 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1293, - "End Line": 1298 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1349, - "End Line": 1354 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1395, - "End Line": 1400 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1451, - "End Line": 1456 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1504, - "End Line": 1509 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1551, - "End Line": 1556 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1684, - "End Line": 1689 - }, - { - "Function Name": "setExtensions", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2624, - "End Line": 2628 - }, - { - "Function Name": "setPlugins", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2630, - "End Line": 2634 - }, - { - "Function Name": "removeAll", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 600, - "End Line": 604 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 801, - "End Line": 805 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 807, - "End Line": 811 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1999, - "End Line": 2003 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2060, - "End Line": 2064 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3529, - "End Line": 3533 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 614, - "Sequential Logic Declarations": 315, - "Function Parameters": 207, - "Function/Method Declarations": 129, - "Class/Entity Declarations": 26, - "Defensive Programming Constructs": 247, - "Type/Safety Bypasses": 3, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 13, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 1186, - "Commented-out Code (Dead Logic)": 2, - "Structured Documentation Blocks": 150, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 415, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 86, - "Global State Dependencies": 5, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 3, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 3, - "Authorship Metadata": 1, - "Planned Work (TODOs)": 3, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 49, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 122, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 11, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 14, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 4, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 418, - "Resource Deallocation & Cleanup": 2, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 2300, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 3, - "Regex Execution": 8, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 546, - "Design Camel Case": 199, - "Design Snake Case": 323, - "Design Pascal Case": 8, - "Design Upper Case": 14, - "Design Short Vars": 51, - "Design Long Vars": 3, - "Duplicate Logic": 12, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "../utils/BufferGeometryUtils.js", - "../utils/SkeletonUtils.js", - "three", - "three/addons/loaders/GLTFLoader.js" - ] - }, - "javascript/threejs/Matrix4.js": { - "1. Artifact Identity": { - "Filename": "Matrix4.js", - "Path": "javascript/threejs/Matrix4.js", - "Language": "Javascript", - "Architect": "Unknown Architect", - "Indentation Style": "Tabs", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -265.36, - "Y": -30.17, - "Z": -2774.58 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 1315, - "Coding LOC": 597, - "Documentation LOC": 376, - "Structural Magnitude": 292.94, - "Control Flow Ratio": "44.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.515 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "14.03%", - "Error & Exception Exposure": "51.2%", - "Tech Debt Exposure": "89.15%", - "Testing Exposure": "80.0%", - "API Exposure": "1.93%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "54.96%", - "Commented Logic Exposure": "5.06%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "makePerspective", - "Structural Impact": 23.2, - "Lines of Code (LOC)": 45, - "Control Flow Branches": 6, - "Input Parameters": 8, - "Control Flow Ratio": "75.0%", - "Start Line": 1122, - "End Line": 1166 - }, - { - "Function Name": "makeOrthographic", - "Structural Impact": 23.2, - "Lines of Code (LOC)": 45, - "Control Flow Branches": 6, - "Input Parameters": 8, - "Control Flow Ratio": "75.0%", - "Start Line": 1182, - "End Line": 1226 - }, - { - "Function Name": "makeRotationFromEuler", - "Structural Impact": 23.0, - "Lines of Code (LOC)": 121, - "Control Flow Branches": 11, - "Input Parameters": 1, - "Control Flow Ratio": "91.7%", - "Start Line": 338, - "End Line": 458 - }, - { - "Function Name": "lookAt", - "Structural Impact": 12.3, - "Lines of Code (LOC)": 46, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 483, - "End Line": 528 - }, - { - "Function Name": "constructor", - "Structural Impact": 9.4, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 1, - "Input Parameters": 16, - "Control Flow Ratio": "100.0%", - "Start Line": 79, - "End Line": 101 - }, - { - "Function Name": "decompose", - "Structural Impact": 8.7, - "Lines of Code (LOC)": 54, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "40.0%", - "Start Line": 1053, - "End Line": 1106 - }, - { - "Function Name": "makeTranslation", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "66.7%", - "Start Line": 810, - "End Line": 838 - }, - { - "Function Name": "setPosition", - "Structural Impact": 7.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "66.7%", - "Start Line": 683, - "End Line": 703 - }, - { - "Function Name": "extractBasis", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "33.3%", - "Start Line": 239, - "End Line": 257 - }, - { - "Function Name": "equals", - "Structural Impact": 4.9, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 1234, - "End Line": 1247 - }, - { - "Function Name": "set", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 16, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 136 - }, - { - "Function Name": "extractRotation", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 38, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 289, - "End Line": 326 - }, - { - "Function Name": "invert", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 52, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 712, - "End Line": 763 - }, - { - "Function Name": "fromArray", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "33.3%", - "Start Line": 1256, - "End Line": 1266 - }, - { - "Function Name": "compose", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 35, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 1004, - "End Line": 1038 - }, - { - "Function Name": "multiplyMatrices", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 39, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 562, - "End Line": 600 - }, - { - "Function Name": "makeShear", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 6, - "Control Flow Ratio": "0.0%", - "Start Line": 980, - "End Line": 993 - }, - { - "Function Name": "toArray", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 1276, - "End Line": 1302 - }, - { - "Function Name": "makeRotationAxis", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 923, - "End Line": 944 - }, - { - "Function Name": "makeScale", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 954, - "End Line": 967 - }, - { - "Function Name": "makeBasis", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 267, - "End Line": 278 - }, - { - "Function Name": "setFromMatrix3", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 214, - "End Line": 229 - }, - { - "Function Name": "makeRotationX", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 847, - "End Line": 862 - }, - { - "Function Name": "makeRotationY", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 871, - "End Line": 886 - }, - { - "Function Name": "makeRotationZ", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 895, - "End Line": 910 - }, - { - "Function Name": "copy", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 175, - "End Line": 187 - }, - { - "Function Name": "scale", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 771, - "End Line": 783 - }, - { - "Function Name": "copyPosition", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 196, - "End Line": 206 - }, - { - "Function Name": "multiplyScalar", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 608, - "End Line": 619 - }, - { - "Function Name": "determinant", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 628, - "End Line": 650 - }, - { - "Function Name": "transpose", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 657, - "End Line": 672 - }, - { - "Function Name": "identity", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 143, - "End Line": 156 - }, - { - "Function Name": "makeRotationFromQuaternion", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 468, - "End Line": 472 - }, - { - "Function Name": "multiply", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 536, - "End Line": 540 - }, - { - "Function Name": "premultiply", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 548, - "End Line": 552 - }, - { - "Function Name": "getMaxScaleOnAxis", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 790, - "End Line": 800 - }, - { - "Function Name": "clone", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 163, - "End Line": 167 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 40, - "Sequential Logic Declarations": 51, - "Function Parameters": 37, - "Function/Method Declarations": 37, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 19, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 86, - "Commented-out Code (Dead Logic)": 1, - "Structured Documentation Blocks": 178, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 2, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 10, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 2, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 98, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 582, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 140, - "Design Camel Case": 12, - "Design Snake Case": 128, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 89, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 27, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 1, - "Commented-Out Executable Logic": 1, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "../constants.js", - "./Vector3.js" - ] - }, - "javascript/threejs/Nodes.js": { - "1. Artifact Identity": { - "Filename": "Nodes.js", - "Path": "javascript/threejs/Nodes.js", - "Language": "Javascript", - "Architect": "Unknown Architect", - "Indentation Style": "Neutral / No Indentation", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -943.1, - "Y": -90.14, - "Z": -1961.62 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 167, - "Coding LOC": 140, - "Documentation LOC": 13, - "Structural Magnitude": 156.8, - "Control Flow Ratio": "49.5%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.514 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "28.03%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "14.36%", - "Testing Exposure": "2.3%", - "API Exposure": "19.29%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "100.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 137, - "Sequential Logic Declarations": 140, - "Function Parameters": 0, - "Function/Method Declarations": 0, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 139, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 139, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 1, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 0, - "Design Camel Case": 0, - "Design Snake Case": 0, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 0, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 139, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "./accessors/BatchNode.js", - "./accessors/BufferAttributeNode.js", - "./accessors/BufferNode.js", - "./accessors/BuiltinNode.js", - "./accessors/ClippingNode.js", - "./accessors/CubeTextureNode.js", - "./accessors/InstanceNode.js", - "./accessors/InstancedMeshNode.js", - "./accessors/MaterialNode.js", - "./accessors/MaterialReferenceNode.js", - "./accessors/ModelNode.js", - "./accessors/MorphNode.js", - "./accessors/Object3DNode.js", - "./accessors/PointUVNode.js", - "./accessors/ReferenceBaseNode.js", - "./accessors/ReferenceNode.js", - "./accessors/RendererReferenceNode.js", - "./accessors/SkinningNode.js", - "./accessors/StorageBufferNode.js", - "./accessors/StorageTextureNode.js", - "./accessors/Texture3DNode.js", - "./accessors/TextureNode.js", - "./accessors/TextureSizeNode.js", - "./accessors/UniformArrayNode.js", - "./accessors/UserDataNode.js", - "./accessors/VelocityNode.js", - "./accessors/VertexColorNode.js", - "./code/CodeNode.js", - "./code/ExpressionNode.js", - "./code/FunctionCallNode.js", - "./code/FunctionNode.js", - "./core/ArrayNode.js", - "./core/AssignNode.js", - "./core/AttributeNode.js", - "./core/BypassNode.js", - "./core/ConstNode.js", - "./core/ContextNode.js", - "./core/IndexNode.js", - "./core/InputNode.js", - "./core/InspectorNode.js", - "./core/IsolateNode.js", - "./core/LightingModel.js", - "./core/MRTNode.js", - "./core/Node.js", - "./core/NodeAttribute.js", - "./core/NodeBuilder.js", - "./core/NodeCache.js", - "./core/NodeCode.js", - "./core/NodeError.js", - "./core/NodeFrame.js", - "./core/NodeFunctionInput.js", - "./core/NodeUniform.js", - "./core/NodeUtils.js", - "./core/NodeVar.js", - "./core/NodeVarying.js", - "./core/OutputStructNode.js", - "./core/ParameterNode.js", - "./core/PropertyNode.js", - "./core/StackNode.js", - "./core/StackTrace.js", - "./core/StructNode.js", - "./core/StructTypeNode.js", - "./core/SubBuildNode.js", - "./core/TempNode.js", - "./core/UniformGroupNode.js", - "./core/UniformNode.js", - "./core/VarNode.js", - "./core/VaryingNode.js", - "./core/constants.js", - "./display/BumpMapNode.js", - "./display/ColorSpaceNode.js", - "./display/FrontFacingNode.js", - "./display/NormalMapNode.js", - "./display/PassNode.js", - "./display/RenderOutputNode.js", - "./display/ScreenNode.js", - "./display/ToneMappingNode.js", - "./display/ToonOutlinePassNode.js", - "./display/ViewportDepthNode.js", - "./display/ViewportDepthTextureNode.js", - "./display/ViewportSharedTextureNode.js", - "./display/ViewportTextureNode.js", - "./functions/PhongLightingModel.js", - "./functions/PhysicalLightingModel.js", - "./geometry/RangeNode.js", - "./gpgpu/AtomicFunctionNode.js", - "./gpgpu/BarrierNode.js", - "./gpgpu/ComputeBuiltinNode.js", - "./gpgpu/ComputeNode.js", - "./gpgpu/SubgroupFunctionNode.js", - "./gpgpu/WorkgroupInfoNode.js", - "./lighting/AONode.js", - "./lighting/AmbientLightNode.js", - "./lighting/AnalyticLightNode.js", - "./lighting/BasicEnvironmentNode.js", - "./lighting/BasicLightMapNode.js", - "./lighting/DirectionalLightNode.js", - "./lighting/EnvironmentNode.js", - "./lighting/HemisphereLightNode.js", - "./lighting/IESSpotLightNode.js", - "./lighting/IrradianceNode.js", - "./lighting/LightProbeNode.js", - "./lighting/LightingContextNode.js", - "./lighting/LightingNode.js", - "./lighting/LightsNode.js", - "./lighting/PointLightNode.js", - "./lighting/PointShadowNode.js", - "./lighting/ProjectorLightNode.js", - "./lighting/RectAreaLightNode.js", - "./lighting/ShadowBaseNode.js", - "./lighting/ShadowNode.js", - "./lighting/SpotLightNode.js", - "./math/BitcastNode.js", - "./math/BitcountNode.js", - "./math/ConditionalNode.js", - "./math/MathNode.js", - "./math/OperatorNode.js", - "./math/PackFloatNode.js", - "./math/UnpackFloatNode.js", - "./parsers/GLSLNodeParser.js", - "./pmrem/PMREMNode.js", - "./utils/ArrayElementNode.js", - "./utils/ConvertNode.js", - "./utils/CubeMapNode.js", - "./utils/DebugNode.js", - "./utils/EventNode.js", - "./utils/FlipNode.js", - "./utils/FunctionOverloadingNode.js", - "./utils/JoinNode.js", - "./utils/LoopNode.js", - "./utils/MaxMipLevelNode.js", - "./utils/MemberNode.js", - "./utils/RTTNode.js", - "./utils/ReflectorNode.js", - "./utils/RotateNode.js", - "./utils/SampleNode.js", - "./utils/SetNode.js", - "./utils/SplitNode.js", - "./utils/StorageArrayElementNode.js" - ] - }, - "javascript/threejs/WebGLProgram.js": { - "1. Artifact Identity": { - "Filename": "WebGLProgram.js", - "Path": "javascript/threejs/WebGLProgram.js", - "Language": "Javascript", - "Architect": "Unknown Architect", - "Indentation Style": "Tabs", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -715.52, - "Y": -88.2, - "Z": -2775.6 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 1029, - "Coding LOC": 621, - "Documentation LOC": 30, - "Structural Magnitude": 684.02, - "Control Flow Ratio": "77.6%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.857 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "60.53%", - "Error & Exception Exposure": "47.87%", - "Tech Debt Exposure": "21.55%", - "Testing Exposure": "80.0%", - "API Exposure": "0.01%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "53.38%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "15.98%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "WebGLProgram", - "Structural Impact": 455.6, - "Lines of Code (LOC)": 615, - "Control Flow Branches": 189, - "Input Parameters": 4, - "Control Flow Ratio": "93.6%", - "Start Line": 412, - "End Line": 1026 - }, - { - "Function Name": "onFirstUse", - "Structural Impact": 24.5, - "Lines of Code (LOC)": 94, - "Control Flow Branches": 13, - "Input Parameters": 1, - "Control Flow Ratio": "86.7%", - "Start Line": 856, - "End Line": 949 - }, - { - "Function Name": "getShaderErrors", - "Structural Impact": 13.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 5, - "Input Parameters": 3, - "Control Flow Ratio": "62.5%", - "Start Line": 58, - "End Line": 82 - }, - { - "Function Name": "generatePrecision", - "Structural Impact": 10.4, - "Lines of Code (LOC)": 38, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "71.4%", - "Start Line": 306, - "End Line": 343 - }, - { - "Function Name": "fetchAttributeLocations", - "Structural Impact": 10.1, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "57.1%", - "Start Line": 178, - "End Line": 206 - }, - { - "Function Name": "getEncodingComponents", - "Structural Impact": 8.1, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 36, - "End Line": 56 - }, - { - "Function Name": "includeReplacer", - "Structural Impact": 8.1, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 253, - "End Line": 276 - }, - { - "Function Name": "generateDefines", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 160, - "End Line": 176 - }, - { - "Function Name": "handleSource", - "Structural Impact": 6.1, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 15, - "End Line": 32 - }, - { - "Function Name": "loopReplacer", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 4, - "Control Flow Ratio": "25.0%", - "Start Line": 288, - "End Line": 302 - }, - { - "Function Name": "generateVertexExtensions", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 149, - "End Line": 158 - }, - { - "Function Name": "generateEnvMapTypeDefine", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 362, - "End Line": 368 - }, - { - "Function Name": "generateEnvMapModeDefine", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 374, - "End Line": 380 - }, - { - "Function Name": "generateEnvMapBlendingDefine", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 388, - "End Line": 394 - }, - { - "Function Name": "getToneMappingFunction", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 110, - "End Line": 123 - }, - { - "Function Name": "generateCubeUVSize", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 396, - "End Line": 410 - }, - { - "Function Name": "generateShadowMapTypeDefine", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 350, - "End Line": 354 - }, - { - "Function Name": "replaceLightNums", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 214, - "End Line": 231 - }, - { - "Function Name": "getUniforms", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 955, - "End Line": 966 - }, - { - "Function Name": "getAttributes", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 972, - "End Line": 983 - }, - { - "Function Name": "getTexelEncodingFunction", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 98 - }, - { - "Function Name": "isReady", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 990, - "End Line": 1000 - }, - { - "Function Name": "replaceClippingPlaneNums", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 233, - "End Line": 239 - }, - { - "Function Name": "getLuminanceFunction", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 127, - "End Line": 147 - }, - { - "Function Name": "filterEmptyLine", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 208, - "End Line": 212 - }, - { - "Function Name": "resolveIncludes", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 245, - "End Line": 249 - }, - { - "Function Name": "unrollLoops", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 282, - "End Line": 286 - }, - { - "Function Name": "destroy", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1004, - "End Line": 1011 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 229, - "Sequential Logic Declarations": 66, - "Function Parameters": 29, - "Function/Method Declarations": 28, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 38, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 70, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 4, - "Global State Dependencies": 3, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 6, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 8, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 1, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 1, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 5, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 1, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 65, - "Resource Deallocation & Cleanup": 1, - "Private / Encapsulated Scopes": 204, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 549, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 18, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 98, - "Design Camel Case": 64, - "Design Snake Case": 33, - "Design Pascal Case": 0, - "Design Upper Case": 1, - "Design Short Vars": 9, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 4, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 8, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "../../constants.js", - "../../math/ColorManagement.js", - "../../math/Matrix3.js", - "../../math/Vector3.js", - "../../utils.js", - "../shaders/ShaderChunk.js", - "./WebGLShader.js", - "./WebGLUniforms.js" - ] - }, - "javascript/threejs/WebGLRenderer.js": { - "1. Artifact Identity": { - "Filename": "WebGLRenderer.js", - "Path": "javascript/threejs/WebGLRenderer.js", - "Language": "Javascript", - "Architect": "the renderer", - "Indentation Style": "Tabs", - "Doc Umbrella": 0.0, - "Alert": "TYPOSQUATTING THREAT: 'math/Vector4.js' mimics 'math/Vector3.js'", - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -1103.93, - "Y": -96.13, - "Z": -2179.36 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 3639, - "Coding LOC": 1628, - "Documentation LOC": 734, - "Structural Magnitude": 2408.76, - "Control Flow Ratio": "77.2%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.1 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "40.12%", - "Error & Exception Exposure": "39.1%", - "Tech Debt Exposure": "52.0%", - "Testing Exposure": "80.0%", - "API Exposure": "1.69%", - "Concurrency Exposure": "24.71%", - "State Flux Exposure": "98.04%", - "Commented Logic Exposure": "4.97%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "constructor", - "Structural Impact": 642.0, - "Lines of Code (LOC)": 2545, - "Control Flow Branches": 363, - "Input Parameters": 1, - "Control Flow Ratio": "80.5%", - "Start Line": 70, - "End Line": 2614 - }, - { - "Function Name": "setProgram", - "Structural Impact": 374.1, - "Lines of Code (LOC)": 428, - "Control Flow Branches": 143, - "Input Parameters": 5, - "Control Flow Ratio": "94.7%", - "Start Line": 2295, - "End Line": 2722 - }, - { - "Function Name": "copyTextureToTexture", - "Structural Impact": 141.4, - "Lines of Code (LOC)": 235, - "Control Flow Branches": 48, - "Input Parameters": 6, - "Control Flow Ratio": "90.6%", - "Start Line": 3205, - "End Line": 3439 - }, - { - "Function Name": "renderBufferDirect", - "Structural Impact": 108.5, - "Lines of Code (LOC)": 159, - "Control Flow Branches": 37, - "Input Parameters": 6, - "Control Flow Ratio": "78.7%", - "Start Line": 1175, - "End Line": 1333 - }, - { - "Function Name": "render", - "Structural Impact": 94.2, - "Lines of Code (LOC)": 221, - "Control Flow Branches": 47, - "Input Parameters": 2, - "Control Flow Ratio": "92.2%", - "Start Line": 1600, - "End Line": 1820 - }, - { - "Function Name": "projectObject", - "Structural Impact": 81.7, - "Lines of Code (LOC)": 113, - "Control Flow Branches": 33, - "Input Parameters": 4, - "Control Flow Ratio": "91.7%", - "Start Line": 1822, - "End Line": 1934 - }, - { - "Function Name": "setRenderTarget", - "Structural Impact": 80.4, - "Lines of Code (LOC)": 168, - "Control Flow Branches": 35, - "Input Parameters": 3, - "Control Flow Ratio": "87.5%", - "Start Line": 2823, - "End Line": 2990 - }, - { - "Function Name": "getProgram", - "Structural Impact": 51.8, - "Lines of Code (LOC)": 116, - "Control Flow Branches": 22, - "Input Parameters": 3, - "Control Flow Ratio": "84.6%", - "Start Line": 2142, - "End Line": 2257 - }, - { - "Function Name": "readRenderTargetPixels", - "Structural Impact": 51.2, - "Lines of Code (LOC)": 65, - "Control Flow Branches": 15, - "Input Parameters": 8, - "Control Flow Ratio": "78.9%", - "Start Line": 3004, - "End Line": 3068 - }, - { - "Function Name": "readRenderTargetPixelsAsync", - "Structural Impact": 48.9, - "Lines of Code (LOC)": 78, - "Control Flow Branches": 14, - "Input Parameters": 8, - "Control Flow Ratio": "82.4%", - "Start Line": 3086, - "End Line": 3163 - }, - { - "Function Name": "renderTransmissionPass", - "Structural Impact": 44.2, - "Lines of Code (LOC)": 123, - "Control Flow Branches": 16, - "Input Parameters": 4, - "Control Flow Ratio": "84.2%", - "Start Line": 1960, - "End Line": 2082 - }, - { - "Function Name": "compile", - "Structural Impact": 38.6, - "Lines of Code (LOC)": 92, - "Control Flow Branches": 16, - "Input Parameters": 3, - "Control Flow Ratio": "84.2%", - "Start Line": 1371, - "End Line": 1462 - }, - { - "Function Name": "clear", - "Structural Impact": 23.8, - "Lines of Code (LOC)": 75, - "Control Flow Branches": 9, - "Input Parameters": 3, - "Control Flow Ratio": "81.8%", - "Start Line": 944, - "End Line": 1018 - }, - { - "Function Name": "renderObject", - "Structural Impact": 14.7, - "Lines of Code (LOC)": 30, - "Control Flow Branches": 4, - "Input Parameters": 6, - "Control Flow Ratio": "100.0%", - "Start Line": 2111, - "End Line": 2140 - }, - { - "Function Name": "renderScene", - "Structural Impact": 14.6, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 5, - "Input Parameters": 4, - "Control Flow Ratio": "100.0%", - "Start Line": 1936, - "End Line": 1958 - }, - { - "Function Name": "renderObjects", - "Structural Impact": 13.3, - "Lines of Code (LOC)": 26, - "Control Flow Branches": 5, - "Input Parameters": 3, - "Control Flow Ratio": "71.4%", - "Start Line": 2084, - "End Line": 2109 - }, - { - "Function Name": "compileAsync", - "Structural Impact": 12.9, - "Lines of Code (LOC)": 59, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 1478, - "End Line": 1536 - }, - { - "Function Name": "initTexture", - "Structural Impact": 12.5, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 7, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 3464, - "End Line": 3486 - }, - { - "Function Name": "setSize", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 650, - "End Line": 680 - }, - { - "Function Name": "setEffects", - "Structural Impact": 11.2, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 726, - "End Line": 752 - }, - { - "Function Name": "prepareMaterial", - "Structural Impact": 11.1, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 1337, - "End Line": 1357 - }, - { - "Function Name": "materialNeedsLights", - "Structural Impact": 10.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "85.7%", - "Start Line": 2742, - "End Line": 2748 - }, - { - "Function Name": "setViewport", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 4, - "Control Flow Ratio": "100.0%", - "Start Line": 787, - "End Line": 801 - }, - { - "Function Name": "setScissor", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 4, - "Control Flow Ratio": "100.0%", - "Start Line": 824, - "End Line": 838 - }, - { - "Function Name": "setRenderTargetTextures", - "Structural Impact": 7.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 2784, - "End Line": 2802 - }, - { - "Function Name": "copyFramebufferToTexture", - "Structural Impact": 6.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 3172, - "End Line": 3187 - }, - { - "Function Name": "releaseMaterialProgramReferences", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 1151, - "End Line": 1171 - }, - { - "Function Name": "initGLContext", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 116, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 423, - "End Line": 538 - }, - { - "Function Name": "checkMaterialsReady", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 30, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 1487, - "End Line": 1516 - }, - { - "Function Name": "getUniformList", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2259, - "End Line": 2270 - }, - { - "Function Name": "setPixelRatio", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 619, - "End Line": 627 - }, - { - "Function Name": "initRenderTarget", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 3448, - "End Line": 3456 - }, - { - "Function Name": "setAnimationLoop", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 1572, - "End Line": 1579 - }, - { - "Function Name": "onAnimationFrame", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 1542, - "End Line": 1546 - }, - { - "Function Name": "updateCommonMaterialProperties", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 2272, - "End Line": 2293 - }, - { - "Function Name": "setDrawingBufferSize", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 707, - "End Line": 719 - }, - { - "Function Name": "markUniformsLightsNeedsUpdate", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 2726, - "End Line": 2740 - }, - { - "Function Name": "forceContextLoss", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 586, - "End Line": 591 - }, - { - "Function Name": "forceContextRestore", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 596, - "End Line": 601 - }, - { - "Function Name": "getTargetPixelRatio", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 349, - "End Line": 353 - }, - { - "Function Name": "setRenderTargetFramebuffer", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 2804, - "End Line": 2810 - }, - { - "Function Name": "getContext", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 359, - "End Line": 363 - }, - { - "Function Name": "onContextLost", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1092, - "End Line": 1100 - }, - { - "Function Name": "onMaterialDispose", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1130, - "End Line": 1138 - }, - { - "Function Name": "outputColorSpace", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3539, - "End Line": 3547 - }, - { - "Function Name": "deallocateMaterial", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1142, - "End Line": 1148 - }, - { - "Function Name": "getSize", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 635, - "End Line": 639 - }, - { - "Function Name": "getDrawingBufferSize", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 688, - "End Line": 692 - }, - { - "Function Name": "getCurrentViewport", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 760, - "End Line": 764 - }, - { - "Function Name": "getViewport", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 772, - "End Line": 776 - }, - { - "Function Name": "getScissor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 809, - "End Line": 813 - }, - { - "Function Name": "setScissorTest", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 858, - "End Line": 862 - }, - { - "Function Name": "setOpaqueSort", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 870, - "End Line": 874 - }, - { - "Function Name": "setTransparentSort", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 882, - "End Line": 886 - }, - { - "Function Name": "getClearColor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 896, - "End Line": 900 - }, - { - "Function Name": "setNodesHandler", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1054, - "End Line": 1059 - }, - { - "Function Name": "onContextCreationError", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1124, - "End Line": 1128 - }, - { - "Function Name": "dispose", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1065, - "End Line": 1088 - }, - { - "Function Name": "onContextRestore", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1102, - "End Line": 1122 - }, - { - "Function Name": "resetState", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3493, - "End Line": 3502 - }, - { - "Function Name": "getContext", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 566, - "End Line": 570 - }, - { - "Function Name": "getContextAttributes", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 577, - "End Line": 581 - }, - { - "Function Name": "getPixelRatio", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 608, - "End Line": 612 - }, - { - "Function Name": "getScissorTest", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 845, - "End Line": 849 - }, - { - "Function Name": "setClearColor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 908, - "End Line": 912 - }, - { - "Function Name": "getClearAlpha", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 919, - "End Line": 923 - }, - { - "Function Name": "setClearAlpha", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 930, - "End Line": 934 - }, - { - "Function Name": "clearColor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1023, - "End Line": 1027 - }, - { - "Function Name": "clearDepth", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1032, - "End Line": 1036 - }, - { - "Function Name": "clearStencil", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1041, - "End Line": 1045 - }, - { - "Function Name": "onXRSessionStart", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1548, - "End Line": 1552 - }, - { - "Function Name": "onXRSessionEnd", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1554, - "End Line": 1558 - }, - { - "Function Name": "getActiveCubeFace", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2755, - "End Line": 2759 - }, - { - "Function Name": "getActiveMipmapLevel", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2766, - "End Line": 2770 - }, - { - "Function Name": "getRenderTarget", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2778, - "End Line": 2782 - }, - { - "Function Name": "coordinateSystem", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3521, - "End Line": 3525 - }, - { - "Function Name": "outputColorSpace", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "callback_route", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 3533, - "End Line": 3537 + "Start Line": 20, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 515, - "Sequential Logic Declarations": 152, - "Function Parameters": 83, - "Function/Method Declarations": 77, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 32, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 204, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 338, - "Commented-out Code (Dead Logic)": 2, - "Structured Documentation Blocks": 198, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 15, - "UI / View Layer Components": 3, - "Closures and Anonymous Functions": 54, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 2, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 37, - "Authorship Metadata": 2, - "Planned Work (TODOs)": 1, + "Module Dependencies (Imports)": 5, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, - "Dependency Injection Constructs": 2, + "Server-Side Rendering Contexts": 2, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 49, + "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 9, - "Thread Sleeps & Blocking Waits": 2, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 172, - "Resource Deallocation & Cleanup": 20, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 6, + "Event Listeners & Subscribers": 2, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 1587, - "Structural Space Indentations": 0, - "Hardware Bridge": 26, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 119, + "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 2, + "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, @@ -170356,16 +167268,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 391, - "Design Camel Case": 195, - "Design Snake Case": 141, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 6, "Design Pascal Case": 0, - "Design Upper Case": 2, - "Design Short Vars": 21, - "Design Long Vars": 6, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 27, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -170378,7 +167290,7 @@ "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 1, + "Non-Standard Unicode / Homoglyphs": 0, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -170389,91 +167301,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 37, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "../constants.js", - "../math/Color.js", - "../math/ColorManagement.js", - "../math/Frustum.js", - "../math/Matrix4.js", - "../math/Vector3.js", - "../math/Vector4.js", - "../utils.js", - "./WebGLRenderTarget.js", - "./shaders/DFGLUTData.js", - "./webgl/WebGLAnimation.js", - "./webgl/WebGLAttributes.js", - "./webgl/WebGLBackground.js", - "./webgl/WebGLBindingStates.js", - "./webgl/WebGLBufferRenderer.js", - "./webgl/WebGLCapabilities.js", - "./webgl/WebGLClipping.js", - "./webgl/WebGLEnvironments.js", - "./webgl/WebGLExtensions.js", - "./webgl/WebGLGeometries.js", - "./webgl/WebGLIndexedBufferRenderer.js", - "./webgl/WebGLInfo.js", - "./webgl/WebGLMaterials.js", - "./webgl/WebGLMorphtargets.js", - "./webgl/WebGLObjects.js", - "./webgl/WebGLOutput.js", - "./webgl/WebGLPrograms.js", - "./webgl/WebGLProperties.js", - "./webgl/WebGLRenderLists.js", - "./webgl/WebGLRenderStates.js", - "./webgl/WebGLShadowMap.js", - "./webgl/WebGLState.js", - "./webgl/WebGLTextures.js", - "./webgl/WebGLUniforms.js", - "./webgl/WebGLUniformsGroups.js", - "./webgl/WebGLUtils.js", - "./webxr/WebXRManager.js" + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "starlette.responses" ] - } - } - }, - "python/fastapi/tests": { - "Directory Group Magnitude": 7729.24, - "File Count": 204, - "Ecosystem Fingerprint (Archetypes)": { - "Unclassified": "100.0%" - }, - "Average Risk Exposures": { - "Cognitive Load Exposure": "4.89%", - "Error & Exception Exposure": "10.96%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.6%", - "Concurrency Exposure": "23.96%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.31%", - "Specification Exposure": "98.59%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "Files": { - "python/fastapi/tests/__init__.py": { + }, + "python/fastapi/tests/test_additional_responses_custom_validationerror.py": { "1. Artifact Identity": { - "Filename": "__init__.py", - "Path": "python/fastapi/tests/__init__.py", + "Filename": "test_additional_responses_custom_validationerror.py", + "Path": "python/fastapi/tests/test_additional_responses_custom_validationerror.py", "Language": "Python", "Architect": "Unknown Architect", - "Indentation Style": "Neutral / No Indentation", + "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", - "Lock Tier": 1.5, - "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3175.53, - "Y": -11.84, - "Z": 2270.55 + "X": 2712.02, + "Y": -33.61, + "Z": 2084.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -170482,64 +167339,85 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1, - "Coding LOC": 0, + "Total LOC": 101, + "Coding LOC": 87, "Documentation LOC": 0, - "Structural Magnitude": 10.52, + "Structural Magnitude": 13.54, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 2.0 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "41.94%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "0.0%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.75%", + "Concurrency Exposure": "24.5%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "6.67%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, - "5. Function Analysis": [], + "5. Function Analysis": [ + { + "Function Name": "test_openapi_schema", + "Structural Impact": 4.3, + "Lines of Code (LOC)": 66, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 100 + }, + { + "Function Name": "a", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + } + ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 0, - "Function Parameters": 0, - "Function/Method Declarations": 0, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 23, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 0, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 0, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -170559,7 +167437,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 0, + "Structural Space Indentations": 73, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -170575,16 +167453,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 0, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -170608,17 +167486,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 0, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, - "9. Extracted Dependencies": [] + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.responses", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] }, - "python/fastapi/tests/main.py": { + "python/fastapi/tests/test_additional_responses_default_validationerror.py": { "1. Artifact Identity": { - "Filename": "main.py", - "Path": "python/fastapi/tests/main.py", + "Filename": "test_additional_responses_default_validationerror.py", + "Path": "python/fastapi/tests/test_additional_responses_default_validationerror.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -170628,9 +167512,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2540.68, - "Y": -49.92, - "Z": -485.34 + "X": 4725.31, + "Y": 161.51, + "Z": 1142.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -170639,24 +167523,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 209, - "Coding LOC": 127, + "Total LOC": 92, + "Coding LOC": 84, "Documentation LOC": 0, - "Structural Magnitude": 173.44, - "Control Flow Ratio": "3.5%", + "Structural Magnitude": 10.98, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.058 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.95%", - "Error & Exception Exposure": "55.34%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "48.99%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "17.65%", - "Concurrency Exposure": "0.0%", + "API Exposure": "4.85%", + "Concurrency Exposure": "24.86%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -170667,417 +167551,250 @@ }, "5. Function Analysis": [ { - "Function Name": "get_query_optional", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 151, - "End Line": 154 - }, - { - "Function Name": "get_query_type_optional", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 163, - "End Line": 166 - }, - { - "Function Name": "get_query_param", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 175, - "End Line": 178 - }, - { - "Function Name": "get_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 - }, - { - "Function Name": "get_str_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "get_int_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 - }, - { - "Function Name": "get_float_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 - }, - { - "Function Name": "get_bool_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 52 - }, - { - "Function Name": "get_path_param_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 57 - }, - { - "Function Name": "get_path_param_min_length", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 62 - }, - { - "Function Name": "get_path_param_max_length", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 67 - }, - { - "Function Name": "get_path_param_min_max_length", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 72 - }, - { - "Function Name": "get_path_param_gt", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 77 - }, - { - "Function Name": "get_path_param_gt0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 82 - }, - { - "Function Name": "get_path_param_ge", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 87 - }, - { - "Function Name": "get_path_param_lt", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 92 - }, - { - "Function Name": "get_path_param_lt0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 97 - }, - { - "Function Name": "get_path_param_le", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 101, - "End Line": 102 - }, - { - "Function Name": "get_path_param_lt_gt", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 107 - }, - { - "Function Name": "get_path_param_le_ge", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 112 - }, - { - "Function Name": "get_path_param_lt_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 117 - }, - { - "Function Name": "get_path_param_gt_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 121, - "End Line": 122 - }, - { - "Function Name": "get_path_param_le_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 127 - }, - { - "Function Name": "get_path_param_ge_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 131, - "End Line": 132 - }, - { - "Function Name": "get_path_param_lt_gt_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 136, - "End Line": 137 - }, - { - "Function Name": "get_path_param_le_ge_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 141, - "End Line": 142 - }, - { - "Function Name": "get_query", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 146, - "End Line": 147 - }, - { - "Function Name": "get_query_type", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 159 - }, - { - "Function Name": "get_query_type_int_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 170, - "End Line": 171 - }, - { - "Function Name": "get_query_param_required", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 183 - }, - { - "Function Name": "get_query_param_required_type", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 188 - }, - { - "Function Name": "get_query_type_frozenset", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 197, - "End Line": 198 - }, - { - "Function Name": "get_query_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 76, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 202, - "End Line": 203 + "Start Line": 16, + "End Line": 91 }, { - "Function Name": "get_query_list_default", + "Function Name": "a", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 207, - "End Line": 208 - }, - { - "Function Name": "non_operation", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, + "Start Line": 9, + "End Line": 10 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 1, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 2, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 76, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 3, + "Design Camel Case": 0, + "Design Snake Case": 3, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 1, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot" + ] + }, + "python/fastapi/tests/test_additional_responses_response_class.py": { + "1. Artifact Identity": { + "Filename": "test_additional_responses_response_class.py", + "Path": "python/fastapi/tests/test_additional_responses_response_class.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse, BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1637.53, + "Y": -153.47, + "Z": 1242.05 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 118, + "Coding LOC": 102, + "Documentation LOC": 0, + "Structural Magnitude": 17.14, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "45.65%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.14%", + "Concurrency Exposure": "35.89%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "non_decorated_route", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.9, + "Lines of Code (LOC)": 78, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 40, + "End Line": 117 }, { - "Function Name": "get_text", + "Function Name": "a", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "get_enum_status_code", + "Function Name": "b", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 192, - "End Line": 193 + "Start Line": 33, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 82, - "Function Parameters": 38, - "Function/Method Declarations": 38, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 25, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 111, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 37, - "Generic Type Abstractions": 6, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -171091,13 +167808,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 2, + "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 86, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171113,16 +167830,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 27, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171146,20 +167863,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 3, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "http" + "fastapi.responses", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_additional_properties.py": { + "python/fastapi/tests/test_additional_responses_router.py": { "1. Artifact Identity": { - "Filename": "test_additional_properties.py", - "Path": "python/fastapi/tests/test_additional_properties.py", + "Filename": "test_additional_responses_router.py", + "Path": "python/fastapi/tests/test_additional_responses_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -171170,9 +167890,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1411.85, - "Y": -199.34, - "Z": 1232.94 + "X": 3572.1, + "Y": 27.29, + "Z": 986.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171181,24 +167901,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 103, + "Total LOC": 183, + "Coding LOC": 156, "Documentation LOC": 0, - "Structural Magnitude": 15.16, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 36.22, + "Control Flow Ratio": "19.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.204 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "5.05%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.54%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.2%", + "Concurrency Exposure": "48.2%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171210,57 +167930,117 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 88, + "Structural Impact": 9.9, + "Lines of Code (LOC)": 98, + "Control Flow Branches": 4, + "Input Parameters": 0, + "Control Flow Ratio": "44.4%", + "Start Line": 85, + "End Line": 182 + }, + { + "Function Name": "test_a", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 114 + "Start Line": 61, + "End Line": 64 }, { - "Function Name": "foo", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_b", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 67, + "End Line": 70 }, { - "Function Name": "test_additional_properties_post", + "Function Name": "test_c", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 73, + "End Line": 76 + }, + { + "Function Name": "test_d", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 82 + }, + { + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 28 + }, + { + "Function Name": "c", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 40 + }, + { + "Function Name": "d", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 52 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 34, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -171289,7 +168069,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 92, + "Structural Space Indentations": 131, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171306,15 +168086,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 12, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171350,23 +168130,23 @@ "pydantic" ] }, - "python/fastapi/tests/test_additional_properties_bool.py": { + "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py": { "1. Artifact Identity": { - "Filename": "test_additional_properties_bool.py", - "Path": "python/fastapi/tests/test_additional_properties_bool.py", + "Filename": "test_additional_responses_union_duplicate_anyof.py", + "Path": "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, FooBaseModel", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1938.11, - "Y": -188.72, - "Z": 1581.17 + "X": 1112.86, + "Y": -234.99, + "Z": -522.08 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171375,10 +168155,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 126, - "Coding LOC": 109, - "Documentation LOC": 0, - "Structural Magnitude": 19.48, + "Total LOC": 125, + "Coding LOC": 104, + "Documentation LOC": 5, + "Structural Magnitude": 18.28, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -171388,11 +168168,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "39.74%", + "Error & Exception Exposure": "45.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.59%", - "Concurrency Exposure": "22.39%", + "API Exposure": "8.6%", + "Concurrency Exposure": "35.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171404,66 +168184,56 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 87, + "Structural Impact": 5.0, + "Lines of Code (LOC)": 81, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 125 - }, - { - "Function Name": "post", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 44, + "End Line": 124 }, { - "Function Name": "test_call_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "route1", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 32, + "End Line": 33 }, { - "Function Name": "test_call_invalid", + "Function Name": "route2", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 30 + "Start Line": 37, + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 34, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Sequential Logic Declarations": 21, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, @@ -171493,7 +168263,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 95, + "Structural Space Indentations": 90, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171509,16 +168279,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171554,10 +168324,10 @@ "pydantic" ] }, - "python/fastapi/tests/test_additional_response_extra.py": { + "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py": { "1. Artifact Identity": { - "Filename": "test_additional_response_extra.py", - "Path": "python/fastapi/tests/test_additional_response_extra.py", + "Filename": "test_allow_inf_nan_in_enforcing.py", + "Path": "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -171567,9 +168337,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1743.54, - "Y": -210.35, - "Z": -1728.1 + "X": 1443.13, + "Y": -235.19, + "Z": 908.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171578,24 +168348,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 53, - "Coding LOC": 39, + "Total LOC": 85, + "Coding LOC": 70, "Documentation LOC": 0, - "Structural Magnitude": 8.28, + "Structural Magnitude": 18.6, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.051 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.88%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.95%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.74%", + "Concurrency Exposure": "26.94%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171606,62 +168376,82 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, + "Function Name": "get", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 4, "Control Flow Ratio": "0.0%", - "Start Line": 30, + "Start Line": 11, + "End Line": 17 + }, + { + "Function Name": "test_allow_inf_nan_param_true", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 36 + }, + { + "Function Name": "test_allow_inf_nan_param_false", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 50, "End Line": 52 }, { - "Function Name": "test_path_operation", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_allow_inf_nan_param_default", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 27 + "Start Line": 66, + "End Line": 68 }, { - "Function Name": "read_item", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_allow_inf_nan_body", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 82, + "End Line": 84 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 17, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -171686,7 +168476,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, + "Structural Space Indentations": 49, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171702,16 +168492,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 5, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171735,7 +168525,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -171743,13 +168533,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_bad.py": { + "python/fastapi/tests/test_ambiguous_params.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_bad.py", - "Path": "python/fastapi/tests/test_additional_responses_bad.py", + "Filename": "test_ambiguous_params.py", + "Path": "python/fastapi/tests/test_ambiguous_params.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -171759,9 +168550,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4641.35, - "Y": 155.59, - "Z": 1304.75 + "X": 3605.8, + "Y": 37.38, + "Z": 794.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171770,24 +168561,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 41, - "Coding LOC": 30, - "Documentation LOC": 2, - "Structural Magnitude": 6.8, - "Control Flow Ratio": "11.1%", + "Total LOC": 75, + "Coding LOC": 57, + "Documentation LOC": 0, + "Structural Magnitude": 47.84, + "Control Flow Ratio": "33.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.2 + "Raw Cognitive Density": 0.826 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.99%", - "Error & Exception Exposure": "58.03%", + "Cognitive Load Exposure": "28.75%", + "Error & Exception Exposure": "46.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.88%", - "Concurrency Exposure": "40.48%", + "API Exposure": "12.19%", + "Concurrency Exposure": "98.23%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171798,59 +168589,119 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "test_multiple_annotations", + "Structural Impact": 11.1, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 8, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", + "Control Flow Ratio": "36.4%", + "Start Line": 33, + "End Line": 74 + }, + { + "Function Name": "test_no_annotated_defaults", + "Structural Impact": 8.0, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 6, + "Input Parameters": 0, + "Control Flow Ratio": "54.5%", + "Start Line": 11, + "End Line": 30 + }, + { + "Function Name": "get_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 18 + }, + { + "Function Name": "get", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 30 + }, + { + "Function Name": "get", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 40 + "End Line": 39 }, { - "Function Name": "a", + "Function Name": "get2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 51 + }, + { + "Function Name": "get3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 62, + "End Line": 63 + }, + { + "Function Name": "dep", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 34, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 8, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 14, + "Sequential Logic Declarations": 28, + "Function Parameters": 8, + "Function/Method Declarations": 8, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 5, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 11, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 5, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 3, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 6, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -171868,7 +168719,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 20, + "Structural Space Indentations": 49, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171885,15 +168736,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171917,34 +168768,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.param_functions", "fastapi.testclient", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py": { + "python/fastapi/tests/test_annotated.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_custom_model_in_callback.py", - "Path": "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py", + "Filename": "test_annotated.py", + "Path": "python/fastapi/tests/test_annotated.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4112.95, - "Y": 142.25, - "Z": 1331.64 + "X": 3397.39, + "Y": 36.46, + "Z": -788.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171953,10 +168805,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 148, - "Coding LOC": 134, + "Total LOC": 299, + "Coding LOC": 267, "Documentation LOC": 0, - "Structural Magnitude": 17.08, + "Structural Magnitude": 53.44, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -171966,11 +168818,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "48.2%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.16%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.13%", + "Concurrency Exposure": "45.11%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171982,56 +168834,126 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 6.8, - "Lines of Code (LOC)": 116, + "Structural Impact": 9.9, + "Lines of Code (LOC)": 178, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 147 + "Start Line": 121, + "End Line": 298 }, { - "Function Name": "main_route", + "Function Name": "test_get", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 74 + }, + { + "Function Name": "test_multiple_path", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 100 + }, + { + "Function Name": "test_nested_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 103, + "End Line": 118 + }, + { + "Function Name": "default", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "callback_route", - "Structural Impact": 1.1, + "Function Name": "required", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 17, + "End Line": 18 + }, + { + "Function Name": "multiple", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "unrelated", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 28 + }, + { + "Function Name": "test", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 82, + "End Line": 83 + }, + { + "Function Name": "test", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 109, + "End Line": 110 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 32, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 56, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 15, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 20, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 8, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, @@ -172041,7 +168963,7 @@ "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -172058,10 +168980,10 @@ "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 2, + "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 119, + "Structural Space Indentations": 242, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172077,16 +168999,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 16, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 16, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Duplicate Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172119,27 +169041,26 @@ "fastapi", "fastapi.testclient", "inline_snapshot", - "pydantic", - "starlette.responses" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_custom_validationerror.py": { + "python/fastapi/tests/test_application.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_custom_validationerror.py", - "Path": "python/fastapi/tests/test_additional_responses_custom_validationerror.py", + "Filename": "test_application.py", + "Path": "python/fastapi/tests/test_application.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2712.02, - "Y": -33.61, - "Z": 2084.9 + "X": 1941.23, + "Y": -119.42, + "Z": -383.63 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172148,10 +169069,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 101, - "Coding LOC": 87, + "Total LOC": 1286, + "Coding LOC": 1271, "Documentation LOC": 0, - "Structural Magnitude": 13.54, + "Structural Magnitude": 66.12, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -172161,11 +169082,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "41.94%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.75%", - "Concurrency Exposure": "24.5%", + "API Exposure": "5.44%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -172177,56 +169098,96 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 66, + "Structural Impact": 27.5, + "Lines of Code (LOC)": 1231, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 55, + "End Line": 1285 + }, + { + "Function Name": "test_get_path", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 21 + }, + { + "Function Name": "test_swagger_ui", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 32 + }, + { + "Function Name": "test_swagger_ui_oauth2_redirect", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 35, - "End Line": 100 + "End Line": 39 }, { - "Function Name": "a", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_redoc", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 42, + "End Line": 46 + }, + { + "Function Name": "test_enum_status_code_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 52 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 1, + "Sequential Logic Declarations": 81, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 16, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 24, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -172240,13 +169201,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, + "Immutable Data Declarations": 1, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 73, + "Structural Space Indentations": 1258, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172262,16 +169223,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172279,7 +169240,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 1, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -172295,35 +169256,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.responses", + ".main", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pytest" ] }, - "python/fastapi/tests/test_additional_responses_default_validationerror.py": { + "python/fastapi/tests/test_arbitrary_types.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_default_validationerror.py", - "Path": "python/fastapi/tests/test_additional_responses_default_validationerror.py", + "Filename": "test_arbitrary_types.py", + "Path": "python/fastapi/tests/test_arbitrary_types.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4725.31, - "Y": 161.51, - "Z": 1142.62 + "X": 3928.9, + "Y": 83.99, + "Z": 1087.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172332,10 +169293,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 92, - "Coding LOC": 84, - "Documentation LOC": 0, - "Structural Magnitude": 10.98, + "Total LOC": 136, + "Coding LOC": 115, + "Documentation LOC": 1, + "Structural Magnitude": 29.2, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -172345,11 +169306,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "48.99%", + "Error & Exception Exposure": "28.22%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "4.85%", - "Concurrency Exposure": "24.86%", + "API Exposure": "8.12%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -172361,51 +169322,101 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 76, + "Structural Impact": 3.6, + "Lines of Code (LOC)": 44, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 92, + "End Line": 135 + }, + { + "Function Name": "test_typeadapter", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 42, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 91 + "Start Line": 48, + "End Line": 89 }, { - "Function Name": "a", + "Function Name": "get_client", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 10, + "End Line": 40 + }, + { + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 45 + }, + { + "Function Name": "__init__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 60 + }, + { + "Function Name": "test", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 1, + "Sequential Logic Declarations": 36, + "Function Parameters": 9, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 10, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 10, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Closures and Anonymous Functions": 2, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -172426,11 +169437,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 76, + "Structural Space Indentations": 105, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172446,16 +169457,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 3, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 3, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Duplicate Logic": 2, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172479,7 +169490,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -172487,26 +169498,28 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_response_class.py": { + "python/fastapi/tests/test_callable_endpoint.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_response_class.py", - "Path": "python/fastapi/tests/test_additional_responses_response_class.py", + "Filename": "test_callable_endpoint.py", + "Path": "python/fastapi/tests/test_callable_endpoint.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1637.53, - "Y": -153.47, - "Z": 1242.05 + "X": 2901.44, + "Y": 0.56, + "Z": 2385.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172515,27 +169528,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 118, - "Coding LOC": 102, + "Total LOC": 25, + "Coding LOC": 13, "Documentation LOC": 0, - "Structural Magnitude": 17.14, + "Structural Magnitude": 5.26, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.154 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "45.65%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.14%", - "Concurrency Exposure": "35.89%", + "API Exposure": "6.74%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "86.67%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -172543,67 +169556,57 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.9, - "Lines of Code (LOC)": 78, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 117 - }, - { - "Function Name": "a", - "Structural Impact": 1.1, + "Function Name": "main", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 7, + "End Line": 8 }, { - "Function Name": "b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_partial", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 21, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 10, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -172623,7 +169626,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 86, + "Structural Space Indentations": 4, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172639,11 +169642,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -172672,23 +169675,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "functools" ] }, - "python/fastapi/tests/test_additional_responses_router.py": { + "python/fastapi/tests/test_compat.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_router.py", - "Path": "python/fastapi/tests/test_additional_responses_router.py", + "Filename": "test_compat.py", + "Path": "python/fastapi/tests/test_compat.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -172699,9 +169700,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3572.1, - "Y": 27.29, - "Z": 986.12 + "X": 3629.62, + "Y": 69.34, + "Z": -1104.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172710,26 +169711,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 183, - "Coding LOC": 156, - "Documentation LOC": 0, - "Structural Magnitude": 36.22, - "Control Flow Ratio": "19.0%", + "Total LOC": 133, + "Coding LOC": 87, + "Documentation LOC": 13, + "Structural Magnitude": 39.54, + "Control Flow Ratio": "3.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.204 + "Raw Cognitive Density": 0.065 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.05%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "1.52%", + "Error & Exception Exposure": "4.12%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.2%", - "Concurrency Exposure": "48.2%", + "API Exposure": "7.72%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Commented Logic Exposure": "8.92%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -172738,124 +169739,144 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 9.9, - "Lines of Code (LOC)": 98, - "Control Flow Branches": 4, + "Function Name": "test_propagates_pydantic2_model_config", + "Structural Impact": 5.1, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "44.4%", - "Start Line": 85, - "End Line": 182 + "Control Flow Ratio": "14.3%", + "Start Line": 39, + "End Line": 80 }, { - "Function Name": "test_a", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "foo", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 58, + "End Line": 62 + }, + { + "Function Name": "test_complex", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 64 + "Start Line": 21, + "End Line": 36 }, { - "Function Name": "test_b", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_serialize_sequence_value_with_none_first_in_union", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 12, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 70 + "Start Line": 121, + "End Line": 132 }, { - "Function Name": "test_c", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "foo", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "test_d", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "__bool__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "test_model_field_default_required", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 82 + "Start Line": 12, + "End Line": 18 }, { - "Function Name": "a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_serialize_sequence_value_with_optional_list", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 99, + "End Line": 107 }, { - "Function Name": "b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_serialize_sequence_value_with_optional_list_pipe_union", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 + "Start Line": 110, + "End Line": 118 }, { - "Function Name": "c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_is_bytes_sequence_annotation_union", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 83, + "End Line": 88 }, { - "Function Name": "d", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_is_uploadfile_sequence_annotation", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 52 + "Start Line": 91, + "End Line": 96 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 34, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 56, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 23, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, + "Exposed API / Public Exports": 15, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 4, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 6, + "Unit Test Assertions": 25, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 10, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 11, "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Planned Work (TODOs)": 2, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, @@ -172874,11 +169895,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 7, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, + "Structural Space Indentations": 72, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172894,16 +169915,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 26, "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 0, + "Design Snake Case": 23, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172927,22 +169948,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi._compat", + "fastapi._compat.shared", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pydantic", + "pydantic.fields", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py": { + "python/fastapi/tests/test_computed_fields.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_union_duplicate_anyof.py", - "Path": "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py", + "Filename": "test_computed_fields.py", + "Path": "python/fastapi/tests/test_computed_fields.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -172953,9 +169977,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1112.86, - "Y": -234.99, - "Z": -522.08 + "X": 4409.22, + "Y": 159.02, + "Z": -165.71 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172964,10 +169988,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 125, - "Coding LOC": 104, - "Documentation LOC": 5, - "Structural Magnitude": 18.28, + "Total LOC": 109, + "Coding LOC": 96, + "Documentation LOC": 0, + "Structural Magnitude": 23.92, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -172977,11 +170001,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "45.31%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.6%", - "Concurrency Exposure": "35.44%", + "API Exposure": "9.8%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -172993,61 +170017,91 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 81, + "Structural Impact": 4.7, + "Lines of Code (LOC)": 65, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 44, - "End Line": 124 + "End Line": 108 }, { - "Function Name": "route1", + "Function Name": "get_client", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 32 + }, + { + "Function Name": "test_get", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 40 + }, + { + "Function Name": "area", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "route2", + "Function Name": "read_responses", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 + "Start Line": 28, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 28, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -173072,7 +170126,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 90, + "Structural Space Indentations": 85, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173088,16 +170142,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 7, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173121,7 +170175,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -173130,13 +170184,14 @@ "fastapi", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py": { + "python/fastapi/tests/test_custom_middleware_exception.py": { "1. Artifact Identity": { - "Filename": "test_allow_inf_nan_in_enforcing.py", - "Path": "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py", + "Filename": "test_custom_middleware_exception.py", + "Path": "python/fastapi/tests/test_custom_middleware_exception.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -173146,9 +170201,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1443.13, - "Y": -235.19, - "Z": 908.06 + "X": 2443.2, + "Y": -119.45, + "Z": 764.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173157,24 +170212,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 85, - "Coding LOC": 70, - "Documentation LOC": 0, - "Structural Magnitude": 18.6, - "Control Flow Ratio": "0.0%", + "Total LOC": 95, + "Coding LOC": 65, + "Documentation LOC": 5, + "Structural Magnitude": 58.9, + "Control Flow Ratio": "19.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.077 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "29.06%", + "Error & Exception Exposure": "40.43%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.74%", - "Concurrency Exposure": "26.94%", + "API Exposure": "7.09%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173185,88 +170240,108 @@ }, "5. Function Analysis": [ { - "Function Name": "get", - "Structural Impact": 2.6, + "Function Name": "__call__", + "Structural Impact": 7.1, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Control Flow Branches": 2, "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 17 + "Control Flow Ratio": "28.6%", + "Start Line": 47, + "End Line": 53 }, { - "Function Name": "test_allow_inf_nan_param_true", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Function Name": "receive_wrapper", + "Structural Impact": 6.3, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 2, "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 36 + "Control Flow Ratio": "20.0%", + "Start Line": 23, + "End Line": 45 }, { - "Function Name": "test_allow_inf_nan_param_false", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 52 + "Function Name": "test_custom_middleware_exception", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 68, + "End Line": 83 }, { - "Function Name": "test_allow_inf_nan_param_default", - "Structural Impact": 1.9, + "Function Name": "test_custom_middleware_exception_not_raised", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 86, + "End Line": 94 + }, + { + "Function Name": "inner", + "Structural Impact": 3.9, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 26, + "End Line": 43 + }, + { + "Function Name": "__init__", + "Structural Impact": 2.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 68 + "Start Line": 19, + "End Line": 21 }, { - "Function Name": "test_allow_inf_nan_body", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "run_middleware", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 84 + "Start Line": 57, + "End Line": 58 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 17, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 33, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 3, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 5, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 15, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 1, "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 3, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -173275,17 +170350,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 49, + "Structural Space Indentations": 51, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173301,16 +170376,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 5, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 16, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173341,27 +170416,28 @@ }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "pytest", - "typing" + "pathlib" ] }, - "python/fastapi/tests/test_ambiguous_params.py": { + "python/fastapi/tests/test_custom_route_class.py": { "1. Artifact Identity": { - "Filename": "test_ambiguous_params.py", - "Path": "python/fastapi/tests/test_ambiguous_params.py", + "Filename": "test_custom_route_class.py", + "Path": "python/fastapi/tests/test_custom_route_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "APIRoute", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3605.8, - "Y": 37.38, - "Z": 794.13 + "X": 3894.25, + "Y": 86.34, + "Z": 1094.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173370,24 +170446,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 75, - "Coding LOC": 57, + "Total LOC": 122, + "Coding LOC": 96, "Documentation LOC": 0, - "Structural Magnitude": 47.84, - "Control Flow Ratio": "33.3%", + "Structural Magnitude": 21.82, + "Control Flow Ratio": "3.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.826 + "Raw Cognitive Density": 0.266 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "28.75%", - "Error & Exception Exposure": "46.31%", + "Cognitive Load Exposure": "6.3%", + "Error & Exception Exposure": "20.5%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.19%", - "Concurrency Exposure": "98.23%", + "API Exposure": "9.57%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173398,119 +170474,99 @@ }, "5. Function Analysis": [ { - "Function Name": "test_multiple_annotations", - "Structural Impact": 11.1, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 8, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 47, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "36.4%", - "Start Line": 33, - "End Line": 74 + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 121 }, { - "Function Name": "test_no_annotated_defaults", - "Structural Impact": 8.0, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 6, + "Function Name": "test_route_classes", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "54.5%", - "Start Line": 11, - "End Line": 30 + "Control Flow Ratio": "16.7%", + "Start Line": 65, + "End Line": 72 }, { - "Function Name": "get_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_path", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 59, + "End Line": 62 }, { - "Function Name": "get", - "Structural Impact": 1.5, + "Function Name": "get_a", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 29, "End Line": 30 }, { - "Function Name": "get", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "get2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 - }, - { - "Function Name": "get3", - "Structural Impact": 1.5, + "Function Name": "get_b", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "dep", + "Function Name": "get_c", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 39, + "End Line": 40 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 14, - "Sequential Logic Declarations": 28, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 5, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 12, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 3, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 3, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 6, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -173528,7 +170584,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 49, + "Structural Space Indentations": 68, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173544,16 +170600,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 9, + "Design Snake Case": 11, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173577,35 +170633,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.param_functions", + "fastapi.routing", "fastapi.testclient", + "inline_snapshot", "pytest", - "typing" + "starlette.routing" ] }, - "python/fastapi/tests/test_annotated.py": { + "python/fastapi/tests/test_custom_schema_fields.py": { "1. Artifact Identity": { - "Filename": "test_annotated.py", - "Path": "python/fastapi/tests/test_annotated.py", + "Filename": "test_custom_schema_fields.py", + "Path": "python/fastapi/tests/test_custom_schema_fields.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3397.39, - "Y": 36.46, - "Z": -788.39 + "X": 4315.51, + "Y": 143.41, + "Z": 1589.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173614,24 +170672,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 299, - "Coding LOC": 267, - "Documentation LOC": 0, - "Structural Magnitude": 53.44, + "Total LOC": 63, + "Coding LOC": 45, + "Documentation LOC": 1, + "Structural Magnitude": 9.4, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.044 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.81%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.13%", - "Concurrency Exposure": "45.11%", + "API Exposure": "8.62%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173642,132 +170700,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 9.9, - "Lines of Code (LOC)": 178, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 121, - "End Line": 298 - }, - { - "Function Name": "test_get", - "Structural Impact": 2.2, + "Function Name": "test_custom_response_schema", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 74 - }, - { - "Function Name": "test_multiple_path", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 100 + "Start Line": 52, + "End Line": 55 }, { - "Function Name": "test_nested_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "test_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 118 - }, - { - "Function Name": "default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "required", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 - }, - { - "Function Name": "multiple", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 - }, - { - "Function Name": "unrelated", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 - }, - { - "Function Name": "test", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 83 + "Start Line": 58, + "End Line": 62 }, { - "Function Name": "test", - "Structural Impact": 1.5, + "Function Name": "foo", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 109, - "End Line": 110 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 56, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 15, + "Sequential Logic Declarations": 21, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 20, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -173792,7 +170780,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 242, + "Structural Space Indentations": 32, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173808,16 +170796,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 16, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 16, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 4, + "Duplicate Logic": 0, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173841,7 +170829,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -173849,15 +170837,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pytest", + "pydantic", "typing" ] }, - "python/fastapi/tests/test_application.py": { + "python/fastapi/tests/test_custom_swagger_ui_redirect.py": { "1. Artifact Identity": { - "Filename": "test_application.py", - "Path": "python/fastapi/tests/test_application.py", + "Filename": "test_custom_swagger_ui_redirect.py", + "Path": "python/fastapi/tests/test_custom_swagger_ui_redirect.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -173867,9 +170854,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1941.23, - "Y": -119.42, - "Z": -383.63 + "X": 4758.61, + "Y": 196.88, + "Z": -686.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173878,24 +170865,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1286, - "Coding LOC": 1271, + "Total LOC": 39, + "Coding LOC": 26, "Documentation LOC": 0, - "Structural Magnitude": 66.12, + "Structural Magnitude": 11.42, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.192 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "4.85%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.44%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.71%", + "Concurrency Exposure": "43.26%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173905,35 +170892,15 @@ "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ - { - "Function Name": "test_openapi_schema", - "Structural Impact": 27.5, - "Lines of Code (LOC)": 1231, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 1285 - }, - { - "Function Name": "test_get_path", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 21 - }, { "Function Name": "test_swagger_ui", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 32 + "Start Line": 17, + "End Line": 26 }, { "Function Name": "test_swagger_ui_oauth2_redirect", @@ -173942,47 +170909,47 @@ "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 29, + "End Line": 33 }, { - "Function Name": "test_redoc", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_items", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 46 - }, - { - "Function Name": "test_enum_status_code_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Start Line": 10, + "End Line": 11 + }, + { + "Function Name": "test_response", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 52 + "Start Line": 36, + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 81, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Sequential Logic Declarations": 19, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 16, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 24, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 11, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -173991,7 +170958,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -174004,19 +170971,19 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 1, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 1, + "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 1258, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174032,16 +170999,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174065,35 +171032,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".main", - "fastapi.testclient", - "inline_snapshot", - "pytest" + "fastapi", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_arbitrary_types.py": { + "python/fastapi/tests/test_datastructures.py": { "1. Artifact Identity": { - "Filename": "test_arbitrary_types.py", - "Path": "python/fastapi/tests/test_arbitrary_types.py", + "Filename": "test_datastructures.py", + "Path": "python/fastapi/tests/test_datastructures.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3928.9, - "Y": 83.99, - "Z": 1087.96 + "X": 1988.37, + "Y": -163.42, + "Z": 1169.54 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -174102,24 +171066,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 136, - "Coding LOC": 115, + "Total LOC": 66, + "Coding LOC": 47, "Documentation LOC": 1, - "Structural Magnitude": 29.2, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 29.34, + "Control Flow Ratio": "9.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.617 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "28.22%", + "Cognitive Load Exposure": "18.5%", + "Error & Exception Exposure": "4.56%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.12%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.65%", + "Concurrency Exposure": "99.74%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -174130,102 +171094,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 44, - "Control Flow Branches": 0, + "Function Name": "test_upload_file_is_closed", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 135 + "Control Flow Ratio": "11.1%", + "Start Line": 29, + "End Line": 48 }, { - "Function Name": "test_typeadapter", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 0, + "Function Name": "test_upload_file", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 89 + "Control Flow Ratio": "14.3%", + "Start Line": 55, + "End Line": 65 }, { - "Function Name": "get_client", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 0, + "Function Name": "test_upload_file_invalid_pydantic_v2", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "50.0%", "Start Line": 10, - "End Line": 40 + "End Line": 12 }, { - "Function Name": "test_get", + "Function Name": "create_upload_file", "Structural Impact": 1.6, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 45 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 37, + "End Line": 39 }, { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_default_placeholder_equals", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 + "Start Line": 15, + "End Line": 19 }, { - "Function Name": "test", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_default_placeholder_bool", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 + "Start Line": 22, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 36, - "Function Parameters": 9, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 10, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 37, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 13, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, - "State Mutations / Variable Reassignments": 2, + "I/O and Network Boundaries": 2, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 21, + "Asynchronous/Concurrent Execution": 7, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 2, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 2, - "Generic Type Abstractions": 3, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -174245,12 +171199,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Resource Deallocation & Cleanup": 1, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 105, + "Structural Space Indentations": 35, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174267,15 +171221,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 9, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 10, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 5, + "Duplicate Logic": 0, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174301,34 +171255,35 @@ "8. Dependency Network": { "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 1, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.datastructures", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "typing" + "io", + "pathlib", + "pytest" ] }, - "python/fastapi/tests/test_callable_endpoint.py": { + "python/fastapi/tests/test_datetime_custom_encoder.py": { "1. Artifact Identity": { - "Filename": "test_callable_endpoint.py", - "Path": "python/fastapi/tests/test_callable_endpoint.py", + "Filename": "test_datetime_custom_encoder.py", + "Path": "python/fastapi/tests/test_datetime_custom_encoder.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2901.44, - "Y": 0.56, - "Z": 2385.37 + "X": 1958.21, + "Y": -115.33, + "Z": 1861.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -174337,27 +171292,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 25, - "Coding LOC": 13, + "Total LOC": 29, + "Coding LOC": 20, "Documentation LOC": 0, - "Structural Magnitude": 5.26, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 11.3, + "Control Flow Ratio": "5.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.154 + "Raw Cognitive Density": 0.15 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "4.16%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.74%", + "API Exposure": "10.54%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "86.67%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -174365,38 +171320,48 @@ }, "5. Function Analysis": [ { - "Function Name": "main", + "Function Name": "test_pydanticv2", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "10.0%", + "Start Line": 8, + "End Line": 28 + }, + { + "Function Name": "serialize_datetime", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 8 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "test_partial", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 22, + "End Line": 23 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 10, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 17, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, @@ -174405,12 +171370,12 @@ "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -174435,7 +171400,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, + "Structural Space Indentations": 15, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174451,16 +171416,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 5, "Design Camel Case": 0, "Design Snake Case": 5, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174484,34 +171449,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "datetime", "fastapi", "fastapi.testclient", - "functools" + "pydantic" ] }, - "python/fastapi/tests/test_compat.py": { + "python/fastapi/tests/test_default_response_class.py": { "1. Artifact Identity": { - "Filename": "test_compat.py", - "Path": "python/fastapi/tests/test_compat.py", + "Filename": "test_default_response_class.py", + "Path": "python/fastapi/tests/test_default_response_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3629.62, - "Y": 69.34, - "Z": -1104.84 + "X": 2843.85, + "Y": -19.11, + "Z": 939.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -174520,26 +171486,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 133, - "Coding LOC": 87, - "Documentation LOC": 13, - "Structural Magnitude": 39.54, - "Control Flow Ratio": "3.4%", + "Total LOC": 217, + "Coding LOC": 147, + "Documentation LOC": 0, + "Structural Magnitude": 83.94, + "Control Flow Ratio": "12.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.065 + "Raw Cognitive Density": 0.109 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "1.52%", - "Error & Exception Exposure": "4.12%", + "Cognitive Load Exposure": "3.57%", + "Error & Exception Exposure": "2.41%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.72%", + "API Exposure": "13.1%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "8.92%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -174548,374 +171514,327 @@ }, "5. Function Analysis": [ { - "Function Name": "test_propagates_pydantic2_model_config", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 2, + "Function Name": "test_app", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 39, - "End Line": 80 + "Control Flow Ratio": "20.0%", + "Start Line": 121, + "End Line": 125 }, { - "Function Name": "foo", - "Structural Impact": 4.5, + "Function Name": "test_app_override", + "Structural Impact": 2.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 58, - "End Line": 62 + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 128, + "End Line": 132 }, { - "Function Name": "test_complex", + "Function Name": "test_router_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 135, + "End Line": 139 + }, + { + "Function Name": "test_router_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 142, + "End Line": 146 + }, + { + "Function Name": "test_router_a_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 149, + "End Line": 153 + }, + { + "Function Name": "test_router_a_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 156, + "End Line": 160 + }, + { + "Function Name": "test_router_a_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 163, + "End Line": 167 + }, + { + "Function Name": "test_router_a_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 170, + "End Line": 174 + }, + { + "Function Name": "test_router_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 177, + "End Line": 181 + }, + { + "Function Name": "test_router_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 184, + "End Line": 188 + }, + { + "Function Name": "test_router_b_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 191, + "End Line": 195 + }, + { + "Function Name": "test_router_b_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 198, + "End Line": 202 + }, + { + "Function Name": "test_router_b_a_c", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 205, + "End Line": 209 + }, + { + "Function Name": "test_router_b_a_c_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 212, + "End Line": 216 + }, + { + "Function Name": "render", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 36 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_serialize_sequence_value_with_none_first_in_union", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 12, + "Function Name": "get_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 121, - "End Line": 132 + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "foo", - "Structural Impact": 1.5, + "Function Name": "get_path_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "__bool__", - "Structural Impact": 1.5, + "Function Name": "get_a", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 + "Start Line": 40, + "End Line": 41 }, { - "Function Name": "test_model_field_default_required", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "get_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 18 + "Start Line": 45, + "End Line": 46 }, { - "Function Name": "test_serialize_sequence_value_with_optional_list", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "get_a_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 107 + "Start Line": 50, + "End Line": 51 }, { - "Function Name": "test_serialize_sequence_value_with_optional_list_pipe_union", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "get_a_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 118 + "Start Line": 55, + "End Line": 56 }, { - "Function Name": "test_is_bytes_sequence_annotation_union", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_a_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 88 + "Start Line": 60, + "End Line": 61 }, { - "Function Name": "test_is_uploadfile_sequence_annotation", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_a_b_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 96 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 56, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 23, - "Type/Safety Bypasses": 1, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 15, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 1, - "Structured Documentation Blocks": 6, - "Unit Test Assertions": 25, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 10, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 11, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 2, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 7, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 72, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 26, - "Design Camel Case": 0, - "Design Snake Case": 23, - "Design Pascal Case": 3, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 9, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi._compat", - "fastapi._compat.shared", - "fastapi.testclient", - "pydantic", - "pydantic.fields", - "typing" - ] - }, - "python/fastapi/tests/test_computed_fields.py": { - "1. Artifact Identity": { - "Filename": "test_computed_fields.py", - "Path": "python/fastapi/tests/test_computed_fields.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4409.22, - "Y": 159.02, - "Z": -165.71 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 109, - "Coding LOC": 96, - "Documentation LOC": 0, - "Structural Magnitude": 23.92, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.8%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 65, + "End Line": 66 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 65, + "Function Name": "get_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 108 + "Start Line": 70, + "End Line": 71 }, { - "Function Name": "get_client", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 25, + "Function Name": "get_b_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 32 + "Start Line": 75, + "End Line": 76 }, { - "Function Name": "test_get", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "get_b_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 40 + "Start Line": 80, + "End Line": 81 }, { - "Function Name": "area", - "Structural Impact": 1.5, + "Function Name": "get_b_a_path_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 85, + "End Line": 86 }, { - "Function Name": "read_root", + "Function Name": "get_b_a_c", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 90, + "End Line": 91 }, { - "Function Name": "read_responses", + "Function Name": "get_b_a_c_path_override", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 95, + "End Line": 96 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 28, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 14, + "Sequential Logic Declarations": 97, + "Function Parameters": 29, + "Function/Method Declarations": 29, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 44, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 33, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 42, "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, + "UI / View Layer Components": 1, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 14, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, + "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 3, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -174935,7 +171854,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 85, + "Structural Space Indentations": 77, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174951,16 +171870,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 7, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 41, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 41, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 29, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174991,28 +171910,29 @@ }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest" + "orjson", + "typing" ] }, - "python/fastapi/tests/test_custom_middleware_exception.py": { + "python/fastapi/tests/test_default_response_class_router.py": { "1. Artifact Identity": { - "Filename": "test_custom_middleware_exception.py", - "Path": "python/fastapi/tests/test_custom_middleware_exception.py", + "Filename": "test_default_response_class_router.py", + "Path": "python/fastapi/tests/test_default_response_class_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2443.2, - "Y": -119.45, - "Z": 764.4 + "X": 2295.04, + "Y": -118.82, + "Z": -788.21 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175021,24 +171941,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 95, - "Coding LOC": 65, - "Documentation LOC": 5, - "Structural Magnitude": 58.9, - "Control Flow Ratio": "19.5%", + "Total LOC": 207, + "Coding LOC": 141, + "Documentation LOC": 0, + "Structural Magnitude": 80.02, + "Control Flow Ratio": "13.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.077 + "Raw Cognitive Density": 0.113 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "29.06%", - "Error & Exception Exposure": "40.43%", + "Cognitive Load Exposure": "3.63%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.09%", - "Concurrency Exposure": "100.0%", + "API Exposure": "12.99%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -175049,108 +171969,318 @@ }, "5. Function Analysis": [ { - "Function Name": "__call__", - "Structural Impact": 7.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 4, - "Control Flow Ratio": "28.6%", - "Start Line": 47, - "End Line": 53 + "Function Name": "test_app", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 111, + "End Line": 115 + }, + { + "Function Name": "test_app_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 118, + "End Line": 122 + }, + { + "Function Name": "test_router_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 125, + "End Line": 129 + }, + { + "Function Name": "test_router_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 132, + "End Line": 136 + }, + { + "Function Name": "test_router_a_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 139, + "End Line": 143 + }, + { + "Function Name": "test_router_a_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 146, + "End Line": 150 + }, + { + "Function Name": "test_router_a_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 153, + "End Line": 157 + }, + { + "Function Name": "test_router_a_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 160, + "End Line": 164 + }, + { + "Function Name": "test_router_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 167, + "End Line": 171 + }, + { + "Function Name": "test_router_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 174, + "End Line": 178 + }, + { + "Function Name": "test_router_b_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 181, + "End Line": 185 + }, + { + "Function Name": "test_router_b_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 188, + "End Line": 192 + }, + { + "Function Name": "test_router_b_a_c", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 195, + "End Line": 199 + }, + { + "Function Name": "test_router_b_a_c_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 202, + "End Line": 206 + }, + { + "Function Name": "get_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "get_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "receive_wrapper", - "Structural Impact": 6.3, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 23, - "End Line": 45 + "Function Name": "get_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "test_custom_middleware_exception", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 68, - "End Line": 83 + "Function Name": "get_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "test_custom_middleware_exception_not_raised", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 86, - "End Line": 94 + "Function Name": "get_a_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 40, + "End Line": 41 }, { - "Function Name": "inner", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 2, + "Function Name": "get_a_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 26, - "End Line": 43 + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 46 }, { - "Function Name": "__init__", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "get_a_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 21 + "Start Line": 50, + "End Line": 51 }, { - "Function Name": "run_middleware", - "Structural Impact": 1.5, + "Function Name": "get_a_b_path_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 58 + "Start Line": 55, + "End Line": 56 + }, + { + "Function Name": "get_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 60, + "End Line": 61 + }, + { + "Function Name": "get_b_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 66 + }, + { + "Function Name": "get_b_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 71 + }, + { + "Function Name": "get_b_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 76 + }, + { + "Function Name": "get_b_a_c", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 80, + "End Line": 81 + }, + { + "Function Name": "get_b_a_c_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 86 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 33, - "Function Parameters": 7, - "Function/Method Declarations": 7, + "Control Flow Branches": 14, + "Sequential Logic Declarations": 91, + "Function Parameters": 28, + "Function/Method Declarations": 28, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 44, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 3, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 5, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 31, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 15, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 42, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 14, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 3, + "Server-Side Rendering Contexts": 2, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -175159,17 +172289,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 51, + "Structural Space Indentations": 74, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175186,15 +172316,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 16, + "Core Var Decl": 40, "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 2, + "Design Snake Case": 40, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 28, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175218,35 +172348,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pathlib" + "fastapi.responses", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_custom_route_class.py": { + "python/fastapi/tests/test_dependencies_utils.py": { "1. Artifact Identity": { - "Filename": "test_custom_route_class.py", - "Path": "python/fastapi/tests/test_custom_route_class.py", + "Filename": "test_dependencies_utils.py", + "Path": "python/fastapi/tests/test_dependencies_utils.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "APIRoute", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3894.25, - "Y": 86.34, - "Z": 1094.23 + "X": 599.15, + "Y": -320.01, + "Z": -529.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175255,27 +172383,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 122, - "Coding LOC": 96, - "Documentation LOC": 0, - "Structural Magnitude": 21.82, - "Control Flow Ratio": "3.1%", + "Total LOC": 9, + "Coding LOC": 5, + "Documentation LOC": 1, + "Structural Magnitude": 2.3, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.266 + "Raw Cognitive Density": 0.4 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.3%", - "Error & Exception Exposure": "20.5%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "5.78%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "33.33%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -175283,92 +172411,42 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 47, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 121 - }, - { - "Function Name": "test_route_classes", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 65, - "End Line": 72 - }, - { - "Function Name": "test_get_path", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 - }, - { - "Function Name": "get_a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 - }, - { - "Function Name": "get_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "get_c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_typed_annotation", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 4, + "End Line": 8 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 4, + "Function Parameters": 1, + "Function/Method Declarations": 1, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 1, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, + "Unit Test Assertions": 2, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 4, + "Global State Dependencies": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 3, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 1, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -175393,7 +172471,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 68, + "Structural Space Indentations": 3, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175409,16 +172487,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 2, "Design Camel Case": 0, - "Design Snake Case": 11, + "Design Snake Case": 2, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175442,37 +172520,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 1, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.routing", - "fastapi.testclient", - "inline_snapshot", - "pytest", - "starlette.routing" + "fastapi.dependencies.utils" ] }, - "python/fastapi/tests/test_custom_schema_fields.py": { + "python/fastapi/tests/test_dependency_after_yield_raise.py": { "1. Artifact Identity": { - "Filename": "test_custom_schema_fields.py", - "Path": "python/fastapi/tests/test_custom_schema_fields.py", + "Filename": "test_dependency_after_yield_raise.py", + "Path": "python/fastapi/tests/test_dependency_after_yield_raise.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4315.51, - "Y": 143.41, - "Z": 1589.95 + "X": 1450.76, + "Y": -220.36, + "Z": -430.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175481,23 +172554,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 63, - "Coding LOC": 45, - "Documentation LOC": 1, - "Structural Magnitude": 9.4, - "Control Flow Ratio": "0.0%", + "Total LOC": 69, + "Coding LOC": 39, + "Documentation LOC": 6, + "Structural Magnitude": 26.08, + "Control Flow Ratio": "12.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.044 + "Raw Cognitive Density": 0.154 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.81%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.38%", + "Error & Exception Exposure": "31.5%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.62%", + "API Exposure": "11.7%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -175509,58 +172582,108 @@ }, "5. Function Analysis": [ { - "Function Name": "test_custom_response_schema", + "Function Name": "test_broken_raise", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 46, + "End Line": 48 + }, + { + "Function Name": "test_broken_no_raise", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 51, + "End Line": 61 + }, + { + "Function Name": "catching_dep", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 16 + }, + { + "Function Name": "catching", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + }, + { + "Function Name": "broken", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 34 + }, + { + "Function Name": "test_catching", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 55 + "Start Line": 40, + "End Line": 43 }, { - "Function Name": "test_response", + "Function Name": "test_broken_return_finishes", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 62 + "Start Line": 64, + "End Line": 68 }, { - "Function Name": "foo", + "Function Name": "broken_dep", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 19, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 27, + "Function Parameters": 8, + "Function/Method Declarations": 8, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 6, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -175571,7 +172694,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -175579,7 +172702,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 3, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -175589,7 +172712,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 32, + "Structural Space Indentations": 22, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175604,17 +172727,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 7, + "Lazy Evaluation & Generators (O(1) Memory)": 4, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175646,14 +172769,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pydantic", + "pytest", "typing" ] }, - "python/fastapi/tests/test_custom_swagger_ui_redirect.py": { + "python/fastapi/tests/test_dependency_after_yield_streaming.py": { "1. Artifact Identity": { - "Filename": "test_custom_swagger_ui_redirect.py", - "Path": "python/fastapi/tests/test_custom_swagger_ui_redirect.py", + "Filename": "test_dependency_after_yield_streaming.py", + "Path": "python/fastapi/tests/test_dependency_after_yield_streaming.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -175663,9 +172786,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4758.61, - "Y": 196.88, - "Z": -686.25 + "X": 3343.6, + "Y": 66.43, + "Z": 985.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175674,24 +172797,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 39, - "Coding LOC": 26, - "Documentation LOC": 0, - "Structural Magnitude": 11.42, - "Control Flow Ratio": "0.0%", + "Total LOC": 131, + "Coding LOC": 82, + "Documentation LOC": 6, + "Structural Magnitude": 66.64, + "Control Flow Ratio": "17.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.192 + "Raw Cognitive Density": 0.283 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.85%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.31%", + "Error & Exception Exposure": "39.02%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.71%", - "Concurrency Exposure": "43.26%", + "API Exposure": "12.17%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -175702,97 +172825,257 @@ }, "5. Function Analysis": [ { - "Function Name": "test_swagger_ui", - "Structural Impact": 1.5, + "Function Name": "__iter__", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 16, + "End Line": 21 + }, + { + "Function Name": "acquire_session", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 25, + "End Line": 30 + }, + { + "Function Name": "test_broken_session_data", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 103, + "End Line": 105 + }, + { + "Function Name": "test_broken_session_stream_no_raise", + "Structural Impact": 2.5, "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 121, + "End Line": 130 + }, + { + "Function Name": "broken_dep_session", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 38, + "End Line": 41 + }, + { + "Function Name": "test_broken_session_stream_raise", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 115, + "End Line": 118 + }, + { + "Function Name": "dep_session", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 33, + "End Line": 35 + }, + { + "Function Name": "get_stream_simple", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 26 + "Start Line": 57, + "End Line": 61 }, { - "Function Name": "test_swagger_ui_oauth2_redirect", + "Function Name": "get_stream_session", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 69 + }, + { + "Function Name": "get_broken_session_stream", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 82 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 14 + }, + { + "Function Name": "get_data", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 53 + }, + { + "Function Name": "get_broken_session_data", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 74 + }, + { + "Function Name": "test_broken_session_data_no_raise", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 33 + "Start Line": 108, + "End Line": 112 }, { - "Function Name": "read_items", + "Function Name": "iter_data", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "test_response", + "Function Name": "iter_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 67 + }, + { + "Function Name": "iter_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 80 + }, + { + "Function Name": "test_regular_no_stream", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 88, + "End Line": 90 + }, + { + "Function Name": "test_stream_simple", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 95 + }, + { + "Function Name": "test_stream_session", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 100 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 11, + "Sequential Logic Declarations": 52, + "Function Parameters": 20, + "Function/Method Declarations": 20, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 8, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 4, + "Exposed API / Public Exports": 24, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 17, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 6, + "Generic Type Abstractions": 10, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 1, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 2, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, + "Structural Space Indentations": 49, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175807,17 +173090,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Lazy Evaluation & Generators (O(1) Memory)": 10, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 14, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 12, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, - "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Design Long Vars": 0, + "Duplicate Logic": 2, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175825,7 +173108,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -175841,20 +173124,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", + "contextlib", "fastapi", - "fastapi.testclient" + "fastapi.responses", + "fastapi.testclient", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_datastructures.py": { + "python/fastapi/tests/test_dependency_after_yield_websockets.py": { "1. Artifact Identity": { - "Filename": "test_datastructures.py", - "Path": "python/fastapi/tests/test_datastructures.py", + "Filename": "test_dependency_after_yield_websockets.py", + "Path": "python/fastapi/tests/test_dependency_after_yield_websockets.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -175864,9 +173152,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1988.37, - "Y": -163.42, - "Z": 1169.54 + "X": 3243.72, + "Y": -20.06, + "Z": -1184.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175875,24 +173163,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 66, - "Coding LOC": 47, - "Documentation LOC": 1, - "Structural Magnitude": 29.34, - "Control Flow Ratio": "9.8%", + "Total LOC": 80, + "Coding LOC": 56, + "Documentation LOC": 0, + "Structural Magnitude": 46.32, + "Control Flow Ratio": "28.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.617 + "Raw Cognitive Density": 0.661 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "18.5%", - "Error & Exception Exposure": "4.56%", + "Cognitive Load Exposure": "20.58%", + "Error & Exception Exposure": "48.13%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.65%", - "Concurrency Exposure": "99.74%", + "API Exposure": "8.0%", + "Concurrency Exposure": "98.35%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -175903,88 +173191,118 @@ }, "5. Function Analysis": [ { - "Function Name": "test_upload_file_is_closed", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 1, + "Function Name": "__iter__", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 3, "Input Parameters": 1, - "Control Flow Ratio": "11.1%", - "Start Line": 29, - "End Line": 48 + "Control Flow Ratio": "75.0%", + "Start Line": 15, + "End Line": 20 }, { - "Function Name": "test_upload_file", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 11, + "Function Name": "test_websocket_dependency_after_yield_broken", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "60.0%", + "Start Line": 76, + "End Line": 79 + }, + { + "Function Name": "websocket_endpoint", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "25.0%", + "Start Line": 50, + "End Line": 53 + }, + { + "Function Name": "websocket_endpoint_broken", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "25.0%", + "Start Line": 57, + "End Line": 60 + }, + { + "Function Name": "acquire_session", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 55, - "End Line": 65 + "Control Flow Ratio": "66.7%", + "Start Line": 24, + "End Line": 29 }, { - "Function Name": "test_upload_file_invalid_pydantic_v2", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_websocket_dependency_after_yield", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 10, - "End Line": 12 + "Control Flow Ratio": "16.7%", + "Start Line": 66, + "End Line": 73 }, { - "Function Name": "create_upload_file", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", + "Function Name": "broken_dep_session", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", "Start Line": 37, - "End Line": 39 + "End Line": 40 }, { - "Function Name": "test_default_placeholder_equals", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, + "Function Name": "dep_session", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Control Flow Ratio": "33.3%", + "Start Line": 32, + "End Line": 34 }, { - "Function Name": "test_default_placeholder_bool", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "__init__", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 26 + "Start Line": 11, + "End Line": 13 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 37, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 13, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 13, + "Sequential Logic Declarations": 32, + "Function Parameters": 9, + "Function/Method Declarations": 9, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 2, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 1, + "I/O and Network Boundaries": 4, + "Exposed API / Public Exports": 8, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 21, - "Asynchronous/Concurrent Execution": 7, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -175995,7 +173313,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -176003,13 +173321,13 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 1, - "Private / Encapsulated Scopes": 1, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, @@ -176028,12 +173346,12 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 10, + "Lazy Evaluation & Generators (O(1) Memory)": 7, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -176045,7 +173363,7 @@ "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 2, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -176064,35 +173382,34 @@ "8. Dependency Network": { "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 1, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", + "contextlib", "fastapi", - "fastapi.datastructures", "fastapi.testclient", - "io", - "pathlib", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_datetime_custom_encoder.py": { + "python/fastapi/tests/test_dependency_cache.py": { "1. Artifact Identity": { - "Filename": "test_datetime_custom_encoder.py", - "Path": "python/fastapi/tests/test_datetime_custom_encoder.py", + "Filename": "test_dependency_cache.py", + "Path": "python/fastapi/tests/test_dependency_cache.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1958.21, - "Y": -115.33, - "Z": 1861.37 + "X": 4126.89, + "Y": 154.67, + "Z": -41.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -176101,24 +173418,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, - "Coding LOC": 20, + "Total LOC": 92, + "Coding LOC": 67, "Documentation LOC": 0, - "Structural Magnitude": 11.3, - "Control Flow Ratio": "5.6%", + "Structural Magnitude": 37.44, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.15 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.16%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.54%", - "Concurrency Exposure": "0.0%", + "API Exposure": "11.95%", + "Concurrency Exposure": "96.7%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -176129,69 +173446,139 @@ }, "5. Function Analysis": [ { - "Function Name": "test_pydanticv2", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "10.0%", - "Start Line": 8, - "End Line": 28 + "Function Name": "get_scope_counter", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 48 + }, + { + "Function Name": "get_sub_counter_no_cache", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 35 }, { - "Function Name": "serialize_datetime", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "get_sub_counter", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "get_model", - "Structural Impact": 1.1, + "Function Name": "super_dep", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 + }, + { + "Function Name": "get_counter", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 19, + "End Line": 20 + }, + { + "Function Name": "test_normal_counter", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 54, + "End Line": 61 + }, + { + "Function Name": "test_sub_counter", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 64, + "End Line": 71 + }, + { + "Function Name": "test_sub_counter_no_cache", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 74, + "End Line": 81 + }, + { + "Function Name": "test_security_cache", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 91 + }, + { + "Function Name": "dep_counter", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 9, + "End Line": 11 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 17, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 3, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 36, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 20, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 7, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -176209,7 +173596,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 15, + "Structural Space Indentations": 45, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -176225,16 +173612,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 19, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 19, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -176258,35 +173645,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "datetime", "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_default_response_class.py": { + "python/fastapi/tests/test_dependency_class.py": { "1. Artifact Identity": { - "Filename": "test_default_response_class.py", - "Path": "python/fastapi/tests/test_default_response_class.py", + "Filename": "test_dependency_class.py", + "Path": "python/fastapi/tests/test_dependency_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2843.85, - "Y": -19.11, - "Z": 939.45 + "X": 2711.13, + "Y": -29.9, + "Z": -888.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -176295,24 +173679,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 217, - "Coding LOC": 147, + "Total LOC": 155, + "Coding LOC": 109, "Documentation LOC": 0, - "Structural Magnitude": 83.94, - "Control Flow Ratio": "12.6%", + "Structural Magnitude": 102.68, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.109 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.57%", - "Error & Exception Exposure": "2.41%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.1%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.28%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -176323,329 +173707,249 @@ }, "5. Function Analysis": [ { - "Function Name": "test_app", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 121, - "End Line": 125 - }, - { - "Function Name": "test_app_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 128, - "End Line": 132 - }, - { - "Function Name": "test_router_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 135, - "End Line": 139 - }, - { - "Function Name": "test_router_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 142, - "End Line": 146 - }, - { - "Function Name": "test_router_a_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 149, - "End Line": 153 - }, - { - "Function Name": "test_router_a_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 156, - "End Line": 160 - }, - { - "Function Name": "test_router_a_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 163, - "End Line": 167 - }, - { - "Function Name": "test_router_a_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 170, - "End Line": 174 - }, - { - "Function Name": "test_router_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 177, - "End Line": 181 + "Function Name": "get_callable_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 55 }, { - "Function Name": "test_router_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 184, - "End Line": 188 + "Function Name": "get_callable_gen_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 62 }, { - "Function Name": "test_router_b_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 191, - "End Line": 195 + "Function Name": "get_async_callable_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 69 }, { - "Function Name": "test_router_b_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 198, - "End Line": 202 + "Function Name": "get_async_callable_gen_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 76 }, { - "Function Name": "test_router_b_a_c", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 205, - "End Line": 209 + "Function Name": "test_class_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 151, + "End Line": 154 }, { - "Function Name": "test_router_b_a_c_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 212, - "End Line": 216 + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "render", + "Function Name": "__call__", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "get_root", - "Structural Impact": 1.1, + "Function Name": "__call__", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 21, + "End Line": 22 }, { - "Function Name": "get_path_override", - "Structural Impact": 1.1, + "Function Name": "__call__", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "get_a", - "Structural Impact": 1.1, + "Function Name": "synchronous", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 41 + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "get_a_path_override", - "Structural Impact": 1.1, + "Function Name": "asynchronous", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "get_a_a", - "Structural Impact": 1.1, + "Function Name": "synchronous_gen", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 + "Start Line": 37, + "End Line": 38 }, { - "Function Name": "get_a_a_path_override", - "Structural Impact": 1.1, + "Function Name": "asynchronous_gen", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 + "Start Line": 40, + "End Line": 41 }, { - "Function Name": "get_a_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_async_callable_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 61 + "Start Line": 90, + "End Line": 93 }, { - "Function Name": "get_a_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_async_callable_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 + "Start Line": 97, + "End Line": 100 }, { - "Function Name": "get_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_synchronous_method_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 + "Start Line": 104, + "End Line": 107 }, { - "Function Name": "get_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_synchronous_method_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 + "Start Line": 111, + "End Line": 114 }, { - "Function Name": "get_b_a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_asynchronous_method_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 118, + "End Line": 121 }, { - "Function Name": "get_b_a_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_asynchronous_method_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 125, + "End Line": 128 }, { - "Function Name": "get_b_a_c", - "Structural Impact": 1.1, + "Function Name": "get_callable_dependency", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 91 + "Start Line": 80, + "End Line": 81 }, { - "Function Name": "get_b_a_c_path_override", - "Structural Impact": 1.1, + "Function Name": "get_callable_gen_dependency", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 85, + "End Line": 86 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 14, - "Sequential Logic Declarations": 97, - "Function Parameters": 29, - "Function/Method Declarations": 29, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 44, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 65, + "Function Parameters": 21, + "Function/Method Declarations": 21, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 33, + "Exposed API / Public Exports": 34, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 42, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 1, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 30, + "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 14, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 13, + "Generic Type Abstractions": 8, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 4, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 3, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 13, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -176659,11 +173963,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 5, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 77, + "Structural Space Indentations": 56, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -176678,17 +173982,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 41, + "Lazy Evaluation & Generators (O(1) Memory)": 10, + "Vectorized Math & Tensor Operations": 13, + "Core Var Decl": 20, "Design Camel Case": 0, - "Design Snake Case": 41, - "Design Pascal Case": 0, + "Design Snake Case": 16, + "Design Pascal Case": 4, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 3, "Duplicate Logic": 0, - "Orphaned Logic": 29, + "Orphaned Logic": 13, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -176712,36 +174016,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", "fastapi", - "fastapi.responses", "fastapi.testclient", - "orjson", - "typing" + "pytest" ] }, - "python/fastapi/tests/test_default_response_class_router.py": { + "python/fastapi/tests/test_dependency_contextmanager.py": { "1. Artifact Identity": { - "Filename": "test_default_response_class_router.py", - "Path": "python/fastapi/tests/test_default_response_class_router.py", + "Filename": "test_dependency_contextmanager.py", + "Path": "python/fastapi/tests/test_dependency_contextmanager.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse", + "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2295.04, - "Y": -118.82, - "Z": -788.21 + "X": 3162.1, + "Y": 31.41, + "Z": 387.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -176750,24 +174053,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 207, - "Coding LOC": 141, - "Documentation LOC": 0, - "Structural Magnitude": 80.02, - "Control Flow Ratio": "13.3%", + "Total LOC": 400, + "Coding LOC": 287, + "Documentation LOC": 1, + "Structural Magnitude": 222.24, + "Control Flow Ratio": "13.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.113 + "Raw Cognitive Density": 0.657 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.63%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "20.38%", + "Error & Exception Exposure": "1.02%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.99%", - "Concurrency Exposure": "0.0%", + "API Exposure": "14.27%", + "Concurrency Exposure": "99.52%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -176778,319 +174081,539 @@ }, "5. Function Analysis": [ { - "Function Name": "test_app", - "Structural Impact": 2.2, + "Function Name": "context_b", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 81, + "End Line": 86 + }, + { + "Function Name": "asyncgen_state_try", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 51, + "End Line": 59 + }, + { + "Function Name": "generator_state_try", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 62, + "End Line": 70 + }, + { + "Function Name": "context_a", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 73, + "End Line": 78 + }, + { + "Function Name": "test_context_b_raise", + "Structural Impact": 3.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 111, - "End Line": 115 + "Control Flow Ratio": "40.0%", + "Start Line": 274, + "End Line": 278 }, { - "Function Name": "test_app_override", - "Structural Impact": 2.2, + "Function Name": "test_sync_context_b_raise", + "Structural Impact": 3.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 118, - "End Line": 122 + "Control Flow Ratio": "40.0%", + "Start Line": 384, + "End Line": 388 }, { - "Function Name": "test_router_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_background_tasks", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 125, - "End Line": 129 + "Control Flow Ratio": "9.1%", + "Start Line": 281, + "End Line": 293 }, { - "Function Name": "test_router_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_background_tasks", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 132, - "End Line": 136 + "Control Flow Ratio": "12.5%", + "Start Line": 391, + "End Line": 399 }, { - "Function Name": "test_router_a_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_context_b", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 139, - "End Line": 143 + "Control Flow Ratio": "16.7%", + "Start Line": 265, + "End Line": 271 }, { - "Function Name": "test_router_a_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_context_b", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 146, - "End Line": 150 + "Control Flow Ratio": "16.7%", + "Start Line": 375, + "End Line": 381 }, { - "Function Name": "test_router_a_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_async_raise_other", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "20.0%", - "Start Line": 153, - "End Line": 157 + "Start Line": 232, + "End Line": 237 }, { - "Function Name": "test_router_a_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_raise_other", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "20.0%", - "Start Line": 160, - "End Line": 164 + "Start Line": 240, + "End Line": 245 }, { - "Function Name": "test_router_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_async_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 167, - "End Line": 171 + "Control Flow Ratio": "25.0%", + "Start Line": 248, + "End Line": 253 }, { - "Function Name": "test_router_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 174, - "End Line": 178 + "Control Flow Ratio": "25.0%", + "Start Line": 296, + "End Line": 301 }, { - "Function Name": "test_router_b_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_async_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 181, - "End Line": 185 + "Control Flow Ratio": "25.0%", + "Start Line": 341, + "End Line": 346 }, { - "Function Name": "test_router_b_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_sync_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 188, - "End Line": 192 + "Control Flow Ratio": "25.0%", + "Start Line": 358, + "End Line": 363 }, { - "Function Name": "test_router_b_a_c", + "Function Name": "get_sync_context_b_bg", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 194, + "End Line": 203 + }, + { + "Function Name": "test_sync_async_raise_other", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 195, - "End Line": 199 + "Control Flow Ratio": "25.0%", + "Start Line": 327, + "End Line": 331 }, { - "Function Name": "test_router_b_a_c_override", + "Function Name": "test_sync_sync_raise_other", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 202, - "End Line": 206 + "Control Flow Ratio": "25.0%", + "Start Line": 334, + "End Line": 338 }, { - "Function Name": "get_root", - "Structural Impact": 1.1, + "Function Name": "get_context_b_bg", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 136, + "End Line": 141 + }, + { + "Function Name": "middleware", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 207, + "End Line": 210 + }, + { + "Function Name": "asyncgen_state", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 42 + }, + { + "Function Name": "generator_state", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 48 + }, + { + "Function Name": "get_async_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 100, + "End Line": 102 + }, + { + "Function Name": "get_sync_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 106, + "End Line": 108 + }, + { + "Function Name": "get_async_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 112, + "End Line": 114 + }, + { + "Function Name": "get_sync_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 118, + "End Line": 120 + }, + { + "Function Name": "get_context_b_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 129, + "End Line": 132 + }, + { + "Function Name": "get_sync_async_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 158, + "End Line": 160 + }, + { + "Function Name": "get_sync_sync_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 164, + "End Line": 166 + }, + { + "Function Name": "get_sync_async_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 170, + "End Line": 172 + }, + { + "Function Name": "get_sync_sync_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 176, + "End Line": 178 + }, + { + "Function Name": "get_sync_context_b_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 187, + "End Line": 190 + }, + { + "Function Name": "bg", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 197, + "End Line": 200 + }, + { + "Function Name": "get_async", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 90, + "End Line": 91 }, { - "Function Name": "get_path_override", - "Structural Impact": 1.1, + "Function Name": "get_sync", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 95, + "End Line": 96 }, { - "Function Name": "get_a", - "Structural Impact": 1.1, + "Function Name": "get_context_b", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 124, + "End Line": 125 }, { - "Function Name": "get_a_path_override", - "Structural Impact": 1.1, + "Function Name": "bg", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 137, + "End Line": 138 }, { - "Function Name": "get_a_a", - "Structural Impact": 1.1, + "Function Name": "get_sync_async", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 41 + "Start Line": 148, + "End Line": 149 + }, + { + "Function Name": "get_sync_sync", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 153, + "End Line": 154 + }, + { + "Function Name": "get_sync_context_b", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 183 }, { - "Function Name": "get_a_a_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_async_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 + "Start Line": 256, + "End Line": 262 }, { - "Function Name": "get_a_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 + "Start Line": 304, + "End Line": 310 }, { - "Function Name": "get_a_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_async_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 + "Start Line": 349, + "End Line": 355 }, { - "Function Name": "get_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_sync_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 61 + "Start Line": 366, + "End Line": 372 }, { - "Function Name": "get_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_async_state", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 + "Start Line": 216, + "End Line": 221 }, { - "Function Name": "get_b_a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_state", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 + "Start Line": 224, + "End Line": 229 }, { - "Function Name": "get_b_a_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_async_state", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 + "Start Line": 313, + "End Line": 317 }, { - "Function Name": "get_b_a_c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_sync_state", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 320, + "End Line": 324 }, { - "Function Name": "get_b_a_c_path_override", + "Function Name": "get_state", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 14, - "Sequential Logic Declarations": 91, - "Function Parameters": 28, - "Function/Method Declarations": 28, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 44, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 25, + "Sequential Logic Declarations": 158, + "Function Parameters": 50, + "Function/Method Declarations": 50, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 93, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 31, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 71, + "State Mutations / Variable Reassignments": 14, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 42, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 116, + "Asynchronous/Concurrent Execution": 28, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 14, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 19, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 25, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -177098,7 +174621,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 40, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -177108,7 +174631,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 74, + "Structural Space Indentations": 206, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177123,17 +174646,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 40, + "Lazy Evaluation & Generators (O(1) Memory)": 6, + "Vectorized Math & Tensor Operations": 18, + "Core Var Decl": 46, "Design Camel Case": 0, - "Design Snake Case": 40, - "Design Pascal Case": 0, + "Design Snake Case": 45, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 28, + "Orphaned Logic": 40, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177157,7 +174680,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -177165,13 +174688,15 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.responses", - "fastapi.testclient" + "fastapi.testclient", + "json", + "pytest" ] }, - "python/fastapi/tests/test_dependencies_utils.py": { + "python/fastapi/tests/test_dependency_contextvars.py": { "1. Artifact Identity": { - "Filename": "test_dependencies_utils.py", - "Path": "python/fastapi/tests/test_dependencies_utils.py", + "Filename": "test_dependency_contextvars.py", + "Path": "python/fastapi/tests/test_dependency_contextvars.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -177181,9 +174706,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 599.15, - "Y": -320.01, - "Z": -529.29 + "X": 4695.34, + "Y": 189.13, + "Z": 749.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177192,27 +174717,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 9, - "Coding LOC": 5, - "Documentation LOC": 1, - "Structural Magnitude": 2.3, + "Total LOC": 53, + "Coding LOC": 31, + "Documentation LOC": 6, + "Structural Magnitude": 14.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.4 + "Raw Cognitive Density": 0.355 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "4.27%", + "Error & Exception Exposure": "46.07%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.78%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.98%", + "Concurrency Exposure": "92.02%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "33.33%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -177220,56 +174745,86 @@ }, "5. Function Analysis": [ { - "Function Name": "test_get_typed_annotation", + "Function Name": "custom_middleware", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 28 + }, + { + "Function Name": "test_dependency_contextvars", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 52 + }, + { + "Function Name": "set_up_request_state_dependency", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 4, - "End Line": 8 + "Start Line": 15, + "End Line": 19 + }, + { + "Function Name": "get_user", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 4, - "Function Parameters": 1, - "Function/Method Declarations": 1, + "Sequential Logic Declarations": 20, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 3, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 4, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 1, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -177280,7 +174835,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 3, + "Structural Space Indentations": 15, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177295,17 +174850,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 2, + "Lazy Evaluation & Generators (O(1) Memory)": 1, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 2, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177329,32 +174884,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 1, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.dependencies.utils" + "collections.abc", + "contextvars", + "fastapi", + "fastapi.testclient", + "typing" ] }, - "python/fastapi/tests/test_dependency_after_yield_raise.py": { + "python/fastapi/tests/test_dependency_duplicates.py": { "1. Artifact Identity": { - "Filename": "test_dependency_after_yield_raise.py", - "Path": "python/fastapi/tests/test_dependency_after_yield_raise.py", + "Filename": "test_dependency_duplicates.py", + "Path": "python/fastapi/tests/test_dependency_duplicates.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "Exception", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1450.76, - "Y": -220.36, - "Z": -430.31 + "X": 1999.7, + "Y": -150.68, + "Z": -506.81 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177363,24 +174922,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 69, - "Coding LOC": 39, - "Documentation LOC": 6, - "Structural Magnitude": 26.08, - "Control Flow Ratio": "12.9%", + "Total LOC": 238, + "Coding LOC": 211, + "Documentation LOC": 0, + "Structural Magnitude": 50.92, + "Control Flow Ratio": "10.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.154 + "Raw Cognitive Density": 0.112 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.38%", - "Error & Exception Exposure": "31.5%", + "Cognitive Load Exposure": "3.61%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.7%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.13%", + "Concurrency Exposure": "30.51%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -177391,108 +174950,138 @@ }, "5. Function Analysis": [ { - "Function Name": "test_broken_raise", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 10.7, + "Lines of Code (LOC)": 153, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 46, - "End Line": 48 + "Control Flow Ratio": "10.5%", + "Start Line": 85, + "End Line": 237 }, { - "Function Name": "test_broken_no_raise", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "test_sub_duplicates", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 51, - "End Line": 61 + "Control Flow Ratio": "25.0%", + "Start Line": 76, + "End Line": 82 }, { - "Function Name": "catching_dep", + "Function Name": "test_duplicates", "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 16 + "Start Line": 70, + "End Line": 73 }, { - "Function Name": "catching", - "Structural Impact": 1.5, + "Function Name": "sub_duplicate_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 26 + }, + { + "Function Name": "no_duplicates_sub", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 40, + "End Line": 43 + }, + { + "Function Name": "with_duplicates", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "broken", - "Structural Impact": 1.5, + "Function Name": "no_duplicates", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "test_catching", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_no_duplicates_invalid", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 43 + "Start Line": 46, + "End Line": 58 }, { - "Function Name": "test_broken_return_finishes", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "duplicate_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 68 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "broken_dep", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 19, - "End Line": 21 + "End Line": 20 + }, + { + "Function Name": "test_no_duplicates", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 67 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 27, - "Function Parameters": 8, - "Function/Method Declarations": 8, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 51, + "Function Parameters": 11, + "Function/Method Declarations": 11, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 6, + "Defensive Programming Constructs": 13, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, + "Exposed API / Public Exports": 15, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 4, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -177503,7 +175092,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 5, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -177511,7 +175100,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 3, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -177521,7 +175110,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 22, + "Structural Space Indentations": 188, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177536,17 +175125,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 4, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 8, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177578,14 +175167,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pytest", - "typing" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_dependency_after_yield_streaming.py": { + "python/fastapi/tests/test_dependency_overrides.py": { "1. Artifact Identity": { - "Filename": "test_dependency_after_yield_streaming.py", - "Path": "python/fastapi/tests/test_dependency_after_yield_streaming.py", + "Filename": "test_dependency_overrides.py", + "Path": "python/fastapi/tests/test_dependency_overrides.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -177595,9 +175184,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3343.6, - "Y": 66.43, - "Z": 985.89 + "X": 3486.34, + "Y": 41.3, + "Z": 357.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177606,24 +175195,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 131, - "Coding LOC": 82, - "Documentation LOC": 6, - "Structural Magnitude": 66.64, - "Control Flow Ratio": "17.5%", + "Total LOC": 390, + "Coding LOC": 310, + "Documentation LOC": 0, + "Structural Magnitude": 101.7, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.283 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.31%", - "Error & Exception Exposure": "39.02%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "7.45%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.17%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.19%", + "Concurrency Exposure": "51.76%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -177634,257 +175223,629 @@ }, "5. Function Analysis": [ { - "Function Name": "__iter__", - "Structural Impact": 6.0, + "Function Name": "test_override_simple", + "Structural Impact": 2.3, "Lines of Code (LOC)": 6, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 16, - "End Line": 21 + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 208, + "End Line": 213 }, { - "Function Name": "acquire_session", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, + "Function Name": "common_parameters", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 10, + "End Line": 11 + }, + { + "Function Name": "test_override_with_sub_main_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 25, - "End Line": 30 + "Control Flow Ratio": "0.0%", + "Start Line": 216, + "End Line": 231 }, { - "Function Name": "test_broken_session_data", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 2, + "Function Name": "test_override_with_sub__main_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 103, - "End Line": 105 + "Control Flow Ratio": "0.0%", + "Start Line": 234, + "End Line": 249 }, { - "Function Name": "test_broken_session_stream_no_raise", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_decorator_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 121, - "End Line": 130 + "Control Flow Ratio": "0.0%", + "Start Line": 260, + "End Line": 275 }, { - "Function Name": "broken_dep_session", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_decorator_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 38, - "End Line": 41 + "Control Flow Ratio": "0.0%", + "Start Line": 278, + "End Line": 293 }, { - "Function Name": "test_broken_session_stream_raise", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_router_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 115, - "End Line": 118 + "Control Flow Ratio": "0.0%", + "Start Line": 304, + "End Line": 319 }, { - "Function Name": "dep_session", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_router_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 33, - "End Line": 35 + "Control Flow Ratio": "0.0%", + "Start Line": 322, + "End Line": 337 }, { - "Function Name": "get_stream_simple", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_override_with_sub_router_decorator_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 61 + "Start Line": 348, + "End Line": 363 }, { - "Function Name": "get_stream_session", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_override_with_sub_router_decorator_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 366, + "End Line": 381 + }, + { + "Function Name": "test_main_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 63 + }, + { + "Function Name": "test_decorator_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 96 + }, + { + "Function Name": "test_router_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 111, + "End Line": 123 + }, + { + "Function Name": "test_router_decorator_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 144, + "End Line": 156 + }, + { + "Function Name": "main_depends", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 69 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "get_broken_session_stream", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "router_depends", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 82 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "__init__", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "overrider_dependency_simple", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 14 + "Start Line": 39, + "End Line": 40 }, { - "Function Name": "get_data", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "overrider_sub_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 53 + "Start Line": 43, + "End Line": 44 }, { - "Function Name": "get_broken_session_data", + "Function Name": "overrider_dependency_with_sub", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_broken_session_data_no_raise", + "Function Name": "test_main_depends_q_foo", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 72 + }, + { + "Function Name": "test_main_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 81 + }, + { + "Function Name": "test_router_depends_q_foo", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 126, + "End Line": 132 + }, + { + "Function Name": "test_router_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 141 + }, + { + "Function Name": "test_override_with_sub_main_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 252, + "End Line": 257 + }, + { + "Function Name": "test_override_with_sub_decorator_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 296, + "End Line": 301 + }, + { + "Function Name": "test_override_with_sub_router_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 340, + "End Line": 345 + }, + { + "Function Name": "test_override_with_sub_router_decorator_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 384, + "End Line": 389 + }, + { + "Function Name": "test_decorator_depends_q_foo", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 108, - "End Line": 112 + "Start Line": 99, + "End Line": 102 }, { - "Function Name": "iter_data", + "Function Name": "test_decorator_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 108 + }, + { + "Function Name": "test_router_decorator_depends_q_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 159, + "End Line": 162 + }, + { + "Function Name": "test_router_decorator_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 165, + "End Line": 168 + }, + { + "Function Name": "decorator_depends", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "iter_data", + "Function Name": "router_decorator_depends", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 31 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 108, + "Function Parameters": 33, + "Function/Method Declarations": 33, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 62, + "Type/Safety Bypasses": 13, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 37, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 77, + "Asynchronous/Concurrent Execution": 8, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 6, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 264, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 35, + "Design Camel Case": 0, + "Design Snake Case": 34, + "Design Pascal Case": 1, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 29, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "pytest" + ] + }, + "python/fastapi/tests/test_dependency_paramless.py": { + "1. Artifact Identity": { + "Filename": "test_dependency_paramless.py", + "Path": "python/fastapi/tests/test_dependency_paramless.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1630.95, + "Y": -202.56, + "Z": -593.86 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 78, + "Coding LOC": 52, + "Documentation LOC": 4, + "Structural Magnitude": 30.24, + "Control Flow Ratio": "18.2%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.21 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.16%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "11.37%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ + { + "Function Name": "process_auth", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 15, + "End Line": 25 + }, + { + "Function Name": "test_parameterless_with_scopes", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 60, + "End Line": 65 + }, + { + "Function Name": "test_parameterless_without_scopes", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 68, + "End Line": 73 + }, + { + "Function Name": "get_credentials", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 67 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "iter_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 80 + "Start Line": 54, + "End Line": 57 }, { - "Function Name": "test_regular_no_stream", + "Function Name": "get_parameterless_with_scopes", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 90 + "Start Line": 39, + "End Line": 40 }, { - "Function Name": "test_stream_simple", + "Function Name": "get_parameterless_without_scopes", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 95 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_stream_session", + "Function Name": "test_call_get_parameterless_without_scopes_for_coverage", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 100 + "Start Line": 76, + "End Line": 77 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 11, - "Sequential Logic Declarations": 52, - "Function Parameters": 20, - "Function/Method Declarations": 20, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, - "Type/Safety Bypasses": 8, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 27, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 4, - "Exposed API / Public Exports": 24, - "State Mutations / Variable Reassignments": 2, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 11, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 17, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 11, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, - "Generic Type Abstractions": 10, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 2, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 49, + "Structural Space Indentations": 29, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177899,17 +175860,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 10, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 14, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 2, + "Design Snake Case": 11, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 14, + "Duplicate Logic": 0, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177933,25 +175894,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", - "contextlib", "fastapi", - "fastapi.responses", + "fastapi.security", "fastapi.testclient", - "pytest", "typing" ] }, - "python/fastapi/tests/test_dependency_after_yield_websockets.py": { + "python/fastapi/tests/test_dependency_partial.py": { "1. Artifact Identity": { - "Filename": "test_dependency_after_yield_websockets.py", - "Path": "python/fastapi/tests/test_dependency_after_yield_websockets.py", + "Filename": "test_dependency_partial.py", + "Path": "python/fastapi/tests/test_dependency_partial.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -177961,9 +175919,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3243.72, - "Y": -20.06, - "Z": -1184.39 + "X": 2193.01, + "Y": -110.7, + "Z": -382.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177972,24 +175930,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 56, + "Total LOC": 252, + "Coding LOC": 198, "Documentation LOC": 0, - "Structural Magnitude": 46.32, - "Control Flow Ratio": "28.9%", + "Structural Magnitude": 120.56, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.661 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "20.58%", - "Error & Exception Exposure": "48.13%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.0%", - "Concurrency Exposure": "98.35%", + "API Exposure": "11.98%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -178000,121 +175958,281 @@ }, "5. Function Analysis": [ { - "Function Name": "__iter__", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 3, + "Function Name": "get_partial_async_callable_gen_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 15, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 138, + "End Line": 148 }, { - "Function Name": "test_websocket_dependency_after_yield_broken", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 76, - "End Line": 79 + "Function Name": "get_partial_synchronous_method_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 152, + "End Line": 162 }, { - "Function Name": "websocket_endpoint", - "Structural Impact": 3.7, + "Function Name": "get_partial_synchronous_method_gen_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 166, + "End Line": 177 + }, + { + "Function Name": "get_partial_asynchronous_method_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 181, + "End Line": 192 + }, + { + "Function Name": "get_partial_asynchronous_method_gen_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 196, + "End Line": 207 + }, + { + "Function Name": "get_partial_async_function_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 87 + }, + { + "Function Name": "get_partial_async_callable_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 126, + "End Line": 134 + }, + { + "Function Name": "test_dependency_types_with_partial", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 2, - "Control Flow Ratio": "25.0%", - "Start Line": 50, + "Control Flow Ratio": "0.0%", + "Start Line": 248, + "End Line": 251 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 30 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 35 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 40 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 45 + }, + { + "Function Name": "synchronous", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "asynchronous", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 52, "End Line": 53 }, { - "Function Name": "websocket_endpoint_broken", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "synchronous_gen", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 2, - "Control Flow Ratio": "25.0%", - "Start Line": 57, - "End Line": 60 + "Control Flow Ratio": "0.0%", + "Start Line": 55, + "End Line": 56 }, { - "Function Name": "acquire_session", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 24, - "End Line": 29 + "Function Name": "asynchronous_gen", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "test_websocket_dependency_after_yield", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 66, - "End Line": 73 + "Function Name": "get_partial_callable_gen_dependency", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 116, + "End Line": 122 }, { - "Function Name": "broken_dep_session", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 37, - "End Line": 40 + "Function Name": "get_partial_function_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 75 }, { - "Function Name": "dep_session", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 32, - "End Line": 34 + "Function Name": "get_partial_async_gen_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 103 }, { - "Function Name": "__init__", + "Function Name": "get_partial_callable_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 107, + "End Line": 112 + }, + { + "Function Name": "get_partial_gen_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 11, + "Start Line": 91, + "End Line": 94 + }, + { + "Function Name": "function_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 12, "End Line": 13 + }, + { + "Function Name": "async_function_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "gen_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "async_gen_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 13, - "Sequential Logic Declarations": 32, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 4, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 61, + "Function Parameters": 25, + "Function/Method Declarations": 25, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 4, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 2, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 38, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 34, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 13, + "Generic Type Abstractions": 25, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 4, "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -178122,7 +176240,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 13, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -178130,17 +176248,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 4, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 35, + "Structural Space Indentations": 137, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -178155,24 +176273,24 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 7, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 9, + "Lazy Evaluation & Generators (O(1) Memory)": 14, + "Vectorized Math & Tensor Operations": 13, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 2, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 13, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 2, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -178196,17 +176314,17 @@ }, "9. Extracted Dependencies": [ "collections.abc", - "contextlib", "fastapi", "fastapi.testclient", + "functools", "pytest", "typing" ] }, - "python/fastapi/tests/test_dependency_cache.py": { + "python/fastapi/tests/test_dependency_pep695.py": { "1. Artifact Identity": { - "Filename": "test_dependency_cache.py", - "Path": "python/fastapi/tests/test_dependency_cache.py", + "Filename": "test_dependency_pep695.py", + "Path": "python/fastapi/tests/test_dependency_pep695.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -178216,9 +176334,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4126.89, - "Y": 154.67, - "Z": -41.03 + "X": 4039.41, + "Y": 107.42, + "Z": -1968.79 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -178227,24 +176345,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 92, - "Coding LOC": 67, + "Total LOC": 28, + "Coding LOC": 18, "Documentation LOC": 0, - "Structural Magnitude": 37.44, + "Structural Magnitude": 10.56, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.444 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "11.38%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.95%", - "Concurrency Exposure": "96.7%", + "API Exposure": "9.56%", + "Concurrency Exposure": "86.77%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -178255,139 +176373,69 @@ }, "5. Function Analysis": [ { - "Function Name": "get_scope_counter", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 48 - }, - { - "Function Name": "get_sub_counter_no_cache", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 35 - }, - { - "Function Name": "get_sub_counter", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "test_pep695_type_dependencies", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, + "Start Line": 17, "End Line": 27 }, { - "Function Name": "super_dep", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, - { - "Function Name": "get_counter", + "Function Name": "get_with_dep", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "test_normal_counter", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 61 - }, - { - "Function Name": "test_sub_counter", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 71 - }, - { - "Function Name": "test_sub_counter_no_cache", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 81 - }, - { - "Function Name": "test_security_cache", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 91 + "Start Line": 21, + "End Line": 22 }, { - "Function Name": "dep_counter", + "Function Name": "some_value", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 11 + "Start Line": 8, + "End Line": 9 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 36, - "Function Parameters": 10, - "Function/Method Declarations": 10, + "Sequential Logic Declarations": 15, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 16, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 20, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 7, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -178405,7 +176453,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 45, + "Structural Space Indentations": 10, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -178422,15 +176470,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 19, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 19, - "Design Pascal Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -178454,20 +176502,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "typing", + "typing_extensions" ] }, - "python/fastapi/tests/test_dependency_class.py": { + "python/fastapi/tests/test_dependency_security_overrides.py": { "1. Artifact Identity": { - "Filename": "test_dependency_class.py", - "Path": "python/fastapi/tests/test_dependency_class.py", + "Filename": "test_dependency_security_overrides.py", + "Path": "python/fastapi/tests/test_dependency_security_overrides.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -178477,9 +176527,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2711.13, - "Y": -29.9, - "Z": -888.9 + "X": 2478.96, + "Y": -56.9, + "Z": 1467.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -178488,24 +176538,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 155, - "Coding LOC": 109, + "Total LOC": 64, + "Coding LOC": 44, "Documentation LOC": 0, - "Structural Magnitude": 102.68, + "Structural Magnitude": 21.28, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.045 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.82%", + "Error & Exception Exposure": "43.71%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.28%", - "Concurrency Exposure": "100.0%", + "API Exposure": "11.03%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -178516,249 +176566,119 @@ }, "5. Function Analysis": [ { - "Function Name": "get_callable_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 55 - }, - { - "Function Name": "get_callable_gen_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 - }, - { - "Function Name": "get_async_callable_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 69 - }, - { - "Function Name": "get_async_callable_gen_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 - }, - { - "Function Name": "test_class_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 151, - "End Line": 154 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 22 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 - }, - { - "Function Name": "synchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 - }, - { - "Function Name": "asynchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "synchronous_gen", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "read_user", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 + "Start Line": 25, + "End Line": 29 }, { - "Function Name": "asynchronous_gen", - "Structural Impact": 1.8, + "Function Name": "get_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 41 - }, - { - "Function Name": "get_async_callable_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 93 - }, - { - "Function Name": "get_async_callable_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 100 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "get_synchronous_method_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "get_user_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 104, - "End Line": 107 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "get_synchronous_method_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_normal", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 114 + "Start Line": 35, + "End Line": 41 }, { - "Function Name": "get_asynchronous_method_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_override_data", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 121 + "Start Line": 44, + "End Line": 52 }, { - "Function Name": "get_asynchronous_method_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_override_security", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 128 + "Start Line": 55, + "End Line": 63 }, { - "Function Name": "get_callable_dependency", - "Structural Impact": 1.5, + "Function Name": "get_data", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "get_callable_gen_dependency", - "Structural Impact": 1.5, + "Function Name": "get_data_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 20, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 65, - "Function Parameters": 21, - "Function/Method Declarations": 21, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 3, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 34, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 30, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 13, - "Generic Type Abstractions": 8, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 13, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -178772,11 +176692,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 5, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 56, + "Structural Space Indentations": 29, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -178791,17 +176711,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 10, - "Vectorized Math & Tensor Operations": 13, - "Core Var Decl": 20, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 4, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 3, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -178825,35 +176745,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", "fastapi", - "fastapi.testclient", - "pytest" + "fastapi.security", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_dependency_contextmanager.py": { + "python/fastapi/tests/test_dependency_wrapped.py": { "1. Artifact Identity": { - "Filename": "test_dependency_contextmanager.py", - "Path": "python/fastapi/tests/test_dependency_contextmanager.py", + "Filename": "test_dependency_wrapped.py", + "Path": "python/fastapi/tests/test_dependency_wrapped.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3162.1, - "Y": 31.41, - "Z": 387.65 + "X": 2559.82, + "Y": -64.83, + "Z": 212.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -178862,789 +176780,645 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 400, - "Coding LOC": 287, - "Documentation LOC": 1, - "Structural Magnitude": 222.24, - "Control Flow Ratio": "13.7%", + "Total LOC": 450, + "Coding LOC": 301, + "Documentation LOC": 2, + "Structural Magnitude": 295.42, + "Control Flow Ratio": "5.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.657 + "Raw Cognitive Density": 1.956 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "20.38%", - "Error & Exception Exposure": "1.02%", + "Cognitive Load Exposure": "49.6%", + "Error & Exception Exposure": "47.39%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.27%", - "Concurrency Exposure": "99.52%", + "API Exposure": "12.46%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "context_b", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 81, - "End Line": 86 - }, - { - "Function Name": "asyncgen_state_try", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 51, - "End Line": 59 - }, - { - "Function Name": "generator_state_try", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 62, - "End Line": 70 - }, - { - "Function Name": "context_a", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 73, - "End Line": 78 - }, - { - "Function Name": "test_context_b_raise", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 274, - "End Line": 278 - }, - { - "Function Name": "test_sync_context_b_raise", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 384, - "End Line": 388 - }, + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_background_tasks", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "9.1%", - "Start Line": 281, - "End Line": 293 + "Function Name": "noop_wrap_async", + "Structural Impact": 14.3, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "34.8%", + "Start Line": 25, + "End Line": 55 }, { - "Function Name": "test_sync_background_tasks", - "Structural Impact": 2.5, + "Function Name": "wrapper", + "Structural Impact": 9.1, "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "12.5%", - "Start Line": 391, - "End Line": 399 - }, - { - "Function Name": "test_context_b", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 265, - "End Line": 271 + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "30.8%", + "Start Line": 45, + "End Line": 53 }, { - "Function Name": "test_sync_context_b", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, + "Function Name": "gen_wrapper", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 375, - "End Line": 381 + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 29, + "End Line": 31 }, { - "Function Name": "test_async_raise_other", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, + "Function Name": "async_gen_wrapper", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 232, - "End Line": 237 + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 38, + "End Line": 40 }, { - "Function Name": "test_sync_raise_other", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 240, - "End Line": 245 + "Function Name": "wrapper", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "test_async_raise_raises", - "Structural Impact": 2.3, + "Function Name": "noop_wrap", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 248, - "End Line": 253 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 22 }, { - "Function Name": "test_sync_raise_raises", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 296, - "End Line": 301 + "Function Name": "get_async_wrapped_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 219, + "End Line": 222 }, { - "Function Name": "test_sync_async_raise_raises", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 341, - "End Line": 346 + "Function Name": "get_wrapped_class_instance_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 226, + "End Line": 229 }, { - "Function Name": "test_sync_sync_raise_raises", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 358, - "End Line": 363 + "Function Name": "get_wrapped_class_instance_async_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 233, + "End Line": 236 }, { - "Function Name": "get_sync_context_b_bg", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 10, + "Function Name": "get_wrapped_class_instance_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 203 + "Start Line": 240, + "End Line": 243 }, { - "Function Name": "test_sync_async_raise_other", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 327, - "End Line": 331 + "Function Name": "get_wrapped_class_instance_async_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 247, + "End Line": 250 }, { - "Function Name": "test_sync_sync_raise_other", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 334, - "End Line": 338 + "Function Name": "get_class_instance_wrapped_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 257 }, { - "Function Name": "get_context_b_bg", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "get_class_instance_wrapped_async_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 136, - "End Line": 141 + "Start Line": 261, + "End Line": 264 }, { - "Function Name": "middleware", - "Structural Impact": 1.9, + "Function Name": "get_class_instance_async_wrapped_dependency", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 207, - "End Line": 210 + "Start Line": 268, + "End Line": 271 }, { - "Function Name": "asyncgen_state", + "Function Name": "get_class_instance_async_wrapped_async_dependency", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 275, + "End Line": 278 }, { - "Function Name": "generator_state", + "Function Name": "get_class_instance_wrapped_gen_dependency", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 48 + "Start Line": 282, + "End Line": 285 }, { - "Function Name": "get_async_raise", + "Function Name": "get_class_instance_wrapped_async_gen_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 100, - "End Line": 102 + "Start Line": 289, + "End Line": 292 }, { - "Function Name": "get_sync_raise", + "Function Name": "get_class_instance_async_wrapped_gen_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 108 + "Start Line": 296, + "End Line": 299 }, { - "Function Name": "get_async_raise_other", + "Function Name": "get_class_instance_async_wrapped_gen_async_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 114 + "Start Line": 303, + "End Line": 306 }, { - "Function Name": "get_sync_raise_other", + "Function Name": "get_wrapped_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 120 + "Start Line": 350, + "End Line": 353 }, { - "Function Name": "get_context_b_raise", + "Function Name": "get_wrapped_gen_dependency_async_wrapper", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 132 + "Start Line": 357, + "End Line": 360 }, { - "Function Name": "get_sync_async_raise", + "Function Name": "get_async_wrapped_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 160 + "Start Line": 364, + "End Line": 367 }, { - "Function Name": "get_sync_sync_raise", + "Function Name": "get_async_wrapped_gen_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 164, - "End Line": 166 + "Start Line": 371, + "End Line": 374 }, { - "Function Name": "get_sync_async_raise_other", + "Function Name": "get_wrapped_class_instance_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 170, - "End Line": 172 + "Start Line": 378, + "End Line": 381 }, { - "Function Name": "get_sync_sync_raise_other", + "Function Name": "get_wrapped_class_instance_async_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 176, - "End Line": 178 + "Start Line": 385, + "End Line": 388 }, { - "Function Name": "get_sync_context_b_raise", + "Function Name": "get_wrapped_class_dependency_async_wrapper", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 190 + "Start Line": 392, + "End Line": 395 }, { - "Function Name": "bg", + "Function Name": "test_class_dependency", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 197, - "End Line": 200 + "Start Line": 446, + "End Line": 449 }, { - "Function Name": "get_async", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 91 + "Start Line": 59, + "End Line": 60 }, { - "Function Name": "get_sync", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 69, + "End Line": 70 }, { - "Function Name": "get_context_b", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 124, - "End Line": 125 + "Start Line": 79, + "End Line": 80 }, { - "Function Name": "bg", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 138 + "Start Line": 88, + "End Line": 89 }, { - "Function Name": "get_sync_async", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 148, - "End Line": 149 + "Start Line": 97, + "End Line": 98 }, { - "Function Name": "get_sync_sync", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 153, - "End Line": 154 + "Start Line": 106, + "End Line": 107 }, { - "Function Name": "get_sync_context_b", + "Function Name": "__init__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 183 + "Start Line": 114, + "End Line": 115 }, { - "Function Name": "test_async_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 256, - "End Line": 262 + "Start Line": 123, + "End Line": 124 }, { - "Function Name": "test_sync_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 304, - "End Line": 310 + "Start Line": 135, + "End Line": 136 }, { - "Function Name": "test_sync_async_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 145, + "End Line": 146 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 154, + "End Line": 155 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 163, + "End Line": 164 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 172, + "End Line": 173 + }, + { + "Function Name": "get_wrapped_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 204, + "End Line": 205 + }, + { + "Function Name": "get_wrapped_gen_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 209, + "End Line": 210 + }, + { + "Function Name": "get_async_wrapped_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 214, + "End Line": 215 + }, + { + "Function Name": "get_wrapped_class_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 310, + "End Line": 311 + }, + { + "Function Name": "wrapped_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 349, - "End Line": 355 + "Start Line": 184, + "End Line": 185 }, { - "Function Name": "test_sync_sync_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "wrapped_gen_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 366, - "End Line": 372 + "Start Line": 189, + "End Line": 190 }, { - "Function Name": "test_async_state", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "async_wrapped_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 216, - "End Line": 221 + "Start Line": 194, + "End Line": 195 }, { - "Function Name": "test_sync_state", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "async_wrapped_gen_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 224, - "End Line": 229 + "Start Line": 199, + "End Line": 200 }, { - "Function Name": "test_sync_async_state", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_wrapped_endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 313, + "Start Line": 316, "End Line": 317 }, { - "Function Name": "test_sync_sync_state", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_async_wrapped_endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 320, - "End Line": 324 + "Start Line": 322, + "End Line": 323 }, { - "Function Name": "get_state", + "Function Name": "wrapped_dependency_async_wrapper", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 25, - "Sequential Logic Declarations": 158, - "Function Parameters": 50, - "Function/Method Declarations": 50, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 93, - "Type/Safety Bypasses": 4, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 71, - "State Mutations / Variable Reassignments": 14, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 116, - "Asynchronous/Concurrent Execution": 28, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 19, - "Generic Type Abstractions": 4, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 25, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 40, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 206, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 6, - "Vectorized Math & Tensor Operations": 18, - "Core Var Decl": 46, - "Design Camel Case": 0, - "Design Snake Case": 45, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 40, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.responses", - "fastapi.testclient", - "json", - "pytest" - ] - }, - "python/fastapi/tests/test_dependency_contextvars.py": { - "1. Artifact Identity": { - "Filename": "test_dependency_contextvars.py", - "Path": "python/fastapi/tests/test_dependency_contextvars.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4695.34, - "Y": 189.13, - "Z": 749.29 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 53, - "Coding LOC": 31, - "Documentation LOC": 6, - "Structural Magnitude": 14.62, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.355 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.27%", - "Error & Exception Exposure": "46.07%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.98%", - "Concurrency Exposure": "92.02%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 330, + "End Line": 331 + }, { - "Function Name": "custom_middleware", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "wrapped_gen_dependency_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 28 + "Start Line": 335, + "End Line": 336 }, { - "Function Name": "test_dependency_contextvars", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 12, + "Function Name": "async_wrapped_dependency_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 52 + "Start Line": 340, + "End Line": 341 }, { - "Function Name": "set_up_request_state_dependency", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "async_wrapped_gen_dependency_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Start Line": 345, + "End Line": 346 }, { - "Function Name": "get_user", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_wrapped_endpoint_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 35 + "Start Line": 400, + "End Line": 401 + }, + { + "Function Name": "get_async_wrapped_endpoint_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 406, + "End Line": 407 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 20, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, + "Control Flow Branches": 10, + "Sequential Logic Declarations": 171, + "Function Parameters": 56, + "Function/Method Declarations": 56, + "Class/Entity Declarations": 13, "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 84, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 4, - "Asynchronous/Concurrent Execution": 3, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 98, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 53, + "Generic Type Abstractions": 8, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 18, + "Module Dependencies (Imports)": 10, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 25, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 14, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 15, + "Structural Space Indentations": 154, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -179659,17 +177433,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 1, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 9, + "Lazy Evaluation & Generators (O(1) Memory)": 18, + "Vectorized Math & Tensor Operations": 42, + "Core Var Decl": 48, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 0, + "Design Snake Case": 46, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Design Long Vars": 16, + "Duplicate Logic": 12, + "Orphaned Logic": 30, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -179693,36 +177467,39 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 9, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "asyncio", "collections.abc", - "contextvars", "fastapi", + "fastapi.concurrency", "fastapi.testclient", - "typing" + "functools", + "inspect", + "pytest", + "sys" ] }, - "python/fastapi/tests/test_dependency_duplicates.py": { + "python/fastapi/tests/test_dependency_yield_except_httpexception.py": { "1. Artifact Identity": { - "Filename": "test_dependency_duplicates.py", - "Path": "python/fastapi/tests/test_dependency_duplicates.py", + "Filename": "test_dependency_yield_except_httpexception.py", + "Path": "python/fastapi/tests/test_dependency_yield_except_httpexception.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1999.7, - "Y": -150.68, - "Z": -506.81 + "X": 3075.13, + "Y": 2.33, + "Z": -1339.47 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -179731,24 +177508,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 238, - "Coding LOC": 211, + "Total LOC": 73, + "Coding LOC": 53, "Documentation LOC": 0, - "Structural Magnitude": 50.92, - "Control Flow Ratio": "10.5%", + "Structural Magnitude": 37.06, + "Control Flow Ratio": "22.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.112 + "Raw Cognitive Density": 0.717 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.61%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "23.35%", + "Error & Exception Exposure": "0.8%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.13%", - "Concurrency Exposure": "30.51%", + "API Exposure": "10.21%", + "Concurrency Exposure": "98.68%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -179759,149 +177536,99 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 10.7, - "Lines of Code (LOC)": 153, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "10.5%", - "Start Line": 85, - "End Line": 237 - }, - { - "Function Name": "test_sub_duplicates", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, + "Function Name": "get_database", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 3, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 76, - "End Line": 82 + "Control Flow Ratio": "75.0%", + "Start Line": 16, + "End Line": 25 }, { - "Function Name": "test_duplicates", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_dependency_gets_exception", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 70, - "End Line": 73 - }, - { - "Function Name": "sub_duplicate_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 - }, - { - "Function Name": "no_duplicates_sub", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 43 - }, - { - "Function Name": "with_duplicates", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 - }, - { - "Function Name": "no_duplicates", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Control Flow Ratio": "20.0%", + "Start Line": 53, + "End Line": 61 }, { - "Function Name": "test_no_duplicates_invalid", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, + "Function Name": "test_dependency_no_exception", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 58 + "Control Flow Ratio": "20.0%", + "Start Line": 64, + "End Line": 72 }, { - "Function Name": "duplicate_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "put_invalid_user", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 29, + "End Line": 33 }, { - "Function Name": "dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "put_user", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 37, + "End Line": 39 }, { - "Function Name": "test_no_duplicates", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "reset_state_and_db", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 67 + "Start Line": 43, + "End Line": 47 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 51, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 13, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 28, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 29, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 15, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 8, + "State Mutations / Variable Reassignments": 5, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 19, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 3, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 5, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -179909,7 +177636,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 2, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -179919,7 +177646,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 188, + "Structural Space Indentations": 34, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -179934,17 +177661,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Lazy Evaluation & Generators (O(1) Memory)": 1, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 13, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 3, + "Design Snake Case": 13, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -179968,7 +177695,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -179976,14 +177703,13 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pytest" ] }, - "python/fastapi/tests/test_dependency_overrides.py": { + "python/fastapi/tests/test_dependency_yield_scope.py": { "1. Artifact Identity": { - "Filename": "test_dependency_overrides.py", - "Path": "python/fastapi/tests/test_dependency_overrides.py", + "Filename": "test_dependency_yield_scope.py", + "Path": "python/fastapi/tests/test_dependency_yield_scope.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -179993,9 +177719,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3486.34, - "Y": 41.3, - "Z": 357.88 + "X": 2385.38, + "Y": -110.45, + "Z": 688.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -180004,24 +177730,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 390, - "Coding LOC": 310, + "Total LOC": 246, + "Coding LOC": 171, "Documentation LOC": 0, - "Structural Magnitude": 101.7, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 104.62, + "Control Flow Ratio": "6.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.119 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "7.45%", + "Cognitive Load Exposure": "3.71%", + "Error & Exception Exposure": "23.23%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.19%", - "Concurrency Exposure": "51.76%", + "API Exposure": "13.22%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -180032,369 +177758,379 @@ }, "5. Function Analysis": [ { - "Function Name": "test_override_simple", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 208, - "End Line": 213 + "Function Name": "test_broken_scope", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 182, + "End Line": 190 }, { - "Function Name": "common_parameters", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Function Name": "test_app_level_dep_scope_function", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "14.3%", + "Start Line": 222, + "End Line": 232 }, { - "Function Name": "test_override_with_sub_main_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, + "Function Name": "test_app_level_dep_scope_request", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 216, - "End Line": 231 + "Control Flow Ratio": "14.3%", + "Start Line": 235, + "End Line": 245 }, { - "Function Name": "test_override_with_sub__main_depends_q_foo", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "get_stream_session", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 234, - "End Line": 249 + "Start Line": 96, + "End Line": 104 }, { - "Function Name": "test_override_with_sub_decorator_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, + "Function Name": "test_router_level_dep_scope_request", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 260, - "End Line": 275 + "Control Flow Ratio": "20.0%", + "Start Line": 215, + "End Line": 219 }, { - "Function Name": "test_override_with_sub_decorator_depends_q_foo", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "get_named_session", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 278, - "End Line": 293 + "Start Line": 38, + "End Line": 42 }, { - "Function Name": "test_override_with_sub_router_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "__init__", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 304, - "End Line": 319 + "Start Line": 33, + "End Line": 35 }, { - "Function Name": "test_override_with_sub_router_depends_q_foo", + "Function Name": "get_sub", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 322, - "End Line": 337 + "Start Line": 108, + "End Line": 114 }, { - "Function Name": "test_override_with_sub_router_decorator_depends", + "Function Name": "get_named_function_scope", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 348, - "End Line": 363 + "Start Line": 118, + "End Line": 124 }, { - "Function Name": "test_override_with_sub_router_decorator_depends_q_foo", + "Function Name": "get_regular_function_scope", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 366, - "End Line": 381 + "Start Line": 128, + "End Line": 134 }, { - "Function Name": "test_main_depends", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "function_scope", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 63 + "Start Line": 80, + "End Line": 84 }, { - "Function Name": "test_decorator_depends", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "request_scope", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 96 + "Start Line": 88, + "End Line": 92 }, { - "Function Name": "test_router_depends", + "Function Name": "get_named_func_session", "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 123 + "Start Line": 48, + "End Line": 51 }, { - "Function Name": "test_router_decorator_depends", + "Function Name": "get_named_regular_func_session", "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 144, - "End Line": 156 + "Start Line": 54, + "End Line": 56 }, { - "Function Name": "main_depends", + "Function Name": "__init__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "router_depends", + "Function Name": "get_broken", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 189, + "End Line": 190 }, { - "Function Name": "overrider_dependency_simple", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_two_scopes", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 166, + "End Line": 171 }, { - "Function Name": "overrider_sub_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_sub", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 + "Start Line": 174, + "End Line": 179 }, { - "Function Name": "overrider_dependency_with_sub", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_named_function_scope", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 193, + "End Line": 198 }, { - "Function Name": "test_main_depends_q_foo", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_regular_function_scope", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 72 + "Start Line": 201, + "End Line": 206 }, { - "Function Name": "test_main_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "dep_session", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 81 + "Start Line": 16, + "End Line": 19 }, { - "Function Name": "test_router_depends_q_foo", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 132 + "Start Line": 99, + "End Line": 102 }, { - "Function Name": "test_router_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 141 + "Start Line": 109, + "End Line": 112 }, { - "Function Name": "test_override_with_sub_main_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 252, - "End Line": 257 + "Start Line": 119, + "End Line": 122 }, { - "Function Name": "test_override_with_sub_decorator_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 296, - "End Line": 301 + "Start Line": 129, + "End Line": 132 }, { - "Function Name": "test_override_with_sub_router_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_function_scope", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 340, - "End Line": 345 + "Start Line": 152, + "End Line": 156 }, { - "Function Name": "test_override_with_sub_router_decorator_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_request_scope", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 384, - "End Line": 389 + "Start Line": 159, + "End Line": 163 }, { - "Function Name": "test_decorator_depends_q_foo", + "Function Name": "test_router_level_dep_scope_function", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 102 + "Start Line": 209, + "End Line": 212 }, { - "Function Name": "test_decorator_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "raise_after_yield", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 108 + "Start Line": 22, + "End Line": 24 }, { - "Function Name": "test_router_decorator_depends_q_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_index", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 159, - "End Line": 162 + "Start Line": 75, + "End Line": 76 }, { - "Function Name": "test_router_decorator_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "iter_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 165, - "End Line": 168 + "Start Line": 81, + "End Line": 82 }, { - "Function Name": "decorator_depends", + "Function Name": "iter_data", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 89, + "End Line": 90 }, { - "Function Name": "router_decorator_depends", + "Function Name": "get_app_scope_function", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 226, + "End Line": 227 + }, + { + "Function Name": "get_app_scope_request", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 239, + "End Line": 240 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 108, - "Function Parameters": 33, - "Function/Method Declarations": 33, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 62, - "Type/Safety Bypasses": 13, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 87, + "Function Parameters": 34, + "Function/Method Declarations": 34, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 25, + "Type/Safety Bypasses": 14, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 37, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 15, + "Exposed API / Public Exports": 44, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 77, - "Asynchronous/Concurrent Execution": 8, + "Unit Test Assertions": 38, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 10, + "Generic Type Abstractions": 29, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 6, + "Dependency Injection Constructs": 12, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -180402,17 +178138,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 264, + "Structural Space Indentations": 114, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -180427,17 +178163,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 35, + "Lazy Evaluation & Generators (O(1) Memory)": 13, + "Vectorized Math & Tensor Operations": 8, + "Core Var Decl": 43, "Design Camel Case": 0, - "Design Snake Case": 34, - "Design Pascal Case": 1, + "Design Snake Case": 36, + "Design Pascal Case": 7, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 29, + "Duplicate Logic": 5, + "Orphaned Logic": 21, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -180461,21 +178197,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "pytest" + "json", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_dependency_paramless.py": { + "python/fastapi/tests/test_dependency_yield_scope_websockets.py": { "1. Artifact Identity": { - "Filename": "test_dependency_paramless.py", - "Path": "python/fastapi/tests/test_dependency_paramless.py", + "Filename": "test_dependency_yield_scope_websockets.py", + "Path": "python/fastapi/tests/test_dependency_yield_scope_websockets.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -180485,9 +178225,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1630.95, - "Y": -202.56, - "Z": -593.86 + "X": 2042.83, + "Y": -116.99, + "Z": 191.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -180496,24 +178236,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 78, - "Coding LOC": 52, - "Documentation LOC": 4, - "Structural Magnitude": 30.24, - "Control Flow Ratio": "18.2%", + "Total LOC": 201, + "Coding LOC": 149, + "Documentation LOC": 0, + "Structural Magnitude": 89.58, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.21 + "Raw Cognitive Density": 0.702 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.16%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "22.61%", + "Error & Exception Exposure": "35.27%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.37%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.43%", + "Concurrency Exposure": "99.94%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -180524,137 +178264,257 @@ }, "5. Function Analysis": [ { - "Function Name": "process_auth", - "Structural Impact": 7.5, + "Function Name": "test_broken_scope", + "Structural Impact": 4.5, "Lines of Code (LOC)": 11, "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 15, - "End Line": 25 + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 169, + "End Line": 179 }, { - "Function Name": "test_parameterless_with_scopes", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_stream_session", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 88, + "End Line": 96 + }, + { + "Function Name": "test_sub", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 60, - "End Line": 65 + "Control Flow Ratio": "14.3%", + "Start Line": 158, + "End Line": 166 }, { - "Function Name": "test_parameterless_without_scopes", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_named_function_scope", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 68, - "End Line": 73 + "Control Flow Ratio": "14.3%", + "Start Line": 182, + "End Line": 190 }, { - "Function Name": "get_credentials", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_function_scope", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 130, + "End Line": 136 + }, + { + "Function Name": "test_request_scope", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 139, + "End Line": 145 + }, + { + "Function Name": "test_two_scopes", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 148, + "End Line": 155 + }, + { + "Function Name": "test_regular_function_scope", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 193, + "End Line": 200 + }, + { + "Function Name": "get_named_session", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 36, + "End Line": 42 }, { - "Function Name": "test_get_credentials", - "Structural Impact": 1.2, + "Function Name": "get_named_function_scope", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 108, + "End Line": 114 + }, + { + "Function Name": "get_regular_function_scope", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 118, + "End Line": 124 + }, + { + "Function Name": "get_sub", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 100, + "End Line": 104 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 33 + }, + { + "Function Name": "function_scope", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 78 + }, + { + "Function Name": "request_scope", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 82, + "End Line": 84 + }, + { + "Function Name": "get_broken", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 176, + "End Line": 179 }, { - "Function Name": "get_parameterless_with_scopes", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_named_func_session", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 48, + "End Line": 53 }, { - "Function Name": "get_parameterless_without_scopes", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_named_regular_func_session", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 56, + "End Line": 58 }, { - "Function Name": "test_call_get_parameterless_without_scopes_for_coverage", - "Structural Impact": 1.1, + "Function Name": "__init__", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "dep_session", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 77 + "Start Line": 17, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 27, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 9, + "Sequential Logic Declarations": 72, + "Function Parameters": 20, + "Function/Method Declarations": 20, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 19, + "Type/Safety Bypasses": 15, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 15, + "Exposed API / Public Exports": 20, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 28, + "Asynchronous/Concurrent Execution": 20, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 7, + "Generic Type Abstractions": 25, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 8, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Explicit Type Casts": 6, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 29, + "Structural Space Indentations": 102, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -180669,24 +178529,24 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 31, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 0, + "Design Snake Case": 24, + "Design Pascal Case": 7, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 7, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -180703,22 +178563,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "contextvars", "fastapi", - "fastapi.security", + "fastapi.exceptions", "fastapi.testclient", + "pytest", "typing" ] }, - "python/fastapi/tests/test_dependency_partial.py": { + "python/fastapi/tests/test_depends_hashable.py": { "1. Artifact Identity": { - "Filename": "test_dependency_partial.py", - "Path": "python/fastapi/tests/test_dependency_partial.py", + "Filename": "test_depends_hashable.py", + "Path": "python/fastapi/tests/test_depends_hashable.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -180728,9 +178590,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2193.01, - "Y": -110.7, - "Z": -382.62 + "X": 5147.06, + "Y": 266.18, + "Z": 30.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -180739,24 +178601,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 252, - "Coding LOC": 198, - "Documentation LOC": 0, - "Structural Magnitude": 120.56, + "Total LOC": 26, + "Coding LOC": 15, + "Documentation LOC": 3, + "Structural Magnitude": 5.1, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.133 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "3.91%", + "Error & Exception Exposure": "27.01%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.98%", - "Concurrency Exposure": "100.0%", + "API Exposure": "6.67%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -180767,289 +178629,59 @@ }, "5. Function Analysis": [ { - "Function Name": "get_partial_async_callable_gen_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 138, - "End Line": 148 - }, - { - "Function Name": "get_partial_synchronous_method_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 152, - "End Line": 162 - }, - { - "Function Name": "get_partial_synchronous_method_gen_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 166, - "End Line": 177 - }, - { - "Function Name": "get_partial_asynchronous_method_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 181, - "End Line": 192 - }, - { - "Function Name": "get_partial_asynchronous_method_gen_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 196, - "End Line": 207 - }, - { - "Function Name": "get_partial_async_function_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 87 - }, - { - "Function Name": "get_partial_async_callable_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 134 - }, - { - "Function Name": "test_dependency_types_with_partial", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 248, - "End Line": 251 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 45 - }, - { - "Function Name": "synchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "asynchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 53 - }, - { - "Function Name": "synchronous_gen", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 - }, - { - "Function Name": "asynchronous_gen", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 - }, - { - "Function Name": "get_partial_callable_gen_dependency", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 122 - }, - { - "Function Name": "get_partial_function_dependency", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 75 - }, - { - "Function Name": "get_partial_async_gen_dependency", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 103 - }, - { - "Function Name": "get_partial_callable_dependency", + "Function Name": "test_depends_hashable", "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 107, - "End Line": 112 - }, - { - "Function Name": "get_partial_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 94 - }, - { - "Function Name": "function_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "async_function_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "gen_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "End Line": 25 }, { - "Function Name": "async_gen_dependency", - "Structural Impact": 1.5, + "Function Name": "dep", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 8, + "End Line": 9 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 61, - "Function Parameters": 25, - "Function/Method Declarations": 25, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 9, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 38, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 34, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 13, - "Generic Type Abstractions": 25, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 1, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 13, + "Dependency Injection Constructs": 5, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -181063,11 +178695,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 4, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 137, + "Structural Space Indentations": 12, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -181082,17 +178714,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 14, - "Vectorized Math & Tensor Operations": 13, - "Core Var Decl": 8, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 2, + "Design Short Vars": 6, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -181116,24 +178748,19 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 1, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", - "fastapi", - "fastapi.testclient", - "functools", - "pytest", - "typing" + "fastapi" ] }, - "python/fastapi/tests/test_dependency_pep695.py": { + "python/fastapi/tests/test_deprecated_openapi_prefix.py": { "1. Artifact Identity": { - "Filename": "test_dependency_pep695.py", - "Path": "python/fastapi/tests/test_dependency_pep695.py", + "Filename": "test_deprecated_openapi_prefix.py", + "Path": "python/fastapi/tests/test_deprecated_openapi_prefix.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -181143,9 +178770,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4039.41, - "Y": 107.42, - "Z": -1968.79 + "X": 2926.6, + "Y": -83.22, + "Z": -2013.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -181154,24 +178781,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 28, - "Coding LOC": 18, + "Total LOC": 46, + "Coding LOC": 36, "Documentation LOC": 0, - "Structural Magnitude": 10.56, + "Structural Magnitude": 9.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.444 + "Raw Cognitive Density": 0.056 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "11.38%", + "Cognitive Load Exposure": "2.93%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.56%", - "Concurrency Exposure": "86.77%", + "API Exposure": "8.36%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -181182,44 +178809,44 @@ }, "5. Function Analysis": [ { - "Function Name": "test_pep695_type_dependencies", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Function Name": "test_openapi", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 27 + "Start Line": 22, + "End Line": 45 }, { - "Function Name": "get_with_dep", + "Function Name": "read_main", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 22 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "some_value", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_main", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 16, + "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 15, + "Sequential Logic Declarations": 14, "Function Parameters": 3, "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -181227,24 +178854,24 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -181262,7 +178889,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, + "Structural Space Indentations": 27, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -181279,15 +178906,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Core Var Decl": 4, "Design Camel Case": 0, "Design Snake Case": 4, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -181311,7 +178938,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -181319,26 +178946,26 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "typing", - "typing_extensions" + "inline_snapshot" ] }, - "python/fastapi/tests/test_dependency_security_overrides.py": { + "python/fastapi/tests/test_deprecated_responses.py": { "1. Artifact Identity": { - "Filename": "test_dependency_security_overrides.py", - "Path": "python/fastapi/tests/test_dependency_security_overrides.py", + "Filename": "test_deprecated_responses.py", + "Path": "python/fastapi/tests/test_deprecated_responses.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2478.96, - "Y": -56.9, - "Z": 1467.73 + "X": 3934.72, + "Y": 124.85, + "Z": -989.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -181347,23 +178974,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 44, - "Documentation LOC": 0, - "Structural Magnitude": 21.28, - "Control Flow Ratio": "0.0%", + "Total LOC": 74, + "Coding LOC": 48, + "Documentation LOC": 2, + "Structural Magnitude": 28.16, + "Control Flow Ratio": "21.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.045 + "Raw Cognitive Density": 0.208 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.82%", - "Error & Exception Exposure": "43.71%", + "Cognitive Load Exposure": "5.14%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.03%", + "API Exposure": "7.38%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -181375,119 +179002,119 @@ }, "5. Function Analysis": [ { - "Function Name": "read_user", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Function Name": "test_orjson_response_emits_deprecation_warning", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 41, + "End Line": 43 }, { - "Function Name": "get_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Function Name": "test_ujson_response_emits_deprecation_warning", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 71, + "End Line": 73 }, { - "Function Name": "get_user_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Function Name": "_make_orjson_app", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 19, + "End Line": 28 }, { - "Function Name": "test_normal", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Function Name": "_make_ujson_app", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 41 + "Control Flow Ratio": "20.0%", + "Start Line": 49, + "End Line": 58 }, { - "Function Name": "test_override_data", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, + "Function Name": "test_orjson_response_returns_correct_data", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 52 + "Control Flow Ratio": "25.0%", + "Start Line": 31, + "End Line": 38 }, { - "Function Name": "test_override_security", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, + "Function Name": "test_ujson_response_returns_correct_data", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 63 + "Control Flow Ratio": "25.0%", + "Start Line": 61, + "End Line": 68 }, { - "Function Name": "get_data", + "Function Name": "get_items", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "get_data_override", + "Function Name": "get_items", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 55, + "End Line": 56 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 29, "Function Parameters": 8, "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 2, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 11, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -181501,11 +179128,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 4, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 29, + "Structural Space Indentations": 34, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -181521,15 +179148,15 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, + "Duplicate Logic": 2, "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, @@ -181554,33 +179181,38 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient" + "fastapi.exceptions", + "fastapi.responses", + "fastapi.testclient", + "pydantic", + "pytest", + "warnings" ] }, - "python/fastapi/tests/test_dependency_wrapped.py": { + "python/fastapi/tests/test_dump_json_fast_path.py": { "1. Artifact Identity": { - "Filename": "test_dependency_wrapped.py", - "Path": "python/fastapi/tests/test_dependency_wrapped.py", + "Filename": "test_dump_json_fast_path.py", + "Path": "python/fastapi/tests/test_dump_json_fast_path.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2559.82, - "Y": -64.83, - "Z": 212.84 + "X": 872.11, + "Y": -318.49, + "Z": -253.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -181589,24 +179221,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 450, - "Coding LOC": 301, - "Documentation LOC": 2, - "Structural Magnitude": 295.42, - "Control Flow Ratio": "5.5%", + "Total LOC": 52, + "Coding LOC": 32, + "Documentation LOC": 4, + "Structural Magnitude": 14.84, + "Control Flow Ratio": "8.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.956 + "Raw Cognitive Density": 0.438 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "49.6%", - "Error & Exception Exposure": "47.39%", + "Cognitive Load Exposure": "5.57%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.46%", - "Concurrency Exposure": "100.0%", + "API Exposure": "8.15%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -181617,599 +179249,79 @@ }, "5. Function Analysis": [ { - "Function Name": "noop_wrap_async", - "Structural Impact": 14.3, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "34.8%", - "Start Line": 25, - "End Line": 55 - }, - { - "Function Name": "wrapper", - "Structural Impact": 9.1, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "30.8%", - "Start Line": 45, - "End Line": 53 - }, - { - "Function Name": "gen_wrapper", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 29, - "End Line": 31 - }, - { - "Function Name": "async_gen_wrapper", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_default_response_class_skips_json_dumps", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 38, - "End Line": 40 - }, - { - "Function Name": "wrapper", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "noop_wrap", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 22 - }, - { - "Function Name": "get_async_wrapped_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 219, - "End Line": 222 - }, - { - "Function Name": "get_wrapped_class_instance_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 226, - "End Line": 229 - }, - { - "Function Name": "get_wrapped_class_instance_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 233, - "End Line": 236 - }, - { - "Function Name": "get_wrapped_class_instance_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 240, - "End Line": 243 - }, - { - "Function Name": "get_wrapped_class_instance_async_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 247, - "End Line": 250 - }, - { - "Function Name": "get_class_instance_wrapped_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 257 - }, - { - "Function Name": "get_class_instance_wrapped_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 261, - "End Line": 264 - }, - { - "Function Name": "get_class_instance_async_wrapped_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 268, - "End Line": 271 - }, - { - "Function Name": "get_class_instance_async_wrapped_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 275, - "End Line": 278 - }, - { - "Function Name": "get_class_instance_wrapped_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 282, - "End Line": 285 - }, - { - "Function Name": "get_class_instance_wrapped_async_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 289, - "End Line": 292 - }, - { - "Function Name": "get_class_instance_async_wrapped_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 296, - "End Line": 299 - }, - { - "Function Name": "get_class_instance_async_wrapped_gen_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 303, - "End Line": 306 - }, - { - "Function Name": "get_wrapped_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 350, - "End Line": 353 - }, - { - "Function Name": "get_wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 357, - "End Line": 360 - }, - { - "Function Name": "get_async_wrapped_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 364, - "End Line": 367 - }, - { - "Function Name": "get_async_wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 371, - "End Line": 374 - }, - { - "Function Name": "get_wrapped_class_instance_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 378, - "End Line": 381 - }, - { - "Function Name": "get_wrapped_class_instance_async_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 385, - "End Line": 388 - }, - { - "Function Name": "get_wrapped_class_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 392, - "End Line": 395 - }, - { - "Function Name": "test_class_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 446, - "End Line": 449 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 70 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 80 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 89 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 98 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 107 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 114, - "End Line": 115 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 123, - "End Line": 124 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 136 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 145, - "End Line": 146 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 154, - "End Line": 155 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 163, - "End Line": 164 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 172, - "End Line": 173 - }, - { - "Function Name": "get_wrapped_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 204, - "End Line": 205 - }, - { - "Function Name": "get_wrapped_gen_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 210 - }, - { - "Function Name": "get_async_wrapped_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 214, - "End Line": 215 - }, - { - "Function Name": "get_wrapped_class_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 310, - "End Line": 311 - }, - { - "Function Name": "wrapped_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 184, - "End Line": 185 - }, - { - "Function Name": "wrapped_gen_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 189, - "End Line": 190 - }, - { - "Function Name": "async_wrapped_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 195 - }, - { - "Function Name": "async_wrapped_gen_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 199, - "End Line": 200 - }, - { - "Function Name": "get_wrapped_endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 316, - "End Line": 317 - }, - { - "Function Name": "get_async_wrapped_endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 322, - "End Line": 323 - }, - { - "Function Name": "wrapped_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 330, - "End Line": 331 - }, - { - "Function Name": "wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 335, - "End Line": 336 - }, - { - "Function Name": "async_wrapped_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 340, - "End Line": 341 + "Control Flow Ratio": "20.0%", + "Start Line": 30, + "End Line": 39 }, { - "Function Name": "async_wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_explicit_response_class_uses_json_dumps", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 345, - "End Line": 346 + "Control Flow Ratio": "20.0%", + "Start Line": 42, + "End Line": 51 }, { - "Function Name": "get_wrapped_endpoint_async_wrapper", + "Function Name": "get_default", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 400, - "End Line": 401 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "get_async_wrapped_endpoint_async_wrapper", + "Function Name": "get_explicit", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 406, - "End Line": 407 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 10, - "Sequential Logic Declarations": 171, - "Function Parameters": 56, - "Function/Method Declarations": 56, - "Class/Entity Declarations": 13, - "Defensive Programming Constructs": 3, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 23, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 84, - "State Mutations / Variable Reassignments": 1, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 98, + "Structured Documentation Blocks": 4, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 53, - "Generic Type Abstractions": 8, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 18, - "Module Dependencies (Imports)": 10, + "Metaprogramming & Reflection": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 25, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -182223,11 +179335,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 14, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 154, + "Structural Space Indentations": 18, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -182242,17 +179354,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 18, - "Vectorized Math & Tensor Operations": 42, - "Core Var Decl": 48, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 46, - "Design Pascal Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 16, - "Duplicate Logic": 12, - "Orphaned Logic": 30, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -182276,39 +179388,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 9, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "asyncio", - "collections.abc", "fastapi", - "fastapi.concurrency", + "fastapi.responses", "fastapi.testclient", - "functools", - "inspect", - "pytest", - "sys" + "json", + "pydantic", + "unittest.mock" ] }, - "python/fastapi/tests/test_dependency_yield_except_httpexception.py": { + "python/fastapi/tests/test_duplicate_models_openapi.py": { "1. Artifact Identity": { - "Filename": "test_dependency_yield_except_httpexception.py", - "Path": "python/fastapi/tests/test_dependency_yield_except_httpexception.py", + "Filename": "test_duplicate_models_openapi.py", + "Path": "python/fastapi/tests/test_duplicate_models_openapi.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3075.13, - "Y": 2.33, - "Z": -1339.47 + "X": 1582.8, + "Y": -176.55, + "Z": -1673.71 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -182317,24 +179427,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 73, - "Coding LOC": 53, + "Total LOC": 85, + "Coding LOC": 69, "Documentation LOC": 0, - "Structural Magnitude": 37.06, - "Control Flow Ratio": "22.2%", + "Structural Magnitude": 13.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.717 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "23.35%", - "Error & Exception Exposure": "0.8%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "28.77%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.21%", - "Concurrency Exposure": "98.68%", + "API Exposure": "8.74%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -182345,99 +179455,69 @@ }, "5. Function Analysis": [ { - "Function Name": "get_database", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "75.0%", - "Start Line": 16, - "End Line": 25 - }, - { - "Function Name": "test_dependency_gets_exception", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 53, - "End Line": 61 - }, - { - "Function Name": "test_dependency_no_exception", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 64, - "End Line": 72 - }, - { - "Function Name": "put_invalid_user", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 49, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 33 + "Start Line": 36, + "End Line": 84 }, { - "Function Name": "put_user", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_get_api_route", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 39 + "Start Line": 30, + "End Line": 33 }, { - "Function Name": "reset_state_and_db", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "f", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 47 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 28, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 29, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 23, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 5, + "Exposed API / Public Exports": 6, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 19, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -182445,7 +179525,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 2, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -182455,7 +179535,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 34, + "Structural Space Indentations": 56, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -182470,17 +179550,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 1, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 13, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 13, + "Design Snake Case": 5, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -182504,7 +179584,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -182512,13 +179592,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pytest" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_dependency_yield_scope.py": { + "python/fastapi/tests/test_empty_router.py": { "1. Artifact Identity": { - "Filename": "test_dependency_yield_scope.py", - "Path": "python/fastapi/tests/test_dependency_yield_scope.py", + "Filename": "test_empty_router.py", + "Path": "python/fastapi/tests/test_empty_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -182528,9 +179609,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2385.38, - "Y": -110.45, - "Z": 688.36 + "X": 1186.9, + "Y": -295.59, + "Z": -1405.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -182539,26 +179620,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 246, - "Coding LOC": 171, - "Documentation LOC": 0, - "Structural Magnitude": 104.62, - "Control Flow Ratio": "6.5%", + "Total LOC": 37, + "Coding LOC": 22, + "Documentation LOC": 1, + "Structural Magnitude": 10.24, + "Control Flow Ratio": "11.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.119 + "Raw Cognitive Density": 0.182 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.71%", - "Error & Exception Exposure": "23.23%", + "Cognitive Load Exposure": "4.67%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.22%", + "API Exposure": "8.85%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Commented Logic Exposure": "23.15%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -182567,379 +179648,69 @@ }, "5. Function Analysis": [ { - "Function Name": "test_broken_scope", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 182, - "End Line": 190 - }, - { - "Function Name": "test_app_level_dep_scope_function", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 222, - "End Line": 232 - }, - { - "Function Name": "test_app_level_dep_scope_request", + "Function Name": "test_use_empty", "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 235, - "End Line": 245 - }, - { - "Function Name": "get_stream_session", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 104 + "Control Flow Ratio": "16.7%", + "Start Line": 22, + "End Line": 30 }, { - "Function Name": "test_router_level_dep_scope_request", + "Function Name": "test_include_empty", "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 215, - "End Line": 219 - }, - { - "Function Name": "get_named_session", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 42 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "50.0%", "Start Line": 33, - "End Line": 35 - }, - { - "Function Name": "get_sub", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 108, - "End Line": 114 - }, - { - "Function Name": "get_named_function_scope", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 124 - }, - { - "Function Name": "get_regular_function_scope", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 134 - }, - { - "Function Name": "function_scope", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 84 - }, - { - "Function Name": "request_scope", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 92 - }, - { - "Function Name": "get_named_func_session", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 - }, - { - "Function Name": "get_named_regular_func_session", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 56 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "get_broken", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 189, - "End Line": 190 - }, - { - "Function Name": "test_two_scopes", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 166, - "End Line": 171 - }, - { - "Function Name": "test_sub", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 174, - "End Line": 179 - }, - { - "Function Name": "test_named_function_scope", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 193, - "End Line": 198 - }, - { - "Function Name": "test_regular_function_scope", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 201, - "End Line": 206 - }, - { - "Function Name": "dep_session", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 102 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 109, - "End Line": 112 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 119, - "End Line": 122 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 132 - }, - { - "Function Name": "test_function_scope", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 152, - "End Line": 156 - }, - { - "Function Name": "test_request_scope", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 159, - "End Line": 163 - }, - { - "Function Name": "test_router_level_dep_scope_function", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 212 - }, - { - "Function Name": "raise_after_yield", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 24 - }, - { - "Function Name": "get_index", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 82 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 90 - }, - { - "Function Name": "get_app_scope_function", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 226, - "End Line": 227 + "End Line": 36 }, { - "Function Name": "get_app_scope_request", + "Function Name": "get_empty", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 239, - "End Line": 240 + "Start Line": 12, + "End Line": 13 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 87, - "Function Parameters": 34, - "Function/Method Declarations": 34, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 25, - "Type/Safety Bypasses": 14, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 15, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 15, - "Exposed API / Public Exports": 44, - "State Mutations / Variable Reassignments": 3, - "Commented-out Code (Dead Logic)": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 1, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 38, + "Unit Test Assertions": 8, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 10, - "Generic Type Abstractions": 29, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 12, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -182947,17 +179718,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 114, + "Structural Space Indentations": 10, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -182972,17 +179743,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 13, - "Vectorized Math & Tensor Operations": 8, - "Core Var Decl": 43, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 36, - "Design Pascal Case": 7, + "Design Snake Case": 6, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 5, - "Orphaned Logic": 21, + "Duplicate Logic": 0, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183006,7 +179777,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -183014,17 +179785,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.exceptions", - "fastapi.responses", "fastapi.testclient", - "json", - "pytest", - "typing" + "pytest" ] }, - "python/fastapi/tests/test_dependency_yield_scope_websockets.py": { + "python/fastapi/tests/test_enforce_once_required_parameter.py": { "1. Artifact Identity": { - "Filename": "test_dependency_yield_scope_websockets.py", - "Path": "python/fastapi/tests/test_dependency_yield_scope_websockets.py", + "Filename": "test_enforce_once_required_parameter.py", + "Path": "python/fastapi/tests/test_enforce_once_required_parameter.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -183034,9 +179802,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2042.83, - "Y": -116.99, - "Z": 191.96 + "X": 3481.17, + "Y": 7.27, + "Z": -1666.07 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183045,24 +179813,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 201, - "Coding LOC": 149, + "Total LOC": 116, + "Coding LOC": 100, "Documentation LOC": 0, - "Structural Magnitude": 89.58, - "Control Flow Ratio": "11.1%", + "Structural Magnitude": 20.6, + "Control Flow Ratio": "2.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.702 + "Raw Cognitive Density": 0.043 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "22.61%", - "Error & Exception Exposure": "35.27%", + "Cognitive Load Exposure": "2.79%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.43%", - "Concurrency Exposure": "99.94%", + "API Exposure": "3.42%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -183073,257 +179841,117 @@ }, "5. Function Analysis": [ { - "Function Name": "test_broken_scope", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 169, - "End Line": 179 - }, - { - "Function Name": "get_stream_session", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 76, "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 96 - }, - { - "Function Name": "test_sub", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 158, - "End Line": 166 - }, - { - "Function Name": "test_named_function_scope", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 182, - "End Line": 190 - }, - { - "Function Name": "test_function_scope", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 130, - "End Line": 136 - }, - { - "Function Name": "test_request_scope", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 139, - "End Line": 145 - }, - { - "Function Name": "test_two_scopes", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 148, - "End Line": 155 - }, - { - "Function Name": "test_regular_function_scope", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 193, - "End Line": 200 - }, - { - "Function Name": "get_named_session", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 42 - }, - { - "Function Name": "get_named_function_scope", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 108, - "End Line": 114 + "Start Line": 40, + "End Line": 115 }, { - "Function Name": "get_regular_function_scope", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 124 + "Function Name": "_get_client_tag", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 15 }, { - "Function Name": "get_sub", + "Function Name": "foo_handler", "Structural Impact": 2.0, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 100, - "End Line": 104 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 33 - }, - { - "Function Name": "function_scope", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 78 + "Start Line": 19, + "End Line": 23 }, { - "Function Name": "request_scope", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "_get_client_key", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 84 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "get_broken", - "Structural Impact": 1.9, + "Function Name": "test_get_valid", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 176, - "End Line": 179 - }, - { - "Function Name": "get_named_func_session", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 53 + "Start Line": 34, + "End Line": 37 }, { - "Function Name": "get_named_regular_func_session", - "Structural Impact": 1.6, + "Function Name": "test_get_invalid", + "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 58 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 - }, - { - "Function Name": "dep_session", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 22 + "Start Line": 29, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 9, - "Sequential Logic Declarations": 72, - "Function Parameters": 20, - "Function/Method Declarations": 20, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 19, - "Type/Safety Bypasses": 15, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 33, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 15, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 3, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 28, - "Asynchronous/Concurrent Execution": 20, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 25, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 8, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 6, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 6, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 102, + "Structural Space Indentations": 87, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -183338,24 +179966,24 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 3, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 31, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 24, - "Design Pascal Case": 7, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 14, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 7, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -183372,24 +180000,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "contextvars", "fastapi", - "fastapi.exceptions", "fastapi.testclient", - "pytest", - "typing" + "inline_snapshot" ] }, - "python/fastapi/tests/test_depends_hashable.py": { + "python/fastapi/tests/test_exception_handlers.py": { "1. Artifact Identity": { - "Filename": "test_depends_hashable.py", - "Path": "python/fastapi/tests/test_depends_hashable.py", + "Filename": "test_exception_handlers.py", + "Path": "python/fastapi/tests/test_exception_handlers.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -183399,9 +180024,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 5147.06, - "Y": 266.18, - "Z": 30.03 + "X": 2187.75, + "Y": -131.34, + "Z": 967.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183410,23 +180035,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 26, - "Coding LOC": 15, - "Documentation LOC": 3, - "Structural Magnitude": 5.1, - "Control Flow Ratio": "0.0%", + "Total LOC": 89, + "Coding LOC": 57, + "Documentation LOC": 0, + "Structural Magnitude": 40.64, + "Control Flow Ratio": "10.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.133 + "Raw Cognitive Density": 0.152 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.91%", - "Error & Exception Exposure": "27.01%", + "Cognitive Load Exposure": "4.18%", + "Error & Exception Exposure": "15.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.67%", + "API Exposure": "11.78%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -183438,77 +180063,197 @@ }, "5. Function Analysis": [ { - "Function Name": "test_depends_hashable", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, + "Function Name": "test_traceback_for_dependency_with_yield", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 82, + "End Line": 88 + }, + { + "Function Name": "test_override_server_error_exception_raises", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 70, + "End Line": 72 + }, + { + "Function Name": "http_exception_handler", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 + }, + { + "Function Name": "request_validation_exception_handler", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", "Start Line": 12, - "End Line": 25 + "End Line": 13 }, { - "Function Name": "dep", + "Function Name": "server_error_exception_handler", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "route_with_request_validation_exception", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "test_override_http_exception", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 58, + "End Line": 61 + }, + { + "Function Name": "test_override_request_validation_exception", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 64, + "End Line": 67 + }, + { + "Function Name": "test_override_server_error_exception_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 79 + }, + { + "Function Name": "raise_value_error", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 31, + "End Line": 32 + }, + { + "Function Name": "dependency_with_yield", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 36 + }, + { + "Function Name": "with_yield", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 40, + "End Line": 40 + }, + { + "Function Name": "route_with_http_exception", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 45 + }, + { + "Function Name": "route_with_server_error", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 55 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 9, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 36, + "Function Parameters": 14, + "Function/Method Declarations": 14, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 18, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, + "Unit Test Assertions": 16, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 4, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 5, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Explicit Type Casts": 1, + "Fatal Aborts & Exceptions": 3, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 12, + "Structural Space Indentations": 31, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -183523,17 +180268,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, + "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 6, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183557,31 +180302,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 1, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi" + "fastapi", + "fastapi.exceptions", + "fastapi.testclient", + "pytest", + "starlette.responses" ] }, - "python/fastapi/tests/test_deprecated_openapi_prefix.py": { + "python/fastapi/tests/test_extra_routes.py": { "1. Artifact Identity": { - "Filename": "test_deprecated_openapi_prefix.py", - "Path": "python/fastapi/tests/test_deprecated_openapi_prefix.py", + "Filename": "test_extra_routes.py", + "Path": "python/fastapi/tests/test_extra_routes.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2926.6, - "Y": -83.22, - "Z": -2013.83 + "X": 3702.57, + "Y": 81.25, + "Z": 302.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183590,23 +180340,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 46, - "Coding LOC": 36, + "Total LOC": 371, + "Coding LOC": 333, "Documentation LOC": 0, - "Structural Magnitude": 9.62, + "Structural Magnitude": 57.16, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.056 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.93%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.36%", + "API Exposure": "9.77%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -183618,67 +180368,187 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, + "Function Name": "test_openapi_schema", + "Structural Impact": 14.0, + "Lines of Code (LOC)": 274, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 45 + "Start Line": 97, + "End Line": 370 }, { - "Function Name": "read_main", + "Function Name": "delete_item", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + }, + { + "Function Name": "patch_item", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "get_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "test_main", + "Function Name": "get_not_decorated", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "head_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 34 + }, + { + "Function Name": "options_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 39 + }, + { + "Function Name": "trace_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 49 + }, + { + "Function Name": "test_get_api_route", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 55, + "End Line": 58 + }, + { + "Function Name": "test_get_api_route_not_decorated", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 64 + }, + { + "Function Name": "test_delete", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 67, + "End Line": 70 + }, + { + "Function Name": "test_head", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 76 + }, + { + "Function Name": "test_options", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 82 + }, + { + "Function Name": "test_patch", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 88 + }, + { + "Function Name": "test_trace", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 91, + "End Line": 94 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Sequential Logic Declarations": 72, + "Function Parameters": 15, + "Function/Method Declarations": 15, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 18, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 27, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 6, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 4, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -183698,7 +180568,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 27, + "Structural Space Indentations": 303, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -183714,16 +180584,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183747,34 +180617,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_deprecated_responses.py": { + "python/fastapi/tests/test_fastapi_cli.py": { "1. Artifact Identity": { - "Filename": "test_deprecated_responses.py", - "Path": "python/fastapi/tests/test_deprecated_responses.py", + "Filename": "test_fastapi_cli.py", + "Path": "python/fastapi/tests/test_fastapi_cli.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3934.72, - "Y": 124.85, - "Z": -989.16 + "X": 2400.8, + "Y": -134.87, + "Z": -2139.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183783,23 +180654,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 74, - "Coding LOC": 48, - "Documentation LOC": 2, - "Structural Magnitude": 28.16, - "Control Flow Ratio": "21.6%", + "Total LOC": 35, + "Coding LOC": 29, + "Documentation LOC": 0, + "Structural Magnitude": 7.68, + "Control Flow Ratio": "13.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.208 + "Raw Cognitive Density": 0.138 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.14%", + "Cognitive Load Exposure": "3.98%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.38%", + "API Exposure": "6.13%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -183811,112 +180682,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_orjson_response_emits_deprecation_warning", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 41, - "End Line": 43 - }, - { - "Function Name": "test_ujson_response_emits_deprecation_warning", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_fastapi_cli_not_installed", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 71, - "End Line": 73 - }, - { - "Function Name": "_make_orjson_app", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 19, - "End Line": 28 - }, - { - "Function Name": "_make_ujson_app", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 49, - "End Line": 58 - }, - { - "Function Name": "test_orjson_response_returns_correct_data", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 31, - "End Line": 38 - }, - { - "Function Name": "test_ujson_response_returns_correct_data", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 61, - "End Line": 68 - }, - { - "Function Name": "get_items", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Control Flow Ratio": "40.0%", + "Start Line": 30, + "End Line": 34 }, { - "Function Name": "get_items", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_fastapi_cli", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 + "Start Line": 10, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 29, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 13, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "I/O and Network Boundaries": 2, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 4, + "Global State Dependencies": 1, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -183930,22 +180741,22 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 4, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 34, + "Structural Space Indentations": 21, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, + "Ipc Rpc Bridges": 2, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, @@ -183957,16 +180768,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 4, + "Duplicate Logic": 0, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183983,45 +180794,43 @@ "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, - "Sec Tainted Injection": 0, + "Sec Tainted Injection": 1, "Prompt Injection": 0, "Agentic Rce": 0, "Invisible Unicode Payload Smuggling": 0, "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 1, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.responses", - "fastapi.testclient", - "pydantic", + "fastapi.cli", + "os", "pytest", - "warnings" + "subprocess", + "sys", + "unittest.mock" ] }, - "python/fastapi/tests/test_dump_json_fast_path.py": { + "python/fastapi/tests/test_file_and_form_order_issue_9116.py": { "1. Artifact Identity": { - "Filename": "test_dump_json_fast_path.py", - "Path": "python/fastapi/tests/test_dump_json_fast_path.py", + "Filename": "test_file_and_form_order_issue_9116.py", + "Path": "python/fastapi/tests/test_file_and_form_order_issue_9116.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 872.11, - "Y": -318.49, - "Z": -253.12 + "X": 1384.75, + "Y": -230.69, + "Z": -28.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184030,23 +180839,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 52, - "Coding LOC": 32, + "Total LOC": 90, + "Coding LOC": 64, "Documentation LOC": 4, - "Structural Magnitude": 14.84, - "Control Flow Ratio": "8.0%", + "Structural Magnitude": 29.08, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.438 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.57%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.15%", + "API Exposure": "11.37%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -184058,77 +180867,117 @@ }, "5. Function Analysis": [ { - "Function Name": "test_default_response_class_skips_json_dumps", + "Function Name": "test_file_list_form_order", "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 30, - "End Line": 39 + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 89 }, { - "Function Name": "test_explicit_response_class_uses_json_dumps", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 42, - "End Line": 51 + "Function Name": "test_file_form_order", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 73 }, { - "Function Name": "get_default", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "file_before_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 17, + "End Line": 21 }, { - "Function Name": "get_explicit", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "file_after_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 25, + "End Line": 29 + }, + { + "Function Name": "file_list_before_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 37 + }, + { + "Function Name": "file_list_after_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 45 + }, + { + "Function Name": "tmp_file_1", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 55 + }, + { + "Function Name": "tmp_file_2", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 62 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 23, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 27, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 4, - "Unit Test Assertions": 10, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 2, - "Module Dependencies (Imports)": 7, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -184144,11 +180993,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 18, + "Structural Space Indentations": 36, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -184164,16 +181013,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 16, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 16, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 2, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184197,37 +181046,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", - "json", - "pydantic", - "unittest.mock" + "pathlib", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_duplicate_models_openapi.py": { + "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py": { "1. Artifact Identity": { - "Filename": "test_duplicate_models_openapi.py", - "Path": "python/fastapi/tests/test_duplicate_models_openapi.py", + "Filename": "test_filter_pydantic_sub_model_pv2.py", + "Path": "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "BaseModel, ModelB", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1582.8, - "Y": -176.55, - "Z": -1673.71 + "X": 3871.94, + "Y": 78.35, + "Z": 668.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184236,24 +181084,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 85, - "Coding LOC": 69, + "Total LOC": 183, + "Coding LOC": 166, "Documentation LOC": 0, - "Structural Magnitude": 13.18, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 39.82, + "Control Flow Ratio": "3.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.06 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "28.77%", + "Cognitive Load Exposure": "2.98%", + "Error & Exception Exposure": "35.47%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.74%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.53%", + "Concurrency Exposure": "26.85%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -184265,68 +181113,108 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 49, + "Structural Impact": 6.9, + "Lines of Code (LOC)": 109, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 84 + "Start Line": 74, + "End Line": 182 }, { - "Function Name": "test_get_api_route", - "Structural Impact": 1.2, + "Function Name": "lower_username", + "Structural Impact": 4.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "33.3%", + "Start Line": 28, + "End Line": 31 + }, + { + "Function Name": "get_client", + "Structural Impact": 3.9, + "Lines of Code (LOC)": 37, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "7.1%", + "Start Line": 10, + "End Line": 46 + }, + { + "Function Name": "test_validator_is_cloned", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 60, + "End Line": 71 + }, + { + "Function Name": "get_model_a", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 37, + "End Line": 43 }, { - "Function Name": "f", + "Function Name": "test_filter_sub_model", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 57 + }, + { + "Function Name": "get_model_c", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 33, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 54, + "Function Parameters": 7, + "Function/Method Declarations": 7, "Class/Entity Declarations": 3, "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -184334,7 +181222,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -184344,7 +181232,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 56, + "Structural Space Indentations": 155, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -184360,16 +181248,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184393,22 +181281,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dirty_equals", "fastapi", + "fastapi.exceptions", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_empty_router.py": { + "python/fastapi/tests/test_form_default.py": { "1. Artifact Identity": { - "Filename": "test_empty_router.py", - "Path": "python/fastapi/tests/test_empty_router.py", + "Filename": "test_form_default.py", + "Path": "python/fastapi/tests/test_form_default.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -184418,9 +181309,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1186.9, - "Y": -295.59, - "Z": -1405.69 + "X": 1609.86, + "Y": -199.24, + "Z": 1640.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184429,26 +181320,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 37, + "Total LOC": 35, "Coding LOC": 22, - "Documentation LOC": 1, - "Structural Magnitude": 10.24, - "Control Flow Ratio": "11.8%", + "Documentation LOC": 0, + "Structural Magnitude": 14.34, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.182 + "Raw Cognitive Density": 0.364 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.67%", + "Cognitive Load Exposure": "8.79%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.85%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.86%", + "Concurrency Exposure": "82.7%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "23.15%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -184457,62 +181348,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_use_empty", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 22, - "End Line": 30 + "Function Name": "post_multi_part", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 15, + "End Line": 19 }, { - "Function Name": "test_include_empty", - "Structural Impact": 2.2, + "Function Name": "post_url_encoded", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 10, + "End Line": 11 + }, + { + "Function Name": "test_form_default_url_encoded", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 33, - "End Line": 36 + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "get_empty", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_form_default_multi_part", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 15, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 16, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 1, + "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -184553,16 +181454,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184586,22 +181487,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pytest" + "starlette.testclient", + "typing" ] }, - "python/fastapi/tests/test_enforce_once_required_parameter.py": { + "python/fastapi/tests/test_forms_from_non_typing_sequences.py": { "1. Artifact Identity": { - "Filename": "test_enforce_once_required_parameter.py", - "Path": "python/fastapi/tests/test_enforce_once_required_parameter.py", + "Filename": "test_forms_from_non_typing_sequences.py", + "Path": "python/fastapi/tests/test_forms_from_non_typing_sequences.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -184611,9 +181511,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3481.17, - "Y": 7.27, - "Z": -1666.07 + "X": 2225.54, + "Y": -144.6, + "Z": 1587.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184622,23 +181522,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 116, - "Coding LOC": 100, + "Total LOC": 47, + "Coding LOC": 31, "Documentation LOC": 0, - "Structural Magnitude": 20.6, - "Control Flow Ratio": "2.9%", + "Structural Magnitude": 18.02, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.043 + "Raw Cognitive Density": 0.065 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.79%", + "Cognitive Load Exposure": "3.03%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "3.42%", + "API Exposure": "11.9%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -184650,117 +181550,117 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 76, + "Function Name": "post_form_param_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 115 - }, - { - "Function Name": "_get_client_tag", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 15 + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "foo_handler", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "post_form_param_set", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 23 + "Start Line": 13, + "End Line": 14 }, { - "Function Name": "_get_client_key", + "Function Name": "post_form_param_tuple", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "test_get_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_python_list_param_as_form", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 37 + "Start Line": 25, + "End Line": 30 }, { - "Function Name": "test_get_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_python_set_param_as_form", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 31 + "Start Line": 33, + "End Line": 38 + }, + { + "Function Name": "test_python_tuple_param_as_form", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 46 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 33, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 19, "Function Parameters": 6, "Function/Method Declarations": 6, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 6, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 87, + "Structural Space Indentations": 18, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -184776,16 +181676,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 11, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184809,33 +181709,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_exception_handlers.py": { + "python/fastapi/tests/test_forms_single_model.py": { "1. Artifact Identity": { - "Filename": "test_exception_handlers.py", - "Path": "python/fastapi/tests/test_exception_handlers.py", + "Filename": "test_forms_single_model.py", + "Path": "python/fastapi/tests/test_forms_single_model.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2187.75, - "Y": -131.34, - "Z": 967.1 + "X": 4034.77, + "Y": 133.35, + "Z": -529.18 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184844,23 +181744,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 89, - "Coding LOC": 57, + "Total LOC": 142, + "Coding LOC": 116, "Documentation LOC": 0, - "Structural Magnitude": 40.64, - "Control Flow Ratio": "10.0%", + "Structural Magnitude": 33.02, + "Control Flow Ratio": "14.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.152 + "Raw Cognitive Density": 0.069 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.18%", - "Error & Exception Exposure": "15.31%", + "Cognitive Load Exposure": "3.08%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.78%", + "API Exposure": "10.34%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -184872,197 +181772,137 @@ }, "5. Function Analysis": [ { - "Function Name": "test_traceback_for_dependency_with_yield", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_send_all_data", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 19, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 82, - "End Line": 88 - }, - { - "Function Name": "test_override_server_error_exception_raises", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 70, - "End Line": 72 - }, - { - "Function Name": "http_exception_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 - }, - { - "Function Name": "request_validation_exception_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "server_error_exception_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "route_with_request_validation_exception", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "test_override_http_exception", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 61 + "Control Flow Ratio": "40.0%", + "Start Line": 37, + "End Line": 55 }, { - "Function Name": "test_override_request_validation_exception", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "test_no_data", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 67 + "Control Flow Ratio": "28.6%", + "Start Line": 93, + "End Line": 111 }, { - "Function Name": "test_override_server_error_exception_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, + "Function Name": "test_defaults", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 79 + "Control Flow Ratio": "25.0%", + "Start Line": 58, + "End Line": 67 }, { - "Function Name": "raise_value_error", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_invalid_data", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 70, + "End Line": 90 }, { - "Function Name": "dependency_with_yield", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_extra_param_single", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 114, + "End Line": 126 }, { - "Function Name": "with_yield", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 1, + "Function Name": "test_extra_param_list", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 40 + "Start Line": 129, + "End Line": 141 }, { - "Function Name": "route_with_http_exception", - "Structural Impact": 1.1, + "Function Name": "post_form", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 45 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "route_with_server_error", - "Structural Impact": 1.1, + "Function Name": "post_form_extra_allow", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 + "Start Line": 30, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, + "Control Flow Branches": 6, "Sequential Logic Declarations": 36, - "Function Parameters": 14, - "Function/Method Declarations": 14, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 1, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 19, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 18, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 16, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 4, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, - "Fatal Aborts & Exceptions": 3, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 31, + "Structural Space Indentations": 98, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -185077,17 +181917,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 3, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 10, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -185111,36 +181951,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", "fastapi.testclient", - "pytest", - "starlette.responses" + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_extra_routes.py": { + "python/fastapi/tests/test_forms_single_param.py": { "1. Artifact Identity": { - "Filename": "test_extra_routes.py", - "Path": "python/fastapi/tests/test_extra_routes.py", + "Filename": "test_forms_single_param.py", + "Path": "python/fastapi/tests/test_forms_single_param.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3702.57, - "Y": 81.25, - "Z": 302.41 + "X": 4383.87, + "Y": 119.72, + "Z": 1323.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185149,10 +181987,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 371, - "Coding LOC": 333, + "Total LOC": 110, + "Coding LOC": 99, "Documentation LOC": 0, - "Structural Magnitude": 57.16, + "Structural Magnitude": 13.98, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -185165,7 +182003,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.77%", + "API Exposure": "6.83%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -185178,186 +182016,66 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 14.0, - "Lines of Code (LOC)": 274, + "Structural Impact": 5.3, + "Lines of Code (LOC)": 86, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 370 - }, - { - "Function Name": "delete_item", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 - }, - { - "Function Name": "patch_item", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 - }, - { - "Function Name": "get_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "get_not_decorated", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 - }, - { - "Function Name": "head_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 - }, - { - "Function Name": "options_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 + "Start Line": 24, + "End Line": 109 }, { - "Function Name": "trace_item", + "Function Name": "post_form", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 49 - }, - { - "Function Name": "test_get_api_route", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 58 - }, - { - "Function Name": "test_get_api_route_not_decorated", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 64 - }, - { - "Function Name": "test_delete", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 70 - }, - { - "Function Name": "test_head", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 - }, - { - "Function Name": "test_options", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 82 - }, - { - "Function Name": "test_patch", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 88 + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "test_trace", + "Function Name": "test_single_form_field", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 94 + "Start Line": 18, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 72, - "Function Parameters": 15, - "Function/Method Declarations": 15, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 18, + "Sequential Logic Declarations": 29, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 27, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 4, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -185377,7 +182095,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 303, + "Structural Space Indentations": 89, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -185393,16 +182111,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 15, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 1, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 14, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -185426,35 +182144,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "pydantic" + "typing" ] }, - "python/fastapi/tests/test_fastapi_cli.py": { + "python/fastapi/tests/test_generate_unique_id_function.py": { "1. Artifact Identity": { - "Filename": "test_fastapi_cli.py", - "Path": "python/fastapi/tests/test_fastapi_cli.py", + "Filename": "test_generate_unique_id_function.py", + "Path": "python/fastapi/tests/test_generate_unique_id_function.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2400.8, - "Y": -134.87, - "Z": -2139.96 + "X": 2333.81, + "Y": -133.68, + "Z": -220.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185463,23 +182181,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 35, - "Coding LOC": 29, + "Total LOC": 1700, + "Coding LOC": 1644, "Documentation LOC": 0, - "Structural Magnitude": 7.68, - "Control Flow Ratio": "13.3%", + "Structural Magnitude": 216.08, + "Control Flow Ratio": "1.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.138 + "Raw Cognitive Density": 0.005 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.98%", + "Cognitive Load Exposure": "2.41%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.13%", + "API Exposure": "10.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -185491,49 +182209,339 @@ }, "5. Function Analysis": [ { - "Function Name": "test_fastapi_cli_not_installed", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, + "Function Name": "test_callback_override_generate_unique_id", + "Structural Impact": 15.7, + "Lines of Code (LOC)": 293, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 30, - "End Line": 34 + "Control Flow Ratio": "0.0%", + "Start Line": 1377, + "End Line": 1669 }, { - "Function Name": "test_fastapi_cli", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, + "Function Name": "test_subrouter_top_level_include_overrides_generate_unique_id", + "Structural Impact": 15.2, + "Lines of Code (LOC)": 283, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 662, + "End Line": 944 + }, + { + "Function Name": "test_app_path_operation_overrides_generate_unique_id", + "Structural Impact": 11.8, + "Lines of Code (LOC)": 215, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1160, + "End Line": 1374 + }, + { + "Function Name": "test_router_path_operation_overrides_generate_unique_id", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 211, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 947, + "End Line": 1157 + }, + { + "Function Name": "test_top_level_generate_unique_id", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 208, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 239 + }, + { + "Function Name": "test_router_overrides_generate_unique_id", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 208, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 242, + "End Line": 449 + }, + { + "Function Name": "test_router_include_overrides_generate_unique_id", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 208, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", + "Start Line": 452, + "End Line": 659 + }, + { + "Function Name": "test_warn_duplicate_operation_id", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "18.8%", + "Start Line": 1672, + "End Line": 1699 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 38 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 247, + "End Line": 248 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 253, + "End Line": 254 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 457, + "End Line": 458 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 463, + "End Line": 464 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 668, + "End Line": 669 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 674, + "End Line": 675 + }, + { + "Function Name": "post_subrouter", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 682, + "End Line": 683 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 952, + "End Line": 953 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 961, + "End Line": 962 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1170, + "End Line": 1171 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1178, + "End Line": 1179 + }, + { + "Function Name": "post_callback", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1387, + "End Line": 1388 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1397, + "End Line": 1398 + }, + { + "Function Name": "post_with_callback", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1405, + "End Line": 1406 + }, + { + "Function Name": "custom_generate_unique_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", "Start Line": 10, - "End Line": 27 + "End Line": 11 + }, + { + "Function Name": "custom_generate_unique_id2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 + }, + { + "Function Name": "custom_generate_unique_id3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "broken_operation_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1673, + "End Line": 1674 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1679, + "End Line": 1680 + }, + { + "Function Name": "post_second", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1683, + "End Line": 1684 + }, + { + "Function Name": "post_third", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1687, + "End Line": 1688 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 13, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 245, + "Function Parameters": 31, + "Function/Method Declarations": 31, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 14, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 2, - "Exposed API / Public Exports": 2, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 50, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 1, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 19, + "Generic Type Abstractions": 32, + "Collection Iterators / Comprehensions": 1, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 6, @@ -185558,14 +182566,14 @@ "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, + "Event Listeners & Subscribers": 2, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 21, + "Structural Space Indentations": 1625, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, - "Ipc Rpc Bridges": 2, + "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, @@ -185577,16 +182585,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 19, + "Core Var Decl": 62, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 62, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Design Long Vars": 6, + "Duplicate Logic": 13, + "Orphaned Logic": 12, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -185603,7 +182611,7 @@ "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, - "Sec Tainted Injection": 1, + "Sec Tainted Injection": 0, "Prompt Injection": 0, "Agentic Rce": 0, "Invisible Unicode Payload Smuggling": 0, @@ -185612,22 +182620,22 @@ "8. Dependency Network": { "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 1, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.cli", - "os", - "pytest", - "subprocess", - "sys", - "unittest.mock" + "fastapi", + "fastapi.routing", + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "warnings" ] }, - "python/fastapi/tests/test_file_and_form_order_issue_9116.py": { + "python/fastapi/tests/test_generic_parameterless_depends.py": { "1. Artifact Identity": { - "Filename": "test_file_and_form_order_issue_9116.py", - "Path": "python/fastapi/tests/test_file_and_form_order_issue_9116.py", + "Filename": "test_generic_parameterless_depends.py", + "Path": "python/fastapi/tests/test_generic_parameterless_depends.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -185637,9 +182645,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1384.75, - "Y": -230.69, - "Z": -28.3 + "X": 4865.06, + "Y": 221.98, + "Z": -369.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185648,10 +182656,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 90, - "Coding LOC": 64, - "Documentation LOC": 4, - "Structural Magnitude": 29.08, + "Total LOC": 80, + "Coding LOC": 60, + "Documentation LOC": 0, + "Structural Magnitude": 14.4, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -185661,11 +182669,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "32.9%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.37%", - "Concurrency Exposure": "0.0%", + "API Exposure": "3.66%", + "Concurrency Exposure": "51.06%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -185676,119 +182684,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_file_list_form_order", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 89 - }, - { - "Function Name": "test_file_form_order", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 73 - }, - { - "Function Name": "file_before_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 21 - }, - { - "Function Name": "file_after_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 - }, - { - "Function Name": "file_list_before_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 35, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 37 + "Start Line": 45, + "End Line": 79 }, { - "Function Name": "file_list_after_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "a", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 45 + "Start Line": 23, + "End Line": 24 }, { - "Function Name": "tmp_file_1", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "b", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 55 + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "tmp_file_2", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_generic_parameterless_depends", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 + "Start Line": 35, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 24, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 12, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 4, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -185802,11 +182770,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 4, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 36, + "Structural Space Indentations": 44, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -185822,13 +182790,13 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 16, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 2, + "Design Snake Case": 5, + "Design Pascal Case": 1, + "Design Upper Case": 1, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 2, @@ -185855,7 +182823,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -185863,28 +182831,27 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pathlib", - "pytest", + "inline_snapshot", "typing" ] }, - "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py": { + "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py": { "1. Artifact Identity": { - "Filename": "test_filter_pydantic_sub_model_pv2.py", - "Path": "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py", + "Filename": "test_get_model_definitions_formfeed_escape.py", + "Path": "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, ModelB", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3871.94, - "Y": 78.35, - "Z": 668.62 + "X": 1736.67, + "Y": -143.41, + "Z": 1091.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185893,24 +182860,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 183, - "Coding LOC": 166, - "Documentation LOC": 0, - "Structural Magnitude": 39.82, - "Control Flow Ratio": "3.6%", + "Total LOC": 161, + "Coding LOC": 139, + "Documentation LOC": 9, + "Structural Magnitude": 22.88, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.06 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.98%", - "Error & Exception Exposure": "35.47%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.53%", - "Concurrency Exposure": "26.85%", + "API Exposure": "8.17%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -185927,103 +182894,73 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 182 - }, - { - "Function Name": "lower_username", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "33.3%", - "Start Line": 28, - "End Line": 31 - }, - { - "Function Name": "get_client", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 37, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "7.1%", - "Start Line": 10, - "End Line": 46 - }, - { - "Function Name": "test_validator_is_cloned", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 60, - "End Line": 71 + "Start Line": 52, + "End Line": 160 }, { - "Function Name": "get_model_a", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, + "Function Name": "client_fixture", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 43 + "Start Line": 8, + "End Line": 36 }, { - "Function Name": "test_filter_sub_model", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, + "Function Name": "test_get", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 57 + "Start Line": 39, + "End Line": 49 }, { - "Function Name": "get_model_c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_facility", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 29, + "End Line": 33 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 54, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 39, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 2, + "Structured Documentation Blocks": 4, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -186031,7 +182968,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -186041,7 +182978,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 155, + "Structural Space Indentations": 131, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186058,15 +182995,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Core Var Decl": 6, "Design Camel Case": 0, "Design Snake Case": 6, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186090,37 +183027,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dirty_equals", "fastapi", - "fastapi.exceptions", "fastapi.testclient", "inline_snapshot", "pydantic", "pytest" ] }, - "python/fastapi/tests/test_form_default.py": { + "python/fastapi/tests/test_get_request_body.py": { "1. Artifact Identity": { - "Filename": "test_form_default.py", - "Path": "python/fastapi/tests/test_form_default.py", + "Filename": "test_get_request_body.py", + "Path": "python/fastapi/tests/test_get_request_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1609.86, - "Y": -199.24, - "Z": 1640.4 + "X": 4478.85, + "Y": 193.65, + "Z": 908.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186129,24 +183065,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 35, - "Coding LOC": 22, + "Total LOC": 115, + "Coding LOC": 103, "Documentation LOC": 0, - "Structural Magnitude": 14.34, + "Structural Magnitude": 16.06, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.364 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "8.79%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.86%", - "Concurrency Exposure": "82.7%", + "API Exposure": "7.54%", + "Concurrency Exposure": "22.88%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -186157,72 +183093,62 @@ }, "5. Function Analysis": [ { - "Function Name": "post_multi_part", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 86, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Start Line": 29, + "End Line": 114 }, { - "Function Name": "post_url_encoded", + "Function Name": "create_item", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 - }, - { - "Function Name": "test_form_default_url_encoded", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "test_form_default_multi_part", + "Function Name": "test_get_with_body", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 23, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 16, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Sequential Logic Declarations": 31, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -186247,7 +183173,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, + "Structural Space Indentations": 92, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186263,16 +183189,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186296,21 +183222,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "starlette.testclient", - "typing" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_forms_from_non_typing_sequences.py": { + "python/fastapi/tests/test_http_connection_injection.py": { "1. Artifact Identity": { - "Filename": "test_forms_from_non_typing_sequences.py", - "Path": "python/fastapi/tests/test_forms_from_non_typing_sequences.py", + "Filename": "test_http_connection_injection.py", + "Path": "python/fastapi/tests/test_http_connection_injection.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -186320,9 +183247,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2225.54, - "Y": -144.6, - "Z": 1587.41 + "X": 4390.57, + "Y": 137.1, + "Z": 638.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186331,24 +183258,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 47, - "Coding LOC": 31, + "Total LOC": 40, + "Coding LOC": 26, "Documentation LOC": 0, - "Structural Magnitude": 18.02, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 20.82, + "Control Flow Ratio": "4.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.065 + "Raw Cognitive Density": 1.131 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.03%", + "Cognitive Load Exposure": "41.05%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.9%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.48%", + "Concurrency Exposure": "99.95%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -186359,117 +183286,107 @@ }, "5. Function Analysis": [ { - "Function Name": "post_form_param_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_value_extracting_by_ws", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 37, + "End Line": 39 + }, + { + "Function Name": "get_value_by_ws", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 20, + "End Line": 25 }, { - "Function Name": "post_form_param_set", + "Function Name": "extract_value_from_http_connection", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "post_form_param_tuple", + "Function Name": "get_value_by_http", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 - }, - { - "Function Name": "test_python_list_param_as_form", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 30 - }, - { - "Function Name": "test_python_set_param_as_form", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 38 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "test_python_tuple_param_as_form", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_value_extracting_by_http", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 46 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 22, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Resource Deallocation & Cleanup": 1, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 18, + "Structural Space Indentations": 11, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186485,23 +183402,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 11, + "Design Snake Case": 5, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 1, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -186518,33 +183435,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.requests", + "fastapi.testclient", + "starlette.websockets" ] }, - "python/fastapi/tests/test_forms_single_model.py": { + "python/fastapi/tests/test_include_route.py": { "1. Artifact Identity": { - "Filename": "test_forms_single_model.py", - "Path": "python/fastapi/tests/test_forms_single_model.py", + "Filename": "test_include_route.py", + "Path": "python/fastapi/tests/test_include_route.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4034.77, - "Y": 133.35, - "Z": -529.18 + "X": 1106.62, + "Y": -261.82, + "Z": 1538.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186553,27 +183471,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 142, - "Coding LOC": 116, + "Total LOC": 23, + "Coding LOC": 14, "Documentation LOC": 0, - "Structural Magnitude": 33.02, - "Control Flow Ratio": "14.3%", + "Structural Magnitude": 4.98, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.069 + "Raw Cognitive Density": 0.143 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.08%", + "Cognitive Load Exposure": "5.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.34%", + "API Exposure": "6.91%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "93.33%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -186581,117 +183499,57 @@ }, "5. Function Analysis": [ { - "Function Name": "test_send_all_data", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 37, - "End Line": 55 - }, - { - "Function Name": "test_no_data", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 93, - "End Line": 111 - }, - { - "Function Name": "test_defaults", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 58, - "End Line": 67 - }, - { - "Function Name": "test_invalid_data", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 90 - }, - { - "Function Name": "test_extra_param_single", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 114, - "End Line": 126 - }, - { - "Function Name": "test_extra_param_list", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 141 - }, - { - "Function Name": "post_form", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "post_form_extra_allow", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_sub_router", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 19, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 36, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 19, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 11, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -186711,7 +183569,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 98, + "Structural Space Indentations": 4, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186728,15 +183586,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 15, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 1, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186760,34 +183618,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic", - "typing" + "fastapi.responses", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_forms_single_param.py": { + "python/fastapi/tests/test_include_router_defaults_overrides.py": { "1. Artifact Identity": { - "Filename": "test_forms_single_param.py", - "Path": "python/fastapi/tests/test_forms_single_param.py", + "Filename": "test_include_router_defaults_overrides.py", + "Path": "python/fastapi/tests/test_include_router_defaults_overrides.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4383.87, - "Y": 119.72, - "Z": 1323.45 + "X": 2832.54, + "Y": -53.29, + "Z": -42.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186796,24 +183654,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 110, - "Coding LOC": 99, + "Total LOC": 7305, + "Coding LOC": 7207, "Documentation LOC": 0, - "Structural Magnitude": 13.98, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 384.84, + "Control Flow Ratio": "6.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.018 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.54%", + "Error & Exception Exposure": "48.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.83%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.06%", + "Concurrency Exposure": "16.85%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -186824,76 +183682,316 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 86, - "Control Flow Branches": 0, + "Function Name": "test_openapi", + "Structural Impact": 99.5, + "Lines of Code (LOC)": 6866, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "0.5%", + "Start Line": 439, + "End Line": 7304 + }, + { + "Function Name": "test_paths_level5", + "Structural Impact": 31.0, + "Lines of Code (LOC)": 32, + "Control Flow Branches": 11, + "Input Parameters": 5, + "Control Flow Ratio": "52.4%", + "Start Line": 405, + "End Line": 436 + }, + { + "Function Name": "test_paths_level3", + "Structural Impact": 17.2, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 7, + "Input Parameters": 3, + "Control Flow Ratio": "46.7%", + "Start Line": 374, + "End Line": 397 + }, + { + "Function Name": "dep0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 109 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "post_form", + "Function Name": "dep1", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "test_single_form_field", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "dep2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 42, + "End Line": 43 + }, + { + "Function Name": "dep3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 + }, + { + "Function Name": "dep4", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 51 + }, + { + "Function Name": "dep5", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 55 + }, + { + "Function Name": "callback0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 62, + "End Line": 63 + }, + { + "Function Name": "callback1", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 71 + }, + { + "Function Name": "callback2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 79 + }, + { + "Function Name": "callback3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 86, + "End Line": 87 + }, + { + "Function Name": "callback4", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 94, + "End Line": 95 + }, + { + "Function Name": "callback5", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 102, + "End Line": 103 + }, + { + "Function Name": "path1_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 156, + "End Line": 157 + }, + { + "Function Name": "path1_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 161, + "End Line": 162 + }, + { + "Function Name": "path3_override_router2_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 177, + "End Line": 178 + }, + { + "Function Name": "path3_default_router2_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 183 + }, + { + "Function Name": "path3_override_router2_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 198, + "End Line": 199 + }, + { + "Function Name": "path3_default_router2_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 203, + "End Line": 204 + }, + { + "Function Name": "path5_override_router4_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 219, + "End Line": 220 + }, + { + "Function Name": "path5_default_router4_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 226, + "End Line": 227 + }, + { + "Function Name": "path5_override_router4_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 242, + "End Line": 243 + }, + { + "Function Name": "path5_default_router4_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 249, + "End Line": 250 + }, + { + "Function Name": "test_level1_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 21 + "Start Line": 347, + "End Line": 356 + }, + { + "Function Name": "test_level1_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 359, + "End Line": 368 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 19, + "Sequential Logic Declarations": 285, + "Function Parameters": 27, + "Function/Method Declarations": 27, + "Class/Entity Declarations": 6, + "Defensive Programming Constructs": 34, + "Type/Safety Bypasses": 6, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 35, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 47, + "Asynchronous/Concurrent Execution": 22, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 24, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 7, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 15, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -186904,7 +184002,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 89, + "Structural Space Indentations": 7104, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186920,16 +184018,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 24, + "Core Var Decl": 120, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 120, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 15, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186937,7 +184035,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 2, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -186953,35 +184051,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "typing" + "pytest", + "warnings" ] }, - "python/fastapi/tests/test_generate_unique_id_function.py": { + "python/fastapi/tests/test_infer_param_optionality.py": { "1. Artifact Identity": { - "Filename": "test_generate_unique_id_function.py", - "Path": "python/fastapi/tests/test_generate_unique_id_function.py", + "Filename": "test_infer_param_optionality.py", + "Path": "python/fastapi/tests/test_infer_param_optionality.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2333.81, - "Y": -133.68, - "Z": -220.73 + "X": 1850.98, + "Y": -182.05, + "Z": 259.99 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186990,23 +184089,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1700, - "Coding LOC": 1644, - "Documentation LOC": 0, - "Structural Magnitude": 216.08, - "Control Flow Ratio": "1.2%", + "Total LOC": 338, + "Coding LOC": 295, + "Documentation LOC": 8, + "Structural Magnitude": 53.8, + "Control Flow Ratio": "5.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.005 + "Raw Cognitive Density": 0.029 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.41%", + "Cognitive Load Exposure": "1.43%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.57%", + "API Exposure": "9.06%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -187018,341 +184117,404 @@ }, "5. Function Analysis": [ { - "Function Name": "test_callback_override_generate_unique_id", - "Structural Impact": 15.7, - "Lines of Code (LOC)": 293, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1377, - "End Line": 1669 - }, - { - "Function Name": "test_subrouter_top_level_include_overrides_generate_unique_id", - "Structural Impact": 15.2, - "Lines of Code (LOC)": 283, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 662, - "End Line": 944 - }, - { - "Function Name": "test_app_path_operation_overrides_generate_unique_id", - "Structural Impact": 11.8, - "Lines of Code (LOC)": 215, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1160, - "End Line": 1374 - }, - { - "Function Name": "test_router_path_operation_overrides_generate_unique_id", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 211, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 947, - "End Line": 1157 - }, - { - "Function Name": "test_top_level_generate_unique_id", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 208, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 239 - }, - { - "Function Name": "test_router_overrides_generate_unique_id", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 208, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 242, - "End Line": 449 - }, - { - "Function Name": "test_router_include_overrides_generate_unique_id", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 208, + "Function Name": "test_openapi_schema", + "Structural Impact": 12.6, + "Lines of Code (LOC)": 232, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 452, - "End Line": 659 + "Start Line": 106, + "End Line": 337 }, { - "Function Name": "test_warn_duplicate_operation_id", + "Function Name": "get_item", "Structural Impact": 5.4, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "18.8%", - "Start Line": 1672, - "End Line": 1699 - }, - { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 - }, - { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 - }, - { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 247, - "End Line": 248 - }, - { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 253, - "End Line": 254 - }, - { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 457, - "End Line": 458 - }, - { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 463, - "End Line": 464 + "Control Flow Ratio": "40.0%", + "Start Line": 31, + "End Line": 35 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 668, - "End Line": 669 + "Function Name": "get_items", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 23, + "End Line": 27 }, { - "Function Name": "post_router", - "Structural Impact": 1.8, + "Function Name": "get_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 674, - "End Line": 675 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "post_subrouter", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_items_1", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 682, - "End Line": 683 + "Start Line": 61, + "End Line": 68 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_users", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 952, - "End Line": 953 + "Start Line": 47, + "End Line": 51 }, { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_user", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 961, - "End Line": 962 + "Start Line": 54, + "End Line": 58 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_items_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1170, - "End Line": 1171 + "Start Line": 71, + "End Line": 75 }, { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_item_1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1178, - "End Line": 1179 + "Start Line": 78, + "End Line": 82 }, { - "Function Name": "post_callback", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_item_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1387, - "End Line": 1388 + "Start Line": 85, + "End Line": 89 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_users_items", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1397, - "End Line": 1398 + "Start Line": 92, + "End Line": 96 }, { - "Function Name": "post_with_callback", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_users_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1405, - "End Line": 1406 + "Start Line": 99, + "End Line": 103 }, { - "Function Name": "custom_generate_unique_id", - "Structural Impact": 1.5, + "Function Name": "get_users", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 13, + "End Line": 14 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 4, + "Sequential Logic Declarations": 65, + "Function Parameters": 13, + "Function/Method Declarations": 13, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 18, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 13, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 16, + "Unit Test Assertions": 27, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 268, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 18, + "Design Camel Case": 0, + "Design Snake Case": 16, + "Design Pascal Case": 2, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 13, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot" + ] + }, + "python/fastapi/tests/test_inherited_custom_class.py": { + "1. Artifact Identity": { + "Filename": "test_inherited_custom_class.py", + "Path": "python/fastapi/tests/test_inherited_custom_class.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4326.56, + "Y": 159.06, + "Z": 201.71 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 68, + "Coding LOC": 46, + "Documentation LOC": 3, + "Structural Magnitude": 26.72, + "Control Flow Ratio": "6.2%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.789 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "16.99%", + "Error & Exception Exposure": "21.2%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "6.39%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ + { + "Function Name": "test_pydanticv2", + "Structural Impact": 5.1, + "Lines of Code (LOC)": 41, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "11.8%", + "Start Line": 27, + "End Line": 67 }, { - "Function Name": "custom_generate_unique_id2", - "Structural Impact": 1.5, + "Function Name": "return_fast_uuid", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 33, + "End Line": 39 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "custom_generate_unique_id3", - "Structural Impact": 1.5, + "Function Name": "serialize_a_uuid", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "broken_operation_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "__dict__", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 1673, - "End Line": 1674 + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "post_root", + "Function Name": "__str__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 1679, - "End Line": 1680 + "Start Line": 13, + "End Line": 14 }, { - "Function Name": "post_second", + "Function Name": "__class__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 1683, - "End Line": 1684 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "post_third", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "return_some_user", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1687, - "End Line": 1688 + "Start Line": 51, + "End Line": 53 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 245, - "Function Parameters": 31, - "Function/Method Declarations": 31, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 30, + "Function Parameters": 8, + "Function/Method Declarations": 8, "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 14, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 50, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 8, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 7, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 19, - "Generic Type Abstractions": 32, - "Collection Iterators / Comprehensions": 1, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 4, "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -187368,17 +184530,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 1, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 2, + "Private / Encapsulated Scopes": 5, + "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 1625, + "Structural Space Indentations": 39, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187394,16 +184556,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 19, - "Core Var Decl": 62, + "Vectorized Math & Tensor Operations": 5, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 62, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 6, - "Duplicate Logic": 13, - "Orphaned Logic": 12, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -187427,36 +184589,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.routing", "fastapi.testclient", - "inline_snapshot", "pydantic", - "warnings" + "pytest", + "uuid" ] }, - "python/fastapi/tests/test_generic_parameterless_depends.py": { + "python/fastapi/tests/test_invalid_path_param.py": { "1. Artifact Identity": { - "Filename": "test_generic_parameterless_depends.py", - "Path": "python/fastapi/tests/test_generic_parameterless_depends.py", + "Filename": "test_invalid_path_param.py", + "Path": "python/fastapi/tests/test_invalid_path_param.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4865.06, - "Y": 221.98, - "Z": -369.97 + "X": 2982.62, + "Y": -17.4, + "Z": 970.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -187465,24 +184627,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 60, + "Total LOC": 76, + "Coding LOC": 51, "Documentation LOC": 0, - "Structural Magnitude": 14.4, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 52.62, + "Control Flow Ratio": "19.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.176 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "32.9%", + "Cognitive Load Exposure": "4.58%", + "Error & Exception Exposure": "48.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "3.66%", - "Concurrency Exposure": "51.06%", + "API Exposure": "14.82%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -187493,79 +184655,179 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 35, - "Control Flow Branches": 0, + "Function Name": "test_invalid_sequence", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 6, + "End Line": 15 + }, + { + "Function Name": "test_invalid_tuple", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 18, + "End Line": 27 + }, + { + "Function Name": "test_invalid_dict", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 30, + "End Line": 39 + }, + { + "Function Name": "test_invalid_simple_list", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 42, + "End Line": 48 + }, + { + "Function Name": "test_invalid_simple_tuple", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 51, + "End Line": 57 + }, + { + "Function Name": "test_invalid_simple_set", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 60, + "End Line": 66 + }, + { + "Function Name": "test_invalid_simple_dict", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 69, + "End Line": 75 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 79 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "a", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "b", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "test_generic_parameterless_depends", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 42 + "Start Line": 47, + "End Line": 48 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 66 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 74, + "End Line": 75 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 24, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 7, + "Sequential Logic Declarations": 29, + "Function Parameters": 14, + "Function/Method Declarations": 14, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 7, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 24, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 7, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -187579,11 +184841,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 4, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 41, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187599,16 +184861,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, + "Vectorized Math & Tensor Operations": 7, "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 1, - "Design Upper Case": 1, - "Design Short Vars": 1, + "Design Snake Case": 7, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -187632,22 +184894,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py": { + "python/fastapi/tests/test_invalid_sequence_param.py": { "1. Artifact Identity": { - "Filename": "test_get_model_definitions_formfeed_escape.py", - "Path": "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py", + "Filename": "test_invalid_sequence_param.py", + "Path": "python/fastapi/tests/test_invalid_sequence_param.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -187658,9 +184919,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1736.67, - "Y": -143.41, - "Z": 1091.38 + "X": 1829.79, + "Y": -197.15, + "Z": 950.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -187669,23 +184930,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 161, - "Coding LOC": 139, - "Documentation LOC": 9, - "Structural Magnitude": 22.88, - "Control Flow Ratio": "0.0%", + "Total LOC": 64, + "Coding LOC": 47, + "Documentation LOC": 0, + "Structural Magnitude": 37.34, + "Control Flow Ratio": "27.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.213 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.22%", + "Error & Exception Exposure": "40.81%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.17%", + "API Exposure": "13.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -187697,72 +184958,112 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.9, - "Lines of Code (LOC)": 109, + "Function Name": "test_invalid_sequence", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 6, + "End Line": 18 + }, + { + "Function Name": "test_invalid_tuple", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 21, + "End Line": 33 + }, + { + "Function Name": "test_invalid_dict", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 36, + "End Line": 48 + }, + { + "Function Name": "test_invalid_simple_dict", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 51, + "End Line": 63 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 160 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "client_fixture", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 36 + "Start Line": 32, + "End Line": 33 }, { - "Function Name": "test_get", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 49 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "get_facility", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 33 + "Start Line": 62, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 21, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 16, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 4, + "Structured Documentation Blocks": 0, "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -187787,7 +185088,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, + "Structural Space Indentations": 40, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187803,13 +185104,13 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 4, @@ -187836,36 +185137,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot", "pydantic", "pytest" ] }, - "python/fastapi/tests/test_get_request_body.py": { + "python/fastapi/tests/test_json_type.py": { "1. Artifact Identity": { - "Filename": "test_get_request_body.py", - "Path": "python/fastapi/tests/test_get_request_body.py", + "Filename": "test_json_type.py", + "Path": "python/fastapi/tests/test_json_type.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4478.85, - "Y": 193.65, - "Z": 908.83 + "X": 4159.22, + "Y": 122.3, + "Z": 839.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -187874,24 +185172,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 103, + "Total LOC": 64, + "Coding LOC": 43, "Documentation LOC": 0, - "Structural Magnitude": 16.06, + "Structural Magnitude": 25.06, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.093 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "3.37%", + "Error & Exception Exposure": "12.9%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.54%", - "Concurrency Exposure": "22.88%", + "API Exposure": "12.29%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -187902,62 +185200,112 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 86, + "Function Name": "form_json_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 114 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "create_item", + "Function Name": "query_json_list", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_get_with_body", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "header_json_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "cookie_json_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 28 + }, + { + "Function Name": "test_form_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 34, + "End Line": 39 + }, + { + "Function Name": "test_query_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 42, + "End Line": 47 + }, + { + "Function Name": "test_header_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 55 + }, + { + "Function Name": "test_cookie_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 58, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 5, + "Sequential Logic Declarations": 37, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 12, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 12, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -187971,7 +185319,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -187982,7 +185330,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 92, + "Structural Space Indentations": 24, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187998,16 +185346,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -188031,7 +185379,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -188039,26 +185387,28 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "json", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_http_connection_injection.py": { + "python/fastapi/tests/test_jsonable_encoder.py": { "1. Artifact Identity": { - "Filename": "test_http_connection_injection.py", - "Path": "python/fastapi/tests/test_http_connection_injection.py", + "Filename": "test_jsonable_encoder.py", + "Path": "python/fastapi/tests/test_jsonable_encoder.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "Person, Pet, Enum", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4390.57, - "Y": 137.1, - "Z": 638.86 + "X": 3536.45, + "Y": 29.19, + "Z": -185.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188067,24 +185417,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 40, - "Coding LOC": 26, + "Total LOC": 314, + "Coding LOC": 219, "Documentation LOC": 0, - "Structural Magnitude": 20.82, - "Control Flow Ratio": "4.3%", + "Structural Magnitude": 106.68, + "Control Flow Ratio": "4.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.131 + "Raw Cognitive Density": 0.222 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "41.05%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.4%", + "Error & Exception Exposure": "3.69%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.48%", - "Concurrency Exposure": "99.95%", + "API Exposure": "11.2%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -188095,107 +185445,377 @@ }, "5. Function Analysis": [ { - "Function Name": "test_value_extracting_by_ws", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "test_json_encoder_error_with_pydanticv1", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 159, + "End Line": 169 + }, + { + "Function Name": "__iter__", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 36, + "End Line": 37 + }, + { + "Function Name": "__iter__", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 41, + "End Line": 42 + }, + { + "Function Name": "test_encode_unsupported", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 134, + "End Line": 137 + }, + { + "Function Name": "__init__", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 26 + }, + { + "Function Name": "test_encode_model_with_alias_raises", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 177, + "End Line": 179 + }, + { + "Function Name": "test_custom_encoders", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 205, + "End Line": 225 + }, + { + "Function Name": "test_encode_custom_json_encoders_model_pydanticv2", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 140, + "End Line": 156 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 19, + "End Line": 20 + }, + { + "Function Name": "serialize_dt_field", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 147, + "End Line": 148 + }, + { + "Function Name": "test_encode_model_with_default", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 187, + "End Line": 202 + }, + { + "Function Name": "test_encode_class", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 99, + "End Line": 109 + }, + { + "Function Name": "test_encode_dictable", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 112, + "End Line": 122 + }, + { + "Function Name": "test_custom_enum_encoders", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 228, + "End Line": 240 + }, + { + "Function Name": "__iter__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 + }, + { + "Function Name": "__dict__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 51 + }, + { + "Function Name": "test_encode_dict", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 37, - "End Line": 39 + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 84 }, { - "Function Name": "get_value_by_ws", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "test_encode_dict_include_exclude_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 25 + "Start Line": 87, + "End Line": 96 }, { - "Function Name": "extract_value_from_http_connection", + "Function Name": "custom_enum_encoder", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 229, + "End Line": 230 }, { - "Function Name": "get_value_by_http", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_encode_dataclass", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 125, + "End Line": 131 }, { - "Function Name": "test_value_extracting_by_http", + "Function Name": "test_encode_model_with_pure_path", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 243, + "End Line": 251 + }, + { + "Function Name": "test_encode_model_with_pure_posix_path", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 261 + }, + { + "Function Name": "test_encode_model_with_pure_windows_path", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 264, + "End Line": 271 + }, + { + "Function Name": "test_encode_deque_encodes_child_models", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 302, + "End Line": 308 + }, + { + "Function Name": "test_encode_pure_path", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 274, + "End Line": 277 + }, + { + "Function Name": "test_decimal_encoder_infinity", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 295, + "End Line": 299 + }, + { + "Function Name": "test_encode_model_with_config", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 172, + "End Line": 174 + }, + { + "Function Name": "test_encode_model_with_alias", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 184 + }, + { + "Function Name": "test_decimal_encoder_float", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 280, + "End Line": 282 + }, + { + "Function Name": "test_decimal_encoder_int", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 285, + "End Line": 287 + }, + { + "Function Name": "test_decimal_encoder_nan", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 290, + "End Line": 292 + }, + { + "Function Name": "test_encode_pydantic_undefined", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 311, + "End Line": 313 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 22, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 140, + "Function Parameters": 34, + "Function/Method Declarations": 32, + "Class/Entity Declarations": 20, + "Defensive Programming Constructs": 66, + "Type/Safety Bypasses": 20, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 6, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 46, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 80, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, + "Closures and Anonymous Functions": 2, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 4, + "Module Dependencies (Imports)": 16, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Explicit Type Casts": 2, + "Fatal Aborts & Exceptions": 2, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 1, - "Private / Encapsulated Scopes": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 9, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 11, + "Structural Space Indentations": 170, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -188211,23 +185831,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 74, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Snake Case": 72, + "Design Pascal Case": 1, + "Design Upper Case": 1, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Duplicate Logic": 2, + "Orphaned Logic": 25, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 1, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -188244,22 +185864,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 14, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.requests", - "fastapi.testclient", - "starlette.websockets" + "collections", + "dataclasses", + "datetime", + "decimal", + "enum", + "fastapi._compat", + "fastapi.encoders", + "fastapi.exceptions", + "math", + "pathlib", + "pydantic", + "pytest", + "typing", + "warnings" ] }, - "python/fastapi/tests/test_include_route.py": { + "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py": { "1. Artifact Identity": { - "Filename": "test_include_route.py", - "Path": "python/fastapi/tests/test_include_route.py", + "Filename": "test_list_bytes_file_order_preserved_issue_14811.py", + "Path": "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -188269,9 +185899,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1106.62, - "Y": -261.82, - "Z": 1538.04 + "X": 2929.42, + "Y": -16.67, + "Z": 1247.14 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188280,27 +185910,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 23, - "Coding LOC": 14, - "Documentation LOC": 0, - "Structural Magnitude": 4.98, - "Control Flow Ratio": "0.0%", + "Total LOC": 47, + "Coding LOC": 27, + "Documentation LOC": 8, + "Structural Magnitude": 39.04, + "Control Flow Ratio": "9.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.143 + "Raw Cognitive Density": 2.667 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "24.99%", + "Error & Exception Exposure": "41.34%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.91%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.31%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "93.33%", + "Commented Logic Exposure": "23.15%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -188308,57 +185938,67 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_list_bytes_file_preserves_order", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 2, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Control Flow Ratio": "18.2%", + "Start Line": 16, + "End Line": 46 }, { - "Function Name": "test_sub_router", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Function Name": "patched_read", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "20.0%", + "Start Line": 28, + "End Line": 32 + }, + { + "Function Name": "upload", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 22, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 11, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 20, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 0, + "Exposed API / Public Exports": 4, + "State Mutations / Variable Reassignments": 3, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 19, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -188378,7 +186018,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, + "Structural Space Indentations": 19, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -188395,15 +186035,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -188427,34 +186067,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "anyio", "fastapi", - "fastapi.responses", - "fastapi.testclient" + "fastapi.testclient", + "pytest", + "starlette.datastructures", + "typing" ] }, - "python/fastapi/tests/test_include_router_defaults_overrides.py": { + "python/fastapi/tests/test_multi_body_errors.py": { "1. Artifact Identity": { - "Filename": "test_include_router_defaults_overrides.py", - "Path": "python/fastapi/tests/test_include_router_defaults_overrides.py", + "Filename": "test_multi_body_errors.py", + "Path": "python/fastapi/tests/test_multi_body_errors.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2832.54, - "Y": -53.29, - "Z": -42.65 + "X": 3030.28, + "Y": 27.91, + "Z": 1558.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188463,24 +186106,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 7305, - "Coding LOC": 7207, - "Documentation LOC": 0, - "Structural Magnitude": 384.84, - "Control Flow Ratio": "6.2%", + "Total LOC": 192, + "Coding LOC": 173, + "Documentation LOC": 2, + "Structural Magnitude": 23.96, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.018 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.54%", - "Error & Exception Exposure": "48.31%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.06%", - "Concurrency Exposure": "16.85%", + "API Exposure": "7.9%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -188491,298 +186134,78 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 99.5, - "Lines of Code (LOC)": 6866, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "0.5%", - "Start Line": 439, - "End Line": 7304 - }, - { - "Function Name": "test_paths_level5", - "Structural Impact": 31.0, - "Lines of Code (LOC)": 32, - "Control Flow Branches": 11, - "Input Parameters": 5, - "Control Flow Ratio": "52.4%", - "Start Line": 405, - "End Line": 436 - }, - { - "Function Name": "test_paths_level3", - "Structural Impact": 17.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 7, - "Input Parameters": 3, - "Control Flow Ratio": "46.7%", - "Start Line": 374, - "End Line": 397 - }, - { - "Function Name": "dep0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "dep1", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "dep2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 43 - }, - { - "Function Name": "dep3", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 - }, - { - "Function Name": "dep4", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 - }, - { - "Function Name": "dep5", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 - }, - { - "Function Name": "callback0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 - }, - { - "Function Name": "callback1", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 - }, - { - "Function Name": "callback2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 79 - }, - { - "Function Name": "callback3", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 87 - }, - { - "Function Name": "callback4", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 94, - "End Line": 95 - }, - { - "Function Name": "callback5", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 102, - "End Line": 103 - }, - { - "Function Name": "path1_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 156, - "End Line": 157 - }, - { - "Function Name": "path1_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 161, - "End Line": 162 - }, - { - "Function Name": "path3_override_router2_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 177, - "End Line": 178 - }, - { - "Function Name": "path3_default_router2_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 183 - }, - { - "Function Name": "path3_override_router2_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 198, - "End Line": 199 - }, - { - "Function Name": "path3_default_router2_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 103, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 203, - "End Line": 204 + "Start Line": 89, + "End Line": 191 }, { - "Function Name": "path5_override_router4_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_put_incorrect_body_multiple", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 31, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 219, - "End Line": 220 + "Start Line": 56, + "End Line": 86 }, { - "Function Name": "path5_default_router4_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_jsonable_encoder_requiring_error", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 226, - "End Line": 227 + "Start Line": 40, + "End Line": 53 }, { - "Function Name": "path5_override_router4_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_put_correct_body", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 242, - "End Line": 243 + "Start Line": 25, + "End Line": 37 }, { - "Function Name": "path5_default_router4_default", + "Function Name": "save_item_no_body", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 249, - "End Line": 250 - }, - { - "Function Name": "test_level1_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 347, - "End Line": 356 - }, - { - "Function Name": "test_level1_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 359, - "End Line": 368 + "Start Line": 18, + "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 19, - "Sequential Logic Declarations": 285, - "Function Parameters": 27, - "Function/Method Declarations": 27, - "Class/Entity Declarations": 6, - "Defensive Programming Constructs": 34, - "Type/Safety Bypasses": 6, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 49, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 12, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 35, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 47, - "Asynchronous/Concurrent Execution": 22, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 24, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -188791,19 +186214,19 @@ "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 7, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 15, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 2, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -188811,7 +186234,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 7104, + "Structural Space Indentations": 158, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -188827,16 +186250,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 24, - "Core Var Decl": 120, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 120, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 15, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -188844,7 +186267,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 2, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -188866,18 +186289,18 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "decimal", + "dirty_equals", "fastapi", - "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "pytest", - "warnings" + "pydantic" ] }, - "python/fastapi/tests/test_infer_param_optionality.py": { + "python/fastapi/tests/test_multi_query_errors.py": { "1. Artifact Identity": { - "Filename": "test_infer_param_optionality.py", - "Path": "python/fastapi/tests/test_infer_param_optionality.py", + "Filename": "test_multi_query_errors.py", + "Path": "python/fastapi/tests/test_multi_query_errors.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -188887,9 +186310,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1850.98, - "Y": -182.05, - "Z": 259.99 + "X": 4274.58, + "Y": 99.55, + "Z": -1212.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188898,23 +186321,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 338, - "Coding LOC": 295, - "Documentation LOC": 8, - "Structural Magnitude": 53.8, - "Control Flow Ratio": "5.8%", + "Total LOC": 123, + "Coding LOC": 111, + "Documentation LOC": 0, + "Structural Magnitude": 16.92, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.029 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "1.43%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.06%", + "API Exposure": "7.43%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -188927,157 +186350,67 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 12.6, - "Lines of Code (LOC)": 232, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 337 - }, - { - "Function Name": "get_item", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "40.0%", - "Start Line": 31, - "End Line": 35 - }, - { - "Function Name": "get_items", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 23, - "End Line": 27 - }, - { - "Function Name": "get_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 - }, - { - "Function Name": "test_get_items_1", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 68 - }, - { - "Function Name": "test_get_users", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 51 - }, - { - "Function Name": "test_get_user", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 58 - }, - { - "Function Name": "test_get_items_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 75 - }, - { - "Function Name": "test_get_item_1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Structural Impact": 5.0, + "Lines of Code (LOC)": 80, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 82 + "Start Line": 43, + "End Line": 122 }, { - "Function Name": "test_get_item_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_multi_query_incorrect", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 19, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 89 + "Start Line": 22, + "End Line": 40 }, { - "Function Name": "test_get_users_items", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 96 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "test_get_users_item", + "Function Name": "test_multi_query", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 103 - }, - { - "Function Name": "get_users", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 16, + "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 65, - "Function Parameters": 13, - "Function/Method Declarations": 13, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 34, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 18, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 16, - "Unit Test Assertions": 27, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -189106,7 +186439,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 268, + "Structural Space Indentations": 101, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189122,16 +186455,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 2, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -189166,23 +186499,22 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_inherited_custom_class.py": { + "python/fastapi/tests/test_multipart_installation.py": { "1. Artifact Identity": { - "Filename": "test_inherited_custom_class.py", - "Path": "python/fastapi/tests/test_inherited_custom_class.py", + "Filename": "test_multipart_installation.py", + "Path": "python/fastapi/tests/test_multipart_installation.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4326.56, - "Y": 159.06, - "Z": 201.71 + "X": 3136.3, + "Y": 33.25, + "Z": -508.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189191,24 +186523,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 68, - "Coding LOC": 46, - "Documentation LOC": 3, - "Structural Magnitude": 26.72, - "Control Flow Ratio": "6.2%", + "Total LOC": 150, + "Coding LOC": 115, + "Documentation LOC": 0, + "Structural Magnitude": 129.3, + "Control Flow Ratio": "44.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.789 + "Raw Cognitive Density": 1.052 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "16.99%", - "Error & Exception Exposure": "21.2%", + "Cognitive Load Exposure": "38.5%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.39%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.47%", + "Concurrency Exposure": "98.84%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -189219,112 +186551,252 @@ }, "5. Function Analysis": [ { - "Function Name": "test_pydanticv2", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 41, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "11.8%", - "Start Line": 27, - "End Line": 67 + "Function Name": "test_incorrect_multipart_installed_form", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 11, + "End Line": 21 + }, + { + "Function Name": "test_incorrect_multipart_installed_file_upload", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 24, + "End Line": 34 + }, + { + "Function Name": "test_incorrect_multipart_installed_file_bytes", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 37, + "End Line": 47 + }, + { + "Function Name": "test_incorrect_multipart_installed_multi_form", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 50, + "End Line": 60 + }, + { + "Function Name": "test_incorrect_multipart_installed_form_file", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 63, + "End Line": 73 + }, + { + "Function Name": "test_no_multipart_installed", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 76, + "End Line": 86 + }, + { + "Function Name": "test_no_multipart_installed_file", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 89, + "End Line": 99 + }, + { + "Function Name": "test_no_multipart_installed_file_bytes", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 102, + "End Line": 112 + }, + { + "Function Name": "test_no_multipart_installed_multi_form", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 115, + "End Line": 125 }, { - "Function Name": "return_fast_uuid", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_no_multipart_installed_form_file", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 128, + "End Line": 138 + }, + { + "Function Name": "test_old_multipart_installed", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 33, - "End Line": 39 + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 141, + "End Line": 149 }, { - "Function Name": "__init__", + "Function Name": "root", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 59, + "End Line": 60 }, { - "Function Name": "serialize_a_uuid", + "Function Name": "root", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 72, + "End Line": 73 }, { - "Function Name": "__dict__", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 124, + "End Line": 125 + }, + { + "Function Name": "root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 137, + "End Line": 138 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "__str__", + "Function Name": "root", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 33, + "End Line": 34 }, { - "Function Name": "__class__", + "Function Name": "root", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 46, + "End Line": 47 }, { - "Function Name": "return_some_user", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 53 + "Start Line": 85, + "End Line": 86 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 99 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 111, + "End Line": 112 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 148, + "End Line": 149 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 30, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 31, + "Sequential Logic Declarations": 39, + "Function Parameters": 22, + "Function/Method Declarations": 22, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 1, + "Exposed API / Public Exports": 33, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 22, + "Asynchronous/Concurrent Execution": 11, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, + "Decorators and Annotations": 11, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 11, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -189338,18 +186810,18 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, - "Fatal Aborts & Exceptions": 1, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 5, + "Private / Encapsulated Scopes": 16, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 39, + "Structural Space Indentations": 99, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189365,16 +186837,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 5, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 11, + "Core Var Decl": 42, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 40, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 7, + "Duplicate Logic": 11, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -189398,36 +186870,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic", + "fastapi.dependencies.utils", "pytest", - "uuid" + "warnings" ] }, - "python/fastapi/tests/test_invalid_path_param.py": { + "python/fastapi/tests/test_no_schema_split.py": { "1. Artifact Identity": { - "Filename": "test_invalid_path_param.py", - "Path": "python/fastapi/tests/test_invalid_path_param.py", + "Filename": "test_no_schema_split.py", + "Path": "python/fastapi/tests/test_no_schema_split.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "str, Enum, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2982.62, - "Y": -17.4, - "Z": 970.8 + "X": 2920.67, + "Y": -59.24, + "Z": -1792.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189436,24 +186907,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 51, - "Documentation LOC": 0, - "Structural Magnitude": 52.62, - "Control Flow Ratio": "19.4%", + "Total LOC": 177, + "Coding LOC": 153, + "Documentation LOC": 4, + "Structural Magnitude": 22.26, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.176 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.58%", - "Error & Exception Exposure": "48.31%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "35.79%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.82%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.48%", + "Concurrency Exposure": "19.93%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -189464,172 +186935,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_sequence", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 6, - "End Line": 15 - }, - { - "Function Name": "test_invalid_tuple", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 18, - "End Line": 27 - }, - { - "Function Name": "test_invalid_dict", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 30, - "End Line": 39 - }, - { - "Function Name": "test_invalid_simple_list", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 42, - "End Line": 48 - }, - { - "Function Name": "test_invalid_simple_tuple", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 51, - "End Line": 57 - }, - { - "Function Name": "test_invalid_simple_set", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 60, - "End Line": 66 - }, - { - "Function Name": "test_invalid_simple_dict", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 69, - "End Line": 75 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.1, + "Lines of Code (LOC)": 121, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 56, - "End Line": 57 + "End Line": 176 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "create_message", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 + "Start Line": 37, + "End Line": 41 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_message", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 75 + "Start Line": 47, + "End Line": 53 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 7, - "Sequential Logic Declarations": 29, - "Function Parameters": 14, - "Function/Method Declarations": 14, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 7, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 42, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 10, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 24, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -189654,7 +187015,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 41, + "Structural Space Indentations": 138, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189670,16 +187031,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 7, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 7, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -189703,34 +187064,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "enum", "fastapi", - "pydantic", - "pytest" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_invalid_sequence_param.py": { + "python/fastapi/tests/test_no_swagger_ui_redirect.py": { "1. Artifact Identity": { - "Filename": "test_invalid_sequence_param.py", - "Path": "python/fastapi/tests/test_invalid_sequence_param.py", + "Filename": "test_no_swagger_ui_redirect.py", + "Path": "python/fastapi/tests/test_no_swagger_ui_redirect.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1829.79, - "Y": -197.15, - "Z": 950.1 + "X": 2152.98, + "Y": -99.85, + "Z": -2069.63 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189739,24 +187101,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 47, + "Total LOC": 32, + "Coding LOC": 20, "Documentation LOC": 0, - "Structural Magnitude": 37.34, - "Control Flow Ratio": "27.6%", + "Structural Magnitude": 11.1, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.213 + "Raw Cognitive Density": 0.25 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.22%", - "Error & Exception Exposure": "40.81%", + "Cognitive Load Exposure": "5.96%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.57%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.25%", + "Concurrency Exposure": "48.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -189767,112 +187129,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_sequence", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 6, - "End Line": 18 - }, - { - "Function Name": "test_invalid_tuple", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 21, - "End Line": 33 - }, - { - "Function Name": "test_invalid_dict", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 36, - "End Line": 48 - }, - { - "Function Name": "test_invalid_simple_dict", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 51, - "End Line": 63 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_swagger_ui", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 15, + "End Line": 21 }, { "Function Name": "read_items", - "Structural Impact": 1.5, + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_swagger_ui_no_oauth2_redirect", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 24, + "End Line": 26 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_response", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 + "Start Line": 29, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 21, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 4, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 16, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 16, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -189885,7 +187207,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 1, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -189897,7 +187219,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 40, + "Structural Space Indentations": 11, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189913,11 +187235,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -189946,21 +187268,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "pydantic", - "pytest" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_json_type.py": { + "python/fastapi/tests/test_openapi_cache_root_path.py": { "1. Artifact Identity": { - "Filename": "test_json_type.py", - "Path": "python/fastapi/tests/test_json_type.py", + "Filename": "test_openapi_cache_root_path.py", + "Path": "python/fastapi/tests/test_openapi_cache_root_path.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -189970,9 +187291,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4159.22, - "Y": 122.3, - "Z": 839.8 + "X": 3510.2, + "Y": 57.49, + "Z": -1318.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189981,23 +187302,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 43, - "Documentation LOC": 0, - "Structural Magnitude": 25.06, - "Control Flow Ratio": "0.0%", + "Total LOC": 76, + "Coding LOC": 51, + "Documentation LOC": 5, + "Structural Magnitude": 30.72, + "Control Flow Ratio": "22.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.093 + "Raw Cognitive Density": 0.212 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.37%", - "Error & Exception Exposure": "12.9%", + "Cognitive Load Exposure": "5.21%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.29%", + "API Exposure": "11.81%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -190009,112 +187330,112 @@ }, "5. Function Analysis": [ { - "Function Name": "form_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Function Name": "test_multiple_different_root_paths_do_not_accumulate", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "42.9%", + "Start Line": 26, + "End Line": 45 }, { - "Function Name": "query_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Function Name": "test_root_path_does_not_persist_across_requests", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "28.6%", + "Start Line": 5, + "End Line": 23 }, { - "Function Name": "header_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Function Name": "test_legitimate_root_path_still_appears", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 48, + "End Line": 59 }, { - "Function Name": "cookie_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_configured_servers_not_mutated", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 + "Start Line": 62, + "End Line": 75 }, { - "Function Name": "test_form_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 39 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "test_query_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 47 + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "test_header_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 55 + "Start Line": 52, + "End Line": 53 }, { - "Function Name": "test_cookie_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 63 + "Start Line": 67, + "End Line": 68 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 37, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 21, "Function Parameters": 8, "Function/Method Declarations": 8, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 12, - "State Mutations / Variable Reassignments": 1, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 4, - "Generic Type Abstractions": 12, - "Collection Iterators / Comprehensions": 0, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 3, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -190128,7 +187449,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -190139,7 +187460,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 24, + "Structural Space Indentations": 45, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -190156,15 +187477,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 9, + "Core Var Decl": 22, "Design Camel Case": 0, - "Design Snake Case": 9, + "Design Snake Case": 22, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Duplicate Logic": 4, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -190188,36 +187509,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "json", - "pydantic", - "typing" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_jsonable_encoder.py": { + "python/fastapi/tests/test_openapi_examples.py": { "1. Artifact Identity": { - "Filename": "test_jsonable_encoder.py", - "Path": "python/fastapi/tests/test_jsonable_encoder.py", + "Filename": "test_openapi_examples.py", + "Path": "python/fastapi/tests/test_openapi_examples.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "Person, Pet, Enum", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3536.45, - "Y": 29.19, - "Z": -185.85 + "X": 3711.94, + "Y": 54.01, + "Z": -630.32 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -190226,23 +187544,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 314, - "Coding LOC": 219, + "Total LOC": 423, + "Coding LOC": 399, "Documentation LOC": 0, - "Structural Magnitude": 106.68, - "Control Flow Ratio": "4.1%", + "Structural Magnitude": 47.58, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.222 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.4%", - "Error & Exception Exposure": "3.69%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.2%", + "API Exposure": "8.72%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -190253,353 +187571,103 @@ "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ - { - "Function Name": "test_json_encoder_error_with_pydanticv1", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 159, - "End Line": 169 - }, - { - "Function Name": "__iter__", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "__iter__", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 41, - "End Line": 42 - }, - { - "Function Name": "test_encode_unsupported", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 134, - "End Line": 137 - }, - { - "Function Name": "__init__", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 - }, - { - "Function Name": "test_encode_model_with_alias_raises", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 177, - "End Line": 179 - }, - { - "Function Name": "test_custom_encoders", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 205, - "End Line": 225 - }, - { - "Function Name": "test_encode_custom_json_encoders_model_pydanticv2", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 140, - "End Line": 156 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "serialize_dt_field", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 147, - "End Line": 148 - }, - { - "Function Name": "test_encode_model_with_default", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 202 - }, - { - "Function Name": "test_encode_class", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 109 - }, - { - "Function Name": "test_encode_dictable", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 122 - }, - { - "Function Name": "test_custom_enum_encoders", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 228, - "End Line": 240 - }, - { - "Function Name": "__iter__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 - }, - { - "Function Name": "__dict__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 - }, - { - "Function Name": "test_encode_dict", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 84 - }, - { - "Function Name": "test_encode_dict_include_exclude_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 87, - "End Line": 96 - }, - { - "Function Name": "custom_enum_encoder", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 229, - "End Line": 230 - }, - { - "Function Name": "test_encode_dataclass", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 131 - }, - { - "Function Name": "test_encode_model_with_pure_path", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 243, - "End Line": 251 - }, - { - "Function Name": "test_encode_model_with_pure_posix_path", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 261 - }, - { - "Function Name": "test_encode_model_with_pure_windows_path", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 264, - "End Line": 271 - }, - { - "Function Name": "test_encode_deque_encodes_child_models", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 302, - "End Line": 308 - }, - { - "Function Name": "test_encode_pure_path", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 274, - "End Line": 277 - }, - { - "Function Name": "test_decimal_encoder_infinity", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + { + "Function Name": "test_openapi_schema", + "Structural Impact": 13.0, + "Lines of Code (LOC)": 281, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 295, - "End Line": 299 + "Start Line": 142, + "End Line": 422 }, { - "Function Name": "test_encode_model_with_config", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "path_examples", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 19, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 172, - "End Line": 174 + "Start Line": 35, + "End Line": 53 }, { - "Function Name": "test_encode_model_with_alias", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "query_examples", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 20, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 184 + "Start Line": 57, + "End Line": 76 }, { - "Function Name": "test_decimal_encoder_float", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "header_examples", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 20, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 280, - "End Line": 282 + "Start Line": 80, + "End Line": 99 }, { - "Function Name": "test_decimal_encoder_int", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "examples", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 285, - "End Line": 287 + "Start Line": 14, + "End Line": 31 }, { - "Function Name": "test_decimal_encoder_nan", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "cookie_examples", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 290, - "End Line": 292 + "Start Line": 103, + "End Line": 119 }, { - "Function Name": "test_encode_pydantic_undefined", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_call_api", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 15, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 311, - "End Line": 313 + "Start Line": 125, + "End Line": 139 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 140, - "Function Parameters": 34, - "Function/Method Declarations": 32, - "Class/Entity Declarations": 20, - "Defensive Programming Constructs": 66, - "Type/Safety Bypasses": 20, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 48, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 46, - "State Mutations / Variable Reassignments": 3, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 13, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 80, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 2, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 5, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 16, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -190613,18 +187681,18 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 2, - "Fatal Aborts & Exceptions": 2, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 9, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 170, + "Structural Space Indentations": 375, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -190640,16 +187708,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 74, + "Vectorized Math & Tensor Operations": 5, + "Core Var Decl": 26, "Design Camel Case": 0, - "Design Snake Case": 72, - "Design Pascal Case": 1, - "Design Upper Case": 1, - "Design Short Vars": 1, + "Design Snake Case": 22, + "Design Pascal Case": 4, + "Design Upper Case": 0, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 25, + "Duplicate Logic": 0, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -190673,44 +187741,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 14, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections", - "dataclasses", - "datetime", - "decimal", - "enum", - "fastapi._compat", - "fastapi.encoders", - "fastapi.exceptions", - "math", - "pathlib", - "pydantic", - "pytest", - "typing", - "warnings" + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py": { + "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py": { "1. Artifact Identity": { - "Filename": "test_list_bytes_file_order_preserved_issue_14811.py", - "Path": "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py", + "Filename": "test_openapi_model_description_trim_on_formfeed.py", + "Path": "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2929.42, - "Y": -16.67, - "Z": 1247.14 + "X": 3667.21, + "Y": 93.27, + "Z": -2014.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -190719,26 +187778,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 47, - "Coding LOC": 27, - "Documentation LOC": 8, - "Structural Magnitude": 39.04, - "Control Flow Ratio": "9.1%", + "Total LOC": 32, + "Coding LOC": 16, + "Documentation LOC": 5, + "Structural Magnitude": 8.22, + "Control Flow Ratio": "7.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 2.667 + "Raw Cognitive Density": 0.188 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "24.99%", - "Error & Exception Exposure": "41.34%", + "Cognitive Load Exposure": "2.38%", + "Error & Exception Exposure": "32.3%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.31%", - "Concurrency Exposure": "100.0%", + "API Exposure": "9.21%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "23.15%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -190747,62 +187806,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_list_bytes_file_preserves_order", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "18.2%", - "Start Line": 16, - "End Line": 46 - }, - { - "Function Name": "patched_read", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 28, - "End Line": 32 + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 24, + "End Line": 31 }, { - "Function Name": "upload", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "foo", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 22, - "End Line": 24 + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 18 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 20, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 12, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 4, - "State Mutations / Variable Reassignments": 3, - "Commented-out Code (Dead Logic)": 1, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 2, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 19, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -190827,7 +187876,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 19, + "Structural Space Indentations": 7, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -190843,13 +187892,13 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 1, @@ -190876,37 +187925,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "anyio", "fastapi", "fastapi.testclient", - "pytest", - "starlette.datastructures", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_multi_body_errors.py": { + "python/fastapi/tests/test_openapi_query_parameter_extension.py": { "1. Artifact Identity": { - "Filename": "test_multi_body_errors.py", - "Path": "python/fastapi/tests/test_multi_body_errors.py", + "Filename": "test_openapi_query_parameter_extension.py", + "Path": "python/fastapi/tests/test_openapi_query_parameter_extension.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3030.28, - "Y": 27.91, - "Z": 1558.88 + "X": 1993.15, + "Y": -147.3, + "Z": -1988.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -190915,10 +187960,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 192, - "Coding LOC": 173, - "Documentation LOC": 2, - "Structural Magnitude": 23.96, + "Total LOC": 132, + "Coding LOC": 122, + "Documentation LOC": 0, + "Structural Magnitude": 14.74, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -190928,10 +187973,10 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "43.02%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.9%", + "API Exposure": "6.58%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -190943,82 +187988,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 103, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 191 - }, - { - "Function Name": "test_put_incorrect_body_multiple", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 31, + "Function Name": "test_openapi", + "Structural Impact": 5.6, + "Lines of Code (LOC)": 92, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 86 + "Start Line": 40, + "End Line": 131 }, { - "Function Name": "test_jsonable_encoder_requiring_error", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Function Name": "route_with_extra_query_parameters", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 53 + "Start Line": 27, + "End Line": 28 }, { - "Function Name": "test_put_correct_body", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_get_route", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, + "Start Line": 34, "End Line": 37 - }, - { - "Function Name": "save_item_no_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 49, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 27, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -191035,7 +188060,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 2, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -191043,7 +188068,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 158, + "Structural Space Indentations": 112, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191062,13 +188087,13 @@ "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -191092,24 +188117,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "decimal", - "dirty_equals", "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_multi_query_errors.py": { + "python/fastapi/tests/test_openapi_route_extensions.py": { "1. Artifact Identity": { - "Filename": "test_multi_query_errors.py", - "Path": "python/fastapi/tests/test_multi_query_errors.py", + "Filename": "test_openapi_route_extensions.py", + "Path": "python/fastapi/tests/test_openapi_route_extensions.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -191119,9 +188141,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4274.58, - "Y": 99.55, - "Z": -1212.29 + "X": 4584.79, + "Y": 147.16, + "Z": -1473.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191130,23 +188152,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 123, - "Coding LOC": 111, + "Total LOC": 46, + "Coding LOC": 36, "Documentation LOC": 0, - "Structural Magnitude": 16.92, + "Structural Magnitude": 9.22, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.056 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.93%", + "Error & Exception Exposure": "32.9%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.43%", + "API Exposure": "8.36%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -191159,67 +188181,57 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 80, + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 122 + "Start Line": 22, + "End Line": 45 }, { - "Function Name": "test_multi_query_incorrect", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 19, + "Function Name": "test_get_route", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 40 + "Start Line": 16, + "End Line": 19 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, + "Function Name": "route_with_extras", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 9, "End Line": 10 - }, - { - "Function Name": "test_multi_query", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 34, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Sequential Logic Declarations": 14, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -191248,7 +188260,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 101, + "Structural Space Indentations": 27, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191273,7 +188285,7 @@ "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -191308,10 +188320,10 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_multipart_installation.py": { + "python/fastapi/tests/test_openapi_schema_type.py": { "1. Artifact Identity": { - "Filename": "test_multipart_installation.py", - "Path": "python/fastapi/tests/test_multipart_installation.py", + "Filename": "test_openapi_schema_type.py", + "Path": "python/fastapi/tests/test_openapi_schema_type.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -191321,9 +188333,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3136.3, - "Y": 33.25, - "Z": -508.95 + "X": 4925.73, + "Y": 258.75, + "Z": 764.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191332,24 +188344,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 150, - "Coding LOC": 115, - "Documentation LOC": 0, - "Structural Magnitude": 129.3, - "Control Flow Ratio": "44.3%", + "Total LOC": 25, + "Coding LOC": 18, + "Documentation LOC": 2, + "Structural Magnitude": 8.26, + "Control Flow Ratio": "25.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.052 + "Raw Cognitive Density": 0.278 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "38.5%", + "Cognitive Load Exposure": "3.28%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.47%", - "Concurrency Exposure": "98.84%", + "API Exposure": "6.74%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -191360,255 +188372,347 @@ }, "5. Function Analysis": [ { - "Function Name": "test_incorrect_multipart_installed_form", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 11, - "End Line": 21 - }, - { - "Function Name": "test_incorrect_multipart_installed_file_upload", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 24, - "End Line": 34 - }, - { - "Function Name": "test_incorrect_multipart_installed_file_bytes", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 37, - "End Line": 47 - }, - { - "Function Name": "test_incorrect_multipart_installed_multi_form", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 50, - "End Line": 60 - }, - { - "Function Name": "test_incorrect_multipart_installed_form_file", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 63, - "End Line": 73 - }, - { - "Function Name": "test_no_multipart_installed", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 76, - "End Line": 86 - }, - { - "Function Name": "test_no_multipart_installed_file", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, + "Function Name": "test_invalid_type_value", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 89, - "End Line": 99 + "Input Parameters": 0, + "Control Flow Ratio": "60.0%", + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "test_no_multipart_installed_file_bytes", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, + "Function Name": "test_allowed_schema_type", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 102, - "End Line": 112 - }, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 18 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 3, + "Sequential Logic Declarations": 9, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 2, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 4, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 3, + "Collection Iterators / Comprehensions": 1, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 11, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 2, + "Design Camel Case": 0, + "Design Snake Case": 2, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi.openapi.models", + "pytest" + ] + }, + "python/fastapi/tests/test_openapi_separate_input_output_schemas.py": { + "1. Artifact Identity": { + "Filename": "test_openapi_separate_input_output_schemas.py", + "Path": "python/fastapi/tests/test_openapi_separate_input_output_schemas.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 3473.07, + "Y": 10.01, + "Z": -673.8 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 677, + "Coding LOC": 648, + "Documentation LOC": 0, + "Structural Magnitude": 85.96, + "Control Flow Ratio": "4.2%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.025 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "2.61%", + "Error & Exception Exposure": "38.96%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.34%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_no_multipart_installed_multi_form", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 115, - "End Line": 125 + "Function Name": "test_openapi_schema", + "Structural Impact": 16.0, + "Lines of Code (LOC)": 280, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "2.3%", + "Start Line": 159, + "End Line": 438 }, { - "Function Name": "test_no_multipart_installed_form_file", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 128, - "End Line": 138 + "Function Name": "test_openapi_schema_no_separate", + "Structural Impact": 13.8, + "Lines of Code (LOC)": 236, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "3.0%", + "Start Line": 441, + "End Line": 676 }, { - "Function Name": "test_old_multipart_installed", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, + "Function Name": "get_app_client", + "Structural Impact": 4.3, + "Lines of Code (LOC)": 30, "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 141, - "End Line": 149 - }, - { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 + "Control Flow Ratio": "9.1%", + "Start Line": 30, + "End Line": 59 }, { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 72, - "End Line": 73 + "Function Name": "test_with_computed_field", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "40.0%", + "Start Line": 143, + "End Line": 156 }, { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_item_list", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 124, - "End Line": 125 + "Start Line": 96, + "End Line": 120 }, { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_item_with_sub", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 19, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 138 + "Start Line": 75, + "End Line": 93 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_read_items", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 123, + "End Line": 140 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "create_with_computed_field", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 53, + "End Line": 56 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_item", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 + "Start Line": 62, + "End Line": 72 }, { - "Function Name": "root", + "Function Name": "computed_field", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "root", + "Function Name": "create_item", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 99 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "root", + "Function Name": "create_item_list", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 112 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "read_items", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 148, - "End Line": 149 + "Start Line": 42, + "End Line": 50 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 31, - "Sequential Logic Declarations": 39, - "Function Parameters": 22, - "Function/Method Declarations": 22, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 113, + "Function Parameters": 13, + "Function/Method Declarations": 13, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 22, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 33, + "Exposed API / Public Exports": 20, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 22, - "Asynchronous/Concurrent Execution": 11, + "Unit Test Assertions": 21, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 11, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 6, + "Generic Type Abstractions": 8, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 11, + "Metaprogramming & Reflection": 1, "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 2, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, @@ -191626,11 +188730,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 16, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 99, + "Structural Space Indentations": 633, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191646,15 +188750,15 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 11, - "Core Var Decl": 42, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 38, "Design Camel Case": 0, - "Design Snake Case": 40, - "Design Pascal Case": 2, + "Design Snake Case": 35, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 11, + "Duplicate Logic": 0, "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, @@ -191663,7 +188767,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 5, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -191686,28 +188790,27 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.dependencies.utils", - "pytest", - "warnings" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_no_schema_split.py": { + "python/fastapi/tests/test_openapi_servers.py": { "1. Artifact Identity": { - "Filename": "test_no_schema_split.py", - "Path": "python/fastapi/tests/test_no_schema_split.py", + "Filename": "test_openapi_servers.py", + "Path": "python/fastapi/tests/test_openapi_servers.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "str, Enum, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2920.67, - "Y": -59.24, - "Z": -1792.37 + "X": 4973.35, + "Y": 236.72, + "Z": 39.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191716,10 +188819,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 177, - "Coding LOC": 153, - "Documentation LOC": 4, - "Structural Magnitude": 22.26, + "Total LOC": 61, + "Coding LOC": 51, + "Documentation LOC": 0, + "Structural Magnitude": 9.72, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -191729,11 +188832,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "35.79%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.48%", - "Concurrency Exposure": "19.93%", + "API Exposure": "7.8%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -191745,61 +188848,61 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 7.1, - "Lines of Code (LOC)": 121, + "Structural Impact": 2.5, + "Lines of Code (LOC)": 31, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 176 + "Start Line": 30, + "End Line": 60 }, { - "Function Name": "create_message", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "foo", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 41 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "test_create_message", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_app", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 53 + "Start Line": 25, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 42, + "Sequential Logic Declarations": 13, "Function Parameters": 3, "Function/Method Declarations": 3, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 10, - "Type/Safety Bypasses": 1, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 3, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -191824,7 +188927,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 138, + "Structural Space Indentations": 41, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191841,15 +188944,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 1, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -191873,23 +188976,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "enum", "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_no_swagger_ui_redirect.py": { + "python/fastapi/tests/test_operations_signatures.py": { "1. Artifact Identity": { - "Filename": "test_no_swagger_ui_redirect.py", - "Path": "python/fastapi/tests/test_no_swagger_ui_redirect.py", + "Filename": "test_operations_signatures.py", + "Path": "python/fastapi/tests/test_operations_signatures.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -191899,9 +189000,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2152.98, - "Y": -99.85, - "Z": -2069.63 + "X": 1329.4, + "Y": -249.72, + "Z": -1537.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191910,24 +189011,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 32, - "Coding LOC": 20, + "Total LOC": 23, + "Coding LOC": 18, "Documentation LOC": 0, - "Structural Magnitude": 11.1, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 5.16, + "Control Flow Ratio": "20.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.25 + "Raw Cognitive Density": 2.444 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.96%", + "Cognitive Load Exposure": "49.94%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.25%", - "Concurrency Exposure": "48.44%", + "API Exposure": "4.36%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -191938,71 +189039,41 @@ }, "5. Function Analysis": [ { - "Function Name": "test_swagger_ui", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 21 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_signatures_consistency", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "28.6%", "Start Line": 8, - "End Line": 9 - }, - { - "Function Name": "test_swagger_ui_no_oauth2_redirect", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 - }, - { - "Function Name": "test_response", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 31 + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 16, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 8, + "Function Parameters": 1, + "Function/Method Declarations": 1, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 1, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 8, "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -192016,7 +189087,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 1, + "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -192028,7 +189099,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 11, + "Structural Space Indentations": 14, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192044,16 +189115,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -192084,13 +189155,13 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "inspect" ] }, - "python/fastapi/tests/test_openapi_cache_root_path.py": { + "python/fastapi/tests/test_optional_file_list.py": { "1. Artifact Identity": { - "Filename": "test_openapi_cache_root_path.py", - "Path": "python/fastapi/tests/test_openapi_cache_root_path.py", + "Filename": "test_optional_file_list.py", + "Path": "python/fastapi/tests/test_optional_file_list.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -192100,9 +189171,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3510.2, - "Y": 57.49, - "Z": -1318.36 + "X": 3829.74, + "Y": 116.26, + "Z": 1804.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192111,24 +189182,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 51, - "Documentation LOC": 5, - "Structural Magnitude": 30.72, - "Control Flow Ratio": "22.2%", + "Total LOC": 29, + "Coding LOC": 21, + "Documentation LOC": 0, + "Structural Magnitude": 12.42, + "Control Flow Ratio": "13.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.212 + "Raw Cognitive Density": 0.333 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.21%", + "Cognitive Load Exposure": "7.94%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.81%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.46%", + "Concurrency Exposure": "47.48%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -192139,109 +189210,59 @@ }, "5. Function Analysis": [ { - "Function Name": "test_multiple_different_root_paths_do_not_accumulate", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "42.9%", - "Start Line": 26, - "End Line": 45 - }, - { - "Function Name": "test_root_path_does_not_persist_across_requests", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 19, + "Function Name": "upload_files", + "Structural Impact": 4.4, + "Lines of Code (LOC)": 4, "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 5, - "End Line": 23 - }, - { - "Function Name": "test_legitimate_root_path_still_appears", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 48, - "End Line": 59 - }, - { - "Function Name": "test_configured_servers_not_mutated", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 75 - }, - { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 - }, - { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 8, + "End Line": 11 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_optional_bytes_list", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 53 + "Start Line": 14, + "End Line": 21 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_optional_bytes_list_no_files", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 68 + "Start Line": 24, + "End Line": 28 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 21, - "Function Parameters": 8, - "Function/Method Declarations": 8, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 13, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 3, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 1, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 2, @@ -192269,7 +189290,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 45, + "Structural Space Indentations": 14, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192285,16 +189306,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 22, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 4, - "Orphaned Logic": 4, + "Duplicate Logic": 0, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -192328,23 +189349,22 @@ "fastapi.testclient" ] }, - "python/fastapi/tests/test_openapi_examples.py": { + "python/fastapi/tests/test_orjson_response_class.py": { "1. Artifact Identity": { - "Filename": "test_openapi_examples.py", - "Path": "python/fastapi/tests/test_openapi_examples.py", + "Filename": "test_orjson_response_class.py", + "Path": "python/fastapi/tests/test_orjson_response_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3711.94, - "Y": 54.01, - "Z": -630.32 + "X": 4973.94, + "Y": 206.41, + "Z": -592.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192353,23 +189373,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 423, - "Coding LOC": 399, + "Total LOC": 29, + "Coding LOC": 20, "Documentation LOC": 0, - "Structural Magnitude": 47.58, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 7.8, + "Control Flow Ratio": "16.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.25 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "5.96%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.72%", + "API Exposure": "8.15%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -192381,102 +189401,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 13.0, - "Lines of Code (LOC)": 281, - "Control Flow Branches": 0, + "Function Name": "test_orjson_non_str_keys", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 142, - "End Line": 422 - }, - { - "Function Name": "path_examples", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 53 - }, - { - "Function Name": "query_examples", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 76 - }, - { - "Function Name": "header_examples", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 99 - }, - { - "Function Name": "examples", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 31 - }, - { - "Function Name": "cookie_examples", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 119 + "Control Flow Ratio": "50.0%", + "Start Line": 23, + "End Line": 28 }, { - "Function Name": "test_call_api", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 15, + "Function Name": "get_orjson_non_str_keys", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 139 + "Start Line": 15, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 48, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 15, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 2, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -192501,7 +189471,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 375, + "Structural Space Indentations": 9, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192517,11 +189487,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 5, - "Core Var Decl": 26, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 4, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -192550,35 +189520,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "sqlalchemy.sql.elements", + "warnings" ] }, - "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py": { + "python/fastapi/tests/test_param_class.py": { "1. Artifact Identity": { - "Filename": "test_openapi_model_description_trim_on_formfeed.py", - "Path": "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py", + "Filename": "test_param_class.py", + "Path": "python/fastapi/tests/test_param_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3667.21, - "Y": 93.27, - "Z": -2014.49 + "X": 3625.52, + "Y": 115.49, + "Z": 2203.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192587,23 +189558,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 32, + "Total LOC": 26, "Coding LOC": 16, - "Documentation LOC": 5, + "Documentation LOC": 0, "Structural Magnitude": 8.22, - "Control Flow Ratio": "7.7%", + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.188 + "Raw Cognitive Density": 0.125 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.38%", - "Error & Exception Exposure": "32.3%", + "Cognitive Load Exposure": "3.79%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.21%", + "API Exposure": "9.77%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -192615,42 +189586,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 31 - }, - { - "Function Name": "foo", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 9, + "End Line": 10 + }, + { + "Function Name": "test_default_param_query_none", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 19 + }, + { + "Function Name": "test_default_param_query", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 12, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 3, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -192701,16 +189682,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -192741,14 +189722,14 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.params", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_openapi_query_parameter_extension.py": { + "python/fastapi/tests/test_param_in_path_and_dependency.py": { "1. Artifact Identity": { - "Filename": "test_openapi_query_parameter_extension.py", - "Path": "python/fastapi/tests/test_openapi_query_parameter_extension.py", + "Filename": "test_param_in_path_and_dependency.py", + "Path": "python/fastapi/tests/test_param_in_path_and_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -192758,9 +189739,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1993.15, - "Y": -147.3, - "Z": -1988.06 + "X": 4445.24, + "Y": 205.67, + "Z": 736.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192769,10 +189750,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 132, - "Coding LOC": 122, + "Total LOC": 100, + "Coding LOC": 88, "Documentation LOC": 0, - "Structural Magnitude": 14.74, + "Structural Magnitude": 17.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -192782,11 +189763,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "43.02%", + "Error & Exception Exposure": "47.85%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.58%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.76%", + "Concurrency Exposure": "39.55%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -192797,53 +189778,63 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 5.6, - "Lines of Code (LOC)": 92, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 75, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 131 + "Start Line": 25, + "End Line": 99 }, { - "Function Name": "route_with_extra_query_parameters", + "Function Name": "user_exists", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "test_get_route", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_users", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "test_read_users", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 37 + "Start Line": 20, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 26, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 4, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -192859,7 +189850,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -192877,7 +189868,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 112, + "Structural Space Indentations": 78, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192894,10 +189885,10 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Core Var Decl": 5, "Design Camel Case": 0, "Design Snake Case": 5, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -192937,10 +189928,10 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_openapi_route_extensions.py": { + "python/fastapi/tests/test_param_include_in_schema.py": { "1. Artifact Identity": { - "Filename": "test_openapi_route_extensions.py", - "Path": "python/fastapi/tests/test_openapi_route_extensions.py", + "Filename": "test_param_include_in_schema.py", + "Path": "python/fastapi/tests/test_param_include_in_schema.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -192950,9 +189941,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4584.79, - "Y": 147.16, - "Z": -1473.3 + "X": 1732.06, + "Y": -210.06, + "Z": -481.46 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192961,24 +189952,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 46, - "Coding LOC": 36, + "Total LOC": 247, + "Coding LOC": 227, "Documentation LOC": 0, - "Structural Magnitude": 9.22, + "Structural Magnitude": 44.04, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.056 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.93%", - "Error & Exception Exposure": "32.9%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.36%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.57%", + "Concurrency Exposure": "36.12%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -192990,61 +189981,121 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, + "Structural Impact": 7.8, + "Lines of Code (LOC)": 135, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 45 + "Start Line": 112, + "End Line": 246 }, { - "Function Name": "test_get_route", - "Structural Impact": 1.2, + "Function Name": "test_hidden_cookie", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 56 + }, + { + "Function Name": "test_hidden_header", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 80 + }, + { + "Function Name": "test_hidden_query", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 109 + }, + { + "Function Name": "hidden_cookie", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 10, + "End Line": 13 }, { - "Function Name": "route_with_extras", - "Structural Impact": 1.1, + "Function Name": "hidden_header", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 20 + }, + { + "Function Name": "hidden_query", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 32 + }, + { + "Function Name": "hidden_path", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 25 + }, + { + "Function Name": "test_hidden_path", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 83, + "End Line": 87 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 41, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 10, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 19, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 7, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -193069,7 +190120,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 27, + "Structural Space Indentations": 200, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193085,16 +190136,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 12, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193118,7 +190169,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -193126,13 +190177,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pytest" ] }, - "python/fastapi/tests/test_openapi_schema_type.py": { + "python/fastapi/tests/test_params_repr.py": { "1. Artifact Identity": { - "Filename": "test_openapi_schema_type.py", - "Path": "python/fastapi/tests/test_openapi_schema_type.py", + "Filename": "test_params_repr.py", + "Path": "python/fastapi/tests/test_params_repr.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -193142,9 +190194,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4925.73, - "Y": 258.75, - "Z": 764.52 + "X": 2543.09, + "Y": -90.36, + "Z": -937.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193153,23 +190205,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 25, - "Coding LOC": 18, - "Documentation LOC": 2, - "Structural Magnitude": 8.26, - "Control Flow Ratio": "25.0%", + "Total LOC": 115, + "Coding LOC": 58, + "Documentation LOC": 0, + "Structural Magnitude": 57.86, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.278 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.28%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.16%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.74%", + "API Exposure": "14.02%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -193181,49 +190233,299 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_type_value", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 3, + "Function Name": "get_user", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 + }, + { + "Function Name": "test_param_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 13 + }, + { + "Function Name": "test_param_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "test_param_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "test_param_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 25 + }, + { + "Function Name": "test_param_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + }, + { + "Function Name": "test_path_repr", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 34 + }, + { + "Function Name": "test_query_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 38 + }, + { + "Function Name": "test_query_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 + }, + { + "Function Name": "test_query_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 46 + }, + { + "Function Name": "test_query_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "test_query_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 53, + "End Line": 54 + }, + { + "Function Name": "test_header_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 57, + "End Line": 58 + }, + { + "Function Name": "test_header_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 62 + }, + { + "Function Name": "test_header_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 66 + }, + { + "Function Name": "test_header_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 69, + "End Line": 70 + }, + { + "Function Name": "test_header_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 74 + }, + { + "Function Name": "test_cookie_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 78 + }, + { + "Function Name": "test_cookie_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 81, + "End Line": 82 + }, + { + "Function Name": "test_cookie_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 86 + }, + { + "Function Name": "test_cookie_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 89, + "End Line": 90 + }, + { + "Function Name": "test_cookie_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 94 + }, + { + "Function Name": "test_body_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 97, + "End Line": 98 + }, + { + "Function Name": "test_body_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 101, + "End Line": 102 + }, + { + "Function Name": "test_body_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 106 + }, + { + "Function Name": "test_body_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 21, - "End Line": 24 + "Control Flow Ratio": "0.0%", + "Start Line": 109, + "End Line": 110 }, { - "Function Name": "test_allowed_schema_type", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, + "Function Name": "test_body_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 18 + "Start Line": 113, + "End Line": 114 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 9, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 59, + "Function Parameters": 27, + "Function/Method Declarations": 27, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 27, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 27, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 4, - "Unit Test Assertions": 6, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 53, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, - "Collection Iterators / Comprehensions": 1, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 2, @@ -193251,7 +190553,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 11, + "Structural Space Indentations": 28, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193267,16 +190569,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 2, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 0, "Design Camel Case": 0, - "Design Snake Case": 2, + "Design Snake Case": 0, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 27, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193306,27 +190608,26 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.openapi.models", - "pytest" + "fastapi.params", + "typing" ] }, - "python/fastapi/tests/test_openapi_separate_input_output_schemas.py": { + "python/fastapi/tests/test_path.py": { "1. Artifact Identity": { - "Filename": "test_openapi_separate_input_output_schemas.py", - "Path": "python/fastapi/tests/test_openapi_separate_input_output_schemas.py", + "Filename": "test_path.py", + "Path": "python/fastapi/tests/test_path.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3473.07, - "Y": 10.01, - "Z": -673.8 + "X": 3327.66, + "Y": 13.33, + "Z": -208.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193335,23 +190636,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 677, - "Coding LOC": 648, + "Total LOC": 781, + "Coding LOC": 628, "Documentation LOC": 0, - "Structural Magnitude": 85.96, - "Control Flow Ratio": "4.2%", + "Structural Magnitude": 199.06, + "Control Flow Ratio": "2.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.025 + "Raw Cognitive Density": 0.019 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.61%", - "Error & Exception Exposure": "38.96%", + "Cognitive Load Exposure": "2.55%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.34%", + "API Exposure": "13.0%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -193363,355 +190664,782 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 16.0, - "Lines of Code (LOC)": 280, + "Function Name": "test_path_param_ge_2", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "2.3%", - "Start Line": 159, - "End Line": 438 + "Control Flow Ratio": "20.0%", + "Start Line": 362, + "End Line": 375 }, { - "Function Name": "test_openapi_schema_no_separate", - "Structural Impact": 13.8, - "Lines of Code (LOC)": 236, + "Function Name": "test_path_param_le_42", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "3.0%", - "Start Line": 441, - "End Line": 676 + "Control Flow Ratio": "20.0%", + "Start Line": 422, + "End Line": 435 }, { - "Function Name": "get_app_client", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 30, + "Function Name": "test_path_param_le_ge_4", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "9.1%", - "Start Line": 30, - "End Line": 59 + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 505, + "End Line": 518 }, { - "Function Name": "test_with_computed_field", - "Structural Impact": 3.7, + "Function Name": "test_path_param_le_int_42", + "Structural Impact": 2.7, "Lines of Code (LOC)": 14, - "Control Flow Branches": 2, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 143, - "End Line": 156 + "Control Flow Ratio": "20.0%", + "Start Line": 595, + "End Line": 608 }, { - "Function Name": "test_create_item_list", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, + "Function Name": "test_path_param_ge_int_2", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 650, + "End Line": 663 + }, + { + "Function Name": "test_path_param_le_ge_int_4", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 752, + "End Line": 765 + }, + { + "Function Name": "test_path_param_minlength_fo", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 120 + "Start Line": 230, + "End Line": 243 }, { - "Function Name": "test_create_item_with_sub", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 19, + "Function Name": "test_path_param_maxlength_foobar", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 93 + "Start Line": 252, + "End Line": 265 }, { - "Function Name": "test_read_items", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, + "Function Name": "test_path_param_min_maxlength_foobar", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 123, - "End Line": 140 + "Start Line": 274, + "End Line": 287 }, { - "Function Name": "create_with_computed_field", + "Function Name": "test_path_param_min_maxlength_f", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 290, + "End Line": 303 + }, + { + "Function Name": "test_path_param_gt_2", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 312, + "End Line": 325 + }, + { + "Function Name": "test_path_param_gt0_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 334, + "End Line": 347 + }, + { + "Function Name": "test_path_param_lt_42", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 378, + "End Line": 391 + }, + { + "Function Name": "test_path_param_lt0_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 406, + "End Line": 419 + }, + { + "Function Name": "test_path_param_lt_gt_4", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 456, + "End Line": 469 + }, + { + "Function Name": "test_path_param_lt_gt_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 472, + "End Line": 485 + }, + { + "Function Name": "test_path_param_lt_int_42", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 527, + "End Line": 540 + }, + { + "Function Name": "test_path_param_gt_int_2", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 564, + "End Line": 577 + }, + { + "Function Name": "test_path_param_lt_gt_int_4", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 687, + "End Line": 700 + }, + { + "Function Name": "test_path_param_lt_gt_int_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 703, + "End Line": 716 + }, + { + "Function Name": "test_path_int_foobar", "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, + "Start Line": 44, "End Line": 56 }, { - "Function Name": "test_create_item", + "Function Name": "test_path_int_True", "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 72 + "Start Line": 59, + "End Line": 71 }, { - "Function Name": "computed_field", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_int_42_5", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 80, + "End Line": 92 + }, + { + "Function Name": "test_path_float_foobar", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 95, + "End Line": 107 + }, + { + "Function Name": "test_path_float_True", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 110, + "End Line": 122 + }, + { + "Function Name": "test_path_bool_foobar", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 137, + "End Line": 149 + }, + { + "Function Name": "test_path_bool_42", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 158, + "End Line": 170 + }, + { + "Function Name": "test_path_bool_42_5", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 173, + "End Line": 185 + }, + { + "Function Name": "test_path_param_lt_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 543, + "End Line": 555 + }, + { + "Function Name": "test_path_param_gt_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 580, + "End Line": 592 + }, + { + "Function Name": "test_path_param_le_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 623, + "End Line": 635 + }, + { + "Function Name": "test_path_param_ge_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 666, + "End Line": 678 + }, + { + "Function Name": "test_path_param_lt_gt_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 719, + "End Line": 731 + }, + { + "Function Name": "test_path_param_le_ge_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 768, + "End Line": 780 + }, + { + "Function Name": "test_text_get", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 11 + }, + { + "Function Name": "test_nonexistent", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 17 + }, + { + "Function Name": "test_path_foobar", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 23 + }, + { + "Function Name": "test_path_str_foobar", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 26, - "End Line": 27 + "End Line": 29 }, { - "Function Name": "create_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_str_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, + "Start Line": 32, "End Line": 35 }, { - "Function Name": "create_item_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_str_True", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 39 + "End Line": 41 }, { - "Function Name": "read_items", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "test_path_int_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 50 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 113, - "Function Parameters": 13, - "Function/Method Declarations": 13, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 22, - "Type/Safety Bypasses": 1, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 21, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 6, - "Generic Type Abstractions": 8, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 2, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 633, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 38, - "Design Camel Case": 0, - "Design Snake Case": 35, - "Design Pascal Case": 3, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 11, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 5, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" - ] - }, - "python/fastapi/tests/test_openapi_servers.py": { - "1. Artifact Identity": { - "Filename": "test_openapi_servers.py", - "Path": "python/fastapi/tests/test_openapi_servers.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4973.35, - "Y": 236.72, - "Z": 39.37 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 61, - "Coding LOC": 51, - "Documentation LOC": 0, - "Structural Magnitude": 9.72, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.8%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 74, + "End Line": 77 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 31, + "Function Name": "test_path_float_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 60 + "Start Line": 125, + "End Line": 128 }, { - "Function Name": "foo", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_float_42_5", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 131, + "End Line": 134 }, { - "Function Name": "test_app", + "Function Name": "test_path_bool_True", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 152, + "End Line": 155 + }, + { + "Function Name": "test_path_bool_1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 188, + "End Line": 191 + }, + { + "Function Name": "test_path_bool_0", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 194, + "End Line": 197 + }, + { + "Function Name": "test_path_bool_true", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 200, + "End Line": 203 + }, + { + "Function Name": "test_path_bool_False", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 206, + "End Line": 209 + }, + { + "Function Name": "test_path_bool_false", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 212, + "End Line": 215 + }, + { + "Function Name": "test_path_param_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 218, + "End Line": 221 + }, + { + "Function Name": "test_path_param_minlength_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 224, + "End Line": 227 + }, + { + "Function Name": "test_path_param_maxlength_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 246, + "End Line": 249 + }, + { + "Function Name": "test_path_param_min_maxlength_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 268, + "End Line": 271 + }, + { + "Function Name": "test_path_param_gt_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 306, + "End Line": 309 + }, + { + "Function Name": "test_path_param_gt0_0_05", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 328, + "End Line": 331 + }, + { + "Function Name": "test_path_param_ge_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 350, + "End Line": 353 + }, + { + "Function Name": "test_path_param_ge_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 356, + "End Line": 359 + }, + { + "Function Name": "test_path_param_lt_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 394, + "End Line": 397 + }, + { + "Function Name": "test_path_param_lt0__1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 400, + "End Line": 403 + }, + { + "Function Name": "test_path_param_le_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 438, + "End Line": 441 + }, + { + "Function Name": "test_path_param_le_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 444, + "End Line": 447 + }, + { + "Function Name": "test_path_param_lt_gt_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 450, + "End Line": 453 + }, + { + "Function Name": "test_path_param_le_ge_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 488, + "End Line": 491 + }, + { + "Function Name": "test_path_param_le_ge_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 499, + "End Line": 502 + }, + { + "Function Name": "test_path_param_lt_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 521, + "End Line": 524 + }, + { + "Function Name": "test_path_param_gt_int_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 558, + "End Line": 561 + }, + { + "Function Name": "test_path_param_le_int_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 611, + "End Line": 614 + }, + { + "Function Name": "test_path_param_le_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 617, + "End Line": 620 + }, + { + "Function Name": "test_path_param_ge_int_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 638, + "End Line": 641 + }, + { + "Function Name": "test_path_param_ge_int_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 644, + "End Line": 647 + }, + { + "Function Name": "test_path_param_lt_gt_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 681, + "End Line": 684 + }, + { + "Function Name": "test_path_param_le_ge_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 734, + "End Line": 737 + }, + { + "Function Name": "test_path_param_le_ge_int_1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 740, + "End Line": 743 + }, + { + "Function Name": "test_path_param_le_ge_int_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 746, + "End Line": 749 + }, + { + "Function Name": "test_path_param_le_ge_1", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 494, + "End Line": 496 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 13, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 273, + "Function Parameters": 75, + "Function/Method Declarations": 75, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, + "Defensive Programming Constructs": 149, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 75, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, + "Unit Test Assertions": 224, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -193736,7 +191464,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 41, + "Structural Space Indentations": 550, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193752,16 +191480,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 76, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 76, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 75, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193785,21 +191513,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot" + ".main", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_operations_signatures.py": { + "python/fastapi/tests/test_put_no_body.py": { "1. Artifact Identity": { - "Filename": "test_operations_signatures.py", - "Path": "python/fastapi/tests/test_operations_signatures.py", + "Filename": "test_put_no_body.py", + "Path": "python/fastapi/tests/test_put_no_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -193809,9 +191536,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1329.4, - "Y": -249.72, - "Z": -1537.78 + "X": 2988.43, + "Y": 27.15, + "Z": 1979.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193820,23 +191547,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 23, - "Coding LOC": 18, + "Total LOC": 104, + "Coding LOC": 92, "Documentation LOC": 0, - "Structural Magnitude": 5.16, - "Control Flow Ratio": "20.0%", + "Structural Magnitude": 15.54, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 2.444 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "49.94%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "4.36%", + "API Exposure": "7.7%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -193848,42 +191575,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_signatures_consistency", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 76, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 8, - "End Line": 22 + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 103 + }, + { + "Function Name": "save_item_no_body", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 9, + "End Line": 10 + }, + { + "Function Name": "test_put_no_body", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 19 + }, + { + "Function Name": "test_put_no_body_with_body", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 8, - "Function Parameters": 1, - "Function/Method Declarations": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 29, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 8, - "Module Dependencies (Imports)": 2, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -193908,7 +191665,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 14, + "Structural Space Indentations": 82, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193924,16 +191681,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 5, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193957,32 +191714,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "inspect" + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_optional_file_list.py": { + "python/fastapi/tests/test_pydantic_v1_error.py": { "1. Artifact Identity": { - "Filename": "test_optional_file_list.py", - "Path": "python/fastapi/tests/test_optional_file_list.py", + "Filename": "test_pydantic_v1_error.py", + "Path": "python/fastapi/tests/test_pydantic_v1_error.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3829.74, - "Y": 116.26, - "Z": 1804.76 + "X": 2813.11, + "Y": -75.98, + "Z": -1232.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193991,24 +191750,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, - "Coding LOC": 21, + "Total LOC": 97, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 12.42, - "Control Flow Ratio": "13.3%", + "Structural Magnitude": 48.12, + "Control Flow Ratio": "18.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.333 + "Raw Cognitive Density": 0.164 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "7.94%", + "Cognitive Load Exposure": "4.38%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.46%", - "Concurrency Exposure": "47.48%", + "API Exposure": "14.04%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194019,62 +191778,152 @@ }, "5. Function Analysis": [ { - "Function Name": "upload_files", - "Structural Impact": 4.4, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 2, + "Function Name": "test_raises_pydantic_v1_model_in_additional_responses_model", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 58, + "End Line": 70 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_endpoint_param", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 19, + "End Line": 29 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_return_type", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 32, + "End Line": 42 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_response_model", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 45, + "End Line": 55 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_union", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 73, + "End Line": 83 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_sequence", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 86, + "End Line": 96 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 8, - "End Line": 11 + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "test_optional_bytes_list", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 82, + "End Line": 83 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 95, + "End Line": 96 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 21 + "Start Line": 41, + "End Line": 42 }, { - "Function Name": "test_optional_bytes_list_no_files", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 28 + "Start Line": 54, + "End Line": 55 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 69, + "End Line": 70 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 13, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 36, + "Function Parameters": 12, + "Function/Method Declarations": 12, + "Class/Entity Declarations": 6, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 24, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, - "Collection Iterators / Comprehensions": 1, + "Decorators and Annotations": 6, + "Generic Type Abstractions": 8, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -194099,7 +191948,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 14, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194115,16 +191964,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194148,20 +191997,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.exceptions", + "pydantic.v1", + "pytest", + "sys", + "tests.utils", + "warnings" ] }, - "python/fastapi/tests/test_orjson_response_class.py": { + "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py": { "1. Artifact Identity": { - "Filename": "test_orjson_response_class.py", - "Path": "python/fastapi/tests/test_orjson_response_class.py", + "Filename": "test_pydanticv2_dataclasses_uuid_stringified_annotations.py", + "Path": "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -194171,9 +192025,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4973.94, - "Y": 206.41, - "Z": -592.25 + "X": 769.12, + "Y": -263.82, + "Z": 424.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194182,24 +192036,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, - "Coding LOC": 20, + "Total LOC": 52, + "Coding LOC": 39, "Documentation LOC": 0, - "Structural Magnitude": 7.8, - "Control Flow Ratio": "16.7%", + "Structural Magnitude": 10.78, + "Control Flow Ratio": "9.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.25 + "Raw Cognitive Density": 0.179 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.96%", + "Cognitive Load Exposure": "4.63%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.15%", - "Concurrency Exposure": "0.0%", + "API Exposure": "6.49%", + "Concurrency Exposure": "35.66%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194210,52 +192064,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_orjson_non_str_keys", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, + "Function Name": "test_annotations", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 23, - "End Line": 28 + "Control Flow Ratio": "25.0%", + "Start Line": 39, + "End Line": 51 }, { - "Function Name": "get_orjson_non_str_keys", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Function Name": "read_item", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 17 + "Control Flow Ratio": "33.3%", + "Start Line": 26, + "End Line": 33 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 15, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 19, "Function Parameters": 2, "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 3, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -194276,11 +192130,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 9, + "Structural Space Indentations": 25, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194296,11 +192150,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, "Design Camel Case": 0, "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -194329,24 +192183,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "__future__", + "dataclasses", + "dirty_equals", "fastapi", - "fastapi.exceptions", - "fastapi.responses", "fastapi.testclient", - "sqlalchemy.sql.elements", - "warnings" + "inline_snapshot", + "uuid" ] }, - "python/fastapi/tests/test_param_class.py": { + "python/fastapi/tests/test_query.py": { "1. Artifact Identity": { - "Filename": "test_param_class.py", - "Path": "python/fastapi/tests/test_param_class.py", + "Filename": "test_query.py", + "Path": "python/fastapi/tests/test_query.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -194356,9 +192211,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3625.52, - "Y": 115.49, - "Z": 2203.26 + "X": 3714.5, + "Y": 55.92, + "Z": -58.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194367,23 +192222,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 26, - "Coding LOC": 16, + "Total LOC": 278, + "Coding LOC": 217, "Documentation LOC": 0, - "Structural Magnitude": 8.22, + "Structural Magnitude": 72.44, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.125 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.79%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "1.18%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.77%", + "API Exposure": "12.08%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -194395,62 +192250,322 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_query", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 8, + "End Line": 20 }, { - "Function Name": "test_default_param_query_none", + "Function Name": "test_query_not_declared_baz", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 41 + }, + { + "Function Name": "test_query_int", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 62, + "End Line": 74 + }, + { + "Function Name": "test_query_int_query_42_5", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 83, + "End Line": 95 + }, + { + "Function Name": "test_query_int_query_baz", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 110 + }, + { + "Function Name": "test_query_int_not_declared_baz", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 113, + "End Line": 125 + }, + { + "Function Name": "test_query_int_optional_query_foo", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 140, + "End Line": 152 + }, + { + "Function Name": "test_query_int_default_query_foo", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 167, + "End Line": 179 + }, + { + "Function Name": "test_query_param_required", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 194, + "End Line": 206 + }, + { + "Function Name": "test_query_param_required_int", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 215, + "End Line": 227 + }, + { + "Function Name": "test_query_param_required_int_query_foo", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 236, + "End Line": 248 + }, + { + "Function Name": "test_query_query_baz", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "test_default_param_query", + "Function Name": "test_query_optional", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 44, + "End Line": 47 + }, + { + "Function Name": "test_query_optional_query_baz", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 53 + }, + { + "Function Name": "test_query_optional_not_declared_baz", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 59 + }, + { + "Function Name": "test_query_int_query_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 80 + }, + { + "Function Name": "test_query_int_optional", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 128, + "End Line": 131 + }, + { + "Function Name": "test_query_int_optional_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 134, + "End Line": 137 + }, + { + "Function Name": "test_query_int_default", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 155, + "End Line": 158 + }, + { + "Function Name": "test_query_int_default_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 161, + "End Line": 164 + }, + { + "Function Name": "test_query_param", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 185 + }, + { + "Function Name": "test_query_param_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 188, + "End Line": 191 + }, + { + "Function Name": "test_query_param_required_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 209, + "End Line": 212 + }, + { + "Function Name": "test_query_param_required_int_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 230, + "End Line": 233 + }, + { + "Function Name": "test_query_frozenset_query_1_query_1_query_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 251, + "End Line": 254 + }, + { + "Function Name": "test_query_list", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 257, + "End Line": 260 + }, + { + "Function Name": "test_query_list_default", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 268, + "End Line": 271 + }, + { + "Function Name": "test_query_list_default_empty", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 274, + "End Line": 277 + }, + { + "Function Name": "test_query_list_empty", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 263, + "End Line": 265 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 106, + "Function Parameters": 29, + "Function/Method Declarations": 29, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 63, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 29, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 86, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -194469,13 +192584,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, + "Immutable Data Declarations": 1, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 7, + "Structural Space Indentations": 185, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194491,16 +192606,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 30, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 1, + "Design Snake Case": 30, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 29, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194524,33 +192639,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.params", + ".main", "fastapi.testclient" ] }, - "python/fastapi/tests/test_param_in_path_and_dependency.py": { + "python/fastapi/tests/test_query_cookie_header_model_extra_params.py": { "1. Artifact Identity": { - "Filename": "test_param_in_path_and_dependency.py", - "Path": "python/fastapi/tests/test_param_in_path_and_dependency.py", + "Filename": "test_query_cookie_header_model_extra_params.py", + "Path": "python/fastapi/tests/test_query_cookie_header_model_extra_params.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4445.24, - "Y": 205.67, - "Z": 736.64 + "X": 4213.62, + "Y": 157.32, + "Z": -411.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194559,10 +192674,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 100, - "Coding LOC": 88, + "Total LOC": 106, + "Coding LOC": 83, "Documentation LOC": 0, - "Structural Magnitude": 17.66, + "Structural Magnitude": 29.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -194572,11 +192687,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "47.85%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.76%", - "Concurrency Exposure": "39.55%", + "API Exposure": "10.98%", + "Concurrency Exposure": "59.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194587,67 +192702,107 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 75, + "Function Name": "test_header_pass_extra_list", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 15, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 99 + "Start Line": 61, + "End Line": 75 }, { - "Function Name": "user_exists", + "Function Name": "test_query_pass_extra_list", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 42 + }, + { + "Function Name": "test_query_pass_extra_single", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 58 + }, + { + "Function Name": "test_header_pass_extra_single", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 91 + }, + { + "Function Name": "test_cookie_pass_extra_list", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 94, + "End Line": 105 + }, + { + "Function Name": "query_model_with_extra", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "read_users", + "Function Name": "header_model_with_extra", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "test_read_users", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "cookies_model_with_extra", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 22 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 1, + "Sequential Logic Declarations": 31, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 15, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 4, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, @@ -194659,7 +192814,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -194677,7 +192832,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 78, + "Structural Space Indentations": 67, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194693,16 +192848,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 22, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 19, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194734,25 +192889,26 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "pydantic" ] }, - "python/fastapi/tests/test_param_include_in_schema.py": { + "python/fastapi/tests/test_read_with_orm_mode.py": { "1. Artifact Identity": { - "Filename": "test_param_include_in_schema.py", - "Path": "python/fastapi/tests/test_param_include_in_schema.py", + "Filename": "test_read_with_orm_mode.py", + "Path": "python/fastapi/tests/test_read_with_orm_mode.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, PersonBase", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1732.06, - "Y": -210.06, - "Z": -481.46 + "X": 3735.16, + "Y": 72.24, + "Z": -1664.43 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194761,24 +192917,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 247, - "Coding LOC": 227, + "Total LOC": 44, + "Coding LOC": 31, "Documentation LOC": 0, - "Structural Magnitude": 44.04, + "Structural Magnitude": 14.52, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.226 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.47%", + "Error & Exception Exposure": "36.52%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", - "Concurrency Exposure": "36.12%", + "API Exposure": "11.54%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194789,121 +192945,61 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.8, - "Lines of Code (LOC)": 135, + "Function Name": "test_read_with_orm_mode", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 36, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 246 - }, - { - "Function Name": "test_hidden_cookie", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 56 - }, - { - "Function Name": "test_hidden_header", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 80 - }, - { - "Function Name": "test_hidden_query", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 109 - }, - { - "Function Name": "hidden_cookie", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 13 - }, - { - "Function Name": "hidden_header", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 20 + "Start Line": 8, + "End Line": 43 }, { - "Function Name": "hidden_query", + "Function Name": "create_person", "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 31, + "End Line": 33 }, { - "Function Name": "hidden_path", + "Function Name": "full_name", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 - }, - { - "Function Name": "test_hidden_path", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 87 + "Start Line": 15, + "End Line": 16 } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 41, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, - "Type/Safety Bypasses": 0, + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 3, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 19, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 1, "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -194929,7 +193025,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 200, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194945,16 +193041,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 15, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 3, + "Design Snake Case": 9, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194986,14 +193082,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pytest" + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_params_repr.py": { + "python/fastapi/tests/test_regex_deprecated_body.py": { "1. Artifact Identity": { - "Filename": "test_params_repr.py", - "Path": "python/fastapi/tests/test_params_repr.py", + "Filename": "test_regex_deprecated_body.py", + "Path": "python/fastapi/tests/test_regex_deprecated_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -195003,9 +193099,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2543.09, - "Y": -90.36, - "Z": -937.87 + "X": 4109.7, + "Y": 109.88, + "Z": 538.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -195014,24 +193110,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 58, + "Total LOC": 155, + "Coding LOC": 140, "Documentation LOC": 0, - "Structural Magnitude": 57.86, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 30.9, + "Control Flow Ratio": "8.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.064 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.16%", + "Cognitive Load Exposure": "3.02%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.02%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.24%", + "Concurrency Exposure": "20.5%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -195042,302 +193138,92 @@ }, "5. Function Analysis": [ { - "Function Name": "get_user", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.5, + "Lines of Code (LOC)": 91, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 64, + "End Line": 154 }, { - "Function Name": "test_param_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "get_client", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 3, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "37.5%", "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "test_param_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "test_param_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "End Line": 26 }, { - "Function Name": "test_param_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Function Name": "read_items", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 17, + "End Line": 23 }, { - "Function Name": "test_param_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_query_nonregexquery", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Control Flow Ratio": "20.0%", + "Start Line": 46, + "End Line": 60 }, { - "Function Name": "test_path_repr", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_no_query", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, + "Start Line": 30, "End Line": 34 }, { - "Function Name": "test_query_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 - }, - { - "Function Name": "test_query_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_q_fixedquery", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, + "Start Line": 38, "End Line": 42 - }, - { - "Function Name": "test_query_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 - }, - { - "Function Name": "test_query_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "test_query_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 54 - }, - { - "Function Name": "test_header_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 58 - }, - { - "Function Name": "test_header_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 62 - }, - { - "Function Name": "test_header_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 - }, - { - "Function Name": "test_header_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 70 - }, - { - "Function Name": "test_header_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 - }, - { - "Function Name": "test_cookie_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 78 - }, - { - "Function Name": "test_cookie_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 82 - }, - { - "Function Name": "test_cookie_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 - }, - { - "Function Name": "test_cookie_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 90 - }, - { - "Function Name": "test_cookie_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 94 - }, - { - "Function Name": "test_body_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 98 - }, - { - "Function Name": "test_body_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 101, - "End Line": 102 - }, - { - "Function Name": "test_body_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 106 - }, - { - "Function Name": "test_body_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 109, - "End Line": 110 - }, - { - "Function Name": "test_body_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 113, - "End Line": 114 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 59, - "Function Parameters": 27, - "Function/Method Declarations": 27, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 45, + "Function Parameters": 6, + "Function/Method Declarations": 6, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 27, - "Type/Safety Bypasses": 2, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 27, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 53, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 14, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -195354,7 +193240,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 4, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -195362,7 +193248,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 28, + "Structural Space Indentations": 124, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -195378,16 +193264,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 0, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 27, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -195411,20 +193297,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.params", + ".utils", + "fastapi", + "fastapi.exceptions", + "fastapi.testclient", + "inline_snapshot", + "pytest", "typing" ] }, - "python/fastapi/tests/test_path.py": { + "python/fastapi/tests/test_regex_deprecated_params.py": { "1. Artifact Identity": { - "Filename": "test_path.py", - "Path": "python/fastapi/tests/test_path.py", + "Filename": "test_regex_deprecated_params.py", + "Path": "python/fastapi/tests/test_regex_deprecated_params.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -195434,9 +193325,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3327.66, - "Y": 13.33, - "Z": -208.78 + "X": 3167.23, + "Y": 40.65, + "Z": 1522.81 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -195445,24 +193336,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 781, - "Coding LOC": 628, + "Total LOC": 147, + "Coding LOC": 132, "Documentation LOC": 0, - "Structural Magnitude": 199.06, - "Control Flow Ratio": "2.2%", + "Structural Magnitude": 30.44, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.019 + "Raw Cognitive Density": 0.068 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.55%", + "Cognitive Load Exposure": "3.07%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.0%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.32%", + "Concurrency Exposure": "20.91%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -195473,789 +193364,526 @@ }, "5. Function Analysis": [ { - "Function Name": "test_path_param_ge_2", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 362, - "End Line": 375 - }, - { - "Function Name": "test_path_param_le_42", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 422, - "End Line": 435 - }, - { - "Function Name": "test_path_param_le_ge_4", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 505, - "End Line": 518 - }, - { - "Function Name": "test_path_param_le_int_42", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 595, - "End Line": 608 - }, - { - "Function Name": "test_path_param_ge_int_2", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 650, - "End Line": 663 - }, - { - "Function Name": "test_path_param_le_ge_int_4", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 752, - "End Line": 765 - }, - { - "Function Name": "test_path_param_minlength_fo", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 230, - "End Line": 243 - }, - { - "Function Name": "test_path_param_maxlength_foobar", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 252, - "End Line": 265 - }, - { - "Function Name": "test_path_param_min_maxlength_foobar", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 274, - "End Line": 287 - }, - { - "Function Name": "test_path_param_min_maxlength_f", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 290, - "End Line": 303 - }, - { - "Function Name": "test_path_param_gt_2", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 312, - "End Line": 325 - }, - { - "Function Name": "test_path_param_gt0_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 334, - "End Line": 347 - }, - { - "Function Name": "test_path_param_lt_42", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 378, - "End Line": 391 - }, - { - "Function Name": "test_path_param_lt0_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 406, - "End Line": 419 - }, - { - "Function Name": "test_path_param_lt_gt_4", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 456, - "End Line": 469 - }, - { - "Function Name": "test_path_param_lt_gt_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 472, - "End Line": 485 - }, - { - "Function Name": "test_path_param_lt_int_42", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 527, - "End Line": 540 - }, - { - "Function Name": "test_path_param_gt_int_2", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 564, - "End Line": 577 - }, - { - "Function Name": "test_path_param_lt_gt_int_4", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 687, - "End Line": 700 - }, - { - "Function Name": "test_path_param_lt_gt_int_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 703, - "End Line": 716 - }, - { - "Function Name": "test_path_int_foobar", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 56 - }, - { - "Function Name": "test_path_int_True", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 71 - }, - { - "Function Name": "test_path_int_42_5", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 92 - }, - { - "Function Name": "test_path_float_foobar", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 107 - }, - { - "Function Name": "test_path_float_True", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 122 - }, - { - "Function Name": "test_path_bool_foobar", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 149 - }, - { - "Function Name": "test_path_bool_42", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 170 - }, - { - "Function Name": "test_path_bool_42_5", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 173, - "End Line": 185 - }, - { - "Function Name": "test_path_param_lt_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 543, - "End Line": 555 - }, - { - "Function Name": "test_path_param_gt_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 580, - "End Line": 592 - }, - { - "Function Name": "test_path_param_le_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 623, - "End Line": 635 - }, - { - "Function Name": "test_path_param_ge_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 666, - "End Line": 678 - }, - { - "Function Name": "test_path_param_lt_gt_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 719, - "End Line": 731 - }, - { - "Function Name": "test_path_param_le_ge_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 768, - "End Line": 780 - }, - { - "Function Name": "test_text_get", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 11 - }, - { - "Function Name": "test_nonexistent", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 17 - }, - { - "Function Name": "test_path_foobar", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 23 - }, - { - "Function Name": "test_path_str_foobar", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 29 - }, - { - "Function Name": "test_path_str_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 35 - }, - { - "Function Name": "test_path_str_True", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 41 - }, - { - "Function Name": "test_path_int_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 77 - }, - { - "Function Name": "test_path_float_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 128 - }, - { - "Function Name": "test_path_float_42_5", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 131, - "End Line": 134 - }, - { - "Function Name": "test_path_bool_True", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 152, - "End Line": 155 - }, - { - "Function Name": "test_path_bool_1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 188, - "End Line": 191 - }, - { - "Function Name": "test_path_bool_0", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 197 - }, - { - "Function Name": "test_path_bool_true", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 200, - "End Line": 203 - }, - { - "Function Name": "test_path_bool_False", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 206, - "End Line": 209 - }, - { - "Function Name": "test_path_bool_false", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 212, - "End Line": 215 - }, - { - "Function Name": "test_path_param_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 218, - "End Line": 221 - }, - { - "Function Name": "test_path_param_minlength_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 224, - "End Line": 227 - }, - { - "Function Name": "test_path_param_maxlength_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 246, - "End Line": 249 - }, - { - "Function Name": "test_path_param_min_maxlength_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 268, - "End Line": 271 - }, - { - "Function Name": "test_path_param_gt_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 306, - "End Line": 309 - }, - { - "Function Name": "test_path_param_gt0_0_05", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 328, - "End Line": 331 - }, - { - "Function Name": "test_path_param_ge_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 350, - "End Line": 353 - }, - { - "Function Name": "test_path_param_ge_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 356, - "End Line": 359 - }, - { - "Function Name": "test_path_param_lt_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 394, - "End Line": 397 - }, - { - "Function Name": "test_path_param_lt0__1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 400, - "End Line": 403 - }, - { - "Function Name": "test_path_param_le_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 438, - "End Line": 441 - }, - { - "Function Name": "test_path_param_le_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 83, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 444, - "End Line": 447 + "Start Line": 64, + "End Line": 146 }, { - "Function Name": "test_path_param_lt_gt_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "get_client", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 3, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 450, - "End Line": 453 + "Control Flow Ratio": "37.5%", + "Start Line": 12, + "End Line": 26 }, { - "Function Name": "test_path_param_le_ge_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "read_items", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 17, + "End Line": 23 + }, + { + "Function Name": "test_query_params_str_validations_item_query_nonregexquery", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 488, - "End Line": 491 + "Control Flow Ratio": "20.0%", + "Start Line": 46, + "End Line": 60 }, { - "Function Name": "test_path_param_le_ge_3", + "Function Name": "test_query_params_str_validations_no_query", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 499, - "End Line": 502 + "Start Line": 30, + "End Line": 34 }, { - "Function Name": "test_path_param_lt_int_2", + "Function Name": "test_query_params_str_validations_q_fixedquery", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 521, - "End Line": 524 - }, + "Start Line": 38, + "End Line": 42 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 4, + "Sequential Logic Declarations": 44, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 14, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 7, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 4, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 116, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 10, + "Design Camel Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 5, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 7, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + ".utils", + "fastapi", + "fastapi.exceptions", + "fastapi.testclient", + "inline_snapshot", + "pytest", + "typing" + ] + }, + "python/fastapi/tests/test_repeated_cookie_headers.py": { + "1. Artifact Identity": { + "Filename": "test_repeated_cookie_headers.py", + "Path": "python/fastapi/tests/test_repeated_cookie_headers.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4568.48, + "Y": 190.55, + "Z": -1164.55 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 35, + "Coding LOC": 21, + "Documentation LOC": 0, + "Structural Magnitude": 14.82, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.095 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "3.4%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "11.61%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_path_param_gt_int_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "set_cookie", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 558, - "End Line": 561 + "Start Line": 7, + "End Line": 9 }, { - "Function Name": "test_path_param_le_int_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "set_indirect_cookie", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 611, - "End Line": 614 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_path_param_le_int_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_direct_cookie", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 617, - "End Line": 620 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_path_param_ge_int_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_indirect_cookie", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 638, - "End Line": 641 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_path_param_ge_int_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_cookie_is_set_once", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 644, - "End Line": 647 - }, + "Start Line": 29, + "End Line": 34 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 4, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 10, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, + "Design Camel Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 1, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient" + ] + }, + "python/fastapi/tests/test_repeated_dependency_schema.py": { + "1. Artifact Identity": { + "Filename": "test_repeated_dependency_schema.py", + "Path": "python/fastapi/tests/test_repeated_dependency_schema.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4074.49, + "Y": 126.21, + "Z": -1264.0 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 110, + "Coding LOC": 96, + "Documentation LOC": 0, + "Structural Magnitude": 18.92, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.26%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_path_param_lt_gt_int_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 80, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 681, - "End Line": 684 + "Start Line": 30, + "End Line": 109 }, { - "Function Name": "test_path_param_le_ge_int_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_deps", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 734, - "End Line": 737 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_path_param_le_ge_int_1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_header", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 740, - "End Line": 743 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "test_path_param_le_ge_int_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_something_else", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 746, - "End Line": 749 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_path_param_le_ge_1", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 494, - "End Line": 496 + "Start Line": 24, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 273, - "Function Parameters": 75, - "Function/Method Declarations": 75, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 31, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 149, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 75, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 224, + "Unit Test Assertions": 7, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 4, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -196273,7 +193901,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 550, + "Structural Space Indentations": 85, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196290,15 +193918,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 76, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 76, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 75, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196306,7 +193934,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 1, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -196322,20 +193950,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".main", - "fastapi.testclient" + "fastapi", + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_put_no_body.py": { + "python/fastapi/tests/test_repeated_parameter_alias.py": { "1. Artifact Identity": { - "Filename": "test_put_no_body.py", - "Path": "python/fastapi/tests/test_put_no_body.py", + "Filename": "test_repeated_parameter_alias.py", + "Path": "python/fastapi/tests/test_repeated_parameter_alias.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -196345,9 +193974,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2988.43, - "Y": 27.15, - "Z": 1979.11 + "X": 2582.71, + "Y": -51.37, + "Z": -2204.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -196356,10 +193985,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 104, - "Coding LOC": 92, + "Total LOC": 107, + "Coding LOC": 97, "Documentation LOC": 0, - "Structural Magnitude": 15.54, + "Structural Magnitude": 14.24, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -196372,7 +194001,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.7%", + "API Exposure": "6.87%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -196385,61 +194014,51 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 76, + "Structural Impact": 5.1, + "Lines of Code (LOC)": 82, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 103 + "Start Line": 25, + "End Line": 106 }, { - "Function Name": "save_item_no_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_parameters_with_repeated_aliases", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", "Start Line": 9, - "End Line": 10 - }, - { - "Function Name": "test_put_no_body", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "End Line": 13 }, { - "Function Name": "test_put_no_body_with_body", + "Function Name": "test_get_parameters", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 19, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Sequential Logic Declarations": 27, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -196474,7 +194093,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 82, + "Structural Space Indentations": 87, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196491,15 +194110,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196534,23 +194153,22 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_pydantic_v1_error.py": { + "python/fastapi/tests/test_reponse_set_reponse_code_empty.py": { "1. Artifact Identity": { - "Filename": "test_pydantic_v1_error.py", - "Path": "python/fastapi/tests/test_pydantic_v1_error.py", + "Filename": "test_reponse_set_reponse_code_empty.py", + "Path": "python/fastapi/tests/test_reponse_set_reponse_code_empty.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2813.11, - "Y": -75.98, - "Z": -1232.8 + "X": 892.58, + "Y": -247.43, + "Z": 366.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -196559,24 +194177,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 97, - "Coding LOC": 61, + "Total LOC": 105, + "Coding LOC": 94, "Documentation LOC": 0, - "Structural Magnitude": 48.12, - "Control Flow Ratio": "18.2%", + "Structural Magnitude": 15.78, + "Control Flow Ratio": "3.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.164 + "Raw Cognitive Density": 0.064 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.38%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "3.02%", + "Error & Exception Exposure": "44.24%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.04%", - "Concurrency Exposure": "0.0%", + "API Exposure": "6.9%", + "Concurrency Exposure": "23.73%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -196587,152 +194205,510 @@ }, "5. Function Analysis": [ { - "Function Name": "test_raises_pydantic_v1_model_in_additional_responses_model", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 73, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 58, - "End Line": 70 + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 104 }, { - "Function Name": "test_raises_pydantic_v1_model_in_endpoint_param", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "test_dependency_set_status_code", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 19, + "Control Flow Ratio": "25.0%", + "Start Line": 26, "End Line": 29 }, { - "Function Name": "test_raises_pydantic_v1_model_in_return_type", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 32, - "End Line": 42 - }, + "Function Name": "delete_deployment", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 15, + "End Line": 20 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 1, + "Sequential Logic Declarations": 28, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 2, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 82, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "typing" + ] + }, + "python/fastapi/tests/test_request_body_parameters_media_type.py": { + "1. Artifact Identity": { + "Filename": "test_request_body_parameters_media_type.py", + "Path": "python/fastapi/tests/test_request_body_parameters_media_type.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 3776.01, + "Y": 72.33, + "Z": -1226.12 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 185, + "Coding LOC": 168, + "Documentation LOC": 2, + "Structural Magnitude": 24.26, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "48.96%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.96%", + "Concurrency Exposure": "26.68%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_raises_pydantic_v1_model_in_response_model", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 8.4, + "Lines of Code (LOC)": 147, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 45, - "End Line": 55 + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 184 }, { - "Function Name": "test_raises_pydantic_v1_model_in_union", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 73, - "End Line": 83 + "Function Name": "create_shop", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 32 }, { - "Function Name": "test_raises_pydantic_v1_model_in_sequence", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 86, - "End Line": 96 - }, + "Function Name": "create_product", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 24 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 36, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 3, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 153, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 2, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_request_param_model_by_alias.py": { + "1. Artifact Identity": { + "Filename": "test_request_param_model_by_alias.py", + "Path": "python/fastapi/tests/test_request_param_model_by_alias.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 2716.26, + "Y": -41.36, + "Z": -1469.66 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 73, + "Coding LOC": 51, + "Documentation LOC": 0, + "Structural Magnitude": 29.22, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "12.26%", + "Concurrency Exposure": "78.88%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "endpoint", + "Function Name": "query_model", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "endpoint", + "Function Name": "header_model", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 83 + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "endpoint", + "Function Name": "cookie_model", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_cookie_model_with_alias_by_name", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 + "Start Line": 66, + "End Line": 72 }, { - "Function Name": "endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_cookie_model_with_alias", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, + "Start Line": 42, + "End Line": 47 + }, + { + "Function Name": "test_query_model_with_alias_by_name", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, "End Line": 55 }, { - "Function Name": "endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_header_model_with_alias_by_name", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 70 + "Start Line": 58, + "End Line": 63 + }, + { + "Function Name": "test_query_model_with_alias", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 32 + }, + { + "Function Name": "test_header_model_with_alias", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 36, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 6, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 33, + "Function Parameters": 9, + "Function/Method Declarations": 9, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 24, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, - "Generic Type Abstractions": 8, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -196746,7 +194722,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 2, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -196757,7 +194733,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 33, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196773,16 +194749,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 20, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 17, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196806,25 +194782,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dirty_equals", "fastapi", - "fastapi.exceptions", - "pydantic.v1", - "pytest", - "sys", - "tests.utils", - "warnings" + "fastapi.testclient", + "pydantic" ] }, - "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py": { + "python/fastapi/tests/test_required_noneable.py": { "1. Artifact Identity": { - "Filename": "test_pydanticv2_dataclasses_uuid_stringified_annotations.py", - "Path": "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py", + "Filename": "test_required_noneable.py", + "Path": "python/fastapi/tests/test_required_noneable.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -196834,9 +194807,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 769.12, - "Y": -263.82, - "Z": 424.67 + "X": 3541.04, + "Y": 64.25, + "Z": 1260.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -196845,24 +194818,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 52, - "Coding LOC": 39, + "Total LOC": 61, + "Coding LOC": 37, "Documentation LOC": 0, - "Structural Magnitude": 10.78, - "Control Flow Ratio": "9.5%", + "Structural Magnitude": 26.24, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.179 + "Raw Cognitive Density": 0.054 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.63%", + "Cognitive Load Exposure": "2.91%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.49%", - "Concurrency Exposure": "35.66%", + "API Exposure": "12.79%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -196873,52 +194846,132 @@ }, "5. Function Analysis": [ { - "Function Name": "test_annotations", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 39, - "End Line": 51 + "Function Name": "read_query", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "read_item", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, + "Function Name": "read_explicit_query", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "send_body_embed", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "test_required_noneable_query_value", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 26, + "Control Flow Ratio": "0.0%", + "Start Line": 30, "End Line": 33 + }, + { + "Function Name": "test_required_nonable_explicit_query_value", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 44 + }, + { + "Function Name": "test_required_noneable_body_embed_value", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 57, + "End Line": 60 + }, + { + "Function Name": "test_required_nonable_query_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 27 + }, + { + "Function Name": "test_required_nonable_explicit_query_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 38 + }, + { + "Function Name": "test_required_nonable_body_embed_no_content", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 47, + "End Line": 49 + }, + { + "Function Name": "test_required_nonable_body_embed_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 54 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 19, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 27, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 17, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -196939,11 +194992,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 1, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 25, + "Structural Space Indentations": 20, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196959,16 +195012,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 9, "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 10, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196992,37 +195045,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "__future__", - "dataclasses", - "dirty_equals", "fastapi", - "fastapi.testclient", - "inline_snapshot", - "uuid" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_query.py": { + "python/fastapi/tests/test_response_by_alias.py": { "1. Artifact Identity": { - "Filename": "test_query.py", - "Path": "python/fastapi/tests/test_query.py", + "Filename": "test_response_by_alias.py", + "Path": "python/fastapi/tests/test_response_by_alias.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3714.5, - "Y": 55.92, - "Z": -58.82 + "X": 3706.92, + "Y": 46.07, + "Z": -364.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197031,23 +195080,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 278, - "Coding LOC": 217, + "Total LOC": 331, + "Coding LOC": 284, "Documentation LOC": 0, - "Structural Magnitude": 72.44, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 64.98, + "Control Flow Ratio": "3.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.021 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "1.18%", + "Cognitive Load Exposure": "2.57%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.08%", + "API Exposure": "11.83%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -197059,325 +195108,225 @@ }, "5. Function Analysis": [ { - "Function Name": "test_query", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 20 - }, - { - "Function Name": "test_query_not_declared_baz", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 41 - }, - { - "Function Name": "test_query_int", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 74 - }, - { - "Function Name": "test_query_int_query_42_5", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 95 - }, - { - "Function Name": "test_query_int_query_baz", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 110 - }, - { - "Function Name": "test_query_int_not_declared_baz", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 113, - "End Line": 125 - }, - { - "Function Name": "test_query_int_optional_query_foo", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 140, - "End Line": 152 - }, - { - "Function Name": "test_query_int_default_query_foo", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 167, - "End Line": 179 - }, - { - "Function Name": "test_query_param_required", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 206 - }, - { - "Function Name": "test_query_param_required_int", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 215, - "End Line": 227 - }, - { - "Function Name": "test_query_param_required_int_query_foo", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, + "Function Name": "test_openapi_schema", + "Structural Impact": 8.0, + "Lines of Code (LOC)": 194, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 236, - "End Line": 248 + "Control Flow Ratio": "9.1%", + "Start Line": 137, + "End Line": 330 }, { - "Function Name": "test_query_query_baz", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_read_list", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 86, + "End Line": 92 }, { - "Function Name": "test_query_optional", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_read_list_by_alias", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 47 + "Start Line": 107, + "End Line": 113 }, { - "Function Name": "test_query_optional_query_baz", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_read_list_no_alias", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 53 + "Start Line": 128, + "End Line": 134 }, { - "Function Name": "test_query_optional_not_declared_baz", + "Function Name": "test_read_dict", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 59 + "Start Line": 74, + "End Line": 77 }, { - "Function Name": "test_query_int_query_42", + "Function Name": "test_read_model", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 80 + "Start Line": 80, + "End Line": 83 }, { - "Function Name": "test_query_int_optional", + "Function Name": "test_read_dict_by_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 131 + "Start Line": 95, + "End Line": 98 }, { - "Function Name": "test_query_int_optional_query_50", + "Function Name": "test_read_model_by_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 134, - "End Line": 137 + "Start Line": 101, + "End Line": 104 }, { - "Function Name": "test_query_int_default", + "Function Name": "test_read_dict_no_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 155, - "End Line": 158 + "Start Line": 116, + "End Line": 119 }, { - "Function Name": "test_query_int_default_query_50", + "Function Name": "test_read_model_no_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 161, - "End Line": 164 + "Start Line": 122, + "End Line": 125 }, { - "Function Name": "test_query_param", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 185 + "Start Line": 27, + "End Line": 28 }, { - "Function Name": "test_query_param_query_50", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 188, - "End Line": 191 + "Start Line": 32, + "End Line": 33 }, { - "Function Name": "test_query_param_required_query_50", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 212 + "Start Line": 37, + "End Line": 38 }, { - "Function Name": "test_query_param_required_int_query_50", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "by_alias_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 230, - "End Line": 233 + "Start Line": 42, + "End Line": 43 }, { - "Function Name": "test_query_frozenset_query_1_query_1_query_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "by_alias_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 251, - "End Line": 254 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_query_list", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "by_alias_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 257, - "End Line": 260 + "Start Line": 52, + "End Line": 53 }, { - "Function Name": "test_query_list_default", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_alias_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 268, - "End Line": 271 + "Start Line": 57, + "End Line": 58 }, { - "Function Name": "test_query_list_default_empty", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_alias_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 274, - "End Line": 277 + "Start Line": 62, + "End Line": 63 }, { - "Function Name": "test_query_list_empty", + "Function Name": "no_alias_list", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 263, - "End Line": 265 + "Start Line": 67, + "End Line": 68 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 106, - "Function Parameters": 29, - "Function/Method Declarations": 29, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 63, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 65, + "Function Parameters": 19, + "Function/Method Declarations": 19, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 25, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 29, + "Exposed API / Public Exports": 30, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 86, + "Unit Test Assertions": 30, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 9, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 2, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, @@ -197393,13 +195342,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 1, + "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 185, + "Structural Space Indentations": 248, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -197415,16 +195364,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 30, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 24, "Design Camel Case": 0, - "Design Snake Case": 30, + "Design Snake Case": 24, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 29, + "Orphaned Logic": 19, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -197448,33 +195397,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".main", - "fastapi.testclient" + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_query_cookie_header_model_extra_params.py": { + "python/fastapi/tests/test_response_change_status_code.py": { "1. Artifact Identity": { - "Filename": "test_query_cookie_header_model_extra_params.py", - "Path": "python/fastapi/tests/test_query_cookie_header_model_extra_params.py", + "Filename": "test_response_change_status_code.py", + "Path": "python/fastapi/tests/test_response_change_status_code.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4213.62, - "Y": 157.32, - "Z": -411.69 + "X": 4306.6, + "Y": 150.24, + "Z": -1491.43 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197483,24 +195433,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 106, - "Coding LOC": 83, + "Total LOC": 27, + "Coding LOC": 15, "Documentation LOC": 0, - "Structural Magnitude": 29.66, + "Structural Magnitude": 13.6, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.733 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "24.17%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.98%", - "Concurrency Exposure": "59.44%", + "API Exposure": "10.75%", + "Concurrency Exposure": "98.46%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -197511,119 +195461,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_header_pass_extra_list", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 75 - }, - { - "Function Name": "test_query_pass_extra_list", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 42 - }, - { - "Function Name": "test_query_pass_extra_single", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 58 - }, - { - "Function Name": "test_header_pass_extra_single", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 91 - }, - { - "Function Name": "test_cookie_pass_extra_list", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 12, + "Function Name": "response_status_setter", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 94, - "End Line": 105 + "Start Line": 7, + "End Line": 8 }, { - "Function Name": "query_model_with_extra", + "Function Name": "parent_dep", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "header_model_with_extra", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_dependency_set_status_code", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "cookies_model_with_extra", - "Structural Impact": 1.5, + "Function Name": "get_main", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 16, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 15, + "Sequential Logic Declarations": 12, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -197641,7 +195551,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 67, + "Structural Space Indentations": 6, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -197657,16 +195567,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 22, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 19, - "Design Pascal Case": 3, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -197690,34 +195600,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_read_with_orm_mode.py": { + "python/fastapi/tests/test_response_class_no_mediatype.py": { "1. Artifact Identity": { - "Filename": "test_read_with_orm_mode.py", - "Path": "python/fastapi/tests/test_read_with_orm_mode.py", + "Filename": "test_response_class_no_mediatype.py", + "Path": "python/fastapi/tests/test_response_class_no_mediatype.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, PersonBase", + "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3735.16, - "Y": 72.24, - "Z": -1664.43 + "X": 988.23, + "Y": -283.51, + "Z": -222.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197726,24 +195635,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 44, - "Coding LOC": 31, + "Total LOC": 115, + "Coding LOC": 99, "Documentation LOC": 0, - "Structural Magnitude": 14.52, + "Structural Magnitude": 16.98, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.226 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.47%", - "Error & Exception Exposure": "36.52%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "45.54%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.54%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.19%", + "Concurrency Exposure": "36.59%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -197754,67 +195663,67 @@ }, "5. Function Analysis": [ { - "Function Name": "test_read_with_orm_mode", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 36, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 75, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 43 + "Start Line": 40, + "End Line": 114 }, { - "Function Name": "create_person", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 33 + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "full_name", - "Structural Impact": 1.5, + "Function Name": "b", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 33, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, + "Sequential Logic Declarations": 25, "Function Parameters": 3, "Function/Method Declarations": 3, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 3, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 2, - "Generic Type Abstractions": 3, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -197834,7 +195743,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, + "Structural Space Indentations": 83, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -197850,16 +195759,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 9, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -197883,34 +195792,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", - "pydantic", - "typing" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_regex_deprecated_body.py": { + "python/fastapi/tests/test_response_code_no_body.py": { "1. Artifact Identity": { - "Filename": "test_regex_deprecated_body.py", - "Path": "python/fastapi/tests/test_regex_deprecated_body.py", + "Filename": "test_response_code_no_body.py", + "Path": "python/fastapi/tests/test_response_code_no_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4109.7, - "Y": 109.88, - "Z": 538.89 + "X": 1703.08, + "Y": -152.35, + "Z": -1484.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197919,24 +195830,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 155, - "Coding LOC": 140, + "Total LOC": 116, + "Coding LOC": 98, "Documentation LOC": 0, - "Structural Magnitude": 30.9, - "Control Flow Ratio": "8.2%", + "Structural Magnitude": 18.76, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.064 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.02%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "35.14%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.24%", - "Concurrency Exposure": "20.5%", + "API Exposure": "8.73%", + "Concurrency Exposure": "36.84%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -197948,96 +195859,76 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.5, - "Lines of Code (LOC)": 91, + "Structural Impact": 4.4, + "Lines of Code (LOC)": 68, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 154 - }, - { - "Function Name": "get_client", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "37.5%", - "Start Line": 12, - "End Line": 26 - }, - { - "Function Name": "read_items", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 17, - "End Line": 23 + "Start Line": 48, + "End Line": 115 }, { - "Function Name": "test_query_nonregexquery", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, + "Function Name": "test_get_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 46, - "End Line": 60 + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 45 }, { - "Function Name": "test_no_query", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 34 + "Start Line": 29, + "End Line": 30 }, { - "Function Name": "test_q_fixedquery", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 42 + "Start Line": 34, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 45, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 29, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 3, "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -198049,7 +195940,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 4, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -198057,7 +195948,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 124, + "Structural Space Indentations": 81, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -198073,16 +195964,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -198106,25 +195997,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", "fastapi", - "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "pytest", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_regex_deprecated_params.py": { + "python/fastapi/tests/test_response_dependency.py": { "1. Artifact Identity": { - "Filename": "test_regex_deprecated_params.py", - "Path": "python/fastapi/tests/test_regex_deprecated_params.py", + "Filename": "test_response_dependency.py", + "Path": "python/fastapi/tests/test_response_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -198134,9 +196023,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3167.23, - "Y": 40.65, - "Z": 1522.81 + "X": 2121.58, + "Y": -149.18, + "Z": 559.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -198145,24 +196034,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 147, - "Coding LOC": 132, - "Documentation LOC": 0, - "Structural Magnitude": 30.44, - "Control Flow Ratio": "8.3%", + "Total LOC": 174, + "Coding LOC": 109, + "Documentation LOC": 17, + "Structural Magnitude": 69.88, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.068 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.07%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "7.61%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.32%", - "Concurrency Exposure": "20.91%", + "API Exposure": "13.17%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -198173,99 +196062,259 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 83, + "Function Name": "test_response_dependency_chain", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 146 + "Start Line": 71, + "End Line": 94 }, { - "Function Name": "get_client", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 3, + "Function Name": "test_response_dependency_returns_different_response_instance", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "37.5%", - "Start Line": 12, - "End Line": 26 + "Control Flow Ratio": "0.0%", + "Start Line": 97, + "End Line": 121 }, { - "Function Name": "read_items", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 17, - "End Line": 23 + "Function Name": "test_background_tasks_with_depends_annotated", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 173 }, { - "Function Name": "test_query_params_str_validations_item_query_nonregexquery", - "Structural Impact": 2.8, + "Function Name": "test_request_with_depends_annotated", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 125, + "End Line": 145 + }, + { + "Function Name": "test_response_with_depends_annotated", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 31 + }, + { + "Function Name": "test_response_with_depends_default", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 51 + }, + { + "Function Name": "test_response_without_depends", + "Structural Impact": 1.8, "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 46, - "End Line": 60 + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 68 }, { - "Function Name": "test_query_params_str_validations_no_query", - "Structural Impact": 1.2, + "Function Name": "second_modifier", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 34 + "Start Line": 79, + "End Line": 83 }, { - "Function Name": "test_query_params_str_validations_q_fixedquery", - "Structural Impact": 1.2, + "Function Name": "extract_request_info", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 129, + "End Line": 133 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 162, + "End Line": 166 + }, + { + "Function Name": "modify_response", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 20 + }, + { + "Function Name": "modify_response", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 42 + "End Line": 40 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 61 + }, + { + "Function Name": "first_modifier", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 77 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 112, + "End Line": 114 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 136, + "End Line": 139 + }, + { + "Function Name": "add_background_task", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 157, + "End Line": 159 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 24 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 86, + "End Line": 87 + }, + { + "Function Name": "background_task", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 154, + "End Line": 155 + }, + { + "Function Name": "default_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 106, + "End Line": 109 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 44, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 68, + "Function Parameters": 22, + "Function/Method Declarations": 22, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 20, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 29, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 16, + "Unit Test Assertions": 27, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 7, + "Generic Type Abstractions": 7, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 8, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -198275,7 +196324,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 4, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -198283,7 +196332,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 116, + "Structural Space Indentations": 98, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -198299,16 +196348,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 24, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 23, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Duplicate Logic": 2, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -198332,37 +196381,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", "fastapi", - "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pytest", "typing" ] }, - "python/fastapi/tests/test_repeated_cookie_headers.py": { + "python/fastapi/tests/test_response_model_as_return_annotation.py": { "1. Artifact Identity": { - "Filename": "test_repeated_cookie_headers.py", - "Path": "python/fastapi/tests/test_repeated_cookie_headers.py", + "Filename": "test_response_model_as_return_annotation.py", + "Path": "python/fastapi/tests/test_response_model_as_return_annotation.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, BaseUser, User", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4568.48, - "Y": 190.55, - "Z": -1164.55 + "X": 2895.39, + "Y": -8.01, + "Z": -255.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -198371,23 +196418,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 35, - "Coding LOC": 21, + "Total LOC": 1122, + "Coding LOC": 959, "Documentation LOC": 0, - "Structural Magnitude": 14.82, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 236.98, + "Control Flow Ratio": "3.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.095 + "Raw Cognitive Density": 0.014 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.4%", + "Cognitive Load Exposure": "2.5%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.61%", + "API Exposure": "13.56%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -198399,307 +196446,796 @@ }, "5. Function Analysis": [ { - "Function Name": "set_cookie", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 611, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 511, + "End Line": 1121 + }, + { + "Function Name": "test_invalid_response_model_field", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "12.5%", + "Start Line": 499, + "End Line": 508 + }, + { + "Function Name": "test_response_model_no_annotation_return_invalid_dict", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 278, + "End Line": 281 + }, + { + "Function Name": "test_response_model_no_annotation_return_invalid_model", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 284, + "End Line": 287 + }, + { + "Function Name": "test_no_response_model_annotation_return_invalid_dict", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 316, + "End Line": 319 + }, + { + "Function Name": "test_no_response_model_annotation_return_invalid_model", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 322, + "End Line": 325 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_invalid_dict", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 400, + "End Line": 403 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_invalid_model", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 406, + "End Line": 409 + }, + { + "Function Name": "test_response_model_none_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 376, + "End Line": 385 + }, + { + "Function Name": "test_response_model_none_annotation_return_dict_with_extra_data", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 366, + "End Line": 373 + }, + { + "Function Name": "test_response_model_list_of_model_no_annotation", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 436, + "End Line": 442 + }, + { + "Function Name": "test_no_response_model_annotation_list_of_model", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 445, + "End Line": 451 + }, + { + "Function Name": "test_no_response_model_annotation_forward_ref_list_of_model", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 454, + "End Line": 460 + }, + { + "Function Name": "test_response_model_no_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 296, + "End Line": 301 + }, + { + "Function Name": "test_no_response_model_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 334, + "End Line": 339 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_dict_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 412, + "End Line": 417 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_submodel_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 420, + "End Line": 425 + }, + { + "Function Name": "test_response_model_filtering_model_annotation_submodel_return_submodel", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 428, + "End Line": 433 + }, + { + "Function Name": "response_model_list_of_model_no_annotation", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 192, + "End Line": 196 + }, + { + "Function Name": "no_response_model_annotation_list_of_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 200, + "End Line": 204 + }, + { + "Function Name": "no_response_model_annotation_forward_ref_list_of_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 208, + "End Line": 212 + }, + { + "Function Name": "test_no_response_model_no_annotation_return_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 257 + }, + { + "Function Name": "test_no_response_model_no_annotation_return_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 260, + "End Line": 263 + }, + { + "Function Name": "test_response_model_no_annotation_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 266, + "End Line": 269 + }, + { + "Function Name": "test_response_model_no_annotation_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 272, + "End Line": 275 + }, + { + "Function Name": "test_response_model_no_annotation_return_dict_with_extra_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 290, + "End Line": 293 + }, + { + "Function Name": "test_no_response_model_annotation_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 304, + "End Line": 307 + }, + { + "Function Name": "test_no_response_model_annotation_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 310, + "End Line": 313 + }, + { + "Function Name": "test_no_response_model_annotation_return_dict_with_extra_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 328, + "End Line": 331 + }, + { + "Function Name": "test_response_model_none_annotation_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 342, + "End Line": 345 + }, + { + "Function Name": "test_response_model_none_annotation_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 348, + "End Line": 351 + }, + { + "Function Name": "test_response_model_none_annotation_return_invalid_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 354, + "End Line": 357 + }, + { + "Function Name": "test_response_model_none_annotation_return_invalid_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 360, + "End Line": 363 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 388, + "End Line": 391 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 394, + "End Line": 397 + }, + { + "Function Name": "test_response_model_union_no_annotation_return_model1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 463, + "End Line": 466 + }, + { + "Function Name": "test_response_model_union_no_annotation_return_model2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 469, + "End Line": 472 + }, + { + "Function Name": "test_no_response_model_annotation_union_return_model1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 475, + "End Line": 478 + }, + { + "Function Name": "test_no_response_model_annotation_union_return_model2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 481, + "End Line": 484 + }, + { + "Function Name": "test_no_response_model_annotation_return_class", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 487, + "End Line": 490 + }, + { + "Function Name": "test_no_response_model_annotation_json_response_class", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 493, + "End Line": 496 + }, + { + "Function Name": "no_response_model_no_annotation_return_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 + }, + { + "Function Name": "no_response_model_no_annotation_return_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 + }, + { + "Function Name": "response_model_no_annotation_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 + }, + { + "Function Name": "response_model_no_annotation_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 + }, + { + "Function Name": "response_model_no_annotation_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 52 + }, + { + "Function Name": "response_model_no_annotation_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 + }, + { + "Function Name": "response_model_no_annotation_return_dict_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 63, + "End Line": 64 + }, + { + "Function Name": "response_model_no_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 71 + }, + { + "Function Name": "no_response_model_annotation_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 76 + }, + { + "Function Name": "no_response_model_annotation_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 80, + "End Line": 81 + }, + { + "Function Name": "no_response_model_annotation_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 86 + }, + { + "Function Name": "no_response_model_annotation_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 90, + "End Line": 91 + }, + { + "Function Name": "no_response_model_annotation_return_dict_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 95, + "End Line": 96 + }, + { + "Function Name": "no_response_model_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 100, + "End Line": 101 + }, + { + "Function Name": "response_model_none_annotation_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 106 + }, + { + "Function Name": "response_model_none_annotation_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 110, + "End Line": 111 + }, + { + "Function Name": "response_model_none_annotation_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 115, + "End Line": 116 + }, + { + "Function Name": "response_model_none_annotation_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 120, + "End Line": 121 + }, + { + "Function Name": "response_model_none_annotation_return_dict_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 127, + "End Line": 128 + }, + { + "Function Name": "response_model_none_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 136 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 142, + "End Line": 143 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 150 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 156, + "End Line": 157 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 9 + "Start Line": 163, + "End Line": 164 }, { - "Function Name": "set_indirect_cookie", - "Structural Impact": 1.5, + "Function Name": "response_model_model1_annotation_model2_return_dict_with_extra_data", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 171, + "End Line": 172 }, { - "Function Name": "get_direct_cookie", - "Structural Impact": 1.5, + "Function Name": "response_model_model1_annotation_model2_return_submodel_with_extra_data", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 179, + "End Line": 180 }, { - "Function Name": "get_indirect_cookie", - "Structural Impact": 1.5, + "Function Name": "response_model_filtering_model_annotation_submodel_return_submodel", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 187, + "End Line": 188 }, { - "Function Name": "test_cookie_is_set_once", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "response_model_union_no_annotation_return_model1", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 34 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient" - ] - }, - "python/fastapi/tests/test_repeated_dependency_schema.py": { - "1. Artifact Identity": { - "Filename": "test_repeated_dependency_schema.py", - "Path": "python/fastapi/tests/test_repeated_dependency_schema.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4074.49, - "Y": 126.21, - "Z": -1264.0 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 110, - "Coding LOC": 96, - "Documentation LOC": 0, - "Structural Magnitude": 18.92, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.26%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 219, + "End Line": 220 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 80, + "Function Name": "response_model_union_no_annotation_return_model2", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 109 + "Start Line": 227, + "End Line": 228 }, { - "Function Name": "get_deps", - "Structural Impact": 1.8, + "Function Name": "no_response_model_annotation_union_return_model1", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 232, + "End Line": 233 }, { - "Function Name": "get_header", - "Structural Impact": 1.5, + "Function Name": "no_response_model_annotation_union_return_model2", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 237, + "End Line": 238 }, { - "Function Name": "get_something_else", - "Structural Impact": 1.5, + "Function Name": "no_response_model_annotation_response_class", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 242, + "End Line": 243 }, { - "Function Name": "test_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_response_model_annotation_json_response_class", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 27 + "Start Line": 247, + "End Line": 248 + }, + { + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 504, + "End Line": 505 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Control Flow Branches": 7, + "Sequential Logic Declarations": 216, + "Function Parameters": 75, + "Function/Method Declarations": 75, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 73, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 116, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, + "Unit Test Assertions": 116, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 37, + "Generic Type Abstractions": 29, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 3, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 6, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -198710,7 +197246,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 85, + "Structural Space Indentations": 823, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -198726,16 +197262,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 23, + "Core Var Decl": 57, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 57, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 75, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -198743,7 +197279,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -198759,33 +197295,38 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_repeated_parameter_alias.py": { + "python/fastapi/tests/test_response_model_data_filter.py": { "1. Artifact Identity": { - "Filename": "test_repeated_parameter_alias.py", - "Path": "python/fastapi/tests/test_repeated_parameter_alias.py", + "Filename": "test_response_model_data_filter.py", + "Path": "python/fastapi/tests/test_response_model_data_filter.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, UserBase", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2582.71, - "Y": -51.37, - "Z": -2204.65 + "X": 3229.46, + "Y": 25.5, + "Z": -1548.44 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -198794,10 +197335,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 107, - "Coding LOC": 97, + "Total LOC": 80, + "Coding LOC": 54, "Documentation LOC": 0, - "Structural Magnitude": 14.24, + "Structural Magnitude": 26.58, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -198810,8 +197351,8 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.87%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.32%", + "Concurrency Exposure": "76.82%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -198822,254 +197363,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 82, + "Function Name": "read_pet", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 106 + "Start Line": 36, + "End Line": 42 }, { - "Function Name": "get_parameters_with_repeated_aliases", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "create_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 13 + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "test_get_parameters", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_pets", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 87, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot" - ] - }, - "python/fastapi/tests/test_reponse_set_reponse_code_empty.py": { - "1. Artifact Identity": { - "Filename": "test_reponse_set_reponse_code_empty.py", - "Path": "python/fastapi/tests/test_reponse_set_reponse_code_empty.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 892.58, - "Y": -247.43, - "Z": 366.88 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 105, - "Coding LOC": 94, - "Documentation LOC": 0, - "Structural Magnitude": 15.78, - "Control Flow Ratio": "3.4%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.064 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.02%", - "Error & Exception Exposure": "44.24%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "6.9%", - "Concurrency Exposure": "23.73%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 46, + "End Line": 53 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 73, + "Function Name": "test_filter_second_level_model", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 104 + "Start Line": 66, + "End Line": 71 }, { - "Function Name": "test_dependency_set_status_code", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_list_of_models", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 26, - "End Line": 29 + "Control Flow Ratio": "0.0%", + "Start Line": 74, + "End Line": 79 }, { - "Function Name": "delete_deployment", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "test_filter_top_level_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 20 + "Start Line": 59, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 28, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 23, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 1, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199094,7 +197473,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 82, + "Structural Space Indentations": 35, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199110,16 +197489,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 10, + "Core Var Decl": 18, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 18, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199143,7 +197522,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -199151,14 +197530,13 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_request_body_parameters_media_type.py": { + "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py": { "1. Artifact Identity": { - "Filename": "test_request_body_parameters_media_type.py", - "Path": "python/fastapi/tests/test_request_body_parameters_media_type.py", + "Filename": "test_response_model_data_filter_no_inheritance.py", + "Path": "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -199169,9 +197547,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3776.01, - "Y": 72.33, - "Z": -1226.12 + "X": 1558.5, + "Y": -159.22, + "Z": 892.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199180,10 +197558,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 185, - "Coding LOC": 168, - "Documentation LOC": 2, - "Structural Magnitude": 24.26, + "Total LOC": 82, + "Coding LOC": 56, + "Documentation LOC": 0, + "Structural Magnitude": 26.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -199193,11 +197571,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "48.96%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.96%", - "Concurrency Exposure": "26.68%", + "API Exposure": "12.26%", + "Concurrency Exposure": "75.45%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -199208,62 +197586,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 8.4, - "Lines of Code (LOC)": 147, + "Function Name": "read_pet", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 184 + "End Line": 44 }, { - "Function Name": "create_shop", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "create_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 32 + "Start Line": 33, + "End Line": 34 }, { - "Function Name": "create_product", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "read_pets", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 48, + "End Line": 55 + }, + { + "Function Name": "test_filter_second_level_model", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 68, + "End Line": 73 + }, + { + "Function Name": "test_list_of_models", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 81 + }, + { + "Function Name": "test_filter_top_level_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 65 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 36, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 3, + "Sequential Logic Declarations": 23, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 3, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199288,7 +197696,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 153, + "Structural Space Indentations": 37, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199304,16 +197712,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 10, + "Core Var Decl": 18, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 2, + "Design Snake Case": 18, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199337,7 +197745,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -199345,14 +197753,13 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_request_param_model_by_alias.py": { + "python/fastapi/tests/test_response_model_default_factory.py": { "1. Artifact Identity": { - "Filename": "test_request_param_model_by_alias.py", - "Path": "python/fastapi/tests/test_request_param_model_by_alias.py", + "Filename": "test_response_model_default_factory.py", + "Path": "python/fastapi/tests/test_response_model_default_factory.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -199363,9 +197770,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2716.26, - "Y": -41.36, - "Z": -1469.66 + "X": 1010.56, + "Y": -292.13, + "Z": 682.66 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199374,24 +197781,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 73, - "Coding LOC": 51, + "Total LOC": 48, + "Coding LOC": 30, "Documentation LOC": 0, - "Structural Magnitude": 29.22, + "Structural Magnitude": 14.6, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.267 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "6.32%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.26%", - "Concurrency Exposure": "78.88%", + "API Exposure": "10.69%", + "Concurrency Exposure": "74.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -199402,122 +197809,72 @@ }, "5. Function Analysis": [ { - "Function Name": "query_model", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, - { - "Function Name": "header_model", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "cookie_model", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 - }, - { - "Function Name": "test_cookie_model_with_alias_by_name", + "Function Name": "test_response_model_has_default_factory_return_dict", "Structural Impact": 1.4, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 72 + "Start Line": 32, + "End Line": 38 }, { - "Function Name": "test_cookie_model_with_alias", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_response_model_has_default_factory_return_model", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, + "Start Line": 41, "End Line": 47 }, { - "Function Name": "test_query_model_with_alias_by_name", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 55 - }, - { - "Function Name": "test_header_model_with_alias_by_name", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 63 - }, - { - "Function Name": "test_query_model_with_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "response_model_has_default_factory_return_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 32 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_header_model_with_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "response_model_has_default_factory_return_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 33, - "Function Parameters": 9, - "Function/Method Declarations": 9, + "Sequential Logic Declarations": 19, + "Function Parameters": 5, + "Function/Method Declarations": 4, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 16, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, + "Closures and Anonymous Functions": 1, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199531,7 +197888,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 2, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -199542,7 +197899,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 33, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199559,15 +197916,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 20, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 17, - "Design Pascal Case": 3, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199591,34 +197948,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dirty_equals", "fastapi", "fastapi.testclient", "pydantic" ] }, - "python/fastapi/tests/test_required_noneable.py": { + "python/fastapi/tests/test_response_model_include_exclude.py": { "1. Artifact Identity": { - "Filename": "test_required_noneable.py", - "Path": "python/fastapi/tests/test_required_noneable.py", + "Filename": "test_response_model_include_exclude.py", + "Path": "python/fastapi/tests/test_response_model_include_exclude.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3541.04, - "Y": 64.25, - "Z": 1260.06 + "X": 2591.25, + "Y": -92.13, + "Z": -1215.61 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199627,23 +197984,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 61, - "Coding LOC": 37, + "Total LOC": 176, + "Coding LOC": 137, "Documentation LOC": 0, - "Structural Magnitude": 26.24, + "Structural Magnitude": 40.14, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.054 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.91%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.79%", + "API Exposure": "11.94%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -199655,132 +198012,152 @@ }, "5. Function Analysis": [ { - "Function Name": "read_query", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "simple_include_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 42, + "End Line": 49 }, { - "Function Name": "read_explicit_query", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "simple_exclude_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 69, + "End Line": 76 }, { - "Function Name": "send_body_embed", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "mixed", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 85, + "End Line": 93 }, { - "Function Name": "test_required_noneable_query_value", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "mixed_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 102, + "End Line": 110 }, { - "Function Name": "test_required_nonable_explicit_query_value", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_nested_include_simple", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 44 + "Start Line": 116, + "End Line": 124 }, { - "Function Name": "test_required_noneable_body_embed_value", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_nested_include_simple_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 60 + "Start Line": 127, + "End Line": 135 }, { - "Function Name": "test_required_nonable_query_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_nested_exclude_simple", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 138, + "End Line": 144 }, { - "Function Name": "test_required_nonable_explicit_query_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_nested_exclude_simple_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 147, + "End Line": 153 + }, + { + "Function Name": "test_nested_include_mixed", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 156, + "End Line": 164 + }, + { + "Function Name": "test_nested_include_mixed_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 167, + "End Line": 175 }, { - "Function Name": "test_required_nonable_body_embed_no_content", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "simple_include", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 49 + "Start Line": 30, + "End Line": 34 }, { - "Function Name": "test_required_nonable_body_embed_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "simple_exclude", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 54 + "Start Line": 57, + "End Line": 61 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Sequential Logic Declarations": 39, + "Function Parameters": 12, + "Function/Method Declarations": 12, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 21, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 17, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 6, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199805,7 +198182,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 20, + "Structural Space Indentations": 105, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199821,16 +198198,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 31, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 2, + "Design Snake Case": 31, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 10, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199854,33 +198231,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "pydantic" ] }, - "python/fastapi/tests/test_response_by_alias.py": { + "python/fastapi/tests/test_response_model_invalid.py": { "1. Artifact Identity": { - "Filename": "test_response_by_alias.py", - "Path": "python/fastapi/tests/test_response_by_alias.py", + "Filename": "test_response_model_invalid.py", + "Path": "python/fastapi/tests/test_response_model_invalid.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3706.92, - "Y": 46.07, - "Z": -364.16 + "X": 1943.3, + "Y": -161.35, + "Z": -1206.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199889,23 +198266,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 331, - "Coding LOC": 284, + "Total LOC": 44, + "Coding LOC": 29, "Documentation LOC": 0, - "Structural Magnitude": 64.98, - "Control Flow Ratio": "3.0%", + "Structural Magnitude": 27.58, + "Control Flow Ratio": "17.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.021 + "Raw Cognitive Density": 0.207 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.57%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.11%", + "Error & Exception Exposure": "80.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.83%", + "API Exposure": "13.87%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -199917,225 +198294,115 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 8.0, - "Lines of Code (LOC)": 194, + "Function Name": "test_invalid_response_model_raises", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "9.1%", - "Start Line": 137, - "End Line": 330 + "Control Flow Ratio": "25.0%", + "Start Line": 10, + "End Line": 16 }, { - "Function Name": "test_read_list", - "Structural Impact": 1.4, + "Function Name": "test_invalid_response_model_sub_type_raises", + "Structural Impact": 2.4, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 92 + "Control Flow Ratio": "25.0%", + "Start Line": 19, + "End Line": 25 }, { - "Function Name": "test_read_list_by_alias", - "Structural Impact": 1.4, + "Function Name": "test_invalid_response_model_in_responses_raises", + "Structural Impact": 2.4, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 107, - "End Line": 113 + "Control Flow Ratio": "25.0%", + "Start Line": 28, + "End Line": 34 }, { - "Function Name": "test_read_list_no_alias", - "Structural Impact": 1.4, + "Function Name": "test_invalid_response_model_sub_type_in_responses_raises", + "Structural Impact": 2.4, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 134 - }, - { - "Function Name": "test_read_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 77 - }, - { - "Function Name": "test_read_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 83 - }, - { - "Function Name": "test_read_dict_by_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 98 - }, - { - "Function Name": "test_read_model_by_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 101, - "End Line": 104 - }, - { - "Function Name": "test_read_dict_no_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 119 - }, - { - "Function Name": "test_read_model_no_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 122, - "End Line": 125 - }, - { - "Function Name": "read_dict", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 - }, - { - "Function Name": "read_model", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 - }, - { - "Function Name": "read_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "25.0%", "Start Line": 37, - "End Line": 38 - }, - { - "Function Name": "by_alias_dict", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, "End Line": 43 }, { - "Function Name": "by_alias_model", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 - }, - { - "Function Name": "by_alias_list", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 53 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "no_alias_dict", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 58 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "no_alias_model", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 + "Start Line": 33, + "End Line": 34 }, { - "Function Name": "no_alias_list", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 68 + "Start Line": 42, + "End Line": 43 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 65, - "Function Parameters": 19, - "Function/Method Declarations": 19, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 25, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 19, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 5, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 30, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 30, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 9, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 2, + "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, @@ -200157,7 +198424,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 248, + "Structural Space Indentations": 21, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200173,16 +198440,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 24, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 19, + "Duplicate Logic": 4, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -200206,34 +198473,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "fastapi.exceptions", + "pytest" ] }, - "python/fastapi/tests/test_response_change_status_code.py": { + "python/fastapi/tests/test_response_model_sub_types.py": { "1. Artifact Identity": { - "Filename": "test_response_change_status_code.py", - "Path": "python/fastapi/tests/test_response_change_status_code.py", + "Filename": "test_response_model_sub_types.py", + "Path": "python/fastapi/tests/test_response_model_sub_types.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4306.6, - "Y": 150.24, - "Z": -1491.43 + "X": 2157.87, + "Y": -110.58, + "Z": 1308.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200242,24 +198509,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 27, - "Coding LOC": 15, + "Total LOC": 162, + "Coding LOC": 143, "Documentation LOC": 0, - "Structural Magnitude": 13.6, + "Structural Magnitude": 25.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.733 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "24.17%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "42.33%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.75%", - "Concurrency Exposure": "98.46%", + "API Exposure": "9.76%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -200270,79 +198537,99 @@ }, "5. Function Analysis": [ { - "Function Name": "response_status_setter", - "Structural Impact": 1.5, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 114, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 161 + }, + { + "Function Name": "test_path_operations", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 45 + }, + { + "Function Name": "valid1", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 8 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "parent_dep", - "Structural Impact": 1.5, + "Function Name": "valid2", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "test_dependency_set_status_code", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "valid3", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, + "Start Line": 25, "End Line": 26 }, { - "Function Name": "get_main", + "Function Name": "valid4", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 30, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 12, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -200360,7 +198647,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 6, + "Structural Space Indentations": 126, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200376,10 +198663,10 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 11, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, @@ -200409,33 +198696,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_response_class_no_mediatype.py": { + "python/fastapi/tests/test_return_none_stringified_annotations.py": { "1. Artifact Identity": { - "Filename": "test_response_class_no_mediatype.py", - "Path": "python/fastapi/tests/test_response_class_no_mediatype.py", + "Filename": "test_return_none_stringified_annotations.py", + "Path": "python/fastapi/tests/test_return_none_stringified_annotations.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 988.23, - "Y": -283.51, - "Z": -222.92 + "X": 4349.96, + "Y": 123.27, + "Z": -1835.22 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200444,27 +198732,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 99, + "Total LOC": 18, + "Coding LOC": 12, "Documentation LOC": 0, - "Structural Magnitude": 16.98, + "Structural Magnitude": 5.94, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.167 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "45.54%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.19%", - "Concurrency Exposure": "36.59%", + "API Exposure": "9.42%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "80.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -200472,67 +198760,57 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 75, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 114 - }, - { - "Function Name": "a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_no_content", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 7, + "End Line": 17 }, { - "Function Name": "b", + "Function Name": "return_no_content", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 11, + "End Line": 12 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 10, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -200552,7 +198830,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 83, + "Structural Space Indentations": 8, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200568,16 +198846,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -200601,36 +198879,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 3, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "http" ] }, - "python/fastapi/tests/test_response_code_no_body.py": { + "python/fastapi/tests/test_route_scope.py": { "1. Artifact Identity": { - "Filename": "test_response_code_no_body.py", - "Path": "python/fastapi/tests/test_response_code_no_body.py", + "Filename": "test_route_scope.py", + "Path": "python/fastapi/tests/test_route_scope.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1703.08, - "Y": -152.35, - "Z": -1484.13 + "X": 2371.14, + "Y": -67.58, + "Z": -1313.2 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200639,24 +198914,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 116, - "Coding LOC": 98, + "Total LOC": 51, + "Coding LOC": 33, "Documentation LOC": 0, - "Structural Magnitude": 18.76, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 25.26, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.711 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "35.14%", + "Cognitive Load Exposure": "23.07%", + "Error & Exception Exposure": "17.91%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.73%", - "Concurrency Exposure": "36.84%", + "API Exposure": "11.12%", + "Concurrency Exposure": "97.53%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -200667,77 +198942,107 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.4, - "Lines of Code (LOC)": 68, - "Control Flow Branches": 0, + "Function Name": "test_websocket_invalid_path_doesnt_match", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 47, + "End Line": 50 + }, + { + "Function Name": "test_websocket", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 41, + "End Line": 44 + }, + { + "Function Name": "get_user", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 115 + "Start Line": 10, + "End Line": 12 }, { - "Function Name": "test_get_response", + "Function Name": "websocket_item", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 19 + }, + { + "Function Name": "test_get", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 45 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "a", + "Function Name": "test_invalid_method_doesnt_match", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 + "Start Line": 31, + "End Line": 33 }, { - "Function Name": "b", + "Function Name": "test_invalid_path_doesnt_match", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 36, + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 24, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -200757,7 +199062,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 81, + "Structural Space Indentations": 18, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200773,23 +199078,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 1, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -200806,23 +199111,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", + "fastapi.routing", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pytest" ] }, - "python/fastapi/tests/test_response_dependency.py": { + "python/fastapi/tests/test_router_circular_import.py": { "1. Artifact Identity": { - "Filename": "test_response_dependency.py", - "Path": "python/fastapi/tests/test_response_dependency.py", + "Filename": "test_router_circular_import.py", + "Path": "python/fastapi/tests/test_router_circular_import.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -200832,9 +199136,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2121.58, - "Y": -149.18, - "Z": 559.92 + "X": 3173.02, + "Y": 34.71, + "Z": -2197.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200843,27 +199147,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 174, - "Coding LOC": 109, - "Documentation LOC": 17, - "Structural Magnitude": 69.88, - "Control Flow Ratio": "0.0%", + "Total LOC": 13, + "Coding LOC": 9, + "Documentation LOC": 0, + "Structural Magnitude": 4.58, + "Control Flow Ratio": "33.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.444 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "7.61%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.17%", + "API Exposure": "5.25%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "60.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -200871,259 +199175,49 @@ }, "5. Function Analysis": [ { - "Function Name": "test_response_dependency_chain", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 94 - }, - { - "Function Name": "test_response_dependency_returns_different_response_instance", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 121 - }, - { - "Function Name": "test_background_tasks_with_depends_annotated", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 173 - }, - { - "Function Name": "test_request_with_depends_annotated", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 145 - }, - { - "Function Name": "test_response_with_depends_annotated", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 31 - }, - { - "Function Name": "test_response_with_depends_default", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 51 - }, - { - "Function Name": "test_response_without_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 68 - }, - { - "Function Name": "second_modifier", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 83 - }, - { - "Function Name": "extract_request_info", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 133 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 162, - "End Line": 166 - }, - { - "Function Name": "modify_response", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 20 - }, - { - "Function Name": "modify_response", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 40 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 61 - }, - { - "Function Name": "first_modifier", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 77 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 114 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 136, - "End Line": 139 - }, - { - "Function Name": "add_background_task", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 157, - "End Line": 159 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 87 - }, - { - "Function Name": "background_task", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 154, - "End Line": 155 - }, - { - "Function Name": "default_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "test_router_circular_import", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 109 + "Control Flow Ratio": "66.7%", + "Start Line": 5, + "End Line": 12 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 68, - "Function Parameters": 22, - "Function/Method Declarations": 22, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 4, + "Function Parameters": 1, + "Function/Method Declarations": 1, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 20, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 29, - "State Mutations / Variable Reassignments": 1, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 16, - "Unit Test Assertions": 27, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 7, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 8, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -201141,7 +199235,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 98, + "Structural Space Indentations": 6, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -201157,16 +199251,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 2, "Design Camel Case": 0, - "Design Snake Case": 23, - "Design Pascal Case": 1, + "Design Snake Case": 2, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 7, + "Duplicate Logic": 0, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -201190,35 +199284,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", - "fastapi.testclient", - "typing" + "pytest" ] }, - "python/fastapi/tests/test_response_model_as_return_annotation.py": { + "python/fastapi/tests/test_router_events.py": { "1. Artifact Identity": { - "Filename": "test_response_model_as_return_annotation.py", - "Path": "python/fastapi/tests/test_response_model_as_return_annotation.py", + "Filename": "test_router_events.py", + "Path": "python/fastapi/tests/test_router_events.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, BaseUser, User", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2895.39, - "Y": -8.01, - "Z": -255.95 + "X": 3402.36, + "Y": 7.28, + "Z": 226.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -201227,24 +199319,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1122, - "Coding LOC": 959, - "Documentation LOC": 0, - "Structural Magnitude": 236.98, - "Control Flow Ratio": "3.1%", + "Total LOC": 379, + "Coding LOC": 293, + "Documentation LOC": 4, + "Structural Magnitude": 157.56, + "Control Flow Ratio": "5.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.014 + "Raw Cognitive Density": 0.241 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.5%", + "Cognitive Load Exposure": "4.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.56%", - "Concurrency Exposure": "0.0%", + "API Exposure": "13.37%", + "Concurrency Exposure": "80.7%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -201255,787 +199347,1065 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 611, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 511, - "End Line": 1121 - }, - { - "Function Name": "test_invalid_response_model_field", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, + "Function Name": "test_router_events", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 60, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "12.5%", - "Start Line": 499, - "End Line": 508 + "Input Parameters": 1, + "Control Flow Ratio": "3.2%", + "Start Line": 27, + "End Line": 86 }, { - "Function Name": "test_response_model_no_annotation_return_invalid_dict", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_nested_lifespan_state", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 58, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 278, - "End Line": 281 + "Input Parameters": 1, + "Control Flow Ratio": "3.2%", + "Start Line": 114, + "End Line": 171 }, { - "Function Name": "test_response_model_no_annotation_return_invalid_model", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_startup_shutdown_handlers_as_parameters", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 58, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 284, - "End Line": 287 + "Input Parameters": 1, + "Control Flow Ratio": "3.2%", + "Start Line": 321, + "End Line": 378 }, { - "Function Name": "test_no_response_model_annotation_return_invalid_dict", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_sync_generator_lifespan", + "Structural Impact": 4.1, + "Lines of Code (LOC)": 25, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 316, - "End Line": 319 + "Input Parameters": 1, + "Control Flow Ratio": "6.2%", + "Start Line": 268, + "End Line": 292 }, { - "Function Name": "test_no_response_model_annotation_return_invalid_model", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_app_lifespan_state", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 23, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 322, - "End Line": 325 + "Input Parameters": 1, + "Control Flow Ratio": "7.1%", + "Start Line": 89, + "End Line": 111 }, { - "Function Name": "test_response_model_model1_annotation_model2_return_invalid_dict", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_async_generator_lifespan", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 24, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 400, - "End Line": 403 + "Input Parameters": 1, + "Control Flow Ratio": "7.1%", + "Start Line": 295, + "End Line": 318 }, { - "Function Name": "test_response_model_model1_annotation_model2_return_invalid_model", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_async_shutdown_handler", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 18, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 406, - "End Line": 409 + "Input Parameters": 1, + "Control Flow Ratio": "10.0%", + "Start Line": 248, + "End Line": 265 }, { - "Function Name": "test_response_model_none_annotation_return_submodel_with_extra_data", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, + "Function Name": "test_router_nested_lifespan_state_overriding_by_parent", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 376, - "End Line": 385 + "Control Flow Ratio": "16.7%", + "Start Line": 174, + "End Line": 202 }, { - "Function Name": "test_response_model_none_annotation_return_dict_with_extra_data", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, + "Function Name": "test_merged_mixed_state_lifespans", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 366, - "End Line": 373 + "Control Flow Ratio": "14.3%", + "Start Line": 222, + "End Line": 242 }, { - "Function Name": "test_response_model_list_of_model_no_annotation", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Function Name": "test_merged_no_return_lifespans_return_none", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 436, - "End Line": 442 + "Control Flow Ratio": "16.7%", + "Start Line": 205, + "End Line": 219 }, { - "Function Name": "test_no_response_model_annotation_list_of_model", - "Structural Impact": 1.4, + "Function Name": "lifespan", + "Structural Impact": 1.8, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 445, - "End Line": 451 + "Start Line": 176, + "End Line": 182 }, { - "Function Name": "test_no_response_model_annotation_forward_ref_list_of_model", - "Structural Impact": 1.4, + "Function Name": "router_lifespan", + "Structural Impact": 1.8, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 454, - "End Line": 460 - }, - { - "Function Name": "test_response_model_no_annotation_return_submodel_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 296, - "End Line": 301 - }, - { - "Function Name": "test_no_response_model_annotation_return_submodel_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 334, - "End Line": 339 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_dict_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 412, - "End Line": 417 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_submodel_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 420, - "End Line": 425 - }, - { - "Function Name": "test_response_model_filtering_model_annotation_submodel_return_submodel", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 428, - "End Line": 433 - }, - { - "Function Name": "response_model_list_of_model_no_annotation", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 192, - "End Line": 196 + "Start Line": 185, + "End Line": 191 }, { - "Function Name": "no_response_model_annotation_list_of_model", - "Structural Impact": 1.2, + "Function Name": "main", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 200, - "End Line": 204 + "Start Line": 142, + "End Line": 146 }, { - "Function Name": "no_response_model_annotation_forward_ref_list_of_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "lifespan", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 208, - "End Line": 212 + "Start Line": 91, + "End Line": 94 }, { - "Function Name": "test_no_response_model_no_annotation_return_model", - "Structural Impact": 1.2, + "Function Name": "lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 257 + "Start Line": 116, + "End Line": 119 }, { - "Function Name": "test_no_response_model_no_annotation_return_dict", - "Structural Impact": 1.2, + "Function Name": "router_lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 260, - "End Line": 263 + "Start Line": 122, + "End Line": 125 }, { - "Function Name": "test_response_model_no_annotation_return_same_model", - "Structural Impact": 1.2, + "Function Name": "subrouter_lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 266, - "End Line": 269 + "Start Line": 128, + "End Line": 131 }, { - "Function Name": "test_response_model_no_annotation_return_exact_dict", - "Structural Impact": 1.2, + "Function Name": "lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 272, "End Line": 275 }, { - "Function Name": "test_response_model_no_annotation_return_dict_with_extra_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 290, - "End Line": 293 - }, - { - "Function Name": "test_no_response_model_annotation_return_same_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 304, - "End Line": 307 - }, - { - "Function Name": "test_no_response_model_annotation_return_exact_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 310, - "End Line": 313 - }, - { - "Function Name": "test_no_response_model_annotation_return_dict_with_extra_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 328, - "End Line": 331 - }, - { - "Function Name": "test_response_model_none_annotation_return_same_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 342, - "End Line": 345 - }, - { - "Function Name": "test_response_model_none_annotation_return_exact_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 348, - "End Line": 351 - }, - { - "Function Name": "test_response_model_none_annotation_return_invalid_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 354, - "End Line": 357 - }, - { - "Function Name": "test_response_model_none_annotation_return_invalid_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 360, - "End Line": 363 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_same_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 388, - "End Line": 391 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_exact_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 394, - "End Line": 397 - }, - { - "Function Name": "test_response_model_union_no_annotation_return_model1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 463, - "End Line": 466 - }, - { - "Function Name": "test_response_model_union_no_annotation_return_model2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 469, - "End Line": 472 - }, - { - "Function Name": "test_no_response_model_annotation_union_return_model1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 475, - "End Line": 478 - }, - { - "Function Name": "test_no_response_model_annotation_union_return_model2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 481, - "End Line": 484 - }, - { - "Function Name": "test_no_response_model_annotation_return_class", - "Structural Impact": 1.2, + "Function Name": "lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 487, - "End Line": 490 + "Start Line": 298, + "End Line": 301 }, { - "Function Name": "test_no_response_model_annotation_json_response_class", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "lifespan", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 493, - "End Line": 496 + "Start Line": 207, + "End Line": 208 }, { - "Function Name": "no_response_model_no_annotation_return_model", - "Structural Impact": 1.1, + "Function Name": "router_lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 211, + "End Line": 212 }, { - "Function Name": "no_response_model_no_annotation_return_dict", - "Structural Impact": 1.1, + "Function Name": "lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 + "Start Line": 224, + "End Line": 225 }, { - "Function Name": "response_model_no_annotation_return_same_model", - "Structural Impact": 1.1, + "Function Name": "router_lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 + "Start Line": 228, + "End Line": 229 }, { - "Function Name": "response_model_no_annotation_return_exact_dict", - "Structural Impact": 1.1, + "Function Name": "sub_router_lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 + "Start Line": 232, + "End Line": 233 }, { - "Function Name": "response_model_no_annotation_return_invalid_dict", + "Function Name": "state", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 52 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "response_model_no_annotation_return_invalid_model", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 57 + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "response_model_no_annotation_return_dict_with_extra_data", + "Function Name": "app_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 64 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "response_model_no_annotation_return_submodel_with_extra_data", + "Function Name": "app_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 + "Start Line": 39, + "End Line": 40 }, { - "Function Name": "no_response_model_annotation_return_same_model", + "Function Name": "router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 + "Start Line": 45, + "End Line": 46 }, { - "Function Name": "no_response_model_annotation_return_exact_dict", + "Function Name": "router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 49, + "End Line": 50 }, { - "Function Name": "no_response_model_annotation_return_invalid_dict", + "Function Name": "sub_router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 55, + "End Line": 56 }, { - "Function Name": "no_response_model_annotation_return_invalid_model", + "Function Name": "sub_router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 91 + "Start Line": 59, + "End Line": 60 }, { - "Function Name": "no_response_model_annotation_return_dict_with_extra_data", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 99, + "End Line": 100 }, { - "Function Name": "no_response_model_annotation_return_submodel_with_extra_data", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 100, - "End Line": 101 + "Start Line": 253, + "End Line": 254 }, { - "Function Name": "response_model_none_annotation_return_same_model", + "Function Name": "app_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 106 + "Start Line": 257, + "End Line": 258 }, { - "Function Name": "response_model_none_annotation_return_exact_dict", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 111 + "Start Line": 280, + "End Line": 281 }, { - "Function Name": "response_model_none_annotation_return_invalid_dict", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 115, - "End Line": 116 + "Start Line": 306, + "End Line": 307 }, { - "Function Name": "response_model_none_annotation_return_invalid_model", + "Function Name": "app_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 120, - "End Line": 121 + "Start Line": 324, + "End Line": 325 }, { - "Function Name": "response_model_none_annotation_return_dict_with_extra_data", + "Function Name": "app_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 127, - "End Line": 128 + "Start Line": 327, + "End Line": 328 }, { - "Function Name": "response_model_none_annotation_return_submodel_with_extra_data", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 136 + "Start Line": 333, + "End Line": 334 }, { - "Function Name": "response_model_model1_annotation_model2_return_same_model", + "Function Name": "router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 142, - "End Line": 143 + "Start Line": 336, + "End Line": 337 }, { - "Function Name": "response_model_model1_annotation_model2_return_exact_dict", + "Function Name": "router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 150 + "Start Line": 339, + "End Line": 340 }, { - "Function Name": "response_model_model1_annotation_model2_return_invalid_dict", + "Function Name": "sub_router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 156, - "End Line": 157 + "Start Line": 344, + "End Line": 345 }, { - "Function Name": "response_model_model1_annotation_model2_return_invalid_model", + "Function Name": "sub_router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 163, - "End Line": 164 - }, + "Start Line": 347, + "End Line": 348 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 10, + "Sequential Logic Declarations": 170, + "Function Parameters": 44, + "Function/Method Declarations": 44, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 96, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 52, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 8, + "Unit Test Assertions": 109, + "Asynchronous/Concurrent Execution": 13, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 28, + "Generic Type Abstractions": 57, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 7, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 9, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 270, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 28, + "Vectorized Math & Tensor Operations": 18, + "Core Var Decl": 34, + "Design Camel Case": 0, + "Design Snake Case": 34, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 22, + "Orphaned Logic": 10, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 6, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "collections.abc", + "contextlib", + "fastapi", + "fastapi.testclient", + "pydantic", + "pytest" + ] + }, + "python/fastapi/tests/test_router_prefix_with_template.py": { + "1. Artifact Identity": { + "Filename": "test_router_prefix_with_template.py", + "Path": "python/fastapi/tests/test_router_prefix_with_template.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 619.45, + "Y": -312.55, + "Z": 264.5 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 24, + "Coding LOC": 13, + "Documentation LOC": 0, + "Structural Magnitude": 6.26, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.154 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.61%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "86.67%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "response_model_model1_annotation_model2_return_dict_with_extra_data", - "Structural Impact": 1.1, + "Function Name": "read_user", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 171, - "End Line": 172 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "response_model_model1_annotation_model2_return_submodel_with_extra_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 179, - "End Line": 180 - }, + "Start Line": 20, + "End Line": 23 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 9, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 3, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 4, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, + "Design Camel Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient" + ] + }, + "python/fastapi/tests/test_router_redirect_slashes.py": { + "1. Artifact Identity": { + "Filename": "test_router_redirect_slashes.py", + "Path": "python/fastapi/tests/test_router_redirect_slashes.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 3395.23, + "Y": -31.8, + "Z": -2203.64 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 41, + "Coding LOC": 26, + "Documentation LOC": 0, + "Structural Magnitude": 12.52, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.077 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "3.17%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "10.41%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "response_model_filtering_model_annotation_submodel_return_submodel", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_redirect_slashes_enabled", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 188 + "Start Line": 5, + "End Line": 21 }, { - "Function Name": "response_model_union_no_annotation_return_model1", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_redirect_slashes_disabled", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 219, - "End Line": 220 + "Start Line": 24, + "End Line": 40 }, { - "Function Name": "response_model_union_no_annotation_return_model2", + "Function Name": "hello_page", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 227, - "End Line": 228 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "no_response_model_annotation_union_return_model1", + "Function Name": "hello_page", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 232, - "End Line": 233 - }, + "Start Line": 29, + "End Line": 30 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 6, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 22, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 10, + "Design Camel Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 2, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient" + ] + }, + "python/fastapi/tests/test_schema_compat_pydantic_v2.py": { + "1. Artifact Identity": { + "Filename": "test_schema_compat_pydantic_v2.py", + "Path": "python/fastapi/tests/test_schema_compat_pydantic_v2.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "str, Enum, BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 2048.25, + "Y": -176.92, + "Z": -1440.17 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 122, + "Coding LOC": 106, + "Documentation LOC": 2, + "Structural Magnitude": 21.22, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.13%", + "Concurrency Exposure": "22.63%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "no_response_model_annotation_union_return_model2", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 80, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 237, - "End Line": 238 + "Start Line": 42, + "End Line": 121 }, { - "Function Name": "no_response_model_annotation_response_class", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_client", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 242, - "End Line": 243 + "Start Line": 12, + "End Line": 32 }, { - "Function Name": "no_response_model_annotation_json_response_class", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 247, - "End Line": 248 + "Start Line": 36, + "End Line": 38 }, { - "Function Name": "read_root", + "Function Name": "get_user", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 504, - "End Line": 505 + "Start Line": 28, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 7, - "Sequential Logic Declarations": 216, - "Function Parameters": 75, - "Function/Method Declarations": 75, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 73, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 32, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 116, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 116, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 37, - "Generic Type Abstractions": 29, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 8, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 3, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -202044,7 +200414,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 6, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -202055,7 +200425,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 823, + "Structural Space Indentations": 93, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202071,16 +200441,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 23, - "Core Var Decl": 57, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 57, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 75, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202104,38 +200474,39 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 8, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dirty_equals", + "enum", "fastapi", - "fastapi.exceptions", - "fastapi.responses", "fastapi.testclient", "inline_snapshot", "pydantic", - "pytest" + "pytest", + "tests.utils" ] }, - "python/fastapi/tests/test_response_model_data_filter.py": { + "python/fastapi/tests/test_schema_extra_examples.py": { "1. Artifact Identity": { - "Filename": "test_response_model_data_filter.py", - "Path": "python/fastapi/tests/test_response_model_data_filter.py", + "Filename": "test_schema_extra_examples.py", + "Path": "python/fastapi/tests/test_schema_extra_examples.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, UserBase", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3229.46, - "Y": 25.5, - "Z": -1548.44 + "X": 3034.94, + "Y": -40.77, + "Z": 835.32 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202144,26 +200515,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 54, - "Documentation LOC": 0, - "Structural Magnitude": 26.58, - "Control Flow Ratio": "0.0%", + "Total LOC": 858, + "Coding LOC": 784, + "Documentation LOC": 34, + "Structural Magnitude": 123.98, + "Control Flow Ratio": "9.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.023 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.53%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.32%", - "Concurrency Exposure": "76.82%", + "API Exposure": "10.69%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Commented Logic Exposure": "8.54%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -202172,94 +200543,224 @@ }, "5. Function Analysis": [ { - "Function Name": "read_pet", + "Function Name": "create_app", + "Structural Impact": 21.2, + "Lines of Code (LOC)": 205, + "Control Flow Branches": 10, + "Input Parameters": 0, + "Control Flow Ratio": "22.2%", + "Start Line": 9, + "End Line": 213 + }, + { + "Function Name": "test_openapi_schema", + "Structural Impact": 20.0, + "Lines of Code (LOC)": 605, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 253, + "End Line": 857 + }, + { + "Function Name": "test_call_api", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 35, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 216, + "End Line": 250 + }, + { + "Function Name": "examples", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 38 + }, + { + "Function Name": "example_examples", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 52 + }, + { + "Function Name": "header_examples", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 158, + "End Line": 167 + }, + { + "Function Name": "path_example_examples", "Structural Impact": 1.8, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 42 + "Start Line": 106, + "End Line": 112 }, { - "Function Name": "create_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "query_example", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 117, + "End Line": 123 }, { - "Function Name": "read_pets", - "Structural Impact": 1.4, + "Function Name": "query_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 126, + "End Line": 132 + }, + { + "Function Name": "query_example_examples", + "Structural Impact": 1.8, "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 53 + "Start Line": 137, + "End Line": 144 }, { - "Function Name": "test_filter_second_level_model", - "Structural Impact": 1.3, + "Function Name": "header_example", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 155 + }, + { + "Function Name": "header_example_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 172, + "End Line": 179 + }, + { + "Function Name": "cookie_example", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 184, + "End Line": 190 + }, + { + "Function Name": "cookie_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 193, + "End Line": 199 + }, + { + "Function Name": "cookie_example_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 204, + "End Line": 211 + }, + { + "Function Name": "path_example", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 71 + "Start Line": 88, + "End Line": 93 }, { - "Function Name": "test_list_of_models", - "Structural Impact": 1.3, + "Function Name": "path_examples", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 79 + "Start Line": 96, + "End Line": 101 }, { - "Function Name": "test_filter_top_level_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "schema_extra", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 63 + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "example", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 26, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 10, + "Sequential Logic Declarations": 100, + "Function Parameters": 19, + "Function/Method Declarations": 19, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 20, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 36, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 3, + "Commented-out Code (Dead Logic)": 6, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 31, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 16, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Planned Work (TODOs)": 2, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, @@ -202282,7 +200783,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 35, + "Structural Space Indentations": 775, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202298,16 +200799,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 10, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 67, "Design Camel Case": 0, - "Design Snake Case": 18, - "Design Pascal Case": 0, + "Design Snake Case": 55, + "Design Pascal Case": 12, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202331,21 +200832,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "pydantic" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py": { + "python/fastapi/tests/test_schema_ref_pydantic_v2.py": { "1. Artifact Identity": { - "Filename": "test_response_model_data_filter_no_inheritance.py", - "Path": "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py", + "Filename": "test_schema_ref_pydantic_v2.py", + "Path": "python/fastapi/tests/test_schema_ref_pydantic_v2.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -202356,9 +200860,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1558.5, - "Y": -159.22, - "Z": 892.06 + "X": 4109.14, + "Y": 92.33, + "Z": -1657.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202367,10 +200871,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 82, - "Coding LOC": 56, + "Total LOC": 69, + "Coding LOC": 58, "Documentation LOC": 0, - "Structural Magnitude": 26.62, + "Structural Magnitude": 15.76, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -202380,11 +200884,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "33.95%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.26%", - "Concurrency Exposure": "75.45%", + "API Exposure": "9.16%", + "Concurrency Exposure": "29.4%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -202395,92 +200899,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_pet", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 44 - }, - { - "Function Name": "create_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 38, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 - }, - { - "Function Name": "read_pets", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 55 + "Start Line": 31, + "End Line": 68 }, { - "Function Name": "test_filter_second_level_model", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_client", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 68, - "End Line": 73 + "Start Line": 11, + "End Line": 23 }, { - "Function Name": "test_list_of_models", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 81 + "Start Line": 26, + "End Line": 28 }, { - "Function Name": "test_filter_top_level_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 65 + "Start Line": 19, + "End Line": 20 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 9, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -202505,7 +200989,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 37, + "Structural Space Indentations": 48, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202521,16 +201005,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 10, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 18, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202554,7 +201038,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -202562,13 +201046,16 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pydantic" + "inline_snapshot", + "pydantic", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_response_model_default_factory.py": { + "python/fastapi/tests/test_security_api_key_cookie.py": { "1. Artifact Identity": { - "Filename": "test_response_model_default_factory.py", - "Path": "python/fastapi/tests/test_response_model_default_factory.py", + "Filename": "test_security_api_key_cookie.py", + "Path": "python/fastapi/tests/test_security_api_key_cookie.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -202579,9 +201066,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1010.56, - "Y": -292.13, - "Z": 682.66 + "X": 1109.08, + "Y": -263.54, + "Z": -779.7 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202590,24 +201077,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 48, - "Coding LOC": 30, + "Total LOC": 71, + "Coding LOC": 56, "Documentation LOC": 0, - "Structural Magnitude": 14.6, + "Structural Magnitude": 16.22, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.267 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.32%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.69%", - "Concurrency Exposure": "74.44%", + "API Exposure": "9.72%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -202618,54 +201105,64 @@ }, "5. Function Analysis": [ { - "Function Name": "test_response_model_has_default_factory_return_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 30, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 38 + "Start Line": 41, + "End Line": 70 }, { - "Function Name": "test_response_model_has_default_factory_return_model", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 47 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "response_model_has_default_factory_return_dict", - "Structural Impact": 1.1, + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 33, + "End Line": 38 }, { - "Function Name": "response_model_has_default_factory_return_model", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 26, + "End Line": 30 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, + "Sequential Logic Declarations": 26, "Function Parameters": 5, - "Function/Method Declarations": 4, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 10, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -202673,24 +201170,24 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 1, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -202708,7 +201205,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, + "Structural Space Indentations": 42, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202725,15 +201222,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202757,21 +201254,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", + "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_response_model_include_exclude.py": { + "python/fastapi/tests/test_security_api_key_cookie_description.py": { "1. Artifact Identity": { - "Filename": "test_response_model_include_exclude.py", - "Path": "python/fastapi/tests/test_response_model_include_exclude.py", + "Filename": "test_security_api_key_cookie_description.py", + "Path": "python/fastapi/tests/test_security_api_key_cookie_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -202782,9 +201281,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2591.25, - "Y": -92.13, - "Z": -1215.61 + "X": 2613.73, + "Y": -28.07, + "Z": 1940.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202793,10 +201292,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 176, - "Coding LOC": 137, + "Total LOC": 76, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 40.14, + "Structural Magnitude": 16.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -202809,7 +201308,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.94%", + "API Exposure": "9.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -202821,159 +201320,89 @@ }, "5. Function Analysis": [ { - "Function Name": "simple_include_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 49 - }, - { - "Function Name": "simple_exclude_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 76 - }, - { - "Function Name": "mixed", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 93 - }, - { - "Function Name": "mixed_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 102, - "End Line": 110 - }, - { - "Function Name": "test_nested_include_simple", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 124 - }, - { - "Function Name": "test_nested_include_simple_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 127, - "End Line": 135 - }, - { - "Function Name": "test_nested_exclude_simple", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 138, - "End Line": 144 - }, - { - "Function Name": "test_nested_exclude_simple_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 35, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 147, - "End Line": 153 + "Start Line": 41, + "End Line": 75 }, { - "Function Name": "test_nested_include_mixed", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 156, - "End Line": 164 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "test_nested_include_mixed_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 167, - "End Line": 175 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "simple_include", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 34 + "Start Line": 33, + "End Line": 38 }, { - "Function Name": "simple_exclude", + "Function Name": "test_security_api_key", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 61 + "Start Line": 26, + "End Line": 30 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 16, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 21, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -202991,7 +201420,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 105, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203007,16 +201436,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 31, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 31, - "Design Pascal Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -203040,33 +201469,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", + "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_response_model_invalid.py": { + "python/fastapi/tests/test_security_api_key_cookie_optional.py": { "1. Artifact Identity": { - "Filename": "test_response_model_invalid.py", - "Path": "python/fastapi/tests/test_response_model_invalid.py", + "Filename": "test_security_api_key_cookie_optional.py", + "Path": "python/fastapi/tests/test_security_api_key_cookie_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1943.3, - "Y": -161.35, - "Z": -1206.3 + "X": 1356.23, + "Y": -265.29, + "Z": 719.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203075,23 +201507,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 44, - "Coding LOC": 29, + "Total LOC": 75, + "Coding LOC": 60, "Documentation LOC": 0, - "Structural Magnitude": 27.58, - "Control Flow Ratio": "17.4%", + "Structural Magnitude": 20.7, + "Control Flow Ratio": "10.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.207 + "Raw Cognitive Density": 0.083 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.11%", - "Error & Exception Exposure": "80.0%", + "Cognitive Load Exposure": "3.25%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.87%", + "API Exposure": "9.6%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -203103,98 +201535,68 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_response_model_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 10, - "End Line": 16 - }, - { - "Function Name": "test_invalid_response_model_sub_type_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 19, - "End Line": 25 - }, - { - "Function Name": "test_invalid_response_model_in_responses_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 28, - "End Line": 34 + "Function Name": "read_current_user", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 24, + "End Line": 28 }, { - "Function Name": "test_invalid_response_model_sub_type_in_responses_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, "Control Flow Branches": 1, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "25.0%", - "Start Line": 37, - "End Line": 43 - }, - { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 16, + "End Line": 20 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 30, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 45, + "End Line": 74 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 31, + "End Line": 35 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 43 + "Start Line": 38, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 19, - "Function Parameters": 8, - "Function/Method Declarations": 8, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 27, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 5, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, @@ -203203,19 +201605,19 @@ "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203233,7 +201635,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 21, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203249,15 +201651,15 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 9, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 4, + "Duplicate Logic": 0, "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, @@ -203282,21 +201684,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", - "pytest" + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_response_model_sub_types.py": { + "python/fastapi/tests/test_security_api_key_header.py": { "1. Artifact Identity": { - "Filename": "test_response_model_sub_types.py", - "Path": "python/fastapi/tests/test_response_model_sub_types.py", + "Filename": "test_security_api_key_header.py", + "Path": "python/fastapi/tests/test_security_api_key_header.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -203307,9 +201711,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2157.87, - "Y": -110.58, - "Z": 1308.85 + "X": 1912.98, + "Y": -170.49, + "Z": 1613.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203318,10 +201722,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 162, - "Coding LOC": 143, + "Total LOC": 71, + "Coding LOC": 54, "Documentation LOC": 0, - "Structural Magnitude": 25.66, + "Structural Magnitude": 16.08, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -203331,10 +201735,10 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "42.33%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.76%", + "API Exposure": "9.72%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -203347,98 +201751,88 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 114, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 161 - }, - { - "Function Name": "test_path_operations", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 45 + "Start Line": 42, + "End Line": 70 }, { - "Function Name": "valid1", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "valid2", - "Structural Impact": 1.1, + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "valid3", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "valid4", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 4, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203456,7 +201850,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 126, + "Structural Space Indentations": 39, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203472,16 +201866,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -203505,34 +201899,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_return_none_stringified_annotations.py": { + "python/fastapi/tests/test_security_api_key_header_description.py": { "1. Artifact Identity": { - "Filename": "test_return_none_stringified_annotations.py", - "Path": "python/fastapi/tests/test_return_none_stringified_annotations.py", + "Filename": "test_security_api_key_header_description.py", + "Path": "python/fastapi/tests/test_security_api_key_header_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4349.96, - "Y": 123.27, - "Z": -1835.22 + "X": 4660.04, + "Y": 165.39, + "Z": 501.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203541,27 +201937,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 18, - "Coding LOC": 12, + "Total LOC": 76, + "Coding LOC": 59, "Documentation LOC": 0, - "Structural Magnitude": 5.94, + "Structural Magnitude": 16.38, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.167 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.42%", + "API Exposure": "9.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "80.0%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -203569,59 +201965,89 @@ }, "5. Function Analysis": [ { - "Function Name": "test_no_content", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 34, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 17 + "Start Line": 42, + "End Line": 75 }, { - "Function Name": "return_no_content", - "Structural Impact": 1.1, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 18 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 29, + "End Line": 32 + }, + { + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 10, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203639,7 +202065,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 8, + "Structural Space Indentations": 44, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203656,15 +202082,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -203688,33 +202114,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 3, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", - "http" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_route_scope.py": { + "python/fastapi/tests/test_security_api_key_header_optional.py": { "1. Artifact Identity": { - "Filename": "test_route_scope.py", - "Path": "python/fastapi/tests/test_route_scope.py", + "Filename": "test_security_api_key_header_optional.py", + "Path": "python/fastapi/tests/test_security_api_key_header_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2371.14, - "Y": -67.58, - "Z": -1313.2 + "X": 4172.44, + "Y": 109.84, + "Z": 981.35 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203723,24 +202152,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 51, - "Coding LOC": 33, + "Total LOC": 74, + "Coding LOC": 57, "Documentation LOC": 0, - "Structural Magnitude": 25.26, - "Control Flow Ratio": "11.1%", + "Structural Magnitude": 19.14, + "Control Flow Ratio": "6.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.711 + "Raw Cognitive Density": 0.07 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "23.07%", - "Error & Exception Exposure": "17.91%", + "Cognitive Load Exposure": "3.09%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.12%", - "Concurrency Exposure": "97.53%", + "API Exposure": "9.63%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -203751,109 +202180,89 @@ }, "5. Function Analysis": [ { - "Function Name": "test_websocket_invalid_path_doesnt_match", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 47, - "End Line": 50 + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 20 }, { - "Function Name": "test_websocket", - "Structural Impact": 2.2, + "Function Name": "read_current_user", + "Structural Impact": 3.0, "Lines of Code (LOC)": 4, "Control Flow Branches": 1, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "25.0%", - "Start Line": 41, - "End Line": 44 - }, - { - "Function Name": "get_user", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 12 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "websocket_item", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 45, + "End Line": 73 }, { - "Function Name": "test_get", + "Function Name": "test_security_api_key", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 - }, - { - "Function Name": "test_invalid_method_doesnt_match", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 33 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "test_invalid_path_doesnt_match", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 39, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 24, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 27, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203871,7 +202280,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 18, + "Structural Space Indentations": 42, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203888,22 +202297,22 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 7, "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 7, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 1, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -203920,34 +202329,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.routing", + "fastapi.security", "fastapi.testclient", - "pytest" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_router_circular_import.py": { + "python/fastapi/tests/test_security_api_key_query.py": { "1. Artifact Identity": { - "Filename": "test_router_circular_import.py", - "Path": "python/fastapi/tests/test_router_circular_import.py", + "Filename": "test_security_api_key_query.py", + "Path": "python/fastapi/tests/test_security_api_key_query.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3173.02, - "Y": 34.71, - "Z": -2197.96 + "X": 2354.3, + "Y": -126.75, + "Z": -1848.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203956,27 +202367,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 13, - "Coding LOC": 9, + "Total LOC": 71, + "Coding LOC": 54, "Documentation LOC": 0, - "Structural Magnitude": 4.58, - "Control Flow Ratio": "33.3%", + "Structural Magnitude": 16.08, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.444 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.25%", + "API Exposure": "9.72%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "60.0%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -203984,49 +202395,89 @@ }, "5. Function Analysis": [ { - "Function Name": "test_router_circular_import", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 5, - "End Line": 12 + "Control Flow Ratio": "0.0%", + "Start Line": 42, + "End Line": 70 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 18 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 32 + }, + { + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 4, - "Function Parameters": 1, - "Function/Method Declarations": 1, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -204044,7 +202495,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 6, + "Structural Space Indentations": 39, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -204060,16 +202511,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 2, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 2, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -204093,20 +202544,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "pytest" + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_router_events.py": { + "python/fastapi/tests/test_security_api_key_query_description.py": { "1. Artifact Identity": { - "Filename": "test_router_events.py", - "Path": "python/fastapi/tests/test_router_events.py", + "Filename": "test_security_api_key_query_description.py", + "Path": "python/fastapi/tests/test_security_api_key_query_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -204117,9 +202571,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3402.36, - "Y": 7.28, - "Z": 226.23 + "X": 1179.69, + "Y": -246.01, + "Z": 934.61 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -204128,24 +202582,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 379, - "Coding LOC": 293, - "Documentation LOC": 4, - "Structural Magnitude": 157.56, - "Control Flow Ratio": "5.6%", + "Total LOC": 76, + "Coding LOC": 59, + "Documentation LOC": 0, + "Structural Magnitude": 16.38, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.241 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.44%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.37%", - "Concurrency Exposure": "80.7%", + "API Exposure": "9.57%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -204156,479 +202610,304 @@ }, "5. Function Analysis": [ { - "Function Name": "test_router_events", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 60, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "3.2%", - "Start Line": 27, - "End Line": 86 - }, - { - "Function Name": "test_router_nested_lifespan_state", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 58, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "3.2%", - "Start Line": 114, - "End Line": 171 - }, - { - "Function Name": "test_startup_shutdown_handlers_as_parameters", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 58, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "3.2%", - "Start Line": 321, - "End Line": 378 - }, - { - "Function Name": "test_router_sync_generator_lifespan", - "Structural Impact": 4.1, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "6.2%", - "Start Line": 268, - "End Line": 292 - }, - { - "Function Name": "test_app_lifespan_state", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "7.1%", - "Start Line": 89, - "End Line": 111 - }, - { - "Function Name": "test_router_async_generator_lifespan", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "7.1%", - "Start Line": 295, - "End Line": 318 - }, - { - "Function Name": "test_router_async_shutdown_handler", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "10.0%", - "Start Line": 248, - "End Line": 265 - }, - { - "Function Name": "test_router_nested_lifespan_state_overriding_by_parent", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 174, - "End Line": 202 - }, - { - "Function Name": "test_merged_mixed_state_lifespans", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 222, - "End Line": 242 - }, - { - "Function Name": "test_merged_no_return_lifespans_return_none", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 205, - "End Line": 219 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 176, - "End Line": 182 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 185, - "End Line": 191 - }, - { - "Function Name": "main", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 142, - "End Line": 146 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 94 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 119 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 122, - "End Line": 125 - }, - { - "Function Name": "subrouter_lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 131 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 34, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 272, - "End Line": 275 + "Start Line": 42, + "End Line": 75 }, { - "Function Name": "lifespan", + "Function Name": "get_current_user", "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 298, - "End Line": 301 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 207, - "End Line": 208 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 211, - "End Line": 212 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 224, - "End Line": 225 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 228, - "End Line": 229 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "sub_router_lifespan", + "Function Name": "read_current_user", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 232, - "End Line": 233 - }, - { - "Function Name": "state", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, + "Start Line": 29, "End Line": 32 }, { - "Function Name": "app_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 35, - "End Line": 36 - }, - { - "Function Name": "app_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 - }, - { - "Function Name": "router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 - }, - { - "Function Name": "router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "sub_router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 - }, - { - "Function Name": "sub_router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 100 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 253, - "End Line": 254 - }, - { - "Function Name": "app_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 257, - "End Line": 258 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 280, - "End Line": 281 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 306, - "End Line": 307 - }, - { - "Function Name": "app_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 324, - "End Line": 325 - }, - { - "Function Name": "app_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 327, - "End Line": 328 - }, + "End Line": 39 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 2, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 44, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, + "Design Camel Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 4, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 5, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_security_api_key_query_optional.py": { + "1. Artifact Identity": { + "Filename": "test_security_api_key_query_optional.py", + "Path": "python/fastapi/tests/test_security_api_key_query_optional.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1132.28, + "Y": -238.25, + "Z": 139.75 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 74, + "Coding LOC": 57, + "Documentation LOC": 0, + "Structural Magnitude": 19.14, + "Control Flow Ratio": "6.9%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.07 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "3.09%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.63%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 333, - "End Line": 334 + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 20 }, { - "Function Name": "router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 336, - "End Line": 337 + "Function Name": "read_current_user", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 339, - "End Line": 340 + "Start Line": 45, + "End Line": 73 }, { - "Function Name": "sub_router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 344, - "End Line": 345 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "sub_router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 347, - "End Line": 348 + "Start Line": 39, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 10, - "Sequential Logic Declarations": 170, - "Function Parameters": 44, - "Function/Method Declarations": 44, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 27, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 96, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 52, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 8, - "Unit Test Assertions": 109, - "Asynchronous/Concurrent Execution": 13, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 28, - "Generic Type Abstractions": 57, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -204643,10 +202922,10 @@ "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 9, + "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 270, + "Structural Space Indentations": 42, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -204661,17 +202940,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 28, - "Vectorized Math & Tensor Operations": 18, - "Core Var Decl": 34, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 34, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 22, - "Orphaned Logic": 10, + "Duplicate Logic": 0, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -204695,24 +202974,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", - "contextlib", "fastapi", + "fastapi.security", "fastapi.testclient", - "pydantic", - "pytest" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_router_prefix_with_template.py": { + "python/fastapi/tests/test_security_http_base.py": { "1. Artifact Identity": { - "Filename": "test_router_prefix_with_template.py", - "Path": "python/fastapi/tests/test_router_prefix_with_template.py", + "Filename": "test_security_http_base.py", + "Path": "python/fastapi/tests/test_security_http_base.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -204722,9 +203000,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 619.45, - "Y": -312.55, - "Z": 264.5 + "X": 1069.81, + "Y": -288.47, + "Z": -949.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -204733,27 +203011,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 24, - "Coding LOC": 13, + "Total LOC": 65, + "Coding LOC": 50, "Documentation LOC": 0, - "Structural Magnitude": 6.26, + "Structural Magnitude": 14.5, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.154 + "Raw Cognitive Density": 0.04 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "2.76%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.61%", + "API Exposure": "9.29%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "86.67%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -204761,42 +203039,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_user", - "Structural Impact": 1.8, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 64 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_get", + "Function Name": "test_security_http_base", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 23 + "Start Line": 19, + "End Line": 22 + }, + { + "Function Name": "test_security_http_base_with_whitespaces", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 28 + }, + { + "Function Name": "test_security_http_base_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 9, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Sequential Logic Declarations": 24, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -204806,7 +203114,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -204831,7 +203139,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, + "Structural Space Indentations": 37, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -204848,15 +203156,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -204880,20 +203188,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.security.http", + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_router_redirect_slashes.py": { + "python/fastapi/tests/test_security_http_base_description.py": { "1. Artifact Identity": { - "Filename": "test_router_redirect_slashes.py", - "Path": "python/fastapi/tests/test_router_redirect_slashes.py", + "Filename": "test_security_http_base_description.py", + "Path": "python/fastapi/tests/test_security_http_base_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -204903,9 +203213,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3395.23, - "Y": -31.8, - "Z": -2203.64 + "X": 1124.99, + "Y": -276.12, + "Z": 1182.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -204914,23 +203224,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 41, - "Coding LOC": 26, + "Total LOC": 65, + "Coding LOC": 52, "Documentation LOC": 0, - "Structural Magnitude": 12.52, + "Structural Magnitude": 12.64, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.077 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.17%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.41%", + "API Exposure": "8.55%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -204942,72 +203252,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_redirect_slashes_enabled", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 5, - "End Line": 21 + "Start Line": 32, + "End Line": 64 }, { - "Function Name": "test_redirect_slashes_disabled", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 40 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "hello_page", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_base", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "hello_page", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_base_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 + "Start Line": 25, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, + "Sequential Logic Declarations": 21, "Function Parameters": 4, "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -205032,7 +203342,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 22, + "Structural Space Indentations": 40, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205048,16 +203358,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 2, + "Design Long Vars": 1, + "Duplicate Logic": 0, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -205081,33 +203391,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.security.http", + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_schema_compat_pydantic_v2.py": { + "python/fastapi/tests/test_security_http_base_optional.py": { "1. Artifact Identity": { - "Filename": "test_schema_compat_pydantic_v2.py", - "Path": "python/fastapi/tests/test_schema_compat_pydantic_v2.py", + "Filename": "test_security_http_base_optional.py", + "Path": "python/fastapi/tests/test_security_http_base_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "str, Enum, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2048.25, - "Y": -176.92, - "Z": -1440.17 + "X": 801.09, + "Y": -323.28, + "Z": 21.98 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205116,24 +203427,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 122, - "Coding LOC": 106, - "Documentation LOC": 2, - "Structural Magnitude": 21.22, - "Control Flow Ratio": "0.0%", + "Total LOC": 62, + "Coding LOC": 49, + "Documentation LOC": 0, + "Structural Magnitude": 13.88, + "Control Flow Ratio": "4.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.084 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.26%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.13%", - "Concurrency Exposure": "22.63%", + "API Exposure": "8.65%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -205144,72 +203455,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 80, - "Control Flow Branches": 0, + "Function Name": "read_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 121 + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 17 }, { - "Function Name": "get_client", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 32 + "Start Line": 35, + "End Line": 61 }, { - "Function Name": "test_get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_security_http_base", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "get_user", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_base_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 32, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 21, "Function Parameters": 4, "Function/Method Declarations": 4, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 8, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -205234,7 +203545,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 93, + "Structural Space Indentations": 36, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205250,11 +203561,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -205283,39 +203594,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 8, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dirty_equals", - "enum", "fastapi", + "fastapi.security.http", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "tests.utils" + "inline_snapshot" ] }, - "python/fastapi/tests/test_schema_extra_examples.py": { + "python/fastapi/tests/test_security_http_basic_optional.py": { "1. Artifact Identity": { - "Filename": "test_schema_extra_examples.py", - "Path": "python/fastapi/tests/test_schema_extra_examples.py", + "Filename": "test_security_http_basic_optional.py", + "Path": "python/fastapi/tests/test_security_http_basic_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3034.94, - "Y": -40.77, - "Z": 835.32 + "X": 2821.36, + "Y": -15.81, + "Z": 1573.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205324,26 +203630,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 858, - "Coding LOC": 784, - "Documentation LOC": 34, - "Structural Magnitude": 123.98, - "Control Flow Ratio": "9.1%", + "Total LOC": 80, + "Coding LOC": 62, + "Documentation LOC": 0, + "Structural Magnitude": 18.84, + "Control Flow Ratio": "3.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.023 + "Raw Cognitive Density": 0.069 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.53%", + "Cognitive Load Exposure": "3.07%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.69%", + "API Exposure": "9.46%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "8.54%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -205352,224 +203658,94 @@ }, "5. Function Analysis": [ { - "Function Name": "create_app", - "Structural Impact": 21.2, - "Lines of Code (LOC)": 205, - "Control Flow Branches": 10, - "Input Parameters": 0, - "Control Flow Ratio": "22.2%", - "Start Line": 9, - "End Line": 213 + "Function Name": "read_current_user", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 14, + "End Line": 17 }, { "Function Name": "test_openapi_schema", - "Structural Impact": 20.0, - "Lines of Code (LOC)": 605, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 253, - "End Line": 857 - }, - { - "Function Name": "test_call_api", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 35, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 216, - "End Line": 250 - }, - { - "Function Name": "examples", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 38 - }, - { - "Function Name": "example_examples", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 52 - }, - { - "Function Name": "header_examples", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 167 - }, - { - "Function Name": "path_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 112 - }, - { - "Function Name": "query_example", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 117, - "End Line": 123 - }, - { - "Function Name": "query_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 132 - }, - { - "Function Name": "query_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 144 - }, - { - "Function Name": "header_example", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 155 - }, - { - "Function Name": "header_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 172, - "End Line": 179 + "Start Line": 53, + "End Line": 79 }, { - "Function Name": "cookie_example", - "Structural Impact": 1.8, + "Function Name": "test_security_http_basic_invalid_credentials", + "Structural Impact": 1.4, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 184, - "End Line": 190 + "Start Line": 35, + "End Line": 41 }, { - "Function Name": "cookie_examples", - "Structural Impact": 1.8, + "Function Name": "test_security_http_basic_non_basic_credentials", + "Structural Impact": 1.4, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 193, - "End Line": 199 - }, - { - "Function Name": "cookie_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 204, - "End Line": 211 - }, - { - "Function Name": "path_example", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 93 - }, - { - "Function Name": "path_examples", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 101 + "Start Line": 44, + "End Line": 50 }, { - "Function Name": "schema_extra", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "example", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 10, - "Sequential Logic Declarations": 100, - "Function Parameters": 19, - "Function/Method Declarations": 19, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 20, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 36, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 6, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 31, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 17, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 16, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, - "Planned Work (TODOs)": 2, + "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, @@ -205592,7 +203768,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 775, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205608,16 +203784,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 67, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 55, - "Design Pascal Case": 12, + "Design Snake Case": 11, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -205641,37 +203817,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "base64", "fastapi", - "fastapi.exceptions", + "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest" + "inline_snapshot" ] }, - "python/fastapi/tests/test_schema_ref_pydantic_v2.py": { + "python/fastapi/tests/test_security_http_basic_realm.py": { "1. Artifact Identity": { - "Filename": "test_schema_ref_pydantic_v2.py", - "Path": "python/fastapi/tests/test_schema_ref_pydantic_v2.py", + "Filename": "test_security_http_basic_realm.py", + "Path": "python/fastapi/tests/test_security_http_basic_realm.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4109.14, - "Y": 92.33, - "Z": -1657.25 + "X": 1398.74, + "Y": -245.26, + "Z": -1122.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205680,10 +203854,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 69, - "Coding LOC": 58, + "Total LOC": 79, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 15.76, + "Structural Magnitude": 17.32, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -205693,11 +203867,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "33.95%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.16%", - "Concurrency Exposure": "29.4%", + "API Exposure": "9.49%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -205709,71 +203883,91 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 38, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 78 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 68 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "get_client", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_security_http_basic_invalid_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 23 + "Start Line": 34, + "End Line": 40 }, { - "Function Name": "test_get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_security_http_basic_non_basic_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 28 + "Start Line": 43, + "End Line": 49 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 21, + "End Line": 24 + }, + { + "Function Name": "test_security_http_basic_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 13, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -205798,7 +203992,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 48, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205814,16 +204008,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 11, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -205847,37 +204041,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "base64", "fastapi", + "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "typing" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_cookie.py": { + "python/fastapi/tests/test_security_http_basic_realm_description.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_cookie.py", - "Path": "python/fastapi/tests/test_security_api_key_cookie.py", + "Filename": "test_security_http_basic_realm_description.py", + "Path": "python/fastapi/tests/test_security_http_basic_realm_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1109.08, - "Y": -263.54, - "Z": -779.7 + "X": 2221.67, + "Y": -161.29, + "Z": -1847.6 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205886,10 +204078,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 56, + "Total LOC": 85, + "Coding LOC": 67, "Documentation LOC": 0, - "Structural Magnitude": 16.22, + "Structural Magnitude": 17.74, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -205902,7 +204094,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.72%", + "API Exposure": "9.34%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -205915,63 +204107,73 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 30, + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 70 + "Start Line": 52, + "End Line": 84 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic_invalid_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 34, + "End Line": 40 }, { - "Function Name": "test_security_api_key_no_key", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_security_http_basic_non_basic_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 38 + "Start Line": 43, + "End Line": 49 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_basic", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 21, + "End Line": 24 + }, + { + "Function Name": "test_security_http_basic_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 30 + "Start Line": 27, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 13, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -205979,7 +204181,7 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -205996,7 +204198,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206014,7 +204216,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 42, + "Structural Space Indentations": 52, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206031,15 +204233,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 11, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206069,30 +204271,29 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "base64", "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_cookie_description.py": { + "python/fastapi/tests/test_security_http_bearer.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_cookie_description.py", - "Path": "python/fastapi/tests/test_security_api_key_cookie_description.py", + "Filename": "test_security_http_bearer.py", + "Path": "python/fastapi/tests/test_security_http_bearer.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2613.73, - "Y": -28.07, - "Z": 1940.85 + "X": 3411.6, + "Y": 7.35, + "Z": 1930.46 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206101,10 +204302,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 61, + "Total LOC": 66, + "Coding LOC": 51, "Documentation LOC": 0, - "Structural Magnitude": 16.62, + "Structural Magnitude": 14.52, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -206117,7 +204318,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "9.26%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206130,71 +204331,71 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 35, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 75 + "Start Line": 39, + "End Line": 65 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_bearer", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key_no_key", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_security_http_bearer_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 38 + "Start Line": 25, + "End Line": 29 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 30 + "Start Line": 32, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206204,14 +204405,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206229,7 +204430,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 38, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206246,15 +204447,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 7, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206278,7 +204479,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206287,27 +204488,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_cookie_optional.py": { + "python/fastapi/tests/test_security_http_bearer_description.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_cookie_optional.py", - "Path": "python/fastapi/tests/test_security_api_key_cookie_optional.py", + "Filename": "test_security_http_bearer_description.py", + "Path": "python/fastapi/tests/test_security_http_bearer_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1356.23, - "Y": -265.29, - "Z": 719.51 + "X": 3060.27, + "Y": -30.31, + "Z": -1963.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206316,23 +204515,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 75, - "Coding LOC": 60, + "Total LOC": 72, + "Coding LOC": 57, "Documentation LOC": 0, - "Structural Magnitude": 20.7, - "Control Flow Ratio": "10.0%", + "Structural Magnitude": 14.94, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.083 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.25%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.6%", + "API Exposure": "9.07%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206344,72 +204543,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 24, - "End Line": 28 + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 71 }, { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 30, + "Function Name": "test_security_http_bearer", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 74 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_bearer_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 35 + "Start Line": 25, + "End Line": 29 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 42 + "Start Line": 32, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 27, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206419,14 +204618,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206444,7 +204643,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 44, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206461,15 +204660,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206493,7 +204692,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206502,27 +204701,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_header.py": { + "python/fastapi/tests/test_security_http_bearer_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_header.py", - "Path": "python/fastapi/tests/test_security_api_key_header.py", + "Filename": "test_security_http_bearer_optional.py", + "Path": "python/fastapi/tests/test_security_http_bearer_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1912.98, - "Y": -170.49, - "Z": 1613.88 + "X": 4648.4, + "Y": 168.65, + "Z": -468.02 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206531,23 +204728,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 54, + "Total LOC": 68, + "Coding LOC": 53, "Documentation LOC": 0, - "Structural Magnitude": 16.08, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 16.16, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.079 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.2%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.72%", + "API Exposure": "9.19%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206559,37 +204756,37 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 70 + "Function Name": "read_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 17 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 41, + "End Line": 67 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_bearer", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_bearer_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -206599,32 +204796,32 @@ "End Line": 32 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 35, - "End Line": 39 + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206634,14 +204831,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206676,15 +204873,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 7, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206708,7 +204905,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206717,27 +204914,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_header_description.py": { + "python/fastapi/tests/test_security_http_digest.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_header_description.py", - "Path": "python/fastapi/tests/test_security_api_key_header_description.py", + "Filename": "test_security_http_digest.py", + "Path": "python/fastapi/tests/test_security_http_digest.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4660.04, - "Y": 165.39, - "Z": 501.49 + "X": 2255.96, + "Y": -132.11, + "Z": 1996.46 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206746,10 +204941,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 59, + "Total LOC": 68, + "Coding LOC": 53, "Documentation LOC": 0, - "Structural Magnitude": 16.38, + "Structural Magnitude": 14.76, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -206762,7 +204957,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "9.19%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206775,71 +204970,71 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 34, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 75 + "Start Line": 41, + "End Line": 67 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_digest_incorrect_scheme_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 32, + "End Line": 38 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_digest", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_digest_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 25, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206849,14 +205044,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206874,7 +205069,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 40, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206897,9 +205092,9 @@ "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206923,7 +205118,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206932,27 +205127,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_header_optional.py": { + "python/fastapi/tests/test_security_http_digest_description.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_header_optional.py", - "Path": "python/fastapi/tests/test_security_api_key_header_optional.py", + "Filename": "test_security_http_digest_description.py", + "Path": "python/fastapi/tests/test_security_http_digest_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4172.44, - "Y": 109.84, - "Z": 981.35 + "X": 1453.83, + "Y": -185.8, + "Z": -1213.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206962,22 +205155,22 @@ "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, "Total LOC": 74, - "Coding LOC": 57, + "Coding LOC": 59, "Documentation LOC": 0, - "Structural Magnitude": 19.14, - "Control Flow Ratio": "6.9%", + "Structural Magnitude": 15.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.07 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.09%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.63%", + "API Exposure": "9.01%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206989,72 +205182,72 @@ }, "5. Function Analysis": [ { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 73 }, { "Function Name": "read_current_user", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 27 + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, + "Function Name": "test_security_http_digest_incorrect_scheme_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 73 + "Start Line": 32, + "End Line": 38 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_digest", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_digest_no_credentials", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 25, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 27, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -207064,14 +205257,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207089,7 +205282,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 42, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207108,13 +205301,13 @@ "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207138,7 +205331,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207147,27 +205340,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_query.py": { + "python/fastapi/tests/test_security_http_digest_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_query.py", - "Path": "python/fastapi/tests/test_security_api_key_query.py", + "Filename": "test_security_http_digest_optional.py", + "Path": "python/fastapi/tests/test_security_http_digest_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2354.3, - "Y": -126.75, - "Z": -1848.26 + "X": 3467.84, + "Y": 17.22, + "Z": -1806.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207176,23 +205367,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 54, + "Total LOC": 70, + "Coding LOC": 55, "Documentation LOC": 0, - "Structural Magnitude": 16.08, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 16.3, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.076 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.16%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.72%", + "API Exposure": "9.13%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -207204,72 +205395,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 70 + "Function Name": "read_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 17 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 43, + "End Line": 69 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_digest_incorrect_scheme_credentials", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 35, + "End Line": 40 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_digest", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_digest_no_credentials", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -207279,14 +205470,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207304,7 +205495,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 39, + "Structural Space Indentations": 41, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207329,7 +205520,7 @@ "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207353,7 +205544,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207362,14 +205553,13 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_query_description.py": { + "python/fastapi/tests/test_security_oauth2.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_query_description.py", - "Path": "python/fastapi/tests/test_security_api_key_query_description.py", + "Filename": "test_security_oauth2.py", + "Path": "python/fastapi/tests/test_security_oauth2.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -207380,9 +205570,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1179.69, - "Y": -246.01, - "Z": 934.61 + "X": 4008.77, + "Y": 84.04, + "Z": -302.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207391,23 +205581,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 59, - "Documentation LOC": 0, - "Structural Magnitude": 16.38, - "Control Flow Ratio": "0.0%", + "Total LOC": 281, + "Coding LOC": 249, + "Documentation LOC": 3, + "Structural Magnitude": 43.98, + "Control Flow Ratio": "4.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.029 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.65%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "9.6%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -207419,14 +205609,44 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 34, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 132, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 280 + }, + { + "Function Name": "test_strict_login_incorrect_grant_type", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 114, + "End Line": 130 + }, + { + "Function Name": "test_strict_login_no_data", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 64, + "End Line": 88 + }, + { + "Function Name": "test_strict_login_correct_grant_type", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 75 + "Start Line": 133, + "End Line": 146 }, { "Function Name": "get_current_user", @@ -207435,8 +205655,28 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 25, + "End Line": 27 + }, + { + "Function Name": "test_strict_login_no_grant_type", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 91, + "End Line": 103 + }, + { + "Function Name": "login", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 33 }, { "Function Name": "read_current_user", @@ -207445,63 +205685,73 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_oauth2", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 45, + "End Line": 48 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_oauth2_password_other_header", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 54 + }, + { + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 57, + "End Line": 61 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 69, + "Function Parameters": 11, + "Function/Method Declarations": 11, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Defensive Programming Constructs": 23, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 30, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207511,7 +205761,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 3, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -207519,7 +205769,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 223, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207535,16 +205785,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 20, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 20, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 3, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207568,7 +205818,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207578,26 +205828,26 @@ "fastapi.security", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_api_key_query_optional.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_query_optional.py", - "Path": "python/fastapi/tests/test_security_api_key_query_optional.py", + "Filename": "test_security_oauth2_authorization_code_bearer.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1132.28, - "Y": -238.25, - "Z": 139.75 + "X": 3221.73, + "Y": 16.75, + "Z": -1790.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207606,24 +205856,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 74, - "Coding LOC": 57, + "Total LOC": 83, + "Coding LOC": 66, "Documentation LOC": 0, - "Structural Magnitude": 19.14, - "Control Flow Ratio": "6.9%", + "Structural Magnitude": 18.52, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.07 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.09%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.63%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.39%", + "Concurrency Exposure": "27.67%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -207634,37 +205884,47 @@ }, "5. Function Analysis": [ { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 38, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 82 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "read_current_user", - "Structural Impact": 3.0, + "Function Name": "test_no_token", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 27 + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, + "Function Name": "test_incorrect_token", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 73 + "Start Line": 27, + "End Line": 30 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -207674,7 +205934,7 @@ "End Line": 36 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_token_with_whitespaces", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -207686,12 +205946,12 @@ ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 27, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 26, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -207699,8 +205959,8 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -207709,14 +205969,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207734,7 +205994,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 42, + "Structural Space Indentations": 51, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207751,15 +206011,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, - "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Core Var Decl": 10, + "Design Camel Case": 1, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207783,7 +206043,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207792,14 +206052,13 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_base.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_base.py", - "Path": "python/fastapi/tests/test_security_http_base.py", + "Filename": "test_security_oauth2_authorization_code_bearer_description.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -207809,9 +206068,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1069.81, - "Y": -288.47, - "Z": -949.05 + "X": 1804.4, + "Y": -175.77, + "Z": -1573.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207820,24 +206079,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 65, - "Coding LOC": 50, + "Total LOC": 81, + "Coding LOC": 66, "Documentation LOC": 0, - "Structural Magnitude": 14.5, + "Structural Magnitude": 16.42, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.04 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.76%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.29%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.83%", + "Concurrency Exposure": "27.67%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -207849,63 +206108,63 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Structural Impact": 3.0, + "Lines of Code (LOC)": 39, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 64 + "Start Line": 42, + "End Line": 80 }, { - "Function Name": "read_current_user", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_security_http_base", + "Function Name": "test_no_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "test_security_http_base_with_whitespaces", + "Function Name": "test_incorrect_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 30, + "End Line": 33 }, { - "Function Name": "test_security_http_base_no_credentials", + "Function Name": "test_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 35 + "Start Line": 36, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 24, + "Sequential Logic Declarations": 23, "Function Parameters": 5, "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 9, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -207913,8 +206172,8 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -207948,7 +206207,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 37, + "Structural Space Indentations": 52, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207965,13 +206224,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, - "Design Camel Case": 0, - "Design Snake Case": 7, + "Core Var Decl": 12, + "Design Camel Case": 2, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -208004,15 +206263,15 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.http", + "fastapi.security", "fastapi.testclient", "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_base_description.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py": { "1. Artifact Identity": { - "Filename": "test_security_http_base_description.py", - "Path": "python/fastapi/tests/test_security_http_base_description.py", + "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -208022,9 +206281,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1124.99, - "Y": -276.12, - "Z": 1182.36 + "X": 2092.61, + "Y": -166.64, + "Z": 907.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208033,24 +206292,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 65, - "Coding LOC": 52, - "Documentation LOC": 0, - "Structural Magnitude": 12.64, - "Control Flow Ratio": "0.0%", + "Total LOC": 198, + "Coding LOC": 162, + "Documentation LOC": 1, + "Structural Magnitude": 48.84, + "Control Flow Ratio": "12.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.224 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "5.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.55%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.92%", + "Concurrency Exposure": "67.41%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -208062,78 +206321,158 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, + "Structural Impact": 6.5, + "Lines of Code (LOC)": 99, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 99, + "End Line": 197 + }, + { + "Function Name": "test_read_with_oauth2_scheme", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 71, + "End Line": 76 + }, + { + "Function Name": "test_read_with_get_token", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 79, + "End Line": 84 + }, + { + "Function Name": "create_item", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 64 + "Start Line": 54, + "End Line": 57 }, { - "Function Name": "read_current_user", + "Function Name": "get_token", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "test_security_http_base", + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "test_root", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 65, + "End Line": 68 }, { - "Function Name": "test_security_http_base_no_credentials", + "Function Name": "test_read_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 87, + "End Line": 90 + }, + { + "Function Name": "test_create_token", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 96 + }, + { + "Function Name": "root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 26, + "End Line": 27 + }, + { + "Function Name": "read_with_oauth2_scheme", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 35 + }, + { + "Function Name": "read_with_get_token", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 41, + "Function Parameters": 12, + "Function/Method Declarations": 12, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, + "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 4, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208151,7 +206490,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 40, + "Structural Space Indentations": 131, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208167,16 +206506,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 20, + "Design Camel Case": 2, + "Design Snake Case": 16, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208200,22 +206539,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.http", + "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "typing" ] }, - "python/fastapi/tests/test_security_http_base_optional.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py": { "1. Artifact Identity": { - "Filename": "test_security_http_base_optional.py", - "Path": "python/fastapi/tests/test_security_http_base_optional.py", + "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -208225,9 +206565,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 801.09, - "Y": -323.28, - "Z": 21.98 + "X": 4840.95, + "Y": 232.11, + "Z": 126.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208236,24 +206576,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 62, - "Coding LOC": 49, - "Documentation LOC": 0, - "Structural Magnitude": 13.88, - "Control Flow Ratio": "4.5%", + "Total LOC": 81, + "Coding LOC": 64, + "Documentation LOC": 1, + "Structural Magnitude": 15.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.084 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.26%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.65%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.13%", + "Concurrency Exposure": "48.94%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -208264,54 +206604,54 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", + "Function Name": "test_openapi_schema", "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 17 + "Lines of Code (LOC)": 43, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 80 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "get_token", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 61 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_security_http_base", + "Function Name": "test_read_admin", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 32, + "End Line": 35 }, { - "Function Name": "test_security_http_base_no_credentials", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_admin", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Sequential Logic Declarations": 21, "Function Parameters": 4, "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -208319,24 +206659,24 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208354,7 +206694,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 36, + "Structural Space Indentations": 50, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208371,15 +206711,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Core Var Decl": 9, + "Design Camel Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208403,34 +206743,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.http", + "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "typing" ] }, - "python/fastapi/tests/test_security_http_basic_optional.py": { + "python/fastapi/tests/test_security_oauth2_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_http_basic_optional.py", - "Path": "python/fastapi/tests/test_security_http_basic_optional.py", + "Filename": "test_security_oauth2_optional.py", + "Path": "python/fastapi/tests/test_security_oauth2_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2821.36, - "Y": -15.81, - "Z": 1573.11 + "X": 3941.76, + "Y": 144.57, + "Z": 205.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208439,23 +206781,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 62, + "Total LOC": 282, + "Coding LOC": 253, "Documentation LOC": 0, - "Structural Magnitude": 18.84, - "Control Flow Ratio": "3.1%", + "Structural Magnitude": 47.06, + "Control Flow Ratio": "6.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.069 + "Raw Cognitive Density": 0.038 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.07%", + "Cognitive Load Exposure": "2.74%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.46%", + "API Exposure": "9.59%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -208467,99 +206809,149 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", + "Function Name": "test_openapi_schema", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 132, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 150, + "End Line": 281 + }, + { + "Function Name": "test_strict_login_incorrect_grant_type", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 115, + "End Line": 131 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 25, + "End Line": 29 + }, + { + "Function Name": "read_users_me", "Structural Impact": 3.0, "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 1, "Control Flow Ratio": "25.0%", - "Start Line": 14, - "End Line": 17 + "Start Line": 38, + "End Line": 41 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "test_strict_login_no_data", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 79 + "Start Line": 65, + "End Line": 89 }, { - "Function Name": "test_security_http_basic_invalid_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_login_correct_data", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 41 + "Start Line": 134, + "End Line": 147 }, { - "Function Name": "test_security_http_basic_non_basic_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_login_no_grant_type", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, + "Start Line": 92, + "End Line": 104 + }, + { + "Function Name": "login", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 34 + }, + { + "Function Name": "test_security_oauth2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 47, "End Line": 50 }, { - "Function Name": "test_security_http_basic", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 53, + "End Line": 56 }, { - "Function Name": "test_security_http_basic_no_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 59, + "End Line": 62 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 12, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 70, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 22, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 17, + "Unit Test Assertions": 29, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208569,7 +206961,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 3, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -208577,7 +206969,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 227, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208593,16 +206985,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 24, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 1, + "Design Snake Case": 21, + "Design Pascal Case": 3, "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Short Vars": 3, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208626,35 +207018,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "base64", "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_http_basic_realm.py": { + "python/fastapi/tests/test_security_oauth2_optional_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_basic_realm.py", - "Path": "python/fastapi/tests/test_security_http_basic_realm.py", + "Filename": "test_security_oauth2_optional_description.py", + "Path": "python/fastapi/tests/test_security_oauth2_optional_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1398.74, - "Y": -245.26, - "Z": -1122.84 + "X": 2270.84, + "Y": -91.02, + "Z": -1152.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208663,23 +207057,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 79, - "Coding LOC": 61, + "Total LOC": 284, + "Coding LOC": 255, "Documentation LOC": 0, - "Structural Magnitude": 17.32, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 47.2, + "Control Flow Ratio": "6.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.037 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.73%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.49%", + "API Exposure": "9.58%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -208692,98 +207086,148 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Structural Impact": 7.7, + "Lines of Code (LOC)": 133, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 78 + "Start Line": 151, + "End Line": 283 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_strict_login_incorrect_grant_type", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 116, + "End Line": 132 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 26, + "End Line": 30 + }, + { + "Function Name": "read_users_me", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 39, + "End Line": 42 + }, + { + "Function Name": "test_strict_login_None", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 66, + "End Line": 90 }, { - "Function Name": "test_security_http_basic_invalid_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_login_correct_correct_grant_type", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 148 + }, + { + "Function Name": "test_strict_login_no_grant_type", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 105 + }, + { + "Function Name": "login", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", "Start Line": 34, - "End Line": 40 + "End Line": 35 }, { - "Function Name": "test_security_http_basic_non_basic_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_security_oauth2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 49 + "Start Line": 48, + "End Line": 51 }, { - "Function Name": "test_security_http_basic", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 54, + "End Line": 57 }, { - "Function Name": "test_security_http_basic_no_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 31 + "Start Line": 60, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 13, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 70, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 22, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 29, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208793,7 +207237,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 3, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -208801,7 +207245,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 229, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208817,16 +207261,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 25, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 1, + "Design Snake Case": 22, + "Design Pascal Case": 3, "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Short Vars": 3, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208850,23 +207294,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "base64", "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_http_basic_realm_description.py": { + "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_http_basic_realm_description.py", - "Path": "python/fastapi/tests/test_security_http_basic_realm_description.py", + "Filename": "test_security_oauth2_password_bearer_optional.py", + "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -208876,9 +207321,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2221.67, - "Y": -161.29, - "Z": -1847.6 + "X": 4671.62, + "Y": 155.68, + "Z": -201.27 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208887,24 +207332,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 85, - "Coding LOC": 67, + "Total LOC": 71, + "Coding LOC": 56, "Documentation LOC": 0, - "Structural Magnitude": 17.74, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 17.32, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.15 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "4.16%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.34%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.1%", + "Concurrency Exposure": "29.89%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -208915,83 +207360,73 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 84 - }, - { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "read_items", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, + "Control Flow Ratio": "25.0%", + "Start Line": 12, "End Line": 15 }, { - "Function Name": "test_security_http_basic_invalid_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 32, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 40 + "Start Line": 39, + "End Line": 70 }, { - "Function Name": "test_security_http_basic_non_basic_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_no_token", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 49 + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "test_security_http_basic", + "Function Name": "test_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 27, + "End Line": 30 }, { - "Function Name": "test_security_http_basic_no_credentials", + "Function Name": "test_incorrect_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 31 + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 13, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -209000,7 +207435,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -209025,7 +207460,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 52, + "Structural Space Indentations": 43, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209042,15 +207477,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 11, + "Design Snake Case": 7, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -209074,23 +207509,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "base64", "fastapi", "fastapi.security", "fastapi.testclient", "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_bearer.py": { + "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_bearer.py", - "Path": "python/fastapi/tests/test_security_http_bearer.py", + "Filename": "test_security_oauth2_password_bearer_optional_description.py", + "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -209100,9 +207534,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3411.6, - "Y": 7.35, - "Z": 1930.46 + "X": 3747.49, + "Y": 77.86, + "Z": -1436.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209111,24 +207545,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 66, - "Coding LOC": 51, + "Total LOC": 76, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 14.52, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 17.52, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.138 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.97%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.26%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.96%", + "Concurrency Exposure": "28.7%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -209139,64 +207573,64 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 65 + "Function Name": "read_items", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 19 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 43, + "End Line": 75 }, { - "Function Name": "test_security_http_bearer", + "Function Name": "test_no_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "test_security_http_bearer_no_credentials", + "Function Name": "test_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 31, + "End Line": 34 }, { - "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", + "Function Name": "test_incorrect_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 36 + "Start Line": 37, + "End Line": 40 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, "Function Parameters": 5, "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -209204,8 +207638,8 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -209239,7 +207673,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 38, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209256,13 +207690,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, - "Design Camel Case": 0, - "Design Snake Case": 7, + "Core Var Decl": 11, + "Design Camel Case": 1, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -209300,22 +207734,23 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_bearer_description.py": { + "python/fastapi/tests/test_security_openid_connect.py": { "1. Artifact Identity": { - "Filename": "test_security_http_bearer_description.py", - "Path": "python/fastapi/tests/test_security_http_bearer_description.py", + "Filename": "test_security_openid_connect.py", + "Path": "python/fastapi/tests/test_security_openid_connect.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3060.27, - "Y": -30.31, - "Z": -1963.96 + "X": 3737.29, + "Y": 54.03, + "Z": 1597.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209324,10 +207759,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 72, - "Coding LOC": 57, + "Total LOC": 80, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 14.94, + "Structural Magnitude": 18.52, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -209340,7 +207775,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.07%", + "API Exposure": "10.0%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209353,13 +207788,23 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, + "Structural Impact": 2.6, + "Lines of Code (LOC)": 32, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 71 + "Start Line": 48, + "End Line": 79 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 18 }, { "Function Name": "read_current_user", @@ -209368,56 +207813,56 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_security_http_bearer", + "Function Name": "test_security_oauth2", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "test_security_http_bearer_no_credentials", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 35, + "End Line": 38 }, { - "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 36 + "Start Line": 41, + "End Line": 45 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Sequential Logic Declarations": 29, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -209427,14 +207872,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -209452,7 +207897,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 45, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209469,13 +207914,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -209501,34 +207946,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", + "fastapi.security.open_id_connect_url", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_security_http_bearer_optional.py": { + "python/fastapi/tests/test_security_openid_connect_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_bearer_optional.py", - "Path": "python/fastapi/tests/test_security_http_bearer_optional.py", + "Filename": "test_security_openid_connect_description.py", + "Path": "python/fastapi/tests/test_security_openid_connect_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4648.4, - "Y": 168.65, - "Z": -468.02 + "X": 4625.41, + "Y": 165.24, + "Z": 331.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209537,23 +207984,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 68, - "Coding LOC": 53, + "Total LOC": 83, + "Coding LOC": 64, "Documentation LOC": 0, - "Structural Magnitude": 16.16, - "Control Flow Ratio": "4.0%", + "Structural Magnitude": 18.68, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.079 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.2%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.19%", + "API Exposure": "9.92%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209565,72 +208012,82 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 82 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 17 + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 20 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 67 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "test_security_http_bearer", + "Function Name": "test_security_oauth2", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 31, + "End Line": 34 }, { - "Function Name": "test_security_http_bearer_no_credentials", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 37, + "End Line": 40 }, { - "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 43, + "End Line": 47 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 29, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -209640,14 +208097,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -209665,7 +208122,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 39, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209682,9 +208139,9 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, - "Design Camel Case": 0, - "Design Snake Case": 7, + "Core Var Decl": 11, + "Design Camel Case": 1, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, @@ -209714,34 +208171,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", + "fastapi.security.open_id_connect_url", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_security_http_digest.py": { + "python/fastapi/tests/test_security_openid_connect_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_http_digest.py", - "Path": "python/fastapi/tests/test_security_http_digest.py", + "Filename": "test_security_openid_connect_optional.py", + "Path": "python/fastapi/tests/test_security_openid_connect_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2255.96, - "Y": -132.11, - "Z": 1996.46 + "X": 1205.04, + "Y": -230.44, + "Z": -148.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209750,23 +208209,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 68, - "Coding LOC": 53, + "Total LOC": 83, + "Coding LOC": 64, "Documentation LOC": 0, - "Structural Magnitude": 14.76, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 21.58, + "Control Flow Ratio": "6.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.062 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.19%", + "API Exposure": "9.92%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209778,72 +208237,82 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 67 + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 20 }, { "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 24, + "End Line": 27 + }, + { + "Function Name": "test_openapi_schema", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 32, + "Control Flow Branches": 0, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 51, + "End Line": 82 }, { - "Function Name": "test_security_http_digest_incorrect_scheme_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_security_oauth2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 38 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "test_security_http_digest", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 39, + "End Line": 42 }, { - "Function Name": "test_security_http_digest_no_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 45, + "End Line": 48 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 30, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -209853,14 +208322,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -209878,7 +208347,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 40, + "Structural Space Indentations": 48, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209895,13 +208364,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Core Var Decl": 10, "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -209927,22 +208396,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", + "fastapi.security.open_id_connect_url", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_security_http_digest_description.py": { + "python/fastapi/tests/test_security_scopes.py": { "1. Artifact Identity": { - "Filename": "test_security_http_digest_description.py", - "Path": "python/fastapi/tests/test_security_http_digest_description.py", + "Filename": "test_security_scopes.py", + "Path": "python/fastapi/tests/test_security_scopes.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -209952,9 +208422,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1453.83, - "Y": -185.8, - "Z": -1213.86 + "X": 1327.08, + "Y": -258.7, + "Z": -900.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209963,23 +208433,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 74, - "Coding LOC": 59, + "Total LOC": 46, + "Coding LOC": 31, "Documentation LOC": 0, - "Structural Magnitude": 15.18, + "Structural Magnitude": 20.22, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.065 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.03%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.01%", + "API Exposure": "11.41%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209991,78 +208461,98 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, + "Function Name": "app_fixture", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 73 + "Start Line": 14, + "End Line": 31 }, { - "Function Name": "read_current_user", + "Function Name": "test_security_scopes_dependency_called_once", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 45 + }, + { + "Function Name": "endpoint", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 29 + }, + { + "Function Name": "get_user", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "test_security_http_digest_incorrect_scheme_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "client_fixture", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 38 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "test_security_http_digest", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "call_counter_fixture", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "test_security_http_digest_no_credentials", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_db", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 15, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Sequential Logic Declarations": 22, + "Function Parameters": 7, + "Function/Method Declarations": 7, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -210073,7 +208563,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -210091,7 +208581,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 19, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210107,14 +208597,14 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 3, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 3, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -210147,15 +208637,15 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_security_http_digest_optional.py": { + "python/fastapi/tests/test_security_scopes_dont_propagate.py": { "1. Artifact Identity": { - "Filename": "test_security_http_digest_optional.py", - "Path": "python/fastapi/tests/test_security_http_digest_optional.py", + "Filename": "test_security_scopes_dont_propagate.py", + "Path": "python/fastapi/tests/test_security_scopes_dont_propagate.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -210165,9 +208655,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3467.84, - "Y": 17.22, - "Z": -1806.78 + "X": 1092.62, + "Y": -293.19, + "Z": 370.19 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210176,24 +208666,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 70, - "Coding LOC": 55, - "Documentation LOC": 0, - "Structural Magnitude": 16.3, - "Control Flow Ratio": "4.0%", + "Total LOC": 45, + "Coding LOC": 27, + "Documentation LOC": 1, + "Structural Magnitude": 17.54, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.076 + "Raw Cognitive Density": 0.407 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.16%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "10.13%", + "Error & Exception Exposure": "67.04%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.13%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.16%", + "Concurrency Exposure": "94.13%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -210204,78 +208694,78 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 17 + "Function Name": "dep3", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 22 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "get_scopes", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 69 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "test_security_http_digest_incorrect_scheme_credentials", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "security1", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 40 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "test_security_http_digest", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "security2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "test_security_http_digest_no_credentials", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_security_scopes_dont_propagate", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 38, + "End Line": 44 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 19, "Function Parameters": 5, "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -210304,7 +208794,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 41, + "Structural Space Indentations": 13, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210321,15 +208811,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 6, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -210362,26 +208852,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "typing" ] }, - "python/fastapi/tests/test_security_oauth2.py": { + "python/fastapi/tests/test_security_scopes_sub_dependency.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2.py", - "Path": "python/fastapi/tests/test_security_oauth2.py", + "Filename": "test_security_scopes_sub_dependency.py", + "Path": "python/fastapi/tests/test_security_scopes_sub_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4008.77, - "Y": 84.04, - "Z": -302.56 + "X": 1589.61, + "Y": -151.34, + "Z": 455.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210390,23 +208879,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 281, - "Coding LOC": 249, - "Documentation LOC": 3, - "Structural Magnitude": 43.98, - "Control Flow Ratio": "4.2%", + "Total LOC": 108, + "Coding LOC": 88, + "Documentation LOC": 1, + "Structural Magnitude": 30.76, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.029 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.65%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.6%", + "API Exposure": "10.22%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -210418,149 +208907,129 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.6, - "Lines of Code (LOC)": 132, + "Function Name": "app_fixture", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 47, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 280 - }, - { - "Function Name": "test_strict_login_incorrect_grant_type", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 114, - "End Line": 130 - }, - { - "Function Name": "test_strict_login_no_data", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 0, - "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 88 + "Start Line": 23, + "End Line": 69 }, { - "Function Name": "test_strict_login_correct_grant_type", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Function Name": "test_security_scopes_sub_dependency_caching", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 31, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 133, - "End Line": 146 + "Start Line": 77, + "End Line": 107 }, { "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Structural Impact": 2.2, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 28, + "End Line": 37 }, { - "Function Name": "test_strict_login_no_grant_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "path_operation", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 103 + "Start Line": 60, + "End Line": 67 }, { - "Function Name": "login", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_user_me", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 + "Start Line": 39, + "End Line": 46 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_user_items", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 + "Start Line": 48, + "End Line": 55 }, { - "Function Name": "test_security_oauth2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "client_fixture", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 48 + "Start Line": 73, + "End Line": 74 }, { - "Function Name": "test_security_oauth2_password_other_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "call_counts_fixture", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 54 + "Start Line": 13, + "End Line": 19 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_db_session", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 61 + "Start Line": 24, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 69, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 23, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 32, + "Function Parameters": 9, + "Function/Method Declarations": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 30, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 4, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -210570,7 +209039,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 3, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -210578,7 +209047,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 223, + "Structural Space Indentations": 75, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210594,16 +209063,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 20, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 20, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 3, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -210627,7 +209096,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -210636,27 +209105,27 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py": { + "python/fastapi/tests/test_serialize_response.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py", + "Filename": "test_serialize_response.py", + "Path": "python/fastapi/tests/test_serialize_response.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3221.73, - "Y": 16.75, - "Z": -1790.39 + "X": 4453.78, + "Y": 144.19, + "Z": -822.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210665,24 +209134,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 66, + "Total LOC": 56, + "Coding LOC": 38, "Documentation LOC": 0, - "Structural Magnitude": 18.52, + "Structural Magnitude": 18.06, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.053 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.89%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.39%", - "Concurrency Exposure": "27.67%", + "API Exposure": "11.86%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -210693,92 +209162,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 38, + "Function Name": "test_validlist", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 82 + "Start Line": 48, + "End Line": 55 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_validlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 25, + "End Line": 30 }, { - "Function Name": "test_no_token", + "Function Name": "test_valid", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 36, + "End Line": 39 }, { - "Function Name": "test_incorrect_token", + "Function Name": "test_coerce", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 30 + "Start Line": 42, + "End Line": 45 }, { - "Function Name": "test_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_valid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "test_token_with_whitespaces", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_coerce", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 20, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Sequential Logic Declarations": 19, "Function Parameters": 6, "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -210803,7 +209272,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 51, + "Structural Space Indentations": 23, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210821,9 +209290,9 @@ "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 10, - "Design Camel Case": 1, + "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -210852,22 +209321,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "pydantic" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py": { + "python/fastapi/tests/test_serialize_response_dataclass.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer_description.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py", + "Filename": "test_serialize_response_dataclass.py", + "Path": "python/fastapi/tests/test_serialize_response_dataclass.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -210877,9 +209345,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1804.4, - "Y": -175.77, - "Z": -1573.56 + "X": 3306.83, + "Y": -6.31, + "Z": 1246.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210888,10 +209356,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 81, - "Coding LOC": 66, + "Total LOC": 194, + "Coding LOC": 159, "Documentation LOC": 0, - "Structural Magnitude": 16.42, + "Structural Magnitude": 46.18, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -210904,8 +209372,8 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.83%", - "Concurrency Exposure": "27.67%", + "API Exposure": "11.89%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -210916,27 +209384,107 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 39, + "Function Name": "test_validlist", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 80 + "Start Line": 110, + "End Line": 132 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_objectlist", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 135, + "End Line": 157 }, { - "Function Name": "test_no_token", + "Function Name": "test_no_response_model_objectlist", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 171, + "End Line": 193 + }, + { + "Function Name": "get_validlist", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 46 + }, + { + "Function Name": "test_valid", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 85 + }, + { + "Function Name": "test_object", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 88, + "End Line": 96 + }, + { + "Function Name": "test_coerce", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 99, + "End Line": 107 + }, + { + "Function Name": "test_no_response_model_object", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 160, + "End Line": 168 + }, + { + "Function Name": "get_objectlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 55 + }, + { + "Function Name": "get_no_response_model_objectlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 71 + }, + { + "Function Name": "get_object", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -210946,48 +209494,58 @@ "End Line": 27 }, { - "Function Name": "test_incorrect_token", + "Function Name": "get_no_response_model_object", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 59, + "End Line": 62 }, { - "Function Name": "test_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_valid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 39 + "Start Line": 19, + "End Line": 20 + }, + { + "Function Name": "get_coerce", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Sequential Logic Declarations": 37, + "Function Parameters": 14, + "Function/Method Declarations": 14, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 22, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 14, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -211016,7 +209574,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 52, + "Structural Space Indentations": 130, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211032,16 +209590,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, - "Design Camel Case": 2, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 18, + "Design Camel Case": 0, + "Design Snake Case": 16, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211071,28 +209629,29 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dataclasses", + "datetime", "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py": { + "python/fastapi/tests/test_serialize_response_model.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py", + "Filename": "test_serialize_response_model.py", + "Path": "python/fastapi/tests/test_serialize_response_model.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2092.61, - "Y": -166.64, - "Z": 907.1 + "X": 2627.65, + "Y": -31.07, + "Z": 1158.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211101,24 +209660,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 198, - "Coding LOC": 162, - "Documentation LOC": 1, - "Structural Magnitude": 48.84, - "Control Flow Ratio": "12.8%", + "Total LOC": 153, + "Coding LOC": 115, + "Documentation LOC": 0, + "Structural Magnitude": 47.5, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.224 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.44%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.92%", - "Concurrency Exposure": "67.41%", + "API Exposure": "12.94%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211129,77 +209688,97 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 99, - "Control Flow Branches": 2, + "Function Name": "test_coerce", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 99, - "End Line": 197 + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 100 }, { - "Function Name": "test_read_with_oauth2_scheme", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_validlist", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 71, - "End Line": 76 + "Control Flow Ratio": "0.0%", + "Start Line": 103, + "End Line": 110 }, { - "Function Name": "test_read_with_get_token", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_validdict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 79, - "End Line": 84 + "Control Flow Ratio": "0.0%", + "Start Line": 113, + "End Line": 120 }, { - "Function Name": "create_item", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_validlist_exclude_unset", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 135, + "End Line": 142 }, { - "Function Name": "get_token", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_validdict_exclude_unset", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 145, + "End Line": 152 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_validlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 + "Start Line": 25, + "End Line": 30 }, { - "Function Name": "test_root", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_validdict", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 65, + "Start Line": 34, + "End Line": 39 + }, + { + "Function Name": "get_validlist_exclude_unset", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 63, "End Line": 68 }, { - "Function Name": "test_read_token", + "Function Name": "get_validdict_exclude_unset", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 81 + }, + { + "Function Name": "test_valid", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -211209,79 +209788,99 @@ "End Line": 90 }, { - "Function Name": "test_create_token", + "Function Name": "test_valid_exclude_unset", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 96 + "Start Line": 123, + "End Line": 126 }, { - "Function Name": "root", + "Function Name": "test_coerce_exclude_unset", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 129, + "End Line": 132 + }, + { + "Function Name": "get_valid", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "read_with_oauth2_scheme", + "Function Name": "get_coerce", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "read_with_get_token", + "Function Name": "get_valid_exclude_unset", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 + "Start Line": 45, + "End Line": 46 + }, + { + "Function Name": "get_coerce_exclude_unset", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 55 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 41, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 39, + "Function Parameters": 16, + "Function/Method Declarations": 16, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, + "Exposed API / Public Exports": 25, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 16, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -211299,7 +209898,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, + "Structural Space Indentations": 81, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211315,16 +209914,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 20, - "Design Camel Case": 2, - "Design Snake Case": 16, + "Vectorized Math & Tensor Operations": 7, + "Core Var Decl": 24, + "Design Camel Case": 0, + "Design Snake Case": 22, "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 3, "Duplicate Logic": 0, - "Orphaned Logic": 11, + "Orphaned Logic": 16, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211348,35 +209947,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic", + "starlette.testclient" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py": { + "python/fastapi/tests/test_skip_defaults.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", + "Filename": "test_skip_defaults.py", + "Path": "python/fastapi/tests/test_skip_defaults.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, Model", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4840.95, - "Y": 232.11, - "Z": 126.13 + "X": 2318.46, + "Y": -82.62, + "Z": -1385.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211385,10 +209983,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 81, - "Coding LOC": 64, - "Documentation LOC": 1, - "Structural Magnitude": 15.18, + "Total LOC": 94, + "Coding LOC": 62, + "Documentation LOC": 0, + "Structural Magnitude": 31.24, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -211398,11 +209996,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "23.28%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.13%", - "Concurrency Exposure": "48.94%", + "API Exposure": "13.16%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211413,79 +210011,139 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 43, + "Function Name": "get_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 + }, + { + "Function Name": "get_exclude_unset", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 80 + "End Line": 39 }, { - "Function Name": "get_token", - "Structural Impact": 1.5, + "Function Name": "get_exclude_defaults", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_read_admin", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_exclude_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 35 + "Start Line": 54, + "End Line": 55 }, { - "Function Name": "read_admin", + "Function Name": "get_exclude_unset_none", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 64, + "End Line": 65 + }, + { + "Function Name": "test_return_defaults", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 73 + }, + { + "Function Name": "test_return_exclude_unset", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 78 + }, + { + "Function Name": "test_return_exclude_defaults", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 81, + "End Line": 83 + }, + { + "Function Name": "test_return_exclude_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 86, + "End Line": 88 + }, + { + "Function Name": "test_return_exclude_unset_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 91, + "End Line": 93 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 30, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 19, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -211503,7 +210161,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 50, + "Structural Space Indentations": 34, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211519,16 +210177,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, - "Design Camel Case": 2, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 23, + "Design Camel Case": 0, + "Design Snake Case": 18, + "Design Pascal Case": 5, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 3, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 10, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211552,23 +210210,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_security_oauth2_optional.py": { + "python/fastapi/tests/test_sse.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_optional.py", - "Path": "python/fastapi/tests/test_security_oauth2_optional.py", + "Filename": "test_sse.py", + "Path": "python/fastapi/tests/test_sse.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -211579,9 +210235,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3941.76, - "Y": 144.57, - "Z": 205.41 + "X": 2291.84, + "Y": -92.97, + "Z": 105.58 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211590,24 +210246,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 282, - "Coding LOC": 253, - "Documentation LOC": 0, - "Structural Magnitude": 47.06, - "Control Flow Ratio": "6.7%", + "Total LOC": 319, + "Coding LOC": 215, + "Documentation LOC": 12, + "Structural Magnitude": 154.2, + "Control Flow Ratio": "22.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.038 + "Raw Cognitive Density": 0.423 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.74%", + "Cognitive Load Exposure": "6.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.59%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.62%", + "Concurrency Exposure": "95.93%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211618,149 +210274,359 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.6, - "Lines of Code (LOC)": 132, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 150, - "End Line": 281 + "Function Name": "test_async_generator_with_model", + "Structural Impact": 9.4, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 108, + "End Line": 126 }, { - "Function Name": "test_strict_login_incorrect_grant_type", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 1, + "Function Name": "test_keepalive_ping_async", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 3, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 115, - "End Line": 131 + "Control Flow Ratio": "37.5%", + "Start Line": 290, + "End Line": 299 }, { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "test_keepalive_ping_sync", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 3, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 25, - "End Line": 29 + "Control Flow Ratio": "37.5%", + "Start Line": 302, + "End Line": 310 }, { - "Function Name": "read_users_me", - "Structural Impact": 3.0, + "Function Name": "test_sync_generator_with_model", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 129, + "End Line": 137 + }, + { + "Function Name": "test_async_generator_no_annotation", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 140, + "End Line": 148 + }, + { + "Function Name": "test_sync_generator_no_annotation", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 151, + "End Line": 159 + }, + { + "Function Name": "test_post_method_sse", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 172, + "End Line": 180 + }, + { + "Function Name": "test_dict_items", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 162, + "End Line": 169 + }, + { + "Function Name": "test_sse_on_router_included_in_app", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 258, + "End Line": 265 + }, + { + "Function Name": "test_data_and_raw_data_mutually_exclusive", + "Structural Impact": 3.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 252, + "End Line": 255 + }, + { + "Function Name": "test_server_sent_event_null_id_rejected", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 219, + "End Line": 221 + }, + { + "Function Name": "test_sse_events_with_fields", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 38, - "End Line": 41 + "Control Flow Ratio": "0.0%", + "Start Line": 183, + "End Line": 199 }, { - "Function Name": "test_strict_login_no_data", + "Function Name": "test_raw_data_sent_without_json_encoding", "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 234, + "End Line": 249 + }, + { + "Function Name": "sse_items", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 30, + "End Line": 32 + }, + { + "Function Name": "sse_items_no_annotation", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 41, + "End Line": 43 + }, + { + "Function Name": "sse_items_dict", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 52, + "End Line": 54 + }, + { + "Function Name": "sse_items_post", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 78, + "End Line": 80 + }, + { + "Function Name": "client_fixture", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 103, + "End Line": 105 + }, + { + "Function Name": "test_server_sent_event_negative_retry_rejected", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 224, + "End Line": 226 + }, + { + "Function Name": "test_server_sent_event_float_retry_rejected", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 229, + "End Line": 231 + }, + { + "Function Name": "test_mixed_plain_and_sse_events", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 89 + "Start Line": 202, + "End Line": 209 }, { - "Function Name": "test_strict_login_correct_data", + "Function Name": "test_string_data_json_encoded", "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 134, - "End Line": 147 + "Start Line": 212, + "End Line": 216 }, { - "Function Name": "test_strict_login_no_grant_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_no_keepalive_when_fast", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 313, + "End Line": 318 + }, + { + "Function Name": "slow_async_stream", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 104 + "Start Line": 275, + "End Line": 280 }, { - "Function Name": "login", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "sse_items_event", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 58, + "End Line": 62 }, { - "Function Name": "test_security_oauth2", + "Function Name": "sse_items_mixed", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 50 + "Start Line": 66, + "End Line": 69 }, { - "Function Name": "test_security_oauth2_password_other_header", + "Function Name": "sse_items_raw", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 56 + "Start Line": 84, + "End Line": 87 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", + "Function Name": "slow_sync_stream", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 + "Start Line": 284, + "End Line": 287 + }, + { + "Function Name": "sse_items_sync", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 + }, + { + "Function Name": "sse_items_sync_no_annotation", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 47, + "End Line": 48 + }, + { + "Function Name": "sse_items_string", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 74 + }, + { + "Function Name": "stream_events", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 94, + "End Line": 96 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 70, - "Function Parameters": 11, - "Function/Method Declarations": 11, + "Control Flow Branches": 34, + "Sequential Logic Declarations": 118, + "Function Parameters": 32, + "Function/Method Declarations": 32, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 22, + "Defensive Programming Constructs": 59, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 44, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 29, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 10, + "Unit Test Assertions": 84, + "Asynchronous/Concurrent Execution": 15, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Decorators and Annotations": 14, + "Generic Type Abstractions": 4, + "Collection Iterators / Comprehensions": 9, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 2, + "Module Dependencies (Imports)": 10, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -211769,16 +210635,16 @@ "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 3, + "Thread Sleeps & Blocking Waits": 2, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 227, + "Structural Space Indentations": 152, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211786,24 +210652,24 @@ "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 0, + "Time Date Logic": 1, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 24, + "Lazy Evaluation & Generators (O(1) Memory)": 24, + "Vectorized Math & Tensor Operations": 12, + "Core Var Decl": 50, "Design Camel Case": 0, - "Design Snake Case": 21, - "Design Pascal Case": 3, + "Design Snake Case": 49, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 3, - "Design Long Vars": 1, + "Design Short Vars": 0, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 32, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211811,7 +210677,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 2, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -211827,37 +210693,40 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 10, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "asyncio", + "collections.abc", "fastapi", - "fastapi.security", + "fastapi.responses", + "fastapi.routing", + "fastapi.sse", "fastapi.testclient", - "inline_snapshot", "pydantic", - "pytest" + "pytest", + "time" ] }, - "python/fastapi/tests/test_security_oauth2_optional_description.py": { + "python/fastapi/tests/test_starlette_exception.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_optional_description.py", - "Path": "python/fastapi/tests/test_security_oauth2_optional_description.py", + "Filename": "test_starlette_exception.py", + "Path": "python/fastapi/tests/test_starlette_exception.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2270.84, - "Y": -91.02, - "Z": -1152.96 + "X": 1773.64, + "Y": -138.55, + "Z": -12.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211866,24 +210735,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 284, - "Coding LOC": 255, + "Total LOC": 210, + "Coding LOC": 183, "Documentation LOC": 0, - "Structural Magnitude": 47.2, - "Control Flow Ratio": "6.7%", + "Structural Magnitude": 47.76, + "Control Flow Ratio": "8.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.037 + "Raw Cognitive Density": 0.104 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.73%", + "Cognitive Load Exposure": "3.51%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.58%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.36%", + "Concurrency Exposure": "42.52%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211895,148 +210764,148 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 7.7, - "Lines of Code (LOC)": 133, - "Control Flow Branches": 0, + "Structural Impact": 8.5, + "Lines of Code (LOC)": 130, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 151, - "End Line": 283 + "Control Flow Ratio": "5.9%", + "Start Line": 80, + "End Line": 209 }, { - "Function Name": "test_strict_login_incorrect_grant_type", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 17, + "Function Name": "read_item", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 8, "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 116, - "End Line": 132 + "Control Flow Ratio": "33.3%", + "Start Line": 12, + "End Line": 19 }, { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, + "Function Name": "read_starlette_item", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 26, - "End Line": 30 + "Control Flow Ratio": "33.3%", + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "read_users_me", - "Structural Impact": 3.0, + "Function Name": "test_no_body_status_code_with_detail_exception_handlers", + "Structural Impact": 2.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 1, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 74, + "End Line": 77 }, { - "Function Name": "test_strict_login_None", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, + "Function Name": "test_get_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 90 + "Start Line": 42, + "End Line": 45 }, { - "Function Name": "test_strict_login_correct_correct_grant_type", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Function Name": "test_get_item_not_found", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 148 + "Start Line": 48, + "End Line": 52 }, { - "Function Name": "test_strict_login_no_grant_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_get_starlette_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 105 + "Start Line": 55, + "End Line": 58 }, { - "Function Name": "login", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_starlette_item_not_found", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 61, + "End Line": 65 }, { - "Function Name": "test_security_oauth2", + "Function Name": "test_no_body_status_code_exception_handlers", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 + "Start Line": 68, + "End Line": 71 }, { - "Function Name": "test_security_oauth2_password_other_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_body_status_code_exception", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 23, + "End Line": 24 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_body_status_code_with_detail_exception", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 63 + "Start Line": 28, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 5, - "Sequential Logic Declarations": 70, + "Sequential Logic Declarations": 51, "Function Parameters": 11, "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 22, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 15, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 29, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 23, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -212044,9 +210913,9 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 4, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 3, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -212054,7 +210923,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 229, + "Structural Space Indentations": 161, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212071,15 +210940,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 25, + "Core Var Decl": 13, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 3, + "Design Snake Case": 13, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 3, - "Design Long Vars": 1, + "Design Short Vars": 0, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212103,24 +210972,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", "inline_snapshot", - "pydantic", - "pytest" + "starlette.exceptions" ] }, - "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py": { + "python/fastapi/tests/test_starlette_urlconvertors.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_password_bearer_optional.py", - "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py", + "Filename": "test_starlette_urlconvertors.py", + "Path": "python/fastapi/tests/test_starlette_urlconvertors.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -212130,9 +210997,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4671.62, - "Y": 155.68, - "Z": -201.27 + "X": 4231.44, + "Y": 126.72, + "Z": -601.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212141,24 +211008,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 56, - "Documentation LOC": 0, - "Structural Magnitude": 17.32, - "Control Flow Ratio": "4.0%", + "Total LOC": 64, + "Coding LOC": 38, + "Documentation LOC": 4, + "Structural Magnitude": 25.96, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.15 + "Raw Cognitive Density": 0.053 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.16%", + "Cognitive Load Exposure": "2.89%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.1%", - "Concurrency Exposure": "29.89%", + "API Exposure": "12.64%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212169,82 +211036,122 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "int_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 15 + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 32, + "Function Name": "float_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "path_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "query_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 24 + }, + { + "Function Name": "test_route_converters_int", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 70 + "Start Line": 30, + "End Line": 35 }, { - "Function Name": "test_no_token", + "Function Name": "test_route_converters_float", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 43 + }, + { + "Function Name": "test_route_converters_path", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 46, + "End Line": 50 }, { - "Function Name": "test_token", + "Function Name": "test_route_converters_query", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 30 + "Start Line": 53, + "End Line": 57 }, { - "Function Name": "test_incorrect_token", + "Function Name": "test_url_path_for_path_convertor", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 60, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 28, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 16, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -212269,7 +211176,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 43, + "Structural Space Indentations": 21, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212286,15 +211193,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 13, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 1, + "Design Snake Case": 13, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212302,7 +211209,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 1, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -212318,34 +211225,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py": { + "python/fastapi/tests/test_stream_bare_type.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_password_bearer_optional_description.py", - "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py", + "Filename": "test_stream_bare_type.py", + "Path": "python/fastapi/tests/test_stream_bare_type.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3747.49, - "Y": 77.86, - "Z": -1436.4 + "X": 3177.1, + "Y": -13.47, + "Z": 1664.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212354,24 +211260,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 61, + "Total LOC": 43, + "Coding LOC": 27, "Documentation LOC": 0, - "Structural Magnitude": 17.52, - "Control Flow Ratio": "4.0%", + "Structural Magnitude": 17.34, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.138 + "Raw Cognitive Density": 0.481 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.97%", + "Cognitive Load Exposure": "12.73%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.96%", - "Concurrency Exposure": "28.7%", + "API Exposure": "10.99%", + "Concurrency Exposure": "94.13%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212382,82 +211288,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, + "Function Name": "test_stream_bare_async_iterable", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 19 - }, - { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 75 + "Control Flow Ratio": "16.7%", + "Start Line": 29, + "End Line": 34 }, { - "Function Name": "test_no_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "test_stream_bare_sync_iterable", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Control Flow Ratio": "16.7%", + "Start Line": 37, + "End Line": 42 }, { - "Function Name": "test_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_bare_async", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_incorrect_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_bare_sync", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 40 + "Start Line": 22, + "End Line": 23 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 22, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, + "Collection Iterators / Comprehensions": 2, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -212482,7 +211378,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 13, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212497,17 +211393,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 2, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, - "Design Camel Case": 1, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212531,35 +211427,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "json", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_security_openid_connect.py": { + "python/fastapi/tests/test_stream_cancellation.py": { "1. Artifact Identity": { - "Filename": "test_security_openid_connect.py", - "Path": "python/fastapi/tests/test_security_openid_connect.py", + "Filename": "test_stream_cancellation.py", + "Path": "python/fastapi/tests/test_stream_cancellation.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3737.29, - "Y": 54.03, - "Z": 1597.87 + "X": 3903.53, + "Y": 63.01, + "Z": 41.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212568,24 +211464,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 61, - "Documentation LOC": 0, - "Structural Magnitude": 18.52, - "Control Flow Ratio": "0.0%", + "Total LOC": 89, + "Coding LOC": 50, + "Documentation LOC": 16, + "Structural Magnitude": 49.0, + "Control Flow Ratio": "15.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.22 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "21.69%", + "Error & Exception Exposure": "39.98%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.0%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.1%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212596,88 +211492,98 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 32, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 79 + "Function Name": "_run_asgi_and_cancel", + "Structural Impact": 9.7, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "21.4%", + "Start Line": 41, + "End Line": 74 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, + "Function Name": "send", + "Structural Impact": 3.0, "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Control Flow Ratio": "33.3%", + "Start Line": 53, + "End Line": 55 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Function Name": "stream_raw", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 24, + "End Line": 29 }, { - "Function Name": "test_security_oauth2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_jsonl", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 33, + "End Line": 38 + }, + { + "Function Name": "test_raw_stream_cancellation", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 77, + "End Line": 82 }, { - "Function Name": "test_security_oauth2_password_other_header", + "Function Name": "receive", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 48, + "End Line": 51 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", + "Function Name": "test_jsonl_stream_cancellation", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 45 + "Start Line": 85, + "End Line": 88 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 11, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 27, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 0, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 12, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 16, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 7, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -212687,26 +211593,26 @@ "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Event Publishers / Emitters": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 3, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 45, + "Structural Space Indentations": 35, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212721,17 +211627,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Lazy Evaluation & Generators (O(1) Memory)": 2, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 2, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212761,17 +211667,17 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "anyio", + "collections.abc", "fastapi", - "fastapi.security.open_id_connect_url", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "fastapi.responses", + "pytest" ] }, - "python/fastapi/tests/test_security_openid_connect_description.py": { + "python/fastapi/tests/test_stream_json_validation_error.py": { "1. Artifact Identity": { - "Filename": "test_security_openid_connect_description.py", - "Path": "python/fastapi/tests/test_security_openid_connect_description.py", + "Filename": "test_stream_json_validation_error.py", + "Path": "python/fastapi/tests/test_stream_json_validation_error.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -212782,9 +211688,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4625.41, - "Y": 165.24, - "Z": 331.93 + "X": 4002.73, + "Y": 155.32, + "Z": 1767.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212793,24 +211699,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 64, + "Total LOC": 41, + "Coding LOC": 25, "Documentation LOC": 0, - "Structural Magnitude": 18.68, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 14.9, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.28 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "6.62%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.92%", - "Concurrency Exposure": "0.0%", + "API Exposure": "11.13%", + "Concurrency Exposure": "44.03%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212821,99 +211727,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, + "Function Name": "test_stream_json_validation_error_async", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 82 + "Control Flow Ratio": "50.0%", + "Start Line": 33, + "End Line": 35 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, + "Function Name": "test_stream_json_validation_error_sync", + "Structural Impact": 2.1, "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 20 - }, - { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 - }, - { - "Function Name": "test_security_oauth2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Control Flow Ratio": "50.0%", + "Start Line": 38, + "End Line": 40 }, { - "Function Name": "test_security_oauth2_password_other_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_items_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 40 + "Start Line": 19, + "End Line": 21 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "stream_items_invalid_sync", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 47 + "Start Line": 25, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 16, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 11, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -212931,7 +211817,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 10, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212946,17 +211832,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 4, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, - "Design Camel Case": 1, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Core Var Decl": 2, + "Design Camel Case": 0, + "Design Snake Case": 2, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212980,36 +211866,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", "fastapi", - "fastapi.security.open_id_connect_url", + "fastapi.exceptions", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_openid_connect_optional.py": { + "python/fastapi/tests/test_strict_content_type_app_level.py": { "1. Artifact Identity": { - "Filename": "test_security_openid_connect_optional.py", - "Path": "python/fastapi/tests/test_security_openid_connect_optional.py", + "Filename": "test_strict_content_type_app_level.py", + "Path": "python/fastapi/tests/test_strict_content_type_app_level.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1205.04, - "Y": -230.44, - "Z": -148.83 + "X": 3602.72, + "Y": 96.75, + "Z": 1746.2 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213018,24 +211904,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 64, + "Total LOC": 45, + "Coding LOC": 27, "Documentation LOC": 0, - "Structural Magnitude": 21.58, - "Control Flow Ratio": "6.2%", + "Structural Magnitude": 16.24, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.062 + "Raw Cognitive Density": 0.296 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.0%", + "Cognitive Load Exposure": "7.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.92%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.16%", + "Concurrency Exposure": "77.5%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213046,99 +211932,99 @@ }, "5. Function Analysis": [ { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "app_default_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "read_current_user", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "app_lax_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 27 + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 32, + "Function Name": "test_default_strict_accepts_json_content_type", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 82 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "test_security_oauth2", + "Function Name": "test_lax_accepts_no_content_type", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 35, + "End Line": 38 }, { - "Function Name": "test_security_oauth2_password_other_header", + "Function Name": "test_lax_accepts_json_content_type", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 41, + "End Line": 44 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_default_strict_rejects_no_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 48 + "Start Line": 24, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 30, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 19, "Function Parameters": 6, "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 11, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -213156,7 +212042,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 48, + "Structural Space Indentations": 13, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213172,16 +212058,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 8, "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 2, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213205,23 +212091,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.open_id_connect_url", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_scopes.py": { + "python/fastapi/tests/test_strict_content_type_nested.py": { "1. Artifact Identity": { - "Filename": "test_security_scopes.py", - "Path": "python/fastapi/tests/test_security_scopes.py", + "Filename": "test_strict_content_type_nested.py", + "Path": "python/fastapi/tests/test_strict_content_type_nested.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -213231,9 +212114,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1327.08, - "Y": -258.7, - "Z": -900.88 + "X": 2397.73, + "Y": -64.45, + "Z": 1429.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213242,24 +212125,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 46, - "Coding LOC": 31, - "Documentation LOC": 0, - "Structural Magnitude": 20.22, + "Total LOC": 92, + "Coding LOC": 54, + "Documentation LOC": 2, + "Structural Magnitude": 32.08, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.065 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.03%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.41%", - "Concurrency Exposure": "0.0%", + "API Exposure": "11.32%", + "Concurrency Exposure": "90.12%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213270,109 +212153,159 @@ }, "5. Function Analysis": [ { - "Function Name": "app_fixture", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 18, + "Function Name": "inner_strict_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 31 + "Start Line": 13, + "End Line": 14 }, { - "Function Name": "test_security_scopes_dependency_called_once", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, + "Function Name": "inner_default_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 45 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "endpoint", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "mixed_outer_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "get_user", + "Function Name": "mixed_inner_post", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 63, + "End Line": 64 }, { - "Function Name": "client_fixture", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_default_inner_inherits_lax_from_app", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 34, + "End Line": 37 }, { - "Function Name": "call_counter_fixture", + "Function Name": "test_lax_outer_on_strict_app_accepts_no_content_type", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 76 + }, + { + "Function Name": "test_strict_inner_on_lax_app_rejects_no_content_type", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 29, + "End Line": 31 }, { - "Function Name": "get_db", + "Function Name": "test_strict_inner_accepts_json_content_type", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 17 + "Start Line": 40, + "End Line": 42 + }, + { + "Function Name": "test_default_inner_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 47 + }, + { + "Function Name": "test_strict_inner_on_lax_outer_rejects_no_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 81 + }, + { + "Function Name": "test_lax_outer_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 86 + }, + { + "Function Name": "test_strict_inner_on_lax_outer_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 89, + "End Line": 91 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, - "Function Parameters": 7, - "Function/Method Declarations": 7, + "Sequential Logic Declarations": 30, + "Function Parameters": 12, + "Function/Method Declarations": 12, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -213390,7 +212323,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 19, + "Structural Space Indentations": 22, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213406,16 +212339,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 3, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 17, "Design Camel Case": 0, - "Design Snake Case": 3, + "Design Snake Case": 17, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 12, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213439,22 +212372,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pytest", - "typing" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_scopes_dont_propagate.py": { + "python/fastapi/tests/test_strict_content_type_router_level.py": { "1. Artifact Identity": { - "Filename": "test_security_scopes_dont_propagate.py", - "Path": "python/fastapi/tests/test_security_scopes_dont_propagate.py", + "Filename": "test_strict_content_type_router_level.py", + "Path": "python/fastapi/tests/test_strict_content_type_router_level.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -213464,9 +212395,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1092.62, - "Y": -293.19, - "Z": 370.19 + "X": 1607.42, + "Y": -232.62, + "Z": -1152.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213475,24 +212406,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 45, - "Coding LOC": 27, - "Documentation LOC": 1, - "Structural Magnitude": 17.54, + "Total LOC": 62, + "Coding LOC": 38, + "Documentation LOC": 0, + "Structural Magnitude": 23.96, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.407 + "Raw Cognitive Density": 0.289 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "10.13%", - "Error & Exception Exposure": "67.04%", + "Cognitive Load Exposure": "6.84%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.16%", - "Concurrency Exposure": "94.13%", + "API Exposure": "11.12%", + "Concurrency Exposure": "87.76%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213503,82 +212434,122 @@ }, "5. Function Analysis": [ { - "Function Name": "dep3", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "router_lax_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 22 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "get_scopes", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "router_strict_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "security1", + "Function Name": "router_default_post", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "security2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_lax_router_on_strict_app_accepts_no_content_type", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "test_security_scopes_dont_propagate", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_router_on_strict_app_rejects_no_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 44 + "Start Line": 39, + "End Line": 41 + }, + { + "Function Name": "test_default_router_inherits_strict_from_app", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 46 + }, + { + "Function Name": "test_lax_router_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 51 + }, + { + "Function Name": "test_strict_router_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 56 + }, + { + "Function Name": "test_default_router_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 61 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Sequential Logic Declarations": 23, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 2, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -213603,7 +212574,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 13, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213619,16 +212590,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 11, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213652,22 +212623,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient", - "typing" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_scopes_sub_dependency.py": { + "python/fastapi/tests/test_stringified_annotation_dependency.py": { "1. Artifact Identity": { - "Filename": "test_security_scopes_sub_dependency.py", - "Path": "python/fastapi/tests/test_security_scopes_sub_dependency.py", + "Filename": "test_stringified_annotation_dependency.py", + "Path": "python/fastapi/tests/test_stringified_annotation_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -213677,9 +212646,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1589.61, - "Y": -151.34, - "Z": 455.48 + "X": 2703.35, + "Y": -3.31, + "Z": 1501.72 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213688,24 +212657,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 108, - "Coding LOC": 88, - "Documentation LOC": 1, - "Structural Magnitude": 30.76, - "Control Flow Ratio": "0.0%", + "Total LOC": 80, + "Coding LOC": 61, + "Documentation LOC": 0, + "Structural Magnitude": 27.92, + "Control Flow Ratio": "3.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.344 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "8.24%", + "Error & Exception Exposure": "33.59%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.22%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.43%", + "Concurrency Exposure": "97.68%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213716,129 +212685,109 @@ }, "5. Function Analysis": [ { - "Function Name": "app_fixture", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 47, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 69 - }, - { - "Function Name": "test_security_scopes_sub_dependency_caching", - "Structural Impact": 3.3, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.0, "Lines of Code (LOC)": 31, "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 107 - }, - { - "Function Name": "get_current_user", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 37 + "Start Line": 49, + "End Line": 79 }, { - "Function Name": "path_operation", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 8, + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 67 + "Start Line": 43, + "End Line": 46 }, { - "Function Name": "get_user_me", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, + "Function Name": "get_people", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 46 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "get_user_items", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, + "Function Name": "close", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 55 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "client_fixture", + "Function Name": "get_people", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 + "Start Line": 36, + "End Line": 37 }, { - "Function Name": "call_counts_fixture", + "Function Name": "client_fixture", "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 19 + "Start Line": 32, + "End Line": 40 }, { - "Function Name": "get_db_session", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "get_client", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 + "Start Line": 22, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Sequential Logic Declarations": 32, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -213851,12 +212800,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Resource Deallocation & Cleanup": 2, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 75, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213871,17 +212820,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 4, + "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213905,36 +212854,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "__future__", + "collections.abc", "fastapi", - "fastapi.security", "fastapi.testclient", + "inline_snapshot", "pytest", "typing" ] }, - "python/fastapi/tests/test_serialize_response.py": { + "python/fastapi/tests/test_stringified_annotation_dependency_py314.py": { "1. Artifact Identity": { - "Filename": "test_serialize_response.py", - "Path": "python/fastapi/tests/test_serialize_response.py", + "Filename": "test_stringified_annotation_dependency_py314.py", + "Path": "python/fastapi/tests/test_stringified_annotation_dependency_py314.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4453.78, - "Y": 144.19, - "Z": -822.31 + "X": 843.17, + "Y": -294.47, + "Z": -608.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213943,24 +212893,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 56, - "Coding LOC": 38, - "Documentation LOC": 0, - "Structural Magnitude": 18.06, - "Control Flow Ratio": "0.0%", + "Total LOC": 31, + "Coding LOC": 19, + "Documentation LOC": 1, + "Structural Magnitude": 11.98, + "Control Flow Ratio": "6.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.053 + "Raw Cognitive Density": 0.474 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.89%", + "Cognitive Load Exposure": "12.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.86%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.34%", + "Concurrency Exposure": "85.77%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213971,99 +212921,69 @@ }, "5. Function Analysis": [ { - "Function Name": "test_validlist", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 55 - }, - { - "Function Name": "get_validlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_stringified_annotation", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, + "Start Line": 14, "End Line": 30 }, { - "Function Name": "test_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 39 - }, - { - "Function Name": "test_coerce", - "Structural Impact": 1.2, + "Function Name": "get", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 45 - }, - { - "Function Name": "get_valid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "get_coerce", + "Function Name": "get_current_user", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 16, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 15, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -214081,7 +213001,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 23, + "Structural Space Indentations": 12, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214098,15 +213018,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Core Var Decl": 3, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 2, + "Design Snake Case": 3, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -214130,21 +213050,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + ".utils", + "__future__", "fastapi", "fastapi.testclient", - "pydantic" + "typing" ] }, - "python/fastapi/tests/test_serialize_response_dataclass.py": { + "python/fastapi/tests/test_stringified_annotations_simple.py": { "1. Artifact Identity": { - "Filename": "test_serialize_response_dataclass.py", - "Path": "python/fastapi/tests/test_serialize_response_dataclass.py", + "Filename": "test_stringified_annotations_simple.py", + "Path": "python/fastapi/tests/test_stringified_annotations_simple.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -214154,9 +213076,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3306.83, - "Y": -6.31, - "Z": 1246.89 + "X": 639.46, + "Y": -297.73, + "Z": -311.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -214165,23 +213087,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 194, - "Coding LOC": 159, + "Total LOC": 28, + "Coding LOC": 17, "Documentation LOC": 0, - "Structural Magnitude": 46.18, + "Structural Magnitude": 9.24, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.412 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "10.27%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.89%", + "API Exposure": "6.37%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -214193,179 +213115,69 @@ }, "5. Function Analysis": [ { - "Function Name": "test_validlist", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 132 - }, - { - "Function Name": "test_objectlist", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 157 - }, - { - "Function Name": "test_no_response_model_objectlist", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 171, - "End Line": 193 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "get_validlist", + "Function Name": "test_stringified_annotations", "Structural Impact": 1.6, "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 46 - }, - { - "Function Name": "test_valid", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 85 - }, - { - "Function Name": "test_object", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 96 - }, - { - "Function Name": "test_coerce", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 107 - }, - { - "Function Name": "test_no_response_model_object", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 160, - "End Line": 168 - }, - { - "Function Name": "get_objectlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 55 - }, - { - "Function Name": "get_no_response_model_objectlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 71 - }, - { - "Function Name": "get_object", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 24, + "Start Line": 17, "End Line": 27 }, { - "Function Name": "get_no_response_model_object", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 - }, - { - "Function Name": "get_valid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "get_coerce", - "Structural Impact": 1.1, + "Function Name": "call", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 37, - "Function Parameters": 14, - "Function/Method Declarations": 14, + "Sequential Logic Declarations": 17, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 22, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 2, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -214379,11 +213191,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 130, + "Structural Space Indentations": 9, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214399,16 +213211,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 3, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 2, + "Design Snake Case": 3, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 14, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -214432,35 +213244,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dataclasses", - "datetime", + ".utils", + "__future__", "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "typing" ] }, - "python/fastapi/tests/test_serialize_response_model.py": { + "python/fastapi/tests/test_swagger_ui_escape.py": { "1. Artifact Identity": { - "Filename": "test_serialize_response_model.py", - "Path": "python/fastapi/tests/test_serialize_response_model.py", + "Filename": "test_swagger_ui_escape.py", + "Path": "python/fastapi/tests/test_swagger_ui_escape.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2627.65, - "Y": -31.07, - "Z": 1158.25 + "X": 901.26, + "Y": -311.24, + "Z": -921.66 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -214469,23 +213281,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 153, - "Coding LOC": 115, + "Total LOC": 38, + "Coding LOC": 30, "Documentation LOC": 0, - "Structural Magnitude": 47.5, + "Structural Magnitude": 8.1, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.067 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.05%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.94%", + "API Exposure": "7.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -214497,192 +213309,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_coerce", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 100 - }, - { - "Function Name": "test_validlist", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 110 - }, - { - "Function Name": "test_validdict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "test_init_oauth_html_chars_are_escaped", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 113, - "End Line": 120 + "Start Line": 4, + "End Line": 14 }, { - "Function Name": "test_validlist_exclude_unset", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "test_normal_init_oauth_still_works", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 142 + "Start Line": 28, + "End Line": 37 }, { - "Function Name": "test_validdict_exclude_unset", + "Function Name": "test_swagger_ui_parameters_html_chars_are_escaped", "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 145, - "End Line": 152 - }, - { - "Function Name": "get_validlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 30 - }, - { - "Function Name": "get_validdict", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 39 - }, - { - "Function Name": "get_validlist_exclude_unset", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 68 - }, - { - "Function Name": "get_validdict_exclude_unset", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 81 - }, - { - "Function Name": "test_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 87, - "End Line": 90 - }, - { - "Function Name": "test_valid_exclude_unset", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 123, - "End Line": 126 - }, - { - "Function Name": "test_coerce_exclude_unset", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 132 - }, - { - "Function Name": "get_valid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 - }, - { - "Function Name": "get_coerce", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 - }, - { - "Function Name": "get_valid_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 - }, - { - "Function Name": "get_coerce_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 + "Start Line": 17, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 16, - "Function/Method Declarations": 16, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 12, + "Sequential Logic Declarations": 12, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 25, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 16, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 1, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -214707,7 +213389,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 81, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214723,21 +213405,21 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 7, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 17, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 2, + "Design Snake Case": 17, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 3, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 16, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, + "High-Entropy / Obfuscated Logic": 5, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, @@ -214756,34 +213438,31 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 1, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "pydantic", - "starlette.testclient" + "fastapi.openapi.docs" ] }, - "python/fastapi/tests/test_skip_defaults.py": { + "python/fastapi/tests/test_swagger_ui_init_oauth.py": { "1. Artifact Identity": { - "Filename": "test_skip_defaults.py", - "Path": "python/fastapi/tests/test_skip_defaults.py", + "Filename": "test_swagger_ui_init_oauth.py", + "Path": "python/fastapi/tests/test_swagger_ui_init_oauth.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, Model", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2318.46, - "Y": -82.62, - "Z": -1385.85 + "X": 2390.15, + "Y": -97.58, + "Z": 2031.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -214792,160 +213471,90 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 94, - "Coding LOC": 62, + "Total LOC": 29, + "Coding LOC": 18, "Documentation LOC": 0, - "Structural Magnitude": 31.24, + "Structural Magnitude": 8.96, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.278 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "23.28%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "13.16%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "get_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 - }, - { - "Function Name": "get_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "get_exclude_defaults", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 - }, - { - "Function Name": "get_exclude_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 - }, - { - "Function Name": "get_exclude_unset_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 65 - }, - { - "Function Name": "test_return_defaults", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 73 - }, - { - "Function Name": "test_return_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 78 - }, + "Cognitive Load Exposure": "6.57%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.46%", + "Concurrency Exposure": "50.51%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_return_exclude_defaults", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_swagger_ui", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 83 + "Start Line": 17, + "End Line": 23 }, { - "Function Name": "test_return_exclude_none", + "Function Name": "read_items", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 88 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "test_return_exclude_unset_none", + "Function Name": "test_response", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 93 + "Start Line": 26, + "End Line": 28 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 30, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 9, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 13, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 19, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -214958,7 +213567,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 1, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -214970,7 +213579,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 34, + "Structural Space Indentations": 9, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214986,16 +213595,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 23, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 18, - "Design Pascal Case": 5, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 3, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 10, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -215019,34 +213628,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_sse.py": { + "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py": { "1. Artifact Identity": { - "Filename": "test_sse.py", - "Path": "python/fastapi/tests/test_sse.py", + "Filename": "test_top_level_security_scheme_in_openapi.py", + "Path": "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2291.84, - "Y": -92.97, - "Z": 105.58 + "X": 4886.95, + "Y": 217.81, + "Z": 231.94 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -215055,24 +213662,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 319, - "Coding LOC": 215, - "Documentation LOC": 12, - "Structural Magnitude": 154.2, - "Control Flow Ratio": "22.4%", + "Total LOC": 61, + "Coding LOC": 45, + "Documentation LOC": 3, + "Structural Magnitude": 12.8, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.423 + "Raw Cognitive Density": 0.111 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.44%", + "Cognitive Load Exposure": "3.6%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.62%", - "Concurrency Exposure": "95.93%", + "API Exposure": "8.68%", + "Concurrency Exposure": "33.24%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -215083,359 +213690,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_async_generator_with_model", - "Structural Impact": 9.4, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 108, - "End Line": 126 - }, - { - "Function Name": "test_keepalive_ping_async", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "37.5%", - "Start Line": 290, - "End Line": 299 - }, - { - "Function Name": "test_keepalive_ping_sync", - "Structural Impact": 6.1, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "37.5%", - "Start Line": 302, - "End Line": 310 - }, - { - "Function Name": "test_sync_generator_with_model", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 129, - "End Line": 137 - }, - { - "Function Name": "test_async_generator_no_annotation", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 140, - "End Line": 148 - }, - { - "Function Name": "test_sync_generator_no_annotation", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 151, - "End Line": 159 - }, - { - "Function Name": "test_post_method_sse", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 172, - "End Line": 180 - }, - { - "Function Name": "test_dict_items", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 162, - "End Line": 169 - }, - { - "Function Name": "test_sse_on_router_included_in_app", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 258, - "End Line": 265 - }, - { - "Function Name": "test_data_and_raw_data_mutually_exclusive", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 252, - "End Line": 255 - }, - { - "Function Name": "test_server_sent_event_null_id_rejected", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 219, - "End Line": 221 - }, - { - "Function Name": "test_sse_events_with_fields", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 183, - "End Line": 199 - }, - { - "Function Name": "test_raw_data_sent_without_json_encoding", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 234, - "End Line": 249 - }, - { - "Function Name": "sse_items", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 30, - "End Line": 32 - }, - { - "Function Name": "sse_items_no_annotation", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 41, - "End Line": 43 - }, - { - "Function Name": "sse_items_dict", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 52, - "End Line": 54 - }, - { - "Function Name": "sse_items_post", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 78, - "End Line": 80 - }, - { - "Function Name": "client_fixture", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 103, - "End Line": 105 - }, - { - "Function Name": "test_server_sent_event_negative_retry_rejected", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 224, - "End Line": 226 - }, - { - "Function Name": "test_server_sent_event_float_retry_rejected", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 229, - "End Line": 231 - }, - { - "Function Name": "test_mixed_plain_and_sse_events", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 202, - "End Line": 209 - }, - { - "Function Name": "test_string_data_json_encoded", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 212, - "End Line": 216 - }, - { - "Function Name": "test_no_keepalive_when_fast", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 313, - "End Line": 318 - }, - { - "Function Name": "slow_async_stream", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 275, - "End Line": 280 - }, - { - "Function Name": "sse_items_event", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 62 - }, - { - "Function Name": "sse_items_mixed", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 69 + "Start Line": 34, + "End Line": 60 }, { - "Function Name": "sse_items_raw", + "Function Name": "test_get_root", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 87 + "Start Line": 22, + "End Line": 25 }, { - "Function Name": "slow_sync_stream", + "Function Name": "test_get_root_no_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 284, - "End Line": 287 - }, - { - "Function Name": "sse_items_sync", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "sse_items_sync_no_annotation", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 28, + "End Line": 31 }, { - "Function Name": "sse_items_string", + "Function Name": "get_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 - }, - { - "Function Name": "stream_events", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 94, - "End Line": 96 + "Start Line": 15, + "End Line": 16 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 34, - "Sequential Logic Declarations": 118, - "Function Parameters": 32, - "Function/Method Declarations": 32, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 59, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 20, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 44, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 10, - "Unit Test Assertions": 84, - "Asynchronous/Concurrent Execution": 15, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 14, - "Generic Type Abstractions": 4, - "Collection Iterators / Comprehensions": 9, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 2, - "Module Dependencies (Imports)": 10, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -215444,16 +213771,16 @@ "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 2, + "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 152, + "Structural Space Indentations": 33, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -215461,24 +213788,24 @@ "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 1, + "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 24, - "Vectorized Math & Tensor Operations": 12, - "Core Var Decl": 50, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 49, - "Design Pascal Case": 1, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 32, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -215486,7 +213813,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 2, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -215502,40 +213829,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 10, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "asyncio", - "collections.abc", "fastapi", - "fastapi.responses", - "fastapi.routing", - "fastapi.sse", + "fastapi.security", "fastapi.testclient", - "pydantic", - "pytest", - "time" + "inline_snapshot" ] }, - "python/fastapi/tests/test_starlette_exception.py": { + "python/fastapi/tests/test_tuples.py": { "1. Artifact Identity": { - "Filename": "test_starlette_exception.py", - "Path": "python/fastapi/tests/test_starlette_exception.py", + "Filename": "test_tuples.py", + "Path": "python/fastapi/tests/test_tuples.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1773.64, - "Y": -138.55, - "Z": -12.85 + "X": 1819.97, + "Y": -172.79, + "Z": 482.6 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -215544,24 +213866,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 210, - "Coding LOC": 183, + "Total LOC": 277, + "Coding LOC": 246, "Documentation LOC": 0, - "Structural Magnitude": 47.76, - "Control Flow Ratio": "8.9%", + "Structural Magnitude": 46.82, + "Control Flow Ratio": "7.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.104 + "Raw Cognitive Density": 0.039 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.51%", + "Cognitive Load Exposure": "2.75%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.36%", - "Concurrency Exposure": "42.52%", + "API Exposure": "9.85%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -215573,123 +213895,113 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 8.5, - "Lines of Code (LOC)": 130, + "Structural Impact": 11.7, + "Lines of Code (LOC)": 193, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "5.9%", - "Start Line": 80, - "End Line": 209 + "Control Flow Ratio": "3.6%", + "Start Line": 84, + "End Line": 276 }, { - "Function Name": "read_item", - "Structural Impact": 3.2, + "Function Name": "test_model_with_tuple_invalid", + "Structural Impact": 3.4, "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 12, - "End Line": 19 - }, - { - "Function Name": "read_starlette_item", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 33, - "End Line": 36 + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "40.0%", + "Start Line": 43, + "End Line": 50 }, { - "Function Name": "test_no_body_status_code_with_detail_exception_handlers", + "Function Name": "test_model_with_tuple_valid", "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 74, - "End Line": 77 + "Start Line": 36, + "End Line": 40 }, { - "Function Name": "test_get_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "post_model_with_tuple", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 45 + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "test_get_item_not_found", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "post_tuple_of_models", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 52 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "test_get_starlette_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "hello", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 58 + "Start Line": 29, + "End Line": 30 }, { - "Function Name": "test_get_starlette_item_not_found", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_tuple_with_model_invalid", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 65 + "Start Line": 60, + "End Line": 67 }, { - "Function Name": "test_no_body_status_code_exception_handlers", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_tuple_form_invalid", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 68, - "End Line": 71 + "Start Line": 76, + "End Line": 81 }, { - "Function Name": "no_body_status_code_exception", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_tuple_with_model_valid", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 53, + "End Line": 57 }, { - "Function Name": "no_body_status_code_with_detail_exception", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_tuple_form_valid", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 70, + "End Line": 73 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 5, - "Sequential Logic Declarations": 51, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 16, + "Sequential Logic Declarations": 61, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 17, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -215697,13 +214009,13 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 23, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 21, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -215722,7 +214034,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 4, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -215732,7 +214044,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 161, + "Structural Space Indentations": 225, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -215748,16 +214060,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 13, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 18, "Design Camel Case": 0, - "Design Snake Case": 13, + "Design Snake Case": 18, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 11, + "Orphaned Logic": 10, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -215790,13 +214102,13 @@ "fastapi", "fastapi.testclient", "inline_snapshot", - "starlette.exceptions" + "pydantic" ] }, - "python/fastapi/tests/test_starlette_urlconvertors.py": { + "python/fastapi/tests/test_typing_python39.py": { "1. Artifact Identity": { - "Filename": "test_starlette_urlconvertors.py", - "Path": "python/fastapi/tests/test_starlette_urlconvertors.py", + "Filename": "test_typing_python39.py", + "Path": "python/fastapi/tests/test_typing_python39.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -215806,9 +214118,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4231.44, - "Y": 126.72, - "Z": -601.88 + "X": 1683.67, + "Y": -181.89, + "Z": 1766.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -215817,23 +214129,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 38, - "Documentation LOC": 4, - "Structural Magnitude": 25.96, - "Control Flow Ratio": "0.0%", + "Total LOC": 25, + "Coding LOC": 19, + "Documentation LOC": 0, + "Structural Magnitude": 7.78, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.053 + "Raw Cognitive Density": 0.158 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.89%", + "Cognitive Load Exposure": "4.28%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.64%", + "API Exposure": "8.51%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -215845,122 +214157,52 @@ }, "5. Function Analysis": [ { - "Function Name": "int_convertor", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", + "Function Name": "test_typing", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", "Start Line": 8, - "End Line": 9 - }, - { - "Function Name": "float_convertor", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 - }, - { - "Function Name": "path_convertor", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "End Line": 24 }, { - "Function Name": "query_convertor", + "Function Name": "post_endpoint", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - }, - { - "Function Name": "test_route_converters_int", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 35 - }, - { - "Function Name": "test_route_converters_float", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 43 - }, - { - "Function Name": "test_route_converters_path", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 50 - }, - { - "Function Name": "test_route_converters_query", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 57 - }, - { - "Function Name": "test_url_path_for_path_convertor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 63 + "Start Line": 19, + "End Line": 20 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 28, - "Function Parameters": 9, - "Function/Method Declarations": 9, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 11, + "Function Parameters": 2, + "Function/Method Declarations": 2, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 11, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 16, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -215985,7 +214227,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 21, + "Structural Space Indentations": 14, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216001,16 +214243,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 13, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 13, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -216018,7 +214260,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -216034,20 +214276,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + ".utils", "fastapi", "fastapi.testclient" ] }, - "python/fastapi/tests/test_stream_bare_type.py": { + "python/fastapi/tests/test_union_body.py": { "1. Artifact Identity": { - "Filename": "test_stream_bare_type.py", - "Path": "python/fastapi/tests/test_stream_bare_type.py", + "Filename": "test_union_body.py", + "Path": "python/fastapi/tests/test_union_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -216058,9 +214301,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3177.1, - "Y": -13.47, - "Z": 1664.83 + "X": 2548.89, + "Y": -95.48, + "Z": -1709.53 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216069,24 +214312,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 43, - "Coding LOC": 27, + "Total LOC": 135, + "Coding LOC": 119, "Documentation LOC": 0, - "Structural Magnitude": 17.34, - "Control Flow Ratio": "8.3%", + "Structural Magnitude": 19.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.481 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "12.73%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.99%", - "Concurrency Exposure": "94.13%", + "API Exposure": "8.47%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216097,54 +214340,54 @@ }, "5. Function Analysis": [ { - "Function Name": "test_stream_bare_async_iterable", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 29, - "End Line": 34 - }, - { - "Function Name": "test_stream_bare_sync_iterable", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.9, + "Lines of Code (LOC)": 98, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", + "Control Flow Ratio": "0.0%", "Start Line": 37, - "End Line": 42 + "End Line": 134 }, { - "Function Name": "stream_bare_async", - "Structural Impact": 1.1, + "Function Name": "save_union_body", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "test_post_other_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "stream_bare_sync", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_post_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 22, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 37, "Function Parameters": 4, "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -216152,17 +214395,17 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, - "Collection Iterators / Comprehensions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -216187,7 +214430,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 13, + "Structural Space Indentations": 106, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216202,12 +214445,12 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 2, + "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -216236,7 +214479,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -216244,27 +214487,27 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "json", - "pydantic", - "typing" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_stream_cancellation.py": { + "python/fastapi/tests/test_union_body_discriminator.py": { "1. Artifact Identity": { - "Filename": "test_stream_cancellation.py", - "Path": "python/fastapi/tests/test_stream_cancellation.py", + "Filename": "test_union_body_discriminator.py", + "Path": "python/fastapi/tests/test_union_body_discriminator.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3903.53, - "Y": 63.01, - "Z": 41.62 + "X": 4196.4, + "Y": 162.99, + "Z": -1069.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216273,24 +214516,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 89, - "Coding LOC": 50, - "Documentation LOC": 16, - "Structural Magnitude": 49.0, - "Control Flow Ratio": "15.6%", + "Total LOC": 205, + "Coding LOC": 187, + "Documentation LOC": 6, + "Structural Magnitude": 21.44, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.22 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "21.69%", - "Error & Exception Exposure": "39.98%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "36.67%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.1%", - "Concurrency Exposure": "100.0%", + "API Exposure": "6.73%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216301,108 +214544,58 @@ }, "5. Function Analysis": [ { - "Function Name": "_run_asgi_and_cancel", - "Structural Impact": 9.7, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "21.4%", - "Start Line": 41, - "End Line": 74 - }, - { - "Function Name": "send", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 53, - "End Line": 55 - }, - { - "Function Name": "stream_raw", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 24, - "End Line": 29 - }, - { - "Function Name": "stream_jsonl", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 33, - "End Line": 38 - }, - { - "Function Name": "test_raw_stream_cancellation", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 82 - }, - { - "Function Name": "receive", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_discriminator_pydantic_v2", + "Structural Impact": 10.8, + "Lines of Code (LOC)": 195, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 + "Start Line": 10, + "End Line": 204 }, { - "Function Name": "test_jsonl_stream_cancellation", - "Structural Impact": 1.2, + "Function Name": "save_union_body_discriminator", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 88 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 27, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 47, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 12, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 3, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 12, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 16, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 7, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 2, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -216410,18 +214603,18 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 3, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 35, + "Structural Space Indentations": 180, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216436,17 +214629,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 2, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 8, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 2, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -216470,23 +214663,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "anyio", - "collections.abc", + "dirty_equals", "fastapi", - "fastapi.responses", - "pytest" + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_stream_json_validation_error.py": { + "python/fastapi/tests/test_union_body_discriminator_annotated.py": { "1. Artifact Identity": { - "Filename": "test_stream_json_validation_error.py", - "Path": "python/fastapi/tests/test_stream_json_validation_error.py", + "Filename": "test_union_body_discriminator_annotated.py", + "Path": "python/fastapi/tests/test_union_body_discriminator_annotated.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -216497,9 +214691,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4002.73, - "Y": 155.32, - "Z": 1767.09 + "X": 1567.53, + "Y": -211.05, + "Z": -329.6 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216508,24 +214702,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 41, - "Coding LOC": 25, - "Documentation LOC": 0, - "Structural Magnitude": 14.9, - "Control Flow Ratio": "11.1%", + "Total LOC": 204, + "Coding LOC": 184, + "Documentation LOC": 1, + "Structural Magnitude": 35.78, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.28 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.62%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.13%", - "Concurrency Exposure": "44.03%", + "API Exposure": "9.34%", + "Concurrency Exposure": "25.46%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216536,72 +214730,102 @@ }, "5. Function Analysis": [ { - "Function Name": "test_stream_json_validation_error_async", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 33, - "End Line": 35 - }, - { - "Function Name": "test_stream_json_validation_error_sync", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 38, - "End Line": 40 + "Function Name": "test_openapi_schema", + "Structural Impact": 8.6, + "Lines of Code (LOC)": 144, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 60, + "End Line": 203 }, { - "Function Name": "stream_items_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "client_fixture", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 21 + "Start Line": 13, + "End Line": 45 }, { - "Function Name": "stream_items_invalid_sync", - "Structural Impact": 1.1, + "Function Name": "get_pet_type", + "Structural Impact": 1.6, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 25, "End Line": 27 + }, + { + "Function Name": "test_union_body_discriminator_assignment", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 51 + }, + { + "Function Name": "test_union_body_discriminator_annotated", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 57 + }, + { + "Function Name": "create_pet_assignment", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 38 + }, + { + "Function Name": "create_pet_annotated", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 16, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 52, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 8, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -216626,7 +214850,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, + "Structural Space Indentations": 173, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216641,17 +214865,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 4, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 2, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 2, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -216681,30 +214905,31 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", "fastapi", - "fastapi.exceptions", "fastapi.testclient", + "inline_snapshot", "pydantic", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_strict_content_type_app_level.py": { + "python/fastapi/tests/test_union_forms.py": { "1. Artifact Identity": { - "Filename": "test_strict_content_type_app_level.py", - "Path": "python/fastapi/tests/test_strict_content_type_app_level.py", + "Filename": "test_union_forms.py", + "Path": "python/fastapi/tests/test_union_forms.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3602.72, - "Y": 96.75, - "Z": 1746.2 + "X": 1339.2, + "Y": -229.48, + "Z": 264.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216713,24 +214938,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 45, - "Coding LOC": 27, + "Total LOC": 164, + "Coding LOC": 143, "Documentation LOC": 0, - "Structural Magnitude": 16.24, + "Structural Magnitude": 24.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.296 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "7.0%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.16%", - "Concurrency Exposure": "77.5%", + "API Exposure": "9.02%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216741,92 +214966,92 @@ }, "5. Function Analysis": [ { - "Function Name": "app_default_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 102, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 62, + "End Line": 163 }, { - "Function Name": "app_lax_post", + "Function Name": "post_union_form", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_default_strict_accepts_json_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_post_user_form", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 29, - "End Line": 32 + "End Line": 36 }, { - "Function Name": "test_lax_accepts_no_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_post_company_form", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 39, + "End Line": 46 }, { - "Function Name": "test_lax_accepts_json_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_invalid_form_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 44 + "Start Line": 49, + "End Line": 54 }, { - "Function Name": "test_default_strict_rejects_no_content_type", + "Function Name": "test_empty_form", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 + "Start Line": 57, + "End Line": 59 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, + "Sequential Logic Declarations": 44, "Function Parameters": 6, "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -216851,7 +215076,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 13, + "Structural Space Indentations": 127, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216867,10 +215092,10 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, @@ -216900,32 +215125,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_strict_content_type_nested.py": { + "python/fastapi/tests/test_union_inherited_body.py": { "1. Artifact Identity": { - "Filename": "test_strict_content_type_nested.py", - "Path": "python/fastapi/tests/test_strict_content_type_nested.py", + "Filename": "test_union_inherited_body.py", + "Path": "python/fastapi/tests/test_union_inherited_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, Item", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2397.73, - "Y": -64.45, - "Z": 1429.05 + "X": 4497.43, + "Y": 200.81, + "Z": -485.54 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216934,10 +215163,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 92, - "Coding LOC": 54, - "Documentation LOC": 2, - "Structural Magnitude": 32.08, + "Total LOC": 143, + "Coding LOC": 127, + "Documentation LOC": 0, + "Structural Magnitude": 19.74, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -216950,8 +215179,8 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.32%", - "Concurrency Exposure": "90.12%", + "API Exposure": "8.37%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216962,17 +215191,17 @@ }, "5. Function Analysis": [ { - "Function Name": "inner_strict_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.3, + "Lines of Code (LOC)": 106, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 37, + "End Line": 142 }, { - "Function Name": "inner_default_post", + "Function Name": "save_union_different_body", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, @@ -216982,132 +215211,52 @@ "End Line": 19 }, { - "Function Name": "mixed_outer_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 - }, - { - "Function Name": "mixed_inner_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 64 - }, - { - "Function Name": "test_default_inner_inherits_lax_from_app", + "Function Name": "test_post_extended_item", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 37 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "test_lax_outer_on_strict_app_accepts_no_content_type", + "Function Name": "test_post_item", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 - }, - { - "Function Name": "test_strict_inner_on_lax_app_rejects_no_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 31 - }, - { - "Function Name": "test_strict_inner_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 42 - }, - { - "Function Name": "test_default_inner_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 47 - }, - { - "Function Name": "test_strict_inner_on_lax_outer_rejects_no_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 81 - }, - { - "Function Name": "test_lax_outer_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 86 - }, - { - "Function Name": "test_strict_inner_on_lax_outer_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 91 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 30, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Sequential Logic Declarations": 39, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -217132,7 +215281,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 22, + "Structural Space Indentations": 114, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217148,16 +215297,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 17, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 17, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 12, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -217181,32 +215330,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_strict_content_type_router_level.py": { + "python/fastapi/tests/test_validate_response.py": { "1. Artifact Identity": { - "Filename": "test_strict_content_type_router_level.py", - "Path": "python/fastapi/tests/test_strict_content_type_router_level.py", + "Filename": "test_validate_response.py", + "Path": "python/fastapi/tests/test_validate_response.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1607.42, - "Y": -232.62, - "Z": -1152.09 + "X": 1932.68, + "Y": -160.32, + "Z": -1052.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217215,24 +215367,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 62, - "Coding LOC": 38, + "Total LOC": 83, + "Coding LOC": 55, "Documentation LOC": 0, - "Structural Magnitude": 23.96, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 38.0, + "Control Flow Ratio": "16.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.289 + "Raw Cognitive Density": 0.145 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.84%", + "Cognitive Load Exposure": "4.09%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.12%", - "Concurrency Exposure": "87.76%", + "API Exposure": "13.05%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -217243,122 +215395,142 @@ }, "5. Function Analysis": [ { - "Function Name": "router_lax_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "get_valid_none", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Control Flow Ratio": "40.0%", + "Start Line": 27, + "End Line": 31 }, { - "Function Name": "router_strict_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Function Name": "test_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 51, + "End Line": 53 }, { - "Function Name": "router_default_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Function Name": "test_invalid_none", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 56, + "End Line": 58 }, { - "Function Name": "test_lax_router_on_strict_app_accepts_no_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_double_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 75, + "End Line": 77 + }, + { + "Function Name": "test_invalid_list", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 80, + "End Line": 82 + }, + { + "Function Name": "get_invalidlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 40, + "End Line": 45 }, { - "Function Name": "test_strict_router_on_strict_app_rejects_no_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_valid_none_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 41 + "Start Line": 61, + "End Line": 65 }, { - "Function Name": "test_default_router_inherits_strict_from_app", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_valid_none_none", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 46 + "Start Line": 68, + "End Line": 72 }, { - "Function Name": "test_lax_router_accepts_json_content_type", + "Function Name": "get_invalid", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 51 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_strict_router_accepts_json_content_type", + "Function Name": "get_invalid_none", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 56 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_default_router_accepts_json_content_type", + "Function Name": "get_innerinvalid", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 61 + "Start Line": 35, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 31, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -217383,7 +215555,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, + "Structural Space Indentations": 31, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217399,16 +215571,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 14, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 0, + "Design Snake Case": 12, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -217432,20 +215604,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.exceptions", + "fastapi.testclient", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_stringified_annotation_dependency.py": { + "python/fastapi/tests/test_validate_response_dataclass.py": { "1. Artifact Identity": { - "Filename": "test_stringified_annotation_dependency.py", - "Path": "python/fastapi/tests/test_stringified_annotation_dependency.py", + "Filename": "test_validate_response_dataclass.py", + "Path": "python/fastapi/tests/test_validate_response_dataclass.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -217455,9 +215630,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2703.35, - "Y": -3.31, - "Z": 1501.72 + "X": 3408.88, + "Y": 2.11, + "Z": 1441.99 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217466,24 +215641,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 61, + "Total LOC": 52, + "Coding LOC": 34, "Documentation LOC": 0, - "Structural Magnitude": 27.92, - "Control Flow Ratio": "3.0%", + "Structural Magnitude": 20.48, + "Control Flow Ratio": "13.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.344 + "Raw Cognitive Density": 0.147 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "8.24%", - "Error & Exception Exposure": "33.59%", + "Cognitive Load Exposure": "4.11%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.43%", - "Concurrency Exposure": "97.68%", + "API Exposure": "12.08%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -217494,109 +215669,99 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 79 + "Function Name": "test_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 39, + "End Line": 41 }, { - "Function Name": "test_get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 43, + "Function Name": "test_double_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 44, "End Line": 46 }, { - "Function Name": "get_people", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Function Name": "test_invalid_list", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 49, + "End Line": 51 }, { - "Function Name": "close", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_invalidlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 28, + "End Line": 33 }, { - "Function Name": "get_people", - "Structural Impact": 1.5, + "Function Name": "get_invalid", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "client_fixture", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 40 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "get_client", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_innerinvalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 32, - "Function Parameters": 7, - "Function/Method Declarations": 7, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 19, + "Function Parameters": 6, + "Function/Method Declarations": 6, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -217609,12 +215774,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 2, - "Private / Encapsulated Scopes": 1, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217629,17 +215794,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Core Var Decl": 7, "Design Camel Case": 0, "Design Snake Case": 5, - "Design Pascal Case": 1, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -217663,37 +215828,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "__future__", - "collections.abc", "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "inline_snapshot", - "pytest", - "typing" + "pydantic.dataclasses", + "pytest" ] }, - "python/fastapi/tests/test_stringified_annotation_dependency_py314.py": { + "python/fastapi/tests/test_validation_error_context.py": { "1. Artifact Identity": { - "Filename": "test_stringified_annotation_dependency_py314.py", - "Path": "python/fastapi/tests/test_stringified_annotation_dependency_py314.py", + "Filename": "test_validation_error_context.py", + "Path": "python/fastapi/tests/test_validation_error_context.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 843.17, - "Y": -294.47, - "Z": -608.96 + "X": 3057.56, + "Y": -46.26, + "Z": -990.18 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217702,24 +215866,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 31, - "Coding LOC": 19, - "Documentation LOC": 1, - "Structural Magnitude": 11.98, - "Control Flow Ratio": "6.2%", + "Total LOC": 169, + "Coding LOC": 123, + "Documentation LOC": 0, + "Structural Magnitude": 69.56, + "Control Flow Ratio": "9.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.474 + "Raw Cognitive Density": 0.515 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "12.44%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "14.06%", + "Error & Exception Exposure": "12.22%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.34%", - "Concurrency Exposure": "85.77%", + "API Exposure": "11.29%", + "Concurrency Exposure": "98.38%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -217730,58 +215894,198 @@ }, "5. Function Analysis": [ { - "Function Name": "test_stringified_annotation", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, + "Function Name": "test_websocket_validation_error_includes_endpoint_context", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 113, + "End Line": 124 + }, + { + "Function Name": "test_subapp_websocket_validation_error_includes_endpoint_context", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 140, + "End Line": 151 + }, + { + "Function Name": "test_request_validation_error_includes_endpoint_context", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 87, + "End Line": 97 + }, + { + "Function Name": "test_response_validation_error_includes_endpoint_context", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 100, + "End Line": 110 + }, + { + "Function Name": "test_subapp_request_validation_error_includes_endpoint_context", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 127, + "End Line": 137 + }, + { + "Function Name": "websocket_validation_handler", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 52 + }, + { + "Function Name": "capture", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 22 + }, + { + "Function Name": "request_validation_handler", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 36 + }, + { + "Function Name": "response_validation_handler", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 43 + }, + { + "Function Name": "websocket_endpoint", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 74 + }, + { + "Function Name": "subapp_websocket_endpoint", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 81 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 18 + }, + { + "Function Name": "get_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 + }, + { + "Function Name": "test_validation_error_with_no_context", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 30 + "Start Line": 162, + "End Line": 168 }, { - "Function Name": "get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_validation_error_with_only_path", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 27 + "Start Line": 154, + "End Line": 159 }, { - "Function Name": "get_current_user", + "Function Name": "get_item", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 61, + "End Line": 62 + }, + { + "Function Name": "get_sub_item", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 67 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 15, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 7, + "Sequential Logic Declarations": 66, + "Function Parameters": 17, + "Function/Method Declarations": 17, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 34, + "Type/Safety Bypasses": 13, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 20, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 27, + "Asynchronous/Concurrent Execution": 11, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 11, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -217792,25 +216096,25 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Explicit Type Casts": 7, + "Fatal Aborts & Exceptions": 3, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Resource Deallocation & Cleanup": 2, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 12, + "Structural Space Indentations": 84, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217826,23 +216130,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 3, + "Vectorized Math & Tensor Operations": 8, + "Core Var Decl": 17, "Design Camel Case": 0, - "Design Snake Case": 3, + "Design Snake Case": 17, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 2, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -217859,23 +216163,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", - "__future__", "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_stringified_annotations_simple.py": { + "python/fastapi/tests/test_vibe.py": { "1. Artifact Identity": { - "Filename": "test_stringified_annotations_simple.py", - "Path": "python/fastapi/tests/test_stringified_annotations_simple.py", + "Filename": "test_vibe.py", + "Path": "python/fastapi/tests/test_vibe.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -217885,9 +216188,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 639.46, - "Y": -297.73, - "Z": -311.76 + "X": 837.32, + "Y": -232.84, + "Z": 800.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217896,27 +216199,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 28, - "Coding LOC": 17, + "Total LOC": 18, + "Coding LOC": 13, "Documentation LOC": 0, - "Structural Magnitude": 9.24, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 8.26, + "Control Flow Ratio": "14.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.412 + "Raw Cognitive Density": 0.385 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "10.27%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "80.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.37%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.46%", + "Concurrency Exposure": "56.59%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "86.67%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -217924,69 +216227,59 @@ }, "5. Function Analysis": [ { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "test_stringified_annotations", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, + "Function Name": "test_vibe_raises", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 27 + "Control Flow Ratio": "28.6%", + "Start Line": 8, + "End Line": 17 }, { - "Function Name": "call", + "Function Name": "ai_vibes", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 16, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 17, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 12, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 3, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -218000,11 +216293,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 9, + "Structural Space Indentations": 8, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218029,7 +216322,7 @@ "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -218053,35 +216346,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", - "__future__", "fastapi", - "fastapi.testclient", + "fastapi.exceptions", + "pytest", "typing" ] }, - "python/fastapi/tests/test_swagger_ui_escape.py": { + "python/fastapi/tests/test_webhooks_security.py": { "1. Artifact Identity": { - "Filename": "test_swagger_ui_escape.py", - "Path": "python/fastapi/tests/test_swagger_ui_escape.py", + "Filename": "test_webhooks_security.py", + "Path": "python/fastapi/tests/test_webhooks_security.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 901.26, - "Y": -311.24, - "Z": -921.66 + "X": 2838.89, + "Y": -59.72, + "Z": -1958.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218090,23 +216383,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 38, - "Coding LOC": 30, - "Documentation LOC": 0, - "Structural Magnitude": 8.1, - "Control Flow Ratio": "0.0%", + "Total LOC": 135, + "Coding LOC": 116, + "Documentation LOC": 5, + "Structural Magnitude": 17.12, + "Control Flow Ratio": "5.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.067 + "Raw Cognitive Density": 0.034 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.05%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.31%", + "Error & Exception Exposure": "44.19%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.57%", + "API Exposure": "6.55%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -218118,68 +216411,68 @@ }, "5. Function Analysis": [ { - "Function Name": "test_init_oauth_html_chars_are_escaped", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.8, + "Lines of Code (LOC)": 96, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 4, - "End Line": 14 + "Control Flow Ratio": "9.5%", + "Start Line": 39, + "End Line": 134 }, { - "Function Name": "test_normal_init_oauth_still_works", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, + "Function Name": "new_subscription", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 37 + "Start Line": 22, + "End Line": 24 }, { - "Function Name": "test_swagger_ui_parameters_html_chars_are_escaped", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "test_dummy_webhook", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 25 + "Start Line": 34, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 12, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 36, "Function Parameters": 3, "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 0, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 4, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 1, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 1, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 1, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -218198,7 +216491,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, + "Structural Space Indentations": 100, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218214,21 +216507,21 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 17, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 17, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 5, + "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, @@ -218247,19 +216540,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 1, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.openapi.docs" + "datetime", + "fastapi", + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_swagger_ui_init_oauth.py": { + "python/fastapi/tests/test_wrapped_method_forward_reference.py": { "1. Artifact Identity": { - "Filename": "test_swagger_ui_init_oauth.py", - "Path": "python/fastapi/tests/test_swagger_ui_init_oauth.py", + "Filename": "test_wrapped_method_forward_reference.py", + "Path": "python/fastapi/tests/test_wrapped_method_forward_reference.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -218269,9 +216568,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2390.15, - "Y": -97.58, - "Z": 2031.82 + "X": 1355.55, + "Y": -258.26, + "Z": 1417.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218280,24 +216579,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, + "Total LOC": 32, "Coding LOC": 18, - "Documentation LOC": 0, - "Structural Magnitude": 8.96, - "Control Flow Ratio": "0.0%", + "Documentation LOC": 6, + "Structural Magnitude": 9.66, + "Control Flow Ratio": "7.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.278 + "Raw Cognitive Density": 0.167 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.57%", + "Cognitive Load Exposure": "2.21%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.46%", - "Concurrency Exposure": "50.51%", + "API Exposure": "7.93%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -218308,53 +216607,53 @@ }, "5. Function Analysis": [ { - "Function Name": "test_swagger_ui", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Function Name": "test_wrapped_method_type_inference", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "33.3%", "Start Line": 17, - "End Line": 23 + "End Line": 31 }, { - "Function Name": "read_items", - "Structural Impact": 1.1, + "Function Name": "method", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "test_response", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "passthrough", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 28 + "Start Line": 9, + "End Line": 14 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Sequential Logic Declarations": 13, "Function Parameters": 3, "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -218363,7 +216662,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -218376,7 +216675,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 1, + "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -218388,7 +216687,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 9, + "Structural Space Indentations": 12, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218404,16 +216703,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -218437,20 +216736,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + ".forward_reference_type", "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "functools" ] }, - "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py": { + "python/fastapi/tests/test_ws_dependencies.py": { "1. Artifact Identity": { - "Filename": "test_top_level_security_scheme_in_openapi.py", - "Path": "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py", + "Filename": "test_ws_dependencies.py", + "Path": "python/fastapi/tests/test_ws_dependencies.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -218460,9 +216761,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4886.95, - "Y": 217.81, - "Z": 231.94 + "X": 1612.06, + "Y": -200.0, + "Z": 36.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218471,24 +216772,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 61, - "Coding LOC": 45, - "Documentation LOC": 3, - "Structural Magnitude": 12.8, - "Control Flow Ratio": "0.0%", + "Total LOC": 73, + "Coding LOC": 48, + "Documentation LOC": 0, + "Structural Magnitude": 39.56, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.111 + "Raw Cognitive Density": 0.896 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.6%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "32.09%", + "Error & Exception Exposure": "36.14%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.68%", - "Concurrency Exposure": "33.24%", + "API Exposure": "10.7%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -218499,68 +216800,118 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, + "Function Name": "test_index", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 54, + "End Line": 58 + }, + { + "Function Name": "test_routerindex", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 61, + "End Line": 65 + }, + { + "Function Name": "test_routerprefixindex", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 68, + "End Line": 72 + }, + { + "Function Name": "index", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 60 + "Start Line": 28, + "End Line": 31 }, { - "Function Name": "test_get_root", - "Structural Impact": 1.2, + "Function Name": "routerindex", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 35, + "End Line": 38 }, { - "Function Name": "test_get_root_no_token", - "Structural Impact": 1.2, + "Function Name": "routerprefixindex", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 31 + "Start Line": 42, + "End Line": 45 }, { - "Function Name": "get_root", + "Function Name": "create_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 15, + "End Line": 19 + }, + { + "Function Name": "fun", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "dependency_list", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 8, + "End Line": 9 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 20, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 33, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 9, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 12, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -218571,7 +216922,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -218584,12 +216935,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Resource Deallocation & Cleanup": 3, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 33, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218605,23 +216956,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 3, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -218645,28 +216996,28 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "json", + "typing" ] }, - "python/fastapi/tests/test_tuples.py": { + "python/fastapi/tests/test_ws_router.py": { "1. Artifact Identity": { - "Filename": "test_tuples.py", - "Path": "python/fastapi/tests/test_tuples.py", + "Filename": "test_ws_router.py", + "Path": "python/fastapi/tests/test_ws_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1819.97, - "Y": -172.79, - "Z": 482.6 + "X": 2672.34, + "Y": -89.93, + "Z": 429.77 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218675,24 +217026,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 277, - "Coding LOC": 246, - "Documentation LOC": 0, - "Structural Magnitude": 46.82, - "Control Flow Ratio": "7.6%", + "Total LOC": 272, + "Coding LOC": 182, + "Documentation LOC": 17, + "Structural Magnitude": 184.94, + "Control Flow Ratio": "16.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.039 + "Raw Cognitive Density": 1.115 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.75%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "21.63%", + "Error & Exception Exposure": "28.18%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.85%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.68%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -218703,132 +217054,536 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 11.7, - "Lines of Code (LOC)": 193, + "Function Name": "test_depend_validation", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 210, + "End Line": 233 + }, + { + "Function Name": "test_depend_err_middleware", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "23.1%", + "Start Line": 236, + "End Line": 254 + }, + { + "Function Name": "wrapped_app", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "10.0%", + "Start Line": 195, + "End Line": 203 + }, + { + "Function Name": "make_app", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "33.3%", + "Start Line": 107, + "End Line": 112 + }, + { + "Function Name": "websocket_middleware", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "7.1%", + "Start Line": 188, + "End Line": 207 + }, + { + "Function Name": "catcher", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "20.0%", + "Start Line": 217, + "End Line": 222 + }, + { + "Function Name": "test_depend_err_handler", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "22.2%", + "Start Line": 257, + "End Line": 271 + }, + { + "Function Name": "errorhandler", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "16.7%", + "Start Line": 242, + "End Line": 246 + }, + { + "Function Name": "test_wrong_uri", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "3.6%", - "Start Line": 84, - "End Line": 276 + "Control Flow Ratio": "33.3%", + "Start Line": 177, + "End Line": 185 }, { - "Function Name": "test_model_with_tuple_invalid", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 8, + "Function Name": "middleware_constructor", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "8.3%", + "Start Line": 193, + "End Line": 205 + }, + { + "Function Name": "test_prefix_router", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 2, "Input Parameters": 0, "Control Flow Ratio": "40.0%", - "Start Line": 43, - "End Line": 50 + "Start Line": 132, + "End Line": 136 }, { - "Function Name": "test_model_with_tuple_valid", + "Function Name": "test_native_prefix_router", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "40.0%", + "Start Line": 139, + "End Line": 143 + }, + { + "Function Name": "routerprefixindex", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 37, + "End Line": 40 + }, + { + "Function Name": "router_native_prefix_ws", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 72, + "End Line": 75 + }, + { + "Function Name": "test_router_with_params", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 166, + "End Line": 174 + }, + { + "Function Name": "routerindexparams", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 55 + }, + { + "Function Name": "test_app", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 36, - "End Line": 40 + "Start Line": 118, + "End Line": 122 }, { - "Function Name": "post_model_with_tuple", - "Structural Impact": 1.5, + "Function Name": "test_router", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 125, + "End Line": 129 + }, + { + "Function Name": "test_router2", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 146, + "End Line": 150 + }, + { + "Function Name": "test_router_ws_depends", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 153, + "End Line": 156 + }, + { + "Function Name": "test_router_ws_depends_with_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 159, + "End Line": 163 + }, + { + "Function Name": "router_ws_decorator_depends", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 63, + "End Line": 68 + }, + { + "Function Name": "router_ws_depends_validate", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 92, + "End Line": 95 + }, + { + "Function Name": "router_ws_depends_err", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 83, + "End Line": 84 + }, + { + "Function Name": "custom_handler", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 262, + "End Line": 263 + }, + { + "Function Name": "index", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "post_tuple_of_models", + "Function Name": "routerindex", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 33 + }, + { + "Function Name": "routerindex2", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 47 + }, + { + "Function Name": "ws_dependency_validate", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 87, + "End Line": 88 }, { - "Function Name": "hello", + "Function Name": "router_ws_custom_error", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 + "Start Line": 103, + "End Line": 104 }, { - "Function Name": "test_tuple_with_model_invalid", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "ws_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 67 + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "test_tuple_form_invalid", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "ws_dependency_err", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 81 + "Start Line": 78, + "End Line": 79 }, { - "Function Name": "test_tuple_with_model_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "call_next", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 57 - }, + "Start Line": 199, + "End Line": 200 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 24, + "Sequential Logic Declarations": 119, + "Function Parameters": 34, + "Function/Method Declarations": 33, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 20, + "Type/Safety Bypasses": 12, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 34, + "State Mutations / Variable Reassignments": 3, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 10, + "Unit Test Assertions": 33, + "Asynchronous/Concurrent Execution": 57, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 1, + "Global State Dependencies": 0, + "Decorators and Annotations": 13, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 5, + "Dependency Injection Constructs": 4, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 3, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 9, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 131, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 10, + "Core Var Decl": 35, + "Design Camel Case": 0, + "Design Snake Case": 35, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 22, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 8, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 5, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.middleware", + "fastapi.testclient", + "functools", + "pytest" + ] + }, + "python/fastapi/tests/utils.py": { + "1. Artifact Identity": { + "Filename": "utils.py", + "Path": "python/fastapi/tests/utils.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 1.5, + "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" + }, + "2. Topological Coordinates": { + "X": 4126.68, + "Y": 121.5, + "Z": 1768.9 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 19, + "Coding LOC": 12, + "Documentation LOC": 1, + "Structural Magnitude": 4.44, + "Control Flow Ratio": "25.0%", + "Popularity Rank": 2, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.25 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.33%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "80.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_tuple_form_valid", - "Structural Impact": 1.2, + "Function Name": "skip_module_if_py_gte_314", + "Structural Impact": 2.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 73 + "Control Flow Ratio": "50.0%", + "Start Line": 15, + "End Line": 18 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 61, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 17, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 3, + "Function Parameters": 1, + "Function/Method Declarations": 1, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 15, + "I/O and Network Boundaries": 3, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 21, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 5, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -218853,7 +217608,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 225, + "Structural Space Indentations": 4, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218869,16 +217624,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 18, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 10, + "Orphaned Logic": 0, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -218902,34 +217657,59 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 2, "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 + "Total Downstream (Absolute Dependency Blast Radius)": 1 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pytest", + "sys", + "time." ] - }, - "python/fastapi/tests/test_typing_python39.py": { + } + } + }, + "javascript/threejs": { + "Directory Group Magnitude": 7715.5, + "File Count": 6, + "Ecosystem Fingerprint (Archetypes)": { + "Unclassified": "100.0%" + }, + "Average Risk Exposures": { + "Cognitive Load Exposure": "46.97%", + "Error & Exception Exposure": "66.72%", + "Tech Debt Exposure": "42.36%", + "Testing Exposure": "80.0%", + "API Exposure": "2.6%", + "Concurrency Exposure": "33.42%", + "State Flux Exposure": "84.4%", + "Commented Logic Exposure": "3.33%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "16.29%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "Files": { + "javascript/threejs/BufferGeometry.js": { "1. Artifact Identity": { - "Filename": "test_typing_python39.py", - "Path": "python/fastapi/tests/test_typing_python39.py", - "Language": "Python", + "Filename": "BufferGeometry.js", + "Path": "javascript/threejs/BufferGeometry.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", + "Indentation Style": "Tabs", + "Parent Entity": "EventDispatcher", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Alert": "TYPOSQUATTING THREAT: 'math/Vector2.js' mimics 'math/Vector3.js'", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 1683.67, - "Y": -181.89, - "Z": 1766.82 + "X": 2453.8, + "Y": -162.66, + "Z": -5120.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218938,90 +217718,420 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 25, - "Coding LOC": 19, - "Documentation LOC": 0, - "Structural Magnitude": 7.78, - "Control Flow Ratio": "8.3%", + "Total LOC": 1459, + "Coding LOC": 588, + "Documentation LOC": 377, + "Structural Magnitude": 616.46, + "Control Flow Ratio": "55.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.158 + "Raw Cognitive Density": 1.275 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.28%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.51%", + "Cognitive Load Exposure": "44.55%", + "Error & Exception Exposure": "90.35%", + "Tech Debt Exposure": "44.92%", + "Testing Exposure": "80.0%", + "API Exposure": "1.9%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "State Flux Exposure": "100.0%", + "Commented Logic Exposure": "5.03%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_typing", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 17, + "Function Name": "computeTangents", + "Structural Impact": 21.9, + "Lines of Code (LOC)": 158, + "Control Flow Branches": 13, + "Input Parameters": 0, + "Control Flow Ratio": "61.9%", + "Start Line": 822, + "End Line": 979 + }, + { + "Function Name": "computeBoundingSphere", + "Structural Impact": 20.6, + "Lines of Code (LOC)": 111, + "Control Flow Branches": 14, + "Input Parameters": 0, + "Control Flow Ratio": "70.0%", + "Start Line": 703, + "End Line": 813 + }, + { + "Function Name": "toJSON", + "Structural Impact": 19.4, + "Lines of Code (LOC)": 109, + "Control Flow Branches": 13, + "Input Parameters": 0, + "Control Flow Ratio": "76.5%", + "Start Line": 1212, + "End Line": 1320 + }, + { + "Function Name": "copy", + "Structural Impact": 16.5, + "Lines of Code (LOC)": 104, + "Control Flow Branches": 7, + "Input Parameters": 1, + "Control Flow Ratio": "70.0%", + "Start Line": 1339, + "End Line": 1442 + }, + { + "Function Name": "computeBoundingBox", + "Structural Impact": 16.4, + "Lines of Code (LOC)": 69, + "Control Flow Branches": 12, + "Input Parameters": 0, + "Control Flow Ratio": "85.7%", + "Start Line": 628, + "End Line": 696 + }, + { + "Function Name": "toNonIndexed", + "Structural Impact": 15.1, + "Lines of Code (LOC)": 101, + "Control Flow Branches": 9, + "Input Parameters": 0, + "Control Flow Ratio": "52.9%", + "Start Line": 1105, + "End Line": 1205 + }, + { + "Function Name": "setFromPoints", + "Structural Impact": 14.8, + "Lines of Code (LOC)": 41, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "72.7%", + "Start Line": 581, + "End Line": 621 + }, + { + "Function Name": "computeVertexNormals", + "Structural Impact": 13.6, + "Lines of Code (LOC)": 91, + "Control Flow Branches": 8, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 987, + "End Line": 1077 + }, + { + "Function Name": "applyMatrix4", + "Structural Impact": 10.9, + "Lines of Code (LOC)": 49, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "83.3%", + "Start Line": 363, + "End Line": 411 + }, + { + "Function Name": "convertBufferAttribute", + "Structural Impact": 10.3, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 1107, + "End Line": 1139 + }, + { + "Function Name": "setIndex", + "Structural Impact": 6.4, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 217, + "End Line": 231 + }, + { + "Function Name": "handleTriangle", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 872, + "End Line": 905 + }, + { + "Function Name": "handleVertex", + "Structural Impact": 3.9, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 940, + "End Line": 960 + }, + { + "Function Name": "normalizeNormals", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 8, - "End Line": 24 + "Control Flow Ratio": "50.0%", + "Start Line": 1083, + "End Line": 1097 }, { - "Function Name": "post_endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "addGroup", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 322, + "End Line": 332 + }, + { + "Function Name": "translate", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 499, + "End Line": 509 + }, + { + "Function Name": "scale", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 521, + "End Line": 531 + }, + { + "Function Name": "setIndirect", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 240, + "End Line": 247 + }, + { + "Function Name": "setAttribute", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 280, + "End Line": 286 + }, + { + "Function Name": "constructor", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 146, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 53, + "End Line": 198 + }, + { + "Function Name": "setDrawRange", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 350, + "End Line": 355 + }, + { + "Function Name": "rotateX", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 437, + "End Line": 447 + }, + { + "Function Name": "rotateY", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 457, + "End Line": 467 + }, + { + "Function Name": "rotateZ", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 477, + "End Line": 487 + }, + { + "Function Name": "lookAt", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 541, + "End Line": 551 + }, + { + "Function Name": "applyQuaternion", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 419, + "End Line": 427 + }, + { + "Function Name": "deleteAttribute", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 294, + "End Line": 300 + }, + { + "Function Name": "getAttribute", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 267, + "End Line": 271 + }, + { + "Function Name": "hasAttribute", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 308, + "End Line": 312 + }, + { + "Function Name": "center", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 558, + "End Line": 568 + }, + { + "Function Name": "getIndex", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 205, + "End Line": 209 + }, + { + "Function Name": "getIndirect", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 258 + }, + { + "Function Name": "clearGroups", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 337, + "End Line": 341 + }, + { + "Function Name": "clone", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1327, + "End Line": 1331 + }, + { + "Function Name": "dispose", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1450, + "End Line": 1454 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 11, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Control Flow Branches": 93, + "Sequential Logic Declarations": 74, + "Function Parameters": 35, + "Function/Method Declarations": 35, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 28, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 387, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 112, + "Unit Test Assertions": 0, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 4, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Metaprogramming & Reflection": 2, + "Module Dependencies (Imports)": 11, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 1, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 40, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -219030,19 +218140,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 98, + "Resource Deallocation & Cleanup": 4, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 14, + "Structural Tab Indentations": 564, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 0, + "Serialization Parsing": 2, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -219052,16 +218162,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 4, - "Design Camel Case": 0, - "Design Snake Case": 4, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 136, + "Design Camel Case": 46, + "Design Snake Case": 89, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 37, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 13, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -219071,10 +218181,10 @@ "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, + "Commented-Out Executable Logic": 1, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, + "Non-Standard Unicode / Homoglyphs": 1, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -219085,34 +218195,41 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 11, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", - "fastapi", - "fastapi.testclient" + "../math/Box3.js", + "../math/MathUtils.js", + "../math/Matrix3.js", + "../math/Matrix4.js", + "../math/Sphere.js", + "../math/Vector2.js", + "../math/Vector3.js", + "../utils.js", + "./BufferAttribute.js", + "./EventDispatcher.js", + "./Object3D.js" ] }, - "python/fastapi/tests/test_union_body.py": { + "javascript/threejs/Editor.js": { "1. Artifact Identity": { - "Filename": "test_union_body.py", - "Path": "python/fastapi/tests/test_union_body.py", - "Language": "Python", + "Filename": "Editor.js", + "Path": "javascript/threejs/Editor.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 2548.89, - "Y": -95.48, - "Z": -1709.53 + "X": 3256.59, + "Y": -58.58, + "Z": -4581.5 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -219121,110 +218238,490 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 135, - "Coding LOC": 119, - "Documentation LOC": 0, - "Structural Magnitude": 19.18, - "Control Flow Ratio": "0.0%", + "Total LOC": 820, + "Coding LOC": 458, + "Documentation LOC": 14, + "Structural Magnitude": 631.06, + "Control Flow Ratio": "54.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.021 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "74.71%", + "Error & Exception Exposure": "96.41%", "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.47%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", + "Testing Exposure": "80.0%", + "API Exposure": "8.44%", + "Concurrency Exposure": "75.79%", + "State Flux Exposure": "100.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "34.08%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.9, - "Lines of Code (LOC)": 98, + "Function Name": "addHelper", + "Structural Impact": 23.2, + "Lines of Code (LOC)": 85, + "Control Flow Branches": 18, + "Input Parameters": 0, + "Control Flow Ratio": "78.3%", + "Start Line": 392, + "End Line": 476 + }, + { + "Function Name": "addObject", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 179, + "End Line": 207 + }, + { + "Function Name": "setObjectMaterial", + "Structural Impact": 8.7, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 540, + "End Line": 552 + }, + { + "Function Name": "fromJSON", + "Structural Impact": 7.4, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "37.5%", + "Start Line": 674, + "End Line": 707 + }, + { + "Function Name": "addMaterial", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 251, + "End Line": 269 + }, + { + "Function Name": "removeMaterial", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 291, + "End Line": 309 + }, + { + "Function Name": "getMaterialById", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "42.9%", + "Start Line": 331, + "End Line": 349 + }, + { + "Function Name": "toJSON", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 40, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 709, + "End Line": 748 + }, + { + "Function Name": "removeScript", + "Structural Impact": 5.9, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 510, + "End Line": 524 + }, + { + "Function Name": "getObjectMaterial", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 526, + "End Line": 538 + }, + { + "Function Name": "save", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 787, + "End Line": 799 + }, + { + "Function Name": "removeObject", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 216, + "End Line": 236 + }, + { + "Function Name": "addMaterialToRefCounter", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 271, + "End Line": 289 + }, + { + "Function Name": "removeMaterialFromRefCounter", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 311, + "End Line": 329 + }, + { + "Function Name": "setScene", + "Structural Impact": 4.3, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 147, + "End Line": 175 + }, + { + "Function Name": "addScript", + "Structural Impact": 4.1, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 496, + "End Line": 508 + }, + { + "Function Name": "removeHelper", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 478, + "End Line": 492 + }, + { + "Function Name": "selectByUuid", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 589, + "End Line": 603 + }, + { + "Function Name": "clear", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 44, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 627, + "End Line": 670 + }, + { + "Function Name": "addCamera", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 366, + "End Line": 376 + }, + { + "Function Name": "removeCamera", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 378, + "End Line": 388 + }, + { + "Function Name": "selectById", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 576, + "End Line": 587 + }, + { + "Function Name": "focus", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 611, + "End Line": 619 + }, + { + "Function Name": "setViewportCamera", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 554, + "End Line": 559 + }, + { + "Function Name": "Editor", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 129, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 15, + "End Line": 143 + }, + { + "Function Name": "updateMatrixWorld", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 415, + "End Line": 433 + }, + { + "Function Name": "nameObject", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 209, + "End Line": 214 + }, + { + "Function Name": "setGeometryName", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 244, + "End Line": 249 + }, + { + "Function Name": "setMaterialName", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 351, + "End Line": 356 + }, + { + "Function Name": "execute", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 756, + "End Line": 760 + }, + { + "Function Name": "saveArrayBuffer", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 801, + "End Line": 805 + }, + { + "Function Name": "saveString", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 807, + "End Line": 811 + }, + { + "Function Name": "addGeometry", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 238, + "End Line": 242 + }, + { + "Function Name": "addTexture", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 358, + "End Line": 362 + }, + { + "Function Name": "setViewportShading", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 561, + "End Line": 566 + }, + { + "Function Name": "select", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 570, + "End Line": 574 + }, + { + "Function Name": "focusById", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 134 + "Start Line": 621, + "End Line": 625 }, { - "Function Name": "save_union_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "objectByUuid", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 750, + "End Line": 754 }, { - "Function Name": "test_post_other_item", + "Function Name": "formatNumber", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 813, + "End Line": 817 + }, + { + "Function Name": "deselect", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 605, + "End Line": 609 }, { - "Function Name": "test_post_item", + "Function Name": "undo", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 762, + "End Line": 766 + }, + { + "Function Name": "redo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 768, + "End Line": 772 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 37, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 9, + "Control Flow Branches": 63, + "Sequential Logic Declarations": 52, + "Function Parameters": 46, + "Function/Method Declarations": 42, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 28, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 16, + "State Mutations / Variable Reassignments": 409, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 18, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Closures and Anonymous Functions": 41, + "Global State Dependencies": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 1, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 74, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -219233,19 +218730,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 10, + "Resource Deallocation & Cleanup": 7, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 106, + "Structural Tab Indentations": 433, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 0, + "Serialization Parsing": 2, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -219255,16 +218752,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 43, + "Design Camel Case": 4, + "Design Snake Case": 37, "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 4, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 0, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -219288,35 +218785,38 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "./Config.js", + "./History.js", + "./Loader.js", + "./Selector.js", + "./Storage.js", + "./Strings.js", + "three" ] }, - "python/fastapi/tests/test_union_body_discriminator.py": { + "javascript/threejs/GLTFLoader.js": { "1. Artifact Identity": { - "Filename": "test_union_body_discriminator.py", - "Path": "python/fastapi/tests/test_union_body_discriminator.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Filename": "GLTFLoader.js", + "Path": "javascript/threejs/GLTFLoader.js", + "Language": "Javascript", + "Architect": "GLTFExporter", + "Indentation Style": "Tabs", + "Parent Entity": "Loader, Interpolant, GLTFCubicSplineInterpolant", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 4196.4, - "Y": 162.99, - "Z": -1069.85 + "X": 2920.34, + "Y": -74.07, + "Z": -5005.35 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -219325,1053 +218825,1372 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 205, - "Coding LOC": 187, - "Documentation LOC": 6, - "Structural Magnitude": 21.44, - "Control Flow Ratio": "0.0%", + "Total LOC": 4861, + "Coding LOC": 2413, + "Documentation LOC": 613, + "Structural Magnitude": 3082.26, + "Control Flow Ratio": "66.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.53 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "36.67%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "6.73%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Cognitive Load Exposure": "47.88%", + "Error & Exception Exposure": "75.38%", + "Tech Debt Exposure": "46.56%", + "Testing Exposure": "80.0%", + "API Exposure": "1.63%", + "Concurrency Exposure": "100.0%", + "State Flux Exposure": "100.0%", + "Commented Logic Exposure": "4.91%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_discriminator_pydantic_v2", - "Structural Impact": 10.8, - "Lines of Code (LOC)": 195, + "Function Name": "parse", + "Structural Impact": 77.7, + "Lines of Code (LOC)": 122, + "Control Flow Branches": 31, + "Input Parameters": 4, + "Control Flow Ratio": "86.1%", + "Start Line": 429, + "End Line": 550 + }, + { + "Function Name": "_createAnimationTracks", + "Structural Impact": 71.3, + "Lines of Code (LOC)": 103, + "Control Flow Branches": 26, + "Input Parameters": 5, + "Control Flow Ratio": "89.7%", + "Start Line": 4514, + "End Line": 4616 + }, + { + "Function Name": "getDependency", + "Structural Impact": 67.4, + "Lines of Code (LOC)": 101, + "Control Flow Branches": 35, + "Input Parameters": 2, + "Control Flow Ratio": "79.5%", + "Start Line": 2872, + "End Line": 2972 + }, + { + "Function Name": "loadMaterial", + "Structural Impact": 50.1, + "Lines of Code (LOC)": 153, + "Control Flow Branches": 29, + "Input Parameters": 1, + "Control Flow Ratio": "85.3%", + "Start Line": 3542, + "End Line": 3694 + }, + { + "Function Name": "loadMesh", + "Structural Impact": 49.5, + "Lines of Code (LOC)": 142, + "Control Flow Branches": 29, + "Input Parameters": 1, + "Control Flow Ratio": "78.4%", + "Start Line": 3799, + "End Line": 3940 + }, + { + "Function Name": "addMorphTargets", + "Structural Impact": 48.0, + "Lines of Code (LOC)": 80, + "Control Flow Branches": 21, + "Input Parameters": 3, + "Control Flow Ratio": "72.4%", + "Start Line": 2333, + "End Line": 2412 + }, + { + "Function Name": "_loadNodeShallow", + "Structural Impact": 44.1, + "Lines of Code (LOC)": 146, + "Control Flow Branches": 25, + "Input Parameters": 1, + "Control Flow Ratio": "75.8%", + "Start Line": 4274, + "End Line": 4419 + }, + { + "Function Name": "createNodeMesh", + "Structural Impact": 40.9, + "Lines of Code (LOC)": 139, + "Control Flow Branches": 23, + "Input Parameters": 1, + "Control Flow Ratio": "69.7%", + "Start Line": 1691, + "End Line": 1829 + }, + { + "Function Name": "loadAccessor", + "Structural Impact": 39.2, + "Lines of Code (LOC)": 133, + "Control Flow Branches": 22, + "Input Parameters": 1, + "Control Flow Ratio": "78.6%", + "Start Line": 3071, + "End Line": 3203 + }, + { + "Function Name": "computeBounds", + "Structural Impact": 37.5, + "Lines of Code (LOC)": 109, + "Control Flow Branches": 15, + "Input Parameters": 3, + "Control Flow Ratio": "83.3%", + "Start Line": 4669, + "End Line": 4777 + }, + { + "Function Name": "loadTextureImage", + "Structural Impact": 36.6, + "Lines of Code (LOC)": 53, + "Control Flow Branches": 16, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 3233, + "End Line": 3285 + }, + { + "Function Name": "_loadLight", + "Structural Impact": 31.7, + "Lines of Code (LOC)": 68, + "Control Flow Branches": 19, + "Input Parameters": 1, + "Control Flow Ratio": "82.6%", + "Start Line": 694, + "End Line": 761 + }, + { + "Function Name": "assignFinalMaterial", + "Structural Impact": 29.9, + "Lines of Code (LOC)": 89, + "Control Flow Branches": 17, + "Input Parameters": 1, + "Control Flow Ratio": "77.3%", + "Start Line": 3439, + "End Line": 3527 + }, + { + "Function Name": "constructor", + "Structural Impact": 27.9, + "Lines of Code (LOC)": 74, + "Control Flow Branches": 13, + "Input Parameters": 2, + "Control Flow Ratio": "76.5%", + "Start Line": 2549, + "End Line": 2622 + }, + { + "Function Name": "load", + "Structural Impact": 23.9, + "Lines of Code (LOC)": 76, + "Control Flow Branches": 8, + "Input Parameters": 4, + "Control Flow Ratio": "88.9%", + "Start Line": 264, + "End Line": 339 + }, + { + "Function Name": "loadImageSource", + "Structural Impact": 23.5, + "Lines of Code (LOC)": 88, + "Control Flow Branches": 10, + "Input Parameters": 2, + "Control Flow Ratio": "52.6%", + "Start Line": 3287, + "End Line": 3374 + }, + { + "Function Name": "loadAnimation", + "Structural Impact": 22.9, + "Lines of Code (LOC)": 90, + "Control Flow Branches": 12, + "Input Parameters": 1, + "Control Flow Ratio": "70.6%", + "Start Line": 4059, + "End Line": 4148 + }, + { + "Function Name": "addPrimitiveAttributes", + "Structural Impact": 22.9, + "Lines of Code (LOC)": 59, + "Control Flow Branches": 9, + "Input Parameters": 3, + "Control Flow Ratio": "75.0%", + "Start Line": 4787, + "End Line": 4845 + }, + { + "Function Name": "loadBufferView", + "Structural Impact": 21.7, + "Lines of Code (LOC)": 67, + "Control Flow Branches": 12, + "Input Parameters": 1, + "Control Flow Ratio": "63.2%", + "Start Line": 1605, + "End Line": 1671 + }, + { + "Function Name": "loadScene", + "Structural Impact": 21.2, + "Lines of Code (LOC)": 85, + "Control Flow Branches": 11, + "Input Parameters": 1, + "Control Flow Ratio": "61.1%", + "Start Line": 4428, + "End Line": 4512 + }, + { + "Function Name": "assignTexture", + "Structural Impact": 20.0, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 7, + "Input Parameters": 4, + "Control Flow Ratio": "70.0%", + "Start Line": 3386, + "End Line": 3427 + }, + { + "Function Name": "extendTexture", + "Structural Impact": 19.5, + "Lines of Code (LOC)": 43, + "Control Flow Branches": 9, + "Input Parameters": 2, + "Control Flow Ratio": "81.8%", + "Start Line": 2005, + "End Line": 2047 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 18.2, + "Lines of Code (LOC)": 53, + "Control Flow Branches": 8, + "Input Parameters": 2, + "Control Flow Ratio": "80.0%", + "Start Line": 1019, + "End Line": 1071 + }, + { + "Function Name": "decodePrimitive", + "Structural Impact": 16.8, + "Lines of Code (LOC)": 58, + "Control Flow Branches": 7, + "Input Parameters": 2, + "Control Flow Ratio": "77.8%", + "Start Line": 1929, + "End Line": 1986 + }, + { + "Function Name": "loadNode", + "Structural Impact": 16.7, + "Lines of Code (LOC)": 79, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 4192, + "End Line": 4270 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 16.3, + "Lines of Code (LOC)": 49, + "Control Flow Branches": 7, + "Input Parameters": 2, + "Control Flow Ratio": "77.8%", + "Start Line": 905, + "End Line": 953 + }, + { + "Function Name": "getImageURIMimeType", + "Structural Impact": 16.0, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 10, + "Input Parameters": 1, + "Control Flow Ratio": "71.4%", + "Start Line": 2533, + "End Line": 2541 + }, + { + "Function Name": "constructor", + "Structural Impact": 15.8, + "Lines of Code (LOC)": 62, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "88.9%", + "Start Line": 1840, + "End Line": 1901 + }, + { + "Function Name": "updateMorphTargets", + "Structural Impact": 15.8, + "Lines of Code (LOC)": 38, + "Control Flow Branches": 7, + "Input Parameters": 2, + "Control Flow Ratio": "77.8%", + "Start Line": 2420, + "End Line": 2457 + }, + { + "Function Name": "parse", + "Structural Impact": 15.4, + "Lines of Code (LOC)": 66, + "Control Flow Branches": 6, + "Input Parameters": 2, + "Control Flow Ratio": "54.5%", + "Start Line": 2636, + "End Line": 2701 + }, + { + "Function Name": "loadSkin", + "Structural Impact": 14.5, + "Lines of Code (LOC)": 64, + "Control Flow Branches": 7, + "Input Parameters": 1, + "Control Flow Ratio": "63.6%", + "Start Line": 3987, + "End Line": 4050 + }, + { + "Function Name": "loadCamera", + "Structural Impact": 14.2, + "Lines of Code (LOC)": 30, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "72.7%", + "Start Line": 3949, + "End Line": 3978 + }, + { + "Function Name": "loadGeometries", + "Structural Impact": 12.9, + "Lines of Code (LOC)": 61, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "54.5%", + "Start Line": 3730, + "End Line": 3790 + }, + { + "Function Name": "_markDefs", + "Structural Impact": 12.5, + "Lines of Code (LOC)": 50, + "Control Flow Branches": 9, + "Input Parameters": 0, + "Control Flow Ratio": "75.0%", + "Start Line": 2708, + "End Line": 2757 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 12.4, + "Lines of Code (LOC)": 40, + "Control Flow Branches": 5, + "Input Parameters": 2, + "Control Flow Ratio": "71.4%", + "Start Line": 1099, + "End Line": 1138 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 11.8, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 5, + "Input Parameters": 2, + "Control Flow Ratio": "71.4%", + "Start Line": 1308, + "End Line": 1335 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 5, + "Input Parameters": 2, + "Control Flow Ratio": "71.4%", + "Start Line": 1217, + "End Line": 1240 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 1458, + "End Line": 1491 + }, + { + "Function Name": "getNormalizedComponentScale", + "Structural Impact": 11.1, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 2507, + "End Line": 2531 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 10.1, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "66.7%", + "Start Line": 1410, + "End Line": 1438 + }, + { + "Function Name": "createPrimitiveKey", + "Structural Impact": 10.0, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "62.5%", + "Start Line": 2459, + "End Line": 2489 + }, + { + "Function Name": "extendParams", + "Structural Impact": 9.6, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "75.0%", + "Start Line": 813, + "End Line": 843 + }, + { + "Function Name": "_getNodeRef", + "Structural Impact": 9.6, + "Lines of Code (LOC)": 32, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 2795, + "End Line": 2826 + }, + { + "Function Name": "reduceAssociations", + "Structural Impact": 8.9, + "Lines of Code (LOC)": 37, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 4476, + "End Line": 4512 + }, + { + "Function Name": "addUnknownExtensionsToUserData", + "Structural Impact": 8.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 2283, + "End Line": 2298 + }, + { + "Function Name": "createNodeMesh", + "Structural Impact": 8.8, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "44.4%", + "Start Line": 4150, + "End Line": 4183 + }, + { + "Function Name": "loadBuffer", + "Structural Impact": 8.6, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 3011, + "End Line": 3041 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 8.5, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 1511, + "End Line": 1538 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 8.5, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 1558, + "End Line": 1585 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 1167, + "End Line": 1189 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 7.9, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 1364, + "End Line": 1382 + }, + { + "Function Name": "assignExtrasToUserData", + "Structural Impact": 7.8, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 2306, + "End Line": 2322 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 1268, + "End Line": 1280 + }, + { + "Function Name": "constructor", + "Structural Impact": 7.4, + "Lines of Code (LOC)": 119, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 253 + }, + { + "Function Name": "_markDefs", + "Structural Impact": 7.0, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 5, + "Input Parameters": 0, + "Control Flow Ratio": "83.3%", + "Start Line": 673, + "End Line": 692 + }, + { + "Function Name": "getDependencies", + "Structural Impact": 6.8, + "Lines of Code (LOC)": 22, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2981, + "End Line": 3002 + }, + { + "Function Name": "getMaterialExtension", + "Structural Impact": 6.7, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 614, + "End Line": 626 + }, + { + "Function Name": "createNodeAttachment", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 771, + "End Line": 788 + }, + { + "Function Name": "createUniqueName", + "Structural Impact": 6.5, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 3703, + "End Line": 3719 + }, + { + "Function Name": "interpolate_", + "Structural Impact": 6.4, + "Lines of Code (LOC)": 39, + "Control Flow Branches": 1, + "Input Parameters": 4, + "Control Flow Ratio": "33.3%", + "Start Line": 2102, + "End Line": 2140 + }, + { + "Function Name": "updateMappings", + "Structural Impact": 6.4, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 2803, + "End Line": 2826 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 5.9, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 863, + "End Line": 877 + }, + { + "Function Name": "_addNodeRef", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "66.7%", + "Start Line": 2772, + "End Line": 2784 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 981, + "End Line": 991 + }, + { + "Function Name": "_getArrayFromAccessor", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 22, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 4618, + "End Line": 4639 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 3212, + "End Line": 3231 + }, + { + "Function Name": "_invokeAll", + "Structural Impact": 5.1, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2845, + "End Line": 2862 + }, + { + "Function Name": "_onError", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 295, + "End Line": 310 + }, + { + "Function Name": "_invokeOne", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 2828, + "End Line": 2843 + }, + { + "Function Name": "loadBufferView", + "Structural Impact": 4.9, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 3050, + "End Line": 3062 + }, + { + "Function Name": "collectMorphTargets", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 4521, + "End Line": 4529 + }, + { + "Function Name": "constructor", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 1914, + "End Line": 1927 + }, + { + "Function Name": "getDependency", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "33.3%", + "Start Line": 763, + "End Line": 769 + }, + { + "Function Name": "copySampleValue_", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 2082, + "End Line": 2100 + }, + { + "Function Name": "createDefaultMaterial", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2263, + "End Line": 2281 + }, + { + "Function Name": "_createCubicSplineTrackInterpolant", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 4641, + "End Line": 4658 + }, + { + "Function Name": "createAttributesKey", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 2491, + "End Line": 2505 + }, + { + "Function Name": "register", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 391, + "End Line": 401 + }, + { + "Function Name": "unregister", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 409, + "End Line": 419 + }, + { + "Function Name": "InterpolantFactoryMethodGLTFCubicSpline", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 4643, + "End Line": 4653 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 897, + "End Line": 903 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 973, + "End Line": 979 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1011, + "End Line": 1017 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1091, + "End Line": 1097 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1159, + "End Line": 1165 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1209, + "End Line": 1215 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1260, + "End Line": 1266 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1300, + "End Line": 1306 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1356, + "End Line": 1362 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1402, + "End Line": 1408 + }, + { + "Function Name": "GLTFRegistry", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 204 + "Start Line": 576, + "End Line": 608 }, { - "Function Name": "save_union_body_discriminator", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "interpolate_", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 2148, + "End Line": 2156 + }, + { + "Function Name": "constructor", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 2076, + "End Line": 2080 + }, + { + "Function Name": "parseAsync", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 47, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 2, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 180, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "dirty_equals", - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "typing" - ] - }, - "python/fastapi/tests/test_union_body_discriminator_annotated.py": { - "1. Artifact Identity": { - "Filename": "test_union_body_discriminator_annotated.py", - "Path": "python/fastapi/tests/test_union_body_discriminator_annotated.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1567.53, - "Y": -211.05, - "Z": -329.6 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 204, - "Coding LOC": 184, - "Documentation LOC": 1, - "Structural Magnitude": 35.78, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.34%", - "Concurrency Exposure": "25.46%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 560, + "End Line": 570 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 8.6, - "Lines of Code (LOC)": 144, + "Function Name": "assignAttributeAccessor", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 4793, + "End Line": 4802 + }, + { + "Function Name": "add", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 588, + "End Line": 592 + }, + { + "Function Name": "constructor", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1598, + "End Line": 1603 + }, + { + "Function Name": "createDracoPrimitive", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 203 + "Start Line": 3736, + "End Line": 3746 }, { - "Function Name": "client_fixture", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, + "Function Name": "constructor", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 45 + "Start Line": 663, + "End Line": 671 }, { - "Function Name": "get_pet_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "onLoad", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 3331, + "End Line": 3338 }, { - "Function Name": "test_union_body_discriminator_assignment", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "setDRACOLoader", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 + "Start Line": 348, + "End Line": 353 }, { - "Function Name": "test_union_body_discriminator_annotated", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "setKTX2Loader", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 362, + "End Line": 367 }, { - "Function Name": "create_pet_assignment", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "setMeshoptDecoder", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 + "Start Line": 376, + "End Line": 381 }, { - "Function Name": "create_pet_annotated", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 52, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 11, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 2, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 4, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 8, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 173, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 9, - "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "typing" - ] - }, - "python/fastapi/tests/test_union_forms.py": { - "1. Artifact Identity": { - "Filename": "test_union_forms.py", - "Path": "python/fastapi/tests/test_union_forms.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1339.2, - "Y": -229.48, - "Z": 264.87 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 164, - "Coding LOC": 143, - "Documentation LOC": 0, - "Structural Magnitude": 24.66, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.02%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 582, + "End Line": 586 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.1, - "Lines of Code (LOC)": 102, + "Function Name": "remove", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 163 + "Start Line": 594, + "End Line": 598 }, { - "Function Name": "post_union_form", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 856, + "End Line": 861 }, { - "Function Name": "test_post_user_form", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 36 + "Start Line": 890, + "End Line": 895 }, { - "Function Name": "test_post_company_form", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 46 + "Start Line": 966, + "End Line": 971 }, { - "Function Name": "test_invalid_form_data", - "Structural Impact": 1.3, + "Function Name": "constructor", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 54 + "Start Line": 1004, + "End Line": 1009 }, { - "Function Name": "test_empty_form", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 59 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 44, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 11, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 127, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 10, - "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "typing" - ] - }, - "python/fastapi/tests/test_union_inherited_body.py": { - "1. Artifact Identity": { - "Filename": "test_union_inherited_body.py", - "Path": "python/fastapi/tests/test_union_inherited_body.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, Item", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4497.43, - "Y": 200.81, - "Z": -485.54 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 143, - "Coding LOC": 127, - "Documentation LOC": 0, - "Structural Magnitude": 19.74, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.37%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 1084, + "End Line": 1089 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.3, - "Lines of Code (LOC)": 106, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 142 + "Start Line": 1152, + "End Line": 1157 }, { - "Function Name": "save_union_different_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 1202, + "End Line": 1207 }, { - "Function Name": "test_post_extended_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 1253, + "End Line": 1258 }, { - "Function Name": "test_post_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 114, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 4, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" - ] - }, - "python/fastapi/tests/test_validate_response.py": { - "1. Artifact Identity": { - "Filename": "test_validate_response.py", - "Path": "python/fastapi/tests/test_validate_response.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1932.68, - "Y": -160.32, - "Z": -1052.78 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 55, - "Documentation LOC": 0, - "Structural Magnitude": 38.0, - "Control Flow Ratio": "16.2%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.145 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.09%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "13.05%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 1293, + "End Line": 1298 + }, { - "Function Name": "get_valid_none", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 27, - "End Line": 31 + "Control Flow Ratio": "0.0%", + "Start Line": 1349, + "End Line": 1354 + }, + { + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1395, + "End Line": 1400 + }, + { + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1451, + "End Line": 1456 + }, + { + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1504, + "End Line": 1509 }, { - "Function Name": "test_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 51, - "End Line": 53 + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1551, + "End Line": 1556 }, { - "Function Name": "test_invalid_none", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 56, - "End Line": 58 + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1684, + "End Line": 1689 }, { - "Function Name": "test_double_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 75, - "End Line": 77 + "Function Name": "setExtensions", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 2624, + "End Line": 2628 }, { - "Function Name": "test_invalid_list", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 80, - "End Line": 82 + "Function Name": "setPlugins", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 2630, + "End Line": 2634 }, { - "Function Name": "get_invalidlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "removeAll", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 45 + "Start Line": 600, + "End Line": 604 }, { - "Function Name": "test_valid_none_data", + "Function Name": "constructor", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 65 + "Start Line": 801, + "End Line": 805 }, { - "Function Name": "test_valid_none_none", + "Function Name": "getMaterialType", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 68, - "End Line": 72 + "Start Line": 807, + "End Line": 811 }, { - "Function Name": "get_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 1999, + "End Line": 2003 }, { - "Function Name": "get_invalid_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 2060, + "End Line": 2064 }, { - "Function Name": "get_innerinvalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "getMaterialType", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 3529, + "End Line": 3533 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 31, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 614, + "Sequential Logic Declarations": 315, + "Function Parameters": 207, + "Function/Method Declarations": 129, + "Class/Entity Declarations": 26, + "Defensive Programming Constructs": 247, + "Type/Safety Bypasses": 3, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 0, + "I/O and Network Boundaries": 13, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 1186, + "Commented-out Code (Dead Logic)": 2, + "Structured Documentation Blocks": 150, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 415, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 2, - "Collection Iterators / Comprehensions": 0, + "Closures and Anonymous Functions": 86, + "Global State Dependencies": 5, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 3, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Metaprogramming & Reflection": 4, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 1, + "Planned Work (TODOs)": 3, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 49, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 122, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 11, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 14, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 4, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 418, + "Resource Deallocation & Cleanup": 2, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 31, + "Structural Tab Indentations": 2300, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, + "Serialization Parsing": 3, + "Regex Execution": 8, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, @@ -220380,16 +220199,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 14, - "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 2, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 11, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 546, + "Design Camel Case": 199, + "Design Snake Case": 323, + "Design Pascal Case": 8, + "Design Upper Case": 14, + "Design Short Vars": 51, + "Design Long Vars": 3, + "Duplicate Logic": 12, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -220413,35 +220232,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pydantic", - "pytest" + "../utils/BufferGeometryUtils.js", + "../utils/SkeletonUtils.js", + "three", + "three/addons/loaders/GLTFLoader.js" ] }, - "python/fastapi/tests/test_validate_response_dataclass.py": { + "javascript/threejs/Matrix4.js": { "1. Artifact Identity": { - "Filename": "test_validate_response_dataclass.py", - "Path": "python/fastapi/tests/test_validate_response_dataclass.py", - "Language": "Python", + "Filename": "Matrix4.js", + "Path": "javascript/threejs/Matrix4.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 3408.88, - "Y": 2.11, - "Z": 1441.99 + "X": 3458.53, + "Y": -30.17, + "Z": -5519.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -220450,638 +220268,430 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 52, - "Coding LOC": 34, - "Documentation LOC": 0, - "Structural Magnitude": 20.48, - "Control Flow Ratio": "13.6%", + "Total LOC": 1315, + "Coding LOC": 597, + "Documentation LOC": 376, + "Structural Magnitude": 292.94, + "Control Flow Ratio": "44.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.147 + "Raw Cognitive Density": 0.515 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.11%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "12.08%", + "Cognitive Load Exposure": "14.03%", + "Error & Exception Exposure": "51.2%", + "Tech Debt Exposure": "89.15%", + "Testing Exposure": "80.0%", + "API Exposure": "1.93%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "State Flux Exposure": "54.96%", + "Commented Logic Exposure": "5.06%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 39, - "End Line": 41 + "Function Name": "makePerspective", + "Structural Impact": 23.2, + "Lines of Code (LOC)": 45, + "Control Flow Branches": 6, + "Input Parameters": 8, + "Control Flow Ratio": "75.0%", + "Start Line": 1122, + "End Line": 1166 }, { - "Function Name": "test_double_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 44, - "End Line": 46 + "Function Name": "makeOrthographic", + "Structural Impact": 23.2, + "Lines of Code (LOC)": 45, + "Control Flow Branches": 6, + "Input Parameters": 8, + "Control Flow Ratio": "75.0%", + "Start Line": 1182, + "End Line": 1226 }, { - "Function Name": "test_invalid_list", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "makeRotationFromEuler", + "Structural Impact": 23.0, + "Lines of Code (LOC)": 121, + "Control Flow Branches": 11, + "Input Parameters": 1, + "Control Flow Ratio": "91.7%", + "Start Line": 338, + "End Line": 458 + }, + { + "Function Name": "lookAt", + "Structural Impact": 12.3, + "Lines of Code (LOC)": 46, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 483, + "End Line": 528 + }, + { + "Function Name": "constructor", + "Structural Impact": 9.4, + "Lines of Code (LOC)": 23, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 49, - "End Line": 51 + "Input Parameters": 16, + "Control Flow Ratio": "100.0%", + "Start Line": 79, + "End Line": 101 }, { - "Function Name": "get_invalidlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 33 + "Function Name": "decompose", + "Structural Impact": 8.7, + "Lines of Code (LOC)": 54, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "40.0%", + "Start Line": 1053, + "End Line": 1106 }, { - "Function Name": "get_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Function Name": "makeTranslation", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "66.7%", + "Start Line": 810, + "End Line": 838 }, { - "Function Name": "get_innerinvalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 19, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 2, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pydantic.dataclasses", - "pytest" - ] - }, - "python/fastapi/tests/test_validation_error_context.py": { - "1. Artifact Identity": { - "Filename": "test_validation_error_context.py", - "Path": "python/fastapi/tests/test_validation_error_context.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 3057.56, - "Y": -46.26, - "Z": -990.18 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 169, - "Coding LOC": 123, - "Documentation LOC": 0, - "Structural Magnitude": 69.56, - "Control Flow Ratio": "9.6%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.515 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "14.06%", - "Error & Exception Exposure": "12.22%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "11.29%", - "Concurrency Exposure": "98.38%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Function Name": "setPosition", + "Structural Impact": 7.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "66.7%", + "Start Line": 683, + "End Line": 703 + }, { - "Function Name": "test_websocket_validation_error_includes_endpoint_context", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 12, + "Function Name": "extractBasis", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "33.3%", + "Start Line": 239, + "End Line": 257 + }, + { + "Function Name": "equals", + "Structural Impact": 4.9, + "Lines of Code (LOC)": 14, "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 113, - "End Line": 124 + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 1234, + "End Line": 1247 }, { - "Function Name": "test_subapp_websocket_validation_error_includes_endpoint_context", - "Structural Impact": 3.6, + "Function Name": "set", + "Structural Impact": 4.7, "Lines of Code (LOC)": 12, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 140, - "End Line": 151 + "Control Flow Branches": 0, + "Input Parameters": 16, + "Control Flow Ratio": "0.0%", + "Start Line": 125, + "End Line": 136 }, { - "Function Name": "test_request_validation_error_includes_endpoint_context", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "extractRotation", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 38, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 87, - "End Line": 97 + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 289, + "End Line": 326 }, { - "Function Name": "test_response_validation_error_includes_endpoint_context", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "invert", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 52, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 100, - "End Line": 110 + "Control Flow Ratio": "33.3%", + "Start Line": 712, + "End Line": 763 }, { - "Function Name": "test_subapp_request_validation_error_includes_endpoint_context", - "Structural Impact": 2.5, + "Function Name": "fromArray", + "Structural Impact": 4.0, "Lines of Code (LOC)": 11, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 127, - "End Line": 137 + "Input Parameters": 2, + "Control Flow Ratio": "33.3%", + "Start Line": 1256, + "End Line": 1266 }, { - "Function Name": "websocket_validation_handler", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "compose", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 35, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 52 + "Start Line": 1004, + "End Line": 1038 }, { - "Function Name": "capture", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "multiplyMatrices", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 39, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 22 + "Start Line": 562, + "End Line": 600 }, { - "Function Name": "request_validation_handler", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "makeShear", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 6, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 36 + "Start Line": 980, + "End Line": 993 }, { - "Function Name": "response_validation_handler", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "toArray", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 43 + "Start Line": 1276, + "End Line": 1302 }, { - "Function Name": "websocket_endpoint", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "makeRotationAxis", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 22, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 74 + "Start Line": 923, + "End Line": 944 }, { - "Function Name": "subapp_websocket_endpoint", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "makeScale", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 81 + "Start Line": 954, + "End Line": 967 }, { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "makeBasis", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 267, + "End Line": 278 + }, + { + "Function Name": "setFromMatrix3", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 214, + "End Line": 229 }, { - "Function Name": "get_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "makeRotationX", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 57 + "Start Line": 847, + "End Line": 862 }, { - "Function Name": "test_validation_error_with_no_context", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "makeRotationY", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 162, - "End Line": 168 + "Start Line": 871, + "End Line": 886 }, { - "Function Name": "test_validation_error_with_only_path", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "makeRotationZ", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 895, + "End Line": 910 + }, + { + "Function Name": "copy", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 175, + "End Line": 187 + }, + { + "Function Name": "scale", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 771, + "End Line": 783 + }, + { + "Function Name": "copyPosition", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 196, + "End Line": 206 + }, + { + "Function Name": "multiplyScalar", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 608, + "End Line": 619 + }, + { + "Function Name": "determinant", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 154, - "End Line": 159 + "Start Line": 628, + "End Line": 650 }, { - "Function Name": "get_item", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "transpose", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 62 + "Start Line": 657, + "End Line": 672 }, { - "Function Name": "get_sub_item", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "identity", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 67 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 7, - "Sequential Logic Declarations": 66, - "Function Parameters": 17, - "Function/Method Declarations": 17, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 34, - "Type/Safety Bypasses": 13, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 2, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 27, - "Asynchronous/Concurrent Execution": 11, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 11, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 7, - "Fatal Aborts & Exceptions": 3, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 2, - "Private / Encapsulated Scopes": 1, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 84, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 8, - "Core Var Decl": 17, - "Design Camel Case": 0, - "Design Snake Case": 17, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 11, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 2, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pydantic" - ] - }, - "python/fastapi/tests/test_vibe.py": { - "1. Artifact Identity": { - "Filename": "test_vibe.py", - "Path": "python/fastapi/tests/test_vibe.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 837.32, - "Y": -232.84, - "Z": 800.23 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 18, - "Coding LOC": 13, - "Documentation LOC": 0, - "Structural Magnitude": 8.26, - "Control Flow Ratio": "14.3%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.385 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "80.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.46%", - "Concurrency Exposure": "56.59%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "86.67%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 143, + "End Line": 156 + }, { - "Function Name": "test_vibe_raises", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 2, + "Function Name": "makeRotationFromQuaternion", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 468, + "End Line": 472 + }, + { + "Function Name": "multiply", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 536, + "End Line": 540 + }, + { + "Function Name": "premultiply", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 548, + "End Line": 552 + }, + { + "Function Name": "getMaxScaleOnAxis", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 8, - "End Line": 17 + "Control Flow Ratio": "0.0%", + "Start Line": 790, + "End Line": 800 }, { - "Function Name": "ai_vibes", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "clone", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 163, + "End Line": 167 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 12, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 3, + "Control Flow Branches": 40, + "Sequential Logic Declarations": 51, + "Function Parameters": 37, + "Function/Method Declarations": 37, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 19, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 86, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 178, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -221091,22 +220701,22 @@ "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 10, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 2, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, + "Immutable Data Declarations": 98, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 8, + "Structural Tab Indentations": 582, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -221123,15 +220733,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 3, - "Design Camel Case": 0, - "Design Snake Case": 3, + "Core Var Decl": 140, + "Design Camel Case": 12, + "Design Snake Case": 128, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 89, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 27, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -221140,8 +220750,8 @@ "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, + "Global Environment Mutation": 1, + "Commented-Out Executable Logic": 1, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, "Non-Standard Unicode / Homoglyphs": 0, @@ -221155,35 +220765,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "pytest", - "typing" + "../constants.js", + "./Vector3.js" ] }, - "python/fastapi/tests/test_webhooks_security.py": { + "javascript/threejs/WebGLProgram.js": { "1. Artifact Identity": { - "Filename": "test_webhooks_security.py", - "Path": "python/fastapi/tests/test_webhooks_security.py", - "Language": "Python", + "Filename": "WebGLProgram.js", + "Path": "javascript/threejs/WebGLProgram.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 2838.89, - "Y": -59.72, - "Z": -1958.05 + "X": 3008.36, + "Y": -88.2, + "Z": -5520.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -221192,318 +220799,372 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 135, - "Coding LOC": 116, - "Documentation LOC": 5, - "Structural Magnitude": 17.12, - "Control Flow Ratio": "5.3%", + "Total LOC": 1029, + "Coding LOC": 621, + "Documentation LOC": 30, + "Structural Magnitude": 684.02, + "Control Flow Ratio": "77.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.034 + "Raw Cognitive Density": 0.857 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.31%", - "Error & Exception Exposure": "44.19%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "6.55%", + "Cognitive Load Exposure": "60.53%", + "Error & Exception Exposure": "47.87%", + "Tech Debt Exposure": "21.55%", + "Testing Exposure": "80.0%", + "API Exposure": "0.01%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", + "State Flux Exposure": "53.38%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "15.98%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.8, - "Lines of Code (LOC)": 96, + "Function Name": "WebGLProgram", + "Structural Impact": 455.6, + "Lines of Code (LOC)": 615, + "Control Flow Branches": 189, + "Input Parameters": 4, + "Control Flow Ratio": "93.6%", + "Start Line": 412, + "End Line": 1026 + }, + { + "Function Name": "onFirstUse", + "Structural Impact": 24.5, + "Lines of Code (LOC)": 94, + "Control Flow Branches": 13, + "Input Parameters": 1, + "Control Flow Ratio": "86.7%", + "Start Line": 856, + "End Line": 949 + }, + { + "Function Name": "getShaderErrors", + "Structural Impact": 13.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 5, + "Input Parameters": 3, + "Control Flow Ratio": "62.5%", + "Start Line": 58, + "End Line": 82 + }, + { + "Function Name": "generatePrecision", + "Structural Impact": 10.4, + "Lines of Code (LOC)": 38, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "71.4%", + "Start Line": 306, + "End Line": 343 + }, + { + "Function Name": "fetchAttributeLocations", + "Structural Impact": 10.1, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "57.1%", + "Start Line": 178, + "End Line": 206 + }, + { + "Function Name": "getEncodingComponents", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 36, + "End Line": 56 + }, + { + "Function Name": "includeReplacer", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 253, + "End Line": 276 + }, + { + "Function Name": "generateDefines", + "Structural Impact": 6.5, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 160, + "End Line": 176 + }, + { + "Function Name": "handleSource", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 18, "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "9.5%", - "Start Line": 39, - "End Line": 134 + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 15, + "End Line": 32 }, { - "Function Name": "new_subscription", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "loopReplacer", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 4, + "Control Flow Ratio": "25.0%", + "Start Line": 288, + "End Line": 302 + }, + { + "Function Name": "generateVertexExtensions", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 149, + "End Line": 158 + }, + { + "Function Name": "generateEnvMapTypeDefine", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 362, + "End Line": 368 + }, + { + "Function Name": "generateEnvMapModeDefine", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 374, + "End Line": 380 + }, + { + "Function Name": "generateEnvMapBlendingDefine", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 388, + "End Line": 394 + }, + { + "Function Name": "getToneMappingFunction", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "20.0%", + "Start Line": 110, + "End Line": 123 + }, + { + "Function Name": "generateCubeUVSize", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 396, + "End Line": 410 + }, + { + "Function Name": "generateShadowMapTypeDefine", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 350, + "End Line": 354 + }, + { + "Function Name": "replaceLightNums", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 24 + "Start Line": 214, + "End Line": 231 }, { - "Function Name": "test_dummy_webhook", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Function Name": "getUniforms", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 36 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 36, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 4, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 1, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 100, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, - "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "datetime", - "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "typing" - ] - }, - "python/fastapi/tests/test_wrapped_method_forward_reference.py": { - "1. Artifact Identity": { - "Filename": "test_wrapped_method_forward_reference.py", - "Path": "python/fastapi/tests/test_wrapped_method_forward_reference.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1355.55, - "Y": -258.26, - "Z": 1417.38 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 32, - "Coding LOC": 18, - "Documentation LOC": 6, - "Structural Magnitude": 9.66, - "Control Flow Ratio": "7.1%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.167 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.21%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.93%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Control Flow Ratio": "50.0%", + "Start Line": 955, + "End Line": 966 + }, { - "Function Name": "test_wrapped_method_type_inference", - "Structural Impact": 2.8, + "Function Name": "getAttributes", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 972, + "End Line": 983 + }, + { + "Function Name": "getTexelEncodingFunction", + "Structural Impact": 2.5, "Lines of Code (LOC)": 15, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 98 + }, + { + "Function Name": "isReady", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 17, - "End Line": 31 + "Control Flow Ratio": "50.0%", + "Start Line": 990, + "End Line": 1000 }, { - "Function Name": "method", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "replaceClippingPlaneNums", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 233, + "End Line": 239 }, { - "Function Name": "passthrough", + "Function Name": "getLuminanceFunction", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 127, + "End Line": 147 + }, + { + "Function Name": "filterEmptyLine", "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 14 + "Start Line": 208, + "End Line": 212 + }, + { + "Function Name": "resolveIncludes", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 245, + "End Line": 249 + }, + { + "Function Name": "unrollLoops", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 282, + "End Line": 286 + }, + { + "Function Name": "destroy", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1004, + "End Line": 1011 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 13, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 229, + "Sequential Logic Declarations": 66, + "Function Parameters": 29, + "Function/Method Declarations": 28, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, + "Defensive Programming Constructs": 38, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 70, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 2, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 0, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Closures and Anonymous Functions": 4, + "Global State Dependencies": 3, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 6, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 8, "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Planned Work (TODOs)": 1, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 1, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 5, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 1, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Immutable Data Declarations": 65, + "Resource Deallocation & Cleanup": 1, + "Private / Encapsulated Scopes": 204, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 12, + "Structural Tab Indentations": 549, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, - "Regex Execution": 0, + "Regex Execution": 18, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, @@ -221512,16 +221173,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 4, - "Design Camel Case": 0, - "Design Snake Case": 4, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 98, + "Design Camel Case": 64, + "Design Snake Case": 33, "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Upper Case": 1, + "Design Short Vars": 9, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -221545,34 +221206,39 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 8, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".forward_reference_type", - "fastapi", - "fastapi.testclient", - "functools" + "../../constants.js", + "../../math/ColorManagement.js", + "../../math/Matrix3.js", + "../../math/Vector3.js", + "../../utils.js", + "../shaders/ShaderChunk.js", + "./WebGLShader.js", + "./WebGLUniforms.js" ] }, - "python/fastapi/tests/test_ws_dependencies.py": { + "javascript/threejs/WebGLRenderer.js": { "1. Artifact Identity": { - "Filename": "test_ws_dependencies.py", - "Path": "python/fastapi/tests/test_ws_dependencies.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", + "Filename": "WebGLRenderer.js", + "Path": "javascript/threejs/WebGLRenderer.js", + "Language": "Javascript", + "Architect": "the renderer", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Alert": "TYPOSQUATTING THREAT: 'math/Vector4.js' mimics 'math/Vector3.js'", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 1612.06, - "Y": -200.0, - "Z": 36.9 + "X": 2619.95, + "Y": -96.13, + "Z": -4923.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -221581,851 +221247,863 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 73, - "Coding LOC": 48, - "Documentation LOC": 0, - "Structural Magnitude": 39.56, - "Control Flow Ratio": "8.3%", + "Total LOC": 3639, + "Coding LOC": 1628, + "Documentation LOC": 734, + "Structural Magnitude": 2408.76, + "Control Flow Ratio": "77.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.896 + "Raw Cognitive Density": 1.1 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "32.09%", - "Error & Exception Exposure": "36.14%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "10.7%", - "Concurrency Exposure": "100.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Cognitive Load Exposure": "40.12%", + "Error & Exception Exposure": "39.1%", + "Tech Debt Exposure": "52.0%", + "Testing Exposure": "80.0%", + "API Exposure": "1.69%", + "Concurrency Exposure": "24.71%", + "State Flux Exposure": "98.04%", + "Commented Logic Exposure": "4.97%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_index", - "Structural Impact": 2.2, + "Function Name": "constructor", + "Structural Impact": 642.0, + "Lines of Code (LOC)": 2545, + "Control Flow Branches": 363, + "Input Parameters": 1, + "Control Flow Ratio": "80.5%", + "Start Line": 70, + "End Line": 2614 + }, + { + "Function Name": "setProgram", + "Structural Impact": 374.1, + "Lines of Code (LOC)": 428, + "Control Flow Branches": 143, + "Input Parameters": 5, + "Control Flow Ratio": "94.7%", + "Start Line": 2295, + "End Line": 2722 + }, + { + "Function Name": "copyTextureToTexture", + "Structural Impact": 141.4, + "Lines of Code (LOC)": 235, + "Control Flow Branches": 48, + "Input Parameters": 6, + "Control Flow Ratio": "90.6%", + "Start Line": 3205, + "End Line": 3439 + }, + { + "Function Name": "renderBufferDirect", + "Structural Impact": 108.5, + "Lines of Code (LOC)": 159, + "Control Flow Branches": 37, + "Input Parameters": 6, + "Control Flow Ratio": "78.7%", + "Start Line": 1175, + "End Line": 1333 + }, + { + "Function Name": "render", + "Structural Impact": 94.2, + "Lines of Code (LOC)": 221, + "Control Flow Branches": 47, + "Input Parameters": 2, + "Control Flow Ratio": "92.2%", + "Start Line": 1600, + "End Line": 1820 + }, + { + "Function Name": "projectObject", + "Structural Impact": 81.7, + "Lines of Code (LOC)": 113, + "Control Flow Branches": 33, + "Input Parameters": 4, + "Control Flow Ratio": "91.7%", + "Start Line": 1822, + "End Line": 1934 + }, + { + "Function Name": "setRenderTarget", + "Structural Impact": 80.4, + "Lines of Code (LOC)": 168, + "Control Flow Branches": 35, + "Input Parameters": 3, + "Control Flow Ratio": "87.5%", + "Start Line": 2823, + "End Line": 2990 + }, + { + "Function Name": "getProgram", + "Structural Impact": 51.8, + "Lines of Code (LOC)": 116, + "Control Flow Branches": 22, + "Input Parameters": 3, + "Control Flow Ratio": "84.6%", + "Start Line": 2142, + "End Line": 2257 + }, + { + "Function Name": "readRenderTargetPixels", + "Structural Impact": 51.2, + "Lines of Code (LOC)": 65, + "Control Flow Branches": 15, + "Input Parameters": 8, + "Control Flow Ratio": "78.9%", + "Start Line": 3004, + "End Line": 3068 + }, + { + "Function Name": "readRenderTargetPixelsAsync", + "Structural Impact": 48.9, + "Lines of Code (LOC)": 78, + "Control Flow Branches": 14, + "Input Parameters": 8, + "Control Flow Ratio": "82.4%", + "Start Line": 3086, + "End Line": 3163 + }, + { + "Function Name": "renderTransmissionPass", + "Structural Impact": 44.2, + "Lines of Code (LOC)": 123, + "Control Flow Branches": 16, + "Input Parameters": 4, + "Control Flow Ratio": "84.2%", + "Start Line": 1960, + "End Line": 2082 + }, + { + "Function Name": "compile", + "Structural Impact": 38.6, + "Lines of Code (LOC)": 92, + "Control Flow Branches": 16, + "Input Parameters": 3, + "Control Flow Ratio": "84.2%", + "Start Line": 1371, + "End Line": 1462 + }, + { + "Function Name": "clear", + "Structural Impact": 23.8, + "Lines of Code (LOC)": 75, + "Control Flow Branches": 9, + "Input Parameters": 3, + "Control Flow Ratio": "81.8%", + "Start Line": 944, + "End Line": 1018 + }, + { + "Function Name": "renderObject", + "Structural Impact": 14.7, + "Lines of Code (LOC)": 30, + "Control Flow Branches": 4, + "Input Parameters": 6, + "Control Flow Ratio": "100.0%", + "Start Line": 2111, + "End Line": 2140 + }, + { + "Function Name": "renderScene", + "Structural Impact": 14.6, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 5, + "Input Parameters": 4, + "Control Flow Ratio": "100.0%", + "Start Line": 1936, + "End Line": 1958 + }, + { + "Function Name": "renderObjects", + "Structural Impact": 13.3, + "Lines of Code (LOC)": 26, + "Control Flow Branches": 5, + "Input Parameters": 3, + "Control Flow Ratio": "71.4%", + "Start Line": 2084, + "End Line": 2109 + }, + { + "Function Name": "compileAsync", + "Structural Impact": 12.9, + "Lines of Code (LOC)": 59, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 1478, + "End Line": 1536 + }, + { + "Function Name": "initTexture", + "Structural Impact": 12.5, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 7, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 3464, + "End Line": 3486 + }, + { + "Function Name": "setSize", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 650, + "End Line": 680 + }, + { + "Function Name": "setEffects", + "Structural Impact": 11.2, + "Lines of Code (LOC)": 27, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 726, + "End Line": 752 + }, + { + "Function Name": "prepareMaterial", + "Structural Impact": 11.1, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 1337, + "End Line": 1357 + }, + { + "Function Name": "materialNeedsLights", + "Structural Impact": 10.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "85.7%", + "Start Line": 2742, + "End Line": 2748 + }, + { + "Function Name": "setViewport", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 4, + "Control Flow Ratio": "100.0%", + "Start Line": 787, + "End Line": 801 + }, + { + "Function Name": "setScissor", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 4, + "Control Flow Ratio": "100.0%", + "Start Line": 824, + "End Line": 838 + }, + { + "Function Name": "setRenderTargetTextures", + "Structural Impact": 7.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 2784, + "End Line": 2802 + }, + { + "Function Name": "copyFramebufferToTexture", + "Structural Impact": 6.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 3172, + "End Line": 3187 + }, + { + "Function Name": "releaseMaterialProgramReferences", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 1151, + "End Line": 1171 + }, + { + "Function Name": "initGLContext", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 116, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 423, + "End Line": 538 + }, + { + "Function Name": "checkMaterialsReady", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 30, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 1487, + "End Line": 1516 + }, + { + "Function Name": "getUniformList", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2259, + "End Line": 2270 + }, + { + "Function Name": "setPixelRatio", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 619, + "End Line": 627 + }, + { + "Function Name": "initRenderTarget", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 3448, + "End Line": 3456 + }, + { + "Function Name": "setAnimationLoop", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 1572, + "End Line": 1579 + }, + { + "Function Name": "onAnimationFrame", + "Structural Impact": 3.1, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 1542, + "End Line": 1546 + }, + { + "Function Name": "updateCommonMaterialProperties", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 22, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 2272, + "End Line": 2293 + }, + { + "Function Name": "setDrawingBufferSize", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 707, + "End Line": 719 + }, + { + "Function Name": "markUniformsLightsNeedsUpdate", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 2726, + "End Line": 2740 + }, + { + "Function Name": "forceContextLoss", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 54, - "End Line": 58 + "Control Flow Ratio": "100.0%", + "Start Line": 586, + "End Line": 591 }, { - "Function Name": "test_routerindex", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "forceContextRestore", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 61, - "End Line": 65 + "Control Flow Ratio": "100.0%", + "Start Line": 596, + "End Line": 601 }, { - "Function Name": "test_routerprefixindex", + "Function Name": "getTargetPixelRatio", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 68, - "End Line": 72 + "Control Flow Ratio": "50.0%", + "Start Line": 349, + "End Line": 353 }, { - "Function Name": "index", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "setRenderTargetFramebuffer", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 31 + "Start Line": 2804, + "End Line": 2810 }, { - "Function Name": "routerindex", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "getContext", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 359, + "End Line": 363 }, { - "Function Name": "routerprefixindex", + "Function Name": "onContextLost", "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 45 + "Start Line": 1092, + "End Line": 1100 }, { - "Function Name": "create_dependency", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "onMaterialDispose", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Start Line": 1130, + "End Line": 1138 }, { - "Function Name": "fun", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "outputColorSpace", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 3539, + "End Line": 3547 }, { - "Function Name": "dependency_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "deallocateMaterial", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 33, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, - "State Mutations / Variable Reassignments": 1, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 12, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 3, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 3, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 15, - "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 3, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "json", - "typing" - ] - }, - "python/fastapi/tests/test_ws_router.py": { - "1. Artifact Identity": { - "Filename": "test_ws_router.py", - "Path": "python/fastapi/tests/test_ws_router.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "Exception", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 2672.34, - "Y": -89.93, - "Z": 429.77 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 272, - "Coding LOC": 182, - "Documentation LOC": 17, - "Structural Magnitude": 184.94, - "Control Flow Ratio": "16.8%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.115 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "21.63%", - "Error & Exception Exposure": "28.18%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "12.68%", - "Concurrency Exposure": "100.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "test_depend_validation", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 210, - "End Line": 233 - }, - { - "Function Name": "test_depend_err_middleware", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "23.1%", - "Start Line": 236, - "End Line": 254 - }, - { - "Function Name": "wrapped_app", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "10.0%", - "Start Line": 195, - "End Line": 203 + "Start Line": 1142, + "End Line": 1148 }, { - "Function Name": "make_app", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "33.3%", - "Start Line": 107, - "End Line": 112 + "Function Name": "getSize", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 635, + "End Line": 639 }, { - "Function Name": "websocket_middleware", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 1, + "Function Name": "getDrawingBufferSize", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "7.1%", - "Start Line": 188, - "End Line": 207 + "Control Flow Ratio": "0.0%", + "Start Line": 688, + "End Line": 692 }, { - "Function Name": "catcher", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 217, - "End Line": 222 + "Function Name": "getCurrentViewport", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 760, + "End Line": 764 }, { - "Function Name": "test_depend_err_handler", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "22.2%", - "Start Line": 257, - "End Line": 271 + "Function Name": "getViewport", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 772, + "End Line": 776 }, { - "Function Name": "errorhandler", - "Structural Impact": 3.7, + "Function Name": "getScissor", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "16.7%", - "Start Line": 242, - "End Line": 246 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 809, + "End Line": 813 }, { - "Function Name": "test_wrong_uri", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 177, - "End Line": 185 + "Function Name": "setScissorTest", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 858, + "End Line": 862 }, { - "Function Name": "middleware_constructor", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, + "Function Name": "setOpaqueSort", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "8.3%", - "Start Line": 193, - "End Line": 205 + "Control Flow Ratio": "0.0%", + "Start Line": 870, + "End Line": 874 }, { - "Function Name": "test_prefix_router", - "Structural Impact": 3.2, + "Function Name": "setTransparentSort", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 132, - "End Line": 136 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 882, + "End Line": 886 }, { - "Function Name": "test_native_prefix_router", - "Structural Impact": 3.2, + "Function Name": "getClearColor", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 139, - "End Line": 143 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 896, + "End Line": 900 }, { - "Function Name": "routerprefixindex", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "setNodesHandler", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 37, - "End Line": 40 + "Control Flow Ratio": "0.0%", + "Start Line": 1054, + "End Line": 1059 }, { - "Function Name": "router_native_prefix_ws", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "onContextCreationError", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 72, - "End Line": 75 + "Control Flow Ratio": "0.0%", + "Start Line": 1124, + "End Line": 1128 }, { - "Function Name": "test_router_with_params", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, + "Function Name": "dispose", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 166, - "End Line": 174 + "Control Flow Ratio": "0.0%", + "Start Line": 1065, + "End Line": 1088 }, { - "Function Name": "routerindexparams", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "onContextRestore", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 21, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 55 + "Start Line": 1102, + "End Line": 1122 }, { - "Function Name": "test_app", - "Structural Impact": 2.2, + "Function Name": "resetState", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 3493, + "End Line": 3502 + }, + { + "Function Name": "getContext", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 118, - "End Line": 122 + "Control Flow Ratio": "0.0%", + "Start Line": 566, + "End Line": 570 }, { - "Function Name": "test_router", - "Structural Impact": 2.2, + "Function Name": "getContextAttributes", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 125, - "End Line": 129 + "Control Flow Ratio": "0.0%", + "Start Line": 577, + "End Line": 581 }, { - "Function Name": "test_router2", - "Structural Impact": 2.2, + "Function Name": "getPixelRatio", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 146, - "End Line": 150 + "Control Flow Ratio": "0.0%", + "Start Line": 608, + "End Line": 612 }, { - "Function Name": "test_router_ws_depends", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "getScissorTest", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 153, - "End Line": 156 + "Control Flow Ratio": "0.0%", + "Start Line": 845, + "End Line": 849 }, { - "Function Name": "test_router_ws_depends_with_override", - "Structural Impact": 2.2, + "Function Name": "setClearColor", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 159, - "End Line": 163 + "Control Flow Ratio": "0.0%", + "Start Line": 908, + "End Line": 912 }, { - "Function Name": "router_ws_decorator_depends", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "getClearAlpha", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 68 + "Start Line": 919, + "End Line": 923 }, { - "Function Name": "router_ws_depends_validate", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "setClearAlpha", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 95 + "Start Line": 930, + "End Line": 934 }, { - "Function Name": "router_ws_depends_err", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "clearColor", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 84 + "Start Line": 1023, + "End Line": 1027 }, { - "Function Name": "custom_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "clearDepth", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 262, - "End Line": 263 + "Start Line": 1032, + "End Line": 1036 }, { - "Function Name": "index", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "clearStencil", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 1041, + "End Line": 1045 }, { - "Function Name": "routerindex", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "onXRSessionStart", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 1548, + "End Line": 1552 }, { - "Function Name": "routerindex2", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "onXRSessionEnd", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 47 + "Start Line": 1554, + "End Line": 1558 }, { - "Function Name": "ws_dependency_validate", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "getActiveCubeFace", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 87, - "End Line": 88 + "Start Line": 2755, + "End Line": 2759 }, { - "Function Name": "router_ws_custom_error", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "getActiveMipmapLevel", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 104 + "Start Line": 2766, + "End Line": 2770 }, { - "Function Name": "ws_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "getRenderTarget", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 + "Start Line": 2778, + "End Line": 2782 }, { - "Function Name": "ws_dependency_err", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "coordinateSystem", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 79 + "Start Line": 3521, + "End Line": 3525 }, { - "Function Name": "call_next", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "outputColorSpace", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 199, - "End Line": 200 + "Start Line": 3533, + "End Line": 3537 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 24, - "Sequential Logic Declarations": 119, - "Function Parameters": 34, - "Function/Method Declarations": 33, + "Control Flow Branches": 515, + "Sequential Logic Declarations": 152, + "Function Parameters": 83, + "Function/Method Declarations": 77, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 20, - "Type/Safety Bypasses": 12, + "Defensive Programming Constructs": 204, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 34, - "State Mutations / Variable Reassignments": 3, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 10, - "Unit Test Assertions": 33, - "Asynchronous/Concurrent Execution": 57, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 1, - "Global State Dependencies": 0, - "Decorators and Annotations": 13, - "Generic Type Abstractions": 1, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 5, - "Dependency Injection Constructs": 4, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 3, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 9, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 10, - "Core Var Decl": 35, - "Design Camel Case": 0, - "Design Snake Case": 35, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 22, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 8, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.middleware", - "fastapi.testclient", - "functools", - "pytest" - ] - }, - "python/fastapi/tests/utils.py": { - "1. Artifact Identity": { - "Filename": "utils.py", - "Path": "python/fastapi/tests/utils.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 1.5, - "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" - }, - "2. Topological Coordinates": { - "X": 4126.68, - "Y": 121.5, - "Z": 1768.9 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 19, - "Coding LOC": 12, - "Documentation LOC": 1, - "Structural Magnitude": 4.44, - "Control Flow Ratio": "25.0%", - "Popularity Rank": 2, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.25 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.33%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "80.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "skip_module_if_py_gte_314", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 15, - "End Line": 18 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 3, - "Function Parameters": 1, - "Function/Method Declarations": 1, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 3, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 338, + "Commented-out Code (Dead Logic)": 2, + "Structured Documentation Blocks": 198, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 15, + "UI / View Layer Components": 3, + "Closures and Anonymous Functions": 54, "Global State Dependencies": 0, "Decorators and Annotations": 0, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 2, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Module Dependencies (Imports)": 37, + "Authorship Metadata": 2, + "Planned Work (TODOs)": 1, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Event Publishers / Emitters": 1, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 49, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, + "Fatal Aborts & Exceptions": 9, + "Thread Sleeps & Blocking Waits": 2, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 172, + "Resource Deallocation & Cleanup": 20, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, + "Event Listeners & Subscribers": 6, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, - "Hardware Bridge": 0, + "Structural Tab Indentations": 1587, + "Structural Space Indentations": 0, + "Hardware Bridge": 26, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 0, + "Time Date Logic": 2, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, @@ -222434,15 +222112,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 6, + "Core Var Decl": 391, + "Design Camel Case": 195, + "Design Snake Case": 141, "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Upper Case": 2, + "Design Short Vars": 21, + "Design Long Vars": 6, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 27, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -222455,7 +222133,7 @@ "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, + "Non-Standard Unicode / Homoglyphs": 1, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -222466,15 +222144,49 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, - "Direct Downstream (Dependency Blast Radius)": 2, + "Direct Upstream (Fragility)": 37, + "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 1 + "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "pytest", - "sys", - "time." + "../constants.js", + "../math/Color.js", + "../math/ColorManagement.js", + "../math/Frustum.js", + "../math/Matrix4.js", + "../math/Vector3.js", + "../math/Vector4.js", + "../utils.js", + "./WebGLRenderTarget.js", + "./shaders/DFGLUTData.js", + "./webgl/WebGLAnimation.js", + "./webgl/WebGLAttributes.js", + "./webgl/WebGLBackground.js", + "./webgl/WebGLBindingStates.js", + "./webgl/WebGLBufferRenderer.js", + "./webgl/WebGLCapabilities.js", + "./webgl/WebGLClipping.js", + "./webgl/WebGLEnvironments.js", + "./webgl/WebGLExtensions.js", + "./webgl/WebGLGeometries.js", + "./webgl/WebGLIndexedBufferRenderer.js", + "./webgl/WebGLInfo.js", + "./webgl/WebGLMaterials.js", + "./webgl/WebGLMorphtargets.js", + "./webgl/WebGLObjects.js", + "./webgl/WebGLOutput.js", + "./webgl/WebGLPrograms.js", + "./webgl/WebGLProperties.js", + "./webgl/WebGLRenderLists.js", + "./webgl/WebGLRenderStates.js", + "./webgl/WebGLShadowMap.js", + "./webgl/WebGLState.js", + "./webgl/WebGLTextures.js", + "./webgl/WebGLUniforms.js", + "./webgl/WebGLUniformsGroups.js", + "./webgl/WebGLUtils.js", + "./webxr/WebXRManager.js" ] } } @@ -233503,9 +233215,9 @@ "Identity Proof": "Single Indicator (Ext: .ps1)" }, "2. Topological Coordinates": { - "X": 1312.13, + "X": -5728.74, "Y": -105.95, - "Z": -4827.76 + "Z": -1612.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -233691,9 +233403,9 @@ "Identity Proof": "Single Indicator (Ext: .ps1)" }, "2. Topological Coordinates": { - "X": 2092.58, + "X": -4948.29, "Y": 80.63, - "Z": -4362.69 + "Z": -1147.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -233929,9 +233641,9 @@ "Identity Proof": "Single Indicator (Ext: .psm1)" }, "2. Topological Coordinates": { - "X": 1517.86, + "X": -5523.01, "Y": -38.45, - "Z": -4502.72 + "Z": -1287.08 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -234301,9 +234013,9 @@ "Identity Proof": "Single Indicator (Ext: .ps1)" }, "2. Topological Coordinates": { - "X": 1848.27, + "X": -5192.6, "Y": -93.81, - "Z": -5501.26 + "Z": -2285.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -234499,9 +234211,9 @@ "Identity Proof": "Single Indicator (Ext: .psd1)" }, "2. Topological Coordinates": { - "X": 2254.37, + "X": -4786.5, "Y": 1.74, - "Z": -5102.18 + "Z": -1886.55 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -234656,9 +234368,9 @@ "Identity Proof": "Single Indicator (Ext: .psm1)" }, "2. Topological Coordinates": { - "X": 1782.87, + "X": -5258.01, "Y": 9.14, - "Z": -5033.4 + "Z": -1817.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -238150,9 +237862,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 1192.14, + "X": 6023.97, "Y": -302.43, - "Z": 2790.96 + "Z": -1744.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -238353,9 +238065,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 710.18, + "X": 5542.01, "Y": -263.75, - "Z": 2940.41 + "Z": -1594.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -239981,9 +239693,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 559.41, + "X": 5391.24, "Y": -117.52, - "Z": 3695.78 + "Z": -839.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -240313,9 +240025,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 1030.16, + "X": 5861.99, "Y": -177.79, - "Z": 3485.98 + "Z": -1049.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -241277,9 +240989,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 761.33, + "X": 5593.16, "Y": -322.11, - "Z": 2543.97 + "Z": -1991.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -242550,9 +242262,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 400.55, + "X": 5232.39, "Y": -147.87, - "Z": 3079.44 + "Z": -1455.91 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -243913,9 +243625,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 180.75, + "X": 5012.58, "Y": -246.69, - "Z": 3028.47 + "Z": -1506.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -245228,9 +244940,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5944.63, + "X": -452.56, "Y": 165.91, - "Z": -1240.74 + "Z": -4012.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -246031,9 +245743,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5564.02, + "X": -833.17, "Y": 265.38, - "Z": -525.67 + "Z": -3297.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247001,9 +246713,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5352.22, + "X": -1044.97, "Y": 225.2, - "Z": -761.32 + "Z": -3533.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247282,9 +246994,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 6389.69, + "X": -7.51, "Y": 134.51, - "Z": -986.53 + "Z": -3758.27 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247554,9 +247266,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 6202.89, + "X": -194.3, "Y": 311.65, - "Z": -65.79 + "Z": -2837.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247832,9 +247544,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5857.28, + "X": -539.91, "Y": 257.91, - "Z": -720.76 + "Z": -3492.5 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -248942,9 +248654,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5766.46, + "X": -630.73, "Y": 404.61, - "Z": -21.17 + "Z": -2792.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -257128,9 +256840,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": -4053.1, + "X": 594.1, "Y": 172.11, - "Z": 1264.53 + "Z": 3500.76 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -257285,9 +256997,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -4429.69, + "X": 217.52, "Y": 31.7, - "Z": 809.35 + "Z": 3045.58 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -257463,9 +257175,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -3944.04, + "X": 703.16, "Y": 134.89, - "Z": 820.69 + "Z": 3056.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -258361,9 +258073,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -3462.67, + "X": 1184.53, "Y": 121.05, - "Z": 608.1 + "Z": 2844.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -258529,9 +258241,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -3652.19, + "X": 995.01, "Y": 256.87, - "Z": 1295.66 + "Z": 3531.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -258827,9 +258539,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -4267.42, + "X": 379.78, "Y": 143.2, - "Z": 1071.8 + "Z": 3308.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -259185,9 +258897,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -3935.7, + "X": 711.51, "Y": -13.0, - "Z": 444.59 + "Z": 2680.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -259637,9 +259349,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2449.7, + "X": 6427.46, "Y": 61.77, - "Z": 5266.87 + "Z": 2662.59 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -260722,9 +260434,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2200.41, + "X": 6676.75, "Y": -91.82, - "Z": 5565.45 + "Z": 2961.17 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -260907,9 +260619,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2805.43, + "X": 6071.73, "Y": -26.07, - "Z": 5422.06 + "Z": 2817.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -261180,9 +260892,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2007.27, + "X": 6869.9, "Y": 108.29, - "Z": 5108.62 + "Z": 2504.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -261351,9 +261063,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2975.76, + "X": 5901.4, "Y": 73.38, - "Z": 5041.59 + "Z": 2437.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -261541,9 +261253,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2435.62, + "X": 6441.55, "Y": 102.5, - "Z": 4757.8 + "Z": 2153.53 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -286503,9 +286215,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -199.36, + "X": -3295.43, "Y": -66.18, - "Z": -3706.31 + "Z": 453.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287080,9 +286792,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 417.56, + "X": -2678.51, "Y": -114.19, - "Z": -3762.21 + "Z": 398.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287514,9 +287226,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 588.85, + "X": -2507.22, "Y": -282.71, - "Z": -4422.1 + "Z": -261.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287799,9 +287511,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -38.18, + "X": -3134.25, "Y": -62.78, - "Z": -3536.89 + "Z": 623.33 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287960,9 +287672,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 60.63, + "X": -3035.44, "Y": -181.22, - "Z": -3950.75 + "Z": 209.47 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -288438,9 +288150,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 124.64, + "X": -2971.43, "Y": -178.55, - "Z": -4605.95 + "Z": -445.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -288896,9 +288608,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -395.79, + "X": -3491.86, "Y": -39.71, - "Z": -4225.88 + "Z": -65.66 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -301467,9 +301179,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1372.25, + "X": -1370.58, "Y": -60.79, - "Z": -4081.38 + "Z": -4074.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -302812,9 +302524,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1056.93, + "X": -1055.26, "Y": -58.65, - "Z": -4083.55 + "Z": -4077.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -304536,9 +304248,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -777.37, + "X": -775.69, "Y": -135.82, - "Z": -3648.77 + "Z": -3642.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -304990,9 +304702,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1046.3, + "X": -1044.62, "Y": -69.43, - "Z": -4621.31 + "Z": -4614.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -314386,9 +314098,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4653.58, + "X": -773.85, "Y": 25.69, - "Z": -433.35 + "Z": 4860.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -316364,9 +316076,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4058.45, + "X": -178.72, "Y": 43.44, - "Z": -316.26 + "Z": 4977.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -317661,9 +317373,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4524.35, + "X": -644.62, "Y": 44.17, - "Z": -80.65 + "Z": 5212.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -317824,9 +317536,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4324.79, + "X": -445.07, "Y": 139.3, - "Z": -1074.53 + "Z": 4219.07 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -318416,9 +318128,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -3861.48, + "X": 18.25, "Y": 121.45, - "Z": -801.86 + "Z": 4491.74 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -318642,9 +318354,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4377.27, + "X": -497.55, "Y": 78.53, - "Z": -731.65 + "Z": 4561.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -319733,9 +319445,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4919.16, + "X": -1039.44, "Y": 28.12, - "Z": -843.22 + "Z": 4450.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -320825,9 +320537,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 479.81, + "X": 479.18, "Y": 258.69, - "Z": -5334.33 + "Z": -5326.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -321365,9 +321077,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 149.98, + "X": 149.34, "Y": 118.88, - "Z": -4746.82 + "Z": -4739.22 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -322120,9 +321832,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 411.61, + "X": 410.97, "Y": 157.88, - "Z": -5086.45 + "Z": -5078.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -323022,9 +322734,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7172.69, + "X": 86.86, "Y": 41.07, - "Z": -27.36 + "Z": -4569.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -323544,9 +323256,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6890.19, + "X": -195.64, "Y": 4.05, - "Z": 810.22 + "Z": -3731.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -324064,9 +323776,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7458.57, + "X": 372.74, "Y": -122.07, - "Z": 954.39 + "Z": -3587.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -324459,9 +324171,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7214.87, + "X": 129.04, "Y": -1.82, - "Z": 515.63 + "Z": -4026.53 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -326684,9 +326396,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7610.69, + "X": 524.86, "Y": -36.01, - "Z": 117.87 + "Z": -4424.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -326972,9 +326684,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6977.11, + "X": -108.72, "Y": -4.97, - "Z": 1086.25 + "Z": -3455.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -327166,9 +326878,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6634.54, + "X": -451.29, "Y": 119.37, - "Z": 351.86 + "Z": -4190.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -329208,9 +328920,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": 1045.77, + "X": 1044.62, "Y": -33.59, - "Z": 4968.76 + "Z": 4961.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -329365,9 +329077,9 @@ "Identity Proof": "Single Indicator (Ext: .cbl)" }, "2. Topological Coordinates": { - "X": 548.52, + "X": 547.37, "Y": -117.02, - "Z": 4988.98 + "Z": 4982.18 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -329901,9 +329613,9 @@ "Identity Proof": "Single Indicator (Ext: .cbl)" }, "2. Topological Coordinates": { - "X": 867.29, + "X": 866.14, "Y": -115.16, - "Z": 4143.35 + "Z": 4136.55 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -330333,9 +330045,9 @@ "Identity Proof": "Single Indicator (Ext: .cbl)" }, "2. Topological Coordinates": { - "X": 816.1, + "X": 814.95, "Y": -62.33, - "Z": 4813.42 + "Z": 4806.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -339780,9 +339492,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 791.97, + "X": -4354.52, "Y": -38.82, - "Z": -3914.31 + "Z": -477.54 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340273,9 +339985,9 @@ "Identity Proof": "Sibling Anchor (C++)" }, "2. Topological Coordinates": { - "X": 1271.0, + "X": -3875.49, "Y": 30.72, - "Z": -4220.75 + "Z": -783.98 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340433,9 +340145,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 239.92, + "X": -4906.57, "Y": -77.74, - "Z": -4202.17 + "Z": -765.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340636,9 +340348,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 807.66, + "X": -4338.84, "Y": 13.64, - "Z": -4669.19 + "Z": -1232.42 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340911,9 +340623,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 1090.09, + "X": -4056.4, "Y": -140.05, - "Z": -3843.51 + "Z": -406.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -341119,9 +340831,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 525.45, + "X": -4621.04, "Y": -172.93, - "Z": -3944.9 + "Z": -508.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -341417,9 +341129,9 @@ "Identity Proof": "Ecosystem Consensus Lock (81% Local Dominance)" }, "2. Topological Coordinates": { - "X": 677.05, + "X": -4469.44, "Y": -222.35, - "Z": -3407.18 + "Z": 29.59 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -345679,9 +345391,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4902.13, + "X": -4896.61, "Y": 134.82, - "Z": 1493.83 + "Z": 1492.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -346219,9 +345931,9 @@ "Identity Proof": "Ecosystem Consensus Lock (70% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4350.37, + "X": -4344.85, "Y": 124.77, - "Z": 1789.42 + "Z": 1787.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -346376,9 +346088,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4640.86, + "X": -4635.33, "Y": 160.38, - "Z": 903.93 + "Z": 902.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -346564,9 +346276,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4616.73, + "X": -4611.2, "Y": 101.25, - "Z": 1293.55 + "Z": 1291.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -351939,7 +351651,7 @@ "2. Topological Coordinates": { "X": 81.09, "Y": -200.51, - "Z": 4961.7 + "Z": 4961.69 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -352096,7 +351808,7 @@ "2. Topological Coordinates": { "X": -271.83, "Y": -101.16, - "Z": 5505.76 + "Z": 5505.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -358714,9 +358426,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5314.95, + "X": -2452.76, "Y": -393.05, - "Z": -3305.37 + "Z": 4780.21 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359031,9 +358743,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5322.26, + "X": -2460.06, "Y": -231.59, - "Z": -2851.52 + "Z": 5234.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359411,9 +359123,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5108.13, + "X": -2245.94, "Y": -173.3, - "Z": -2567.88 + "Z": 5517.7 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359686,9 +359398,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -4896.32, + "X": -2034.13, "Y": -363.79, - "Z": -3129.69 + "Z": 4955.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359952,9 +359664,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5472.91, + "X": -2610.72, "Y": -81.14, - "Z": -2120.94 + "Z": 5964.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -360156,9 +359868,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5823.52, + "X": -2961.33, "Y": -250.76, - "Z": -2801.29 + "Z": 5284.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -360390,9 +360102,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5649.18, + "X": -2786.99, "Y": -175.26, - "Z": -2544.56 + "Z": 5541.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386120,9 +385832,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6682.58, + "X": 2119.53, "Y": -80.31, - "Z": 3011.01 + "Z": -4584.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386283,9 +385995,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 5873.29, + "X": 1310.24, "Y": -209.29, - "Z": 2557.5 + "Z": -5037.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386461,9 +386173,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6785.67, + "X": 2222.62, "Y": -131.37, - "Z": 2468.2 + "Z": -5126.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386631,9 +386343,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6209.33, + "X": 1646.28, "Y": -148.81, - "Z": 3172.5 + "Z": -4422.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386801,9 +386513,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6115.86, + "X": 1552.81, "Y": -153.05, - "Z": 3037.38 + "Z": -4557.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -387102,9 +386814,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6367.29, + "X": 1804.25, "Y": -186.87, - "Z": 2529.72 + "Z": -5065.43 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -387341,9 +387053,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6454.74, + "X": 1891.69, "Y": -172.13, - "Z": 2363.8 + "Z": -5231.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -387608,7 +387320,7 @@ "2. Topological Coordinates": { "X": -1183.82, "Y": 197.84, - "Z": 5563.93 + "Z": 5563.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -388120,7 +387832,7 @@ "2. Topological Coordinates": { "X": -932.02, "Y": 180.21, - "Z": 5385.57 + "Z": 5385.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -390632,7 +390344,7 @@ "2. Topological Coordinates": { "X": -846.67, "Y": 232.31, - "Z": 5001.34 + "Z": 5001.33 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -397284,9 +396996,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 790.54, + "X": 789.5, "Y": 4.24, - "Z": -5695.29 + "Z": -5688.24 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -397719,9 +397431,9 @@ "Identity Proof": "Prose Anchor (MIT-LICENSE)" }, "2. Topological Coordinates": { - "X": -3253.93, + "X": 0.74, "Y": -214.32, - "Z": -417.78 + "Z": 3385.55 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -397876,9 +397588,9 @@ "Identity Proof": "Metadata Anchor (Rakefile)" }, "2. Topological Coordinates": { - "X": -3012.84, + "X": 241.83, "Y": -212.88, - "Z": -481.13 + "Z": 3322.21 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -398083,9 +397795,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3515.08, + "X": -260.41, "Y": -200.67, - "Z": 135.46 + "Z": 3938.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -398510,9 +398222,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3233.03, + "X": 21.64, "Y": -180.03, - "Z": 225.36 + "Z": 4028.7 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -399093,9 +398805,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3055.64, + "X": 199.03, "Y": -156.99, - "Z": 50.86 + "Z": 3854.2 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -399505,9 +399217,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -2603.61, + "X": 651.06, "Y": -234.2, - "Z": -51.36 + "Z": 3751.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -399766,9 +399478,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -2740.79, + "X": 513.88, "Y": -168.22, - "Z": 457.11 + "Z": 4260.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -400191,9 +399903,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3129.14, + "X": 125.53, "Y": -72.13, - "Z": 594.33 + "Z": 4397.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -400376,9 +400088,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -349.86, + "X": -349.23, "Y": -180.04, - "Z": -5252.55 + "Z": -5244.98 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -400808,9 +400520,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -632.07, + "X": -631.44, "Y": -268.88, - "Z": -4549.53 + "Z": -4541.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -401168,9 +400880,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -439.18, + "X": -438.55, "Y": -217.33, - "Z": -4935.59 + "Z": -4928.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -401929,9 +401641,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -176.94, + "X": -176.3, "Y": -132.14, - "Z": -4362.89 + "Z": -4355.32 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402169,9 +401881,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2958.98, + "X": -5343.27, "Y": -141.56, - "Z": -5443.98 + "Z": -3122.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402451,9 +402163,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 3246.85, + "X": -5055.4, "Y": -203.92, - "Z": -4761.91 + "Z": -2440.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402684,9 +402396,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2654.1, + "X": -5648.15, "Y": -280.56, - "Z": -4802.86 + "Z": -2481.77 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402939,9 +402651,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2982.86, + "X": -5319.39, "Y": -165.03, - "Z": -5260.85 + "Z": -2939.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -403670,9 +403382,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2828.13, + "X": -5474.12, "Y": -276.55, - "Z": -4523.5 + "Z": -2202.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -403868,9 +403580,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 3402.24, + "X": -4900.01, "Y": -115.73, - "Z": -5339.39 + "Z": -3018.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -404108,9 +403820,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2497.89, + "X": -5804.36, "Y": -170.9, - "Z": -5131.33 + "Z": -2810.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -404381,9 +404093,9 @@ "Identity Proof": "Prose Anchor (LICENSE-APACHE)" }, "2. Topological Coordinates": { - "X": -50.56, + "X": 5601.47, "Y": -184.11, - "Z": 3391.38 + "Z": -1100.18 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -404538,9 +404250,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -203.13, + "X": 5448.9, "Y": -166.59, - "Z": 3660.72 + "Z": -830.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -404751,9 +404463,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 207.22, + "X": 5859.25, "Y": -132.43, - "Z": 3978.61 + "Z": -512.94 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -405237,9 +404949,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 280.03, + "X": 5932.06, "Y": -144.98, - "Z": 3302.81 + "Z": -1188.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -405517,9 +405229,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 718.59, + "X": 6370.61, "Y": -91.83, - "Z": 3491.56 + "Z": -1000.0 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -405772,9 +405484,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 124.27, + "X": 5776.3, "Y": -90.85, - "Z": 4304.22 + "Z": -187.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -406030,9 +405742,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -45.04, + "X": 5606.99, "Y": -130.58, - "Z": 4052.92 + "Z": -438.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -406408,9 +406120,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 549.03, + "X": 6201.05, "Y": -91.38, - "Z": 4074.84 + "Z": -416.72 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -414865,9 +414577,9 @@ "Identity Proof": "Single Indicator (Exact Match)" }, "2. Topological Coordinates": { - "X": 1458.9, + "X": 1458.34, "Y": -239.64, - "Z": -6032.96 + "Z": -6030.81 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -415022,9 +414734,9 @@ "Identity Proof": "Single Indicator (Ext: .asm)" }, "2. Topological Coordinates": { - "X": 1227.9, + "X": 1227.35, "Y": -204.08, - "Z": -5386.1 + "Z": -5383.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -415210,9 +414922,9 @@ "Identity Proof": "Single Indicator (Ext: .asm)" }, "2. Topological Coordinates": { - "X": 1403.44, + "X": 1402.89, "Y": -167.42, - "Z": -5515.83 + "Z": -5513.68 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -415863,9 +415575,9 @@ "Identity Proof": "Metadata Anchor (COPYRIGHT)" }, "2. Topological Coordinates": { - "X": -2147.87, + "X": -2145.74, "Y": 165.31, - "Z": 5679.28 + "Z": 5673.14 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -416020,9 +415732,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -2163.34, + "X": -2161.2, "Y": 184.98, - "Z": 6050.22 + "Z": 6044.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -416288,9 +416000,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -2377.47, + "X": -2375.33, "Y": 159.81, - "Z": 6377.87 + "Z": 6371.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -418973,9 +418685,9 @@ "Identity Proof": "Single Indicator (Ext: .xml)" }, "2. Topological Coordinates": { - "X": -631.11, + "X": 7027.29, "Y": 114.61, - "Z": 5319.1 + "Z": 1121.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419130,9 +418842,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": -762.03, + "X": 6896.37, "Y": 132.99, - "Z": 4016.22 + "Z": -181.25 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -419287,9 +418999,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -90.84, + "X": 7567.55, "Y": 58.4, - "Z": 4302.08 + "Z": 104.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419485,9 +419197,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -475.02, + "X": 7183.37, "Y": 155.83, - "Z": 4225.19 + "Z": 27.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419653,9 +419365,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -695.53, + "X": 6962.86, "Y": 158.06, - "Z": 4971.26 + "Z": 773.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419941,9 +419653,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -453.61, + "X": 7204.79, "Y": 149.53, - "Z": 4600.71 + "Z": 403.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -420299,9 +420011,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": -991.76, + "X": 6666.63, "Y": 131.5, - "Z": 4565.5 + "Z": 368.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -420456,9 +420168,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": -253.0, + "X": 7405.39, "Y": 46.08, - "Z": 4813.92 + "Z": 616.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -420939,9 +420651,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 6805.41, + "X": 6803.58, "Y": -97.87, - "Z": -215.36 + "Z": -215.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -421732,9 +421444,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 6541.11, + "X": 6539.28, "Y": -0.84, - "Z": 47.57 + "Z": 47.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -421957,9 +421669,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 6830.79, + "X": 6828.95, "Y": -170.42, - "Z": -523.32 + "Z": -523.24 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -422148,9 +421860,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 7047.89, + "X": 7046.06, "Y": -79.86, - "Z": 215.61 + "Z": 215.68 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428184,9 +427896,9 @@ "Identity Proof": "Single Indicator (Exact Match)" }, "2. Topological Coordinates": { - "X": -5147.43, + "X": -5146.22, "Y": 39.33, - "Z": -276.64 + "Z": -276.58 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428341,9 +428053,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4854.51, + "X": -4853.29, "Y": 89.29, - "Z": 58.54 + "Z": 58.59 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428498,9 +428210,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -5137.2, + "X": -5135.98, "Y": 59.95, - "Z": -682.46 + "Z": -682.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428696,9 +428408,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -5388.64, + "X": -5387.42, "Y": 69.27, - "Z": 176.46 + "Z": 176.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428898,9 +428610,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": -16.94, + "X": -3459.03, "Y": 76.49, - "Z": -3071.46 + "Z": 1078.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429055,9 +428767,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": -699.75, + "X": -4141.84, "Y": 315.46, - "Z": -3870.2 + "Z": 280.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429212,9 +428924,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -301.5, + "X": -3743.59, "Y": 53.02, - "Z": -3048.84 + "Z": 1101.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429369,9 +429081,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -634.86, + "X": -4076.96, "Y": 110.33, - "Z": -2836.66 + "Z": 1313.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429526,9 +429238,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -52.68, + "X": -3494.77, "Y": 215.68, - "Z": -3522.2 + "Z": 628.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429683,9 +429395,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -459.06, + "X": -3901.15, "Y": 192.76, - "Z": -3270.95 + "Z": 879.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429840,9 +429552,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -699.57, + "X": -4141.66, "Y": 208.22, - "Z": -3129.64 + "Z": 1020.68 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429997,9 +429709,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -934.63, + "X": -4376.72, "Y": 230.29, - "Z": -3337.76 + "Z": 812.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -430154,9 +429866,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -461.77, + "X": -3903.86, "Y": 252.47, - "Z": -3890.25 + "Z": 260.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -431524,9 +431236,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6290.54, + "X": 6284.16, "Y": -77.64, - "Z": -1003.65 + "Z": -1002.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -431822,9 +431534,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6576.58, + "X": 6570.21, "Y": -42.95, - "Z": -1680.75 + "Z": -1679.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -431990,9 +431702,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6049.51, + "X": 6043.13, "Y": -172.45, - "Z": -1559.37 + "Z": -1558.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432158,9 +431870,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6787.44, + "X": 6781.07, "Y": 23.44, - "Z": -1053.28 + "Z": -1051.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432336,9 +432048,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6518.91, + "X": 6512.54, "Y": -92.58, - "Z": -1345.32 + "Z": -1343.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432708,9 +432420,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -5139.23, + "X": -5134.1, "Y": 229.77, - "Z": 771.62 + "Z": 770.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432865,9 +432577,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -4869.53, + "X": -4864.39, "Y": 150.65, - "Z": 211.52 + "Z": 210.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433022,9 +432734,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -5401.71, + "X": -5396.57, "Y": 150.33, - "Z": 383.5 + "Z": 382.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433179,9 +432891,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -4658.36, + "X": -4653.23, "Y": 218.44, - "Z": 978.0 + "Z": 977.35 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433336,9 +433048,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -4970.01, + "X": -4964.87, "Y": 184.72, - "Z": 560.02 + "Z": 559.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433517,9 +433229,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": -5807.57, + "X": -5801.49, "Y": -300.32, - "Z": -2720.9 + "Z": -2718.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433685,9 +433397,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": -6072.53, + "X": -6066.46, "Y": -225.58, - "Z": -2027.07 + "Z": -2024.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433853,9 +433565,9 @@ "Identity Proof": "Absolute Consensus (Ext + Shebang)" }, "2. Topological Coordinates": { - "X": -5885.35, + "X": -5879.28, "Y": -210.37, - "Z": -2224.24 + "Z": -2221.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -434195,9 +433907,9 @@ "Identity Proof": "Single Indicator (Ext: .nix)" }, "2. Topological Coordinates": { - "X": 2271.16, + "X": 2270.61, "Y": 36.48, - "Z": -5377.32 + "Z": -5376.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -434352,9 +434064,9 @@ "Identity Proof": "Single Indicator (Ext: .nix)" }, "2. Topological Coordinates": { - "X": 2431.97, + "X": 2431.42, "Y": 1.68, - "Z": -5689.51 + "Z": -5688.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -434509,9 +434221,9 @@ "Identity Proof": "Single Indicator (Ext: .nix)" }, "2. Topological Coordinates": { - "X": 2471.27, + "X": 2470.72, "Y": -34.57, - "Z": -6011.34 + "Z": -6010.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435028,9 +434740,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6619.7, + "X": 6617.65, "Y": -132.9, - "Z": 3493.92 + "Z": 3492.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435185,9 +434897,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6866.66, + "X": 6864.61, "Y": -120.12, - "Z": 2905.1 + "Z": 2904.08 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435342,9 +435054,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6871.85, + "X": 6869.8, "Y": -124.13, - "Z": 3456.08 + "Z": 3455.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435523,9 +435235,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -3423.6, + "X": -3421.97, "Y": -160.84, - "Z": 6121.09 + "Z": 6118.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435680,9 +435392,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -3200.79, + "X": -3199.15, "Y": -103.73, - "Z": 5387.54 + "Z": 5384.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435837,9 +435549,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -3221.9, + "X": -3220.26, "Y": -123.93, - "Z": 5653.95 + "Z": 5650.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -436018,9 +435730,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": -1480.38, + "X": -1478.99, "Y": -241.05, - "Z": 6287.91 + "Z": 6282.0 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -436787,9 +436499,9 @@ "Identity Proof": "Single Indicator (Ext: .hlo)" }, "2. Topological Coordinates": { - "X": -5829.85, + "X": -5823.45, "Y": -115.43, - "Z": -3744.81 + "Z": -3740.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -436944,9 +436656,9 @@ "Identity Proof": "Single Indicator (Ext: .hlo)" }, "2. Topological Coordinates": { - "X": -5817.19, + "X": -5810.79, "Y": -71.41, - "Z": -3598.57 + "Z": -3594.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -437101,9 +436813,9 @@ "Identity Proof": "Single Indicator (Ext: .hlo)" }, "2. Topological Coordinates": { - "X": -6053.77, + "X": -6047.37, "Y": -21.96, - "Z": -3422.65 + "Z": -3418.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -439806,9 +439518,9 @@ "Identity Proof": "Single Indicator (Ext: .yml)" }, "2. Topological Coordinates": { - "X": -5350.04, + "X": -5344.71, "Y": -32.07, - "Z": 1196.1 + "Z": 1194.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -439963,9 +439675,9 @@ "Identity Proof": "Single Indicator (Ext: .yml)" }, "2. Topological Coordinates": { - "X": -5623.26, + "X": -5617.93, "Y": -37.1, - "Z": 1443.53 + "Z": 1442.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440144,9 +439856,9 @@ "Identity Proof": "Single Indicator (Ext: .csv)" }, "2. Topological Coordinates": { - "X": -931.27, + "X": -930.06, "Y": 187.56, - "Z": -4858.18 + "Z": -4851.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440301,9 +440013,9 @@ "Identity Proof": "Single Indicator (Ext: .tsv)" }, "2. Topological Coordinates": { - "X": -1171.43, + "X": -1170.22, "Y": 221.85, - "Z": -4738.56 + "Z": -4732.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440482,9 +440194,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -6164.94, + "X": -6152.34, "Y": 147.19, - "Z": -1846.19 + "Z": -1842.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440687,9 +440399,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 1923.88, + "X": 1923.27, "Y": -231.81, - "Z": -5797.02 + "Z": -5795.15 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -441564,9 +441276,9 @@ "Identity Proof": "Prose Extension (.txt)" }, "2. Topological Coordinates": { - "X": 7838.05, + "X": 7833.49, "Y": -134.52, - "Z": 928.07 + "Z": 927.49 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -441721,9 +441433,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 7648.47, + "X": 7643.9, "Y": -115.04, - "Z": 1298.36 + "Z": 1297.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -441878,9 +441590,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 7948.54, + "X": 7943.98, "Y": -116.02, - "Z": 503.37 + "Z": 502.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442037,9 +441749,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 8100.88, + "X": 8096.32, "Y": -163.93, - "Z": 1356.61 + "Z": 1356.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442224,9 +441936,9 @@ "Identity Proof": "Single Indicator (Ext: .mlir)" }, "2. Topological Coordinates": { - "X": 7186.12, + "X": 7184.26, "Y": -136.67, - "Z": 2755.07 + "Z": 2754.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442405,9 +442117,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -2589.37, + "X": -2591.67, "Y": 164.39, - "Z": 6066.58 + "Z": 6072.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442586,9 +442298,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -6166.6, + "X": -6160.39, "Y": -23.25, - "Z": -2796.4 + "Z": -2793.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442767,9 +442479,9 @@ "Identity Proof": "Single Indicator (Ext: .tsv)" }, "2. Topological Coordinates": { - "X": 3094.18, + "X": 3092.53, "Y": 83.46, - "Z": -6043.67 + "Z": -6040.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -443129,9 +442841,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": 3536.09, + "X": 3533.95, "Y": 77.93, - "Z": -5549.3 + "Z": -5546.09 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -443286,9 +442998,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": 3737.55, + "X": 3735.41, "Y": 117.24, - "Z": -5574.01 + "Z": -5570.79 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -443443,9 +443155,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": 3681.35, + "X": 3679.22, "Y": 156.7, - "Z": -5877.32 + "Z": -5874.1 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445058,9 +444770,9 @@ "Identity Proof": "Metadata Anchor (COPYING)" }, "2. Topological Coordinates": { - "X": 7053.26, + "X": 7047.53, "Y": 146.31, - "Z": -980.35 + "Z": -979.51 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445215,9 +444927,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": 6841.22, + "X": 6835.48, "Y": 104.96, - "Z": -955.16 + "Z": -954.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -445408,9 +445120,9 @@ "Identity Proof": "Single Indicator (Exact Match)" }, "2. Topological Coordinates": { - "X": -5602.36, + "X": -5597.49, "Y": 101.03, - "Z": 316.07 + "Z": 315.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -445576,9 +445288,9 @@ "Identity Proof": "Metadata Anchor (COPYRIGHT)" }, "2. Topological Coordinates": { - "X": -5820.83, + "X": -5815.96, "Y": 189.24, - "Z": 405.96 + "Z": 405.65 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445758,9 +445470,9 @@ "Identity Proof": "Prose Extension (.txt)" }, "2. Topological Coordinates": { - "X": -5879.66, + "X": -5865.12, "Y": 179.76, - "Z": -1308.52 + "Z": -1305.43 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445915,9 +445627,9 @@ "Identity Proof": "Metadata Anchor (index.html)" }, "2. Topological Coordinates": { - "X": -6022.49, + "X": -6007.94, "Y": 259.77, - "Z": -1167.26 + "Z": -1164.17 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -446072,9 +445784,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5767.95, + "X": -5753.4, "Y": 114.06, - "Z": -1550.87 + "Z": -1547.77 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -446229,9 +445941,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5642.21, + "X": -5627.67, "Y": 242.79, - "Z": -821.06 + "Z": -817.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -447091,9 +446803,9 @@ "Identity Proof": "Prose Extension (.txt)" }, "2. Topological Coordinates": { - "X": 522.12, + "X": 521.43, "Y": -96.74, - "Z": 5269.99 + "Z": 5263.48 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -447248,9 +446960,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 389.57, + "X": 388.89, "Y": -88.78, - "Z": 5480.0 + "Z": 5473.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -448716,7 +448428,7 @@ "2. Topological Coordinates": { "X": -546.63, "Y": -118.19, - "Z": 6132.86 + "Z": 6132.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -448884,7 +448596,7 @@ "2. Topological Coordinates": { "X": -414.1, "Y": -124.89, - "Z": 6010.9 + "Z": 6010.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -449063,9 +448775,9 @@ "Identity Proof": "Single Indicator (Ext: .css)" }, "2. Topological Coordinates": { - "X": 7729.63, + "X": 7725.68, "Y": 152.01, - "Z": 500.78 + "Z": 500.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -449241,9 +448953,9 @@ "Identity Proof": "Single Indicator (Ext: .css)" }, "2. Topological Coordinates": { - "X": 7926.99, + "X": 7923.04, "Y": 110.36, - "Z": 277.92 + "Z": 277.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450146,9 +449858,9 @@ "Identity Proof": "Single Indicator (Ext: .bat)" }, "2. Topological Coordinates": { - "X": -133.1, + "X": -132.95, "Y": -200.63, - "Z": -5401.09 + "Z": -5393.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450303,9 +450015,9 @@ "Identity Proof": "Single Indicator (Ext: .bat)" }, "2. Topological Coordinates": { - "X": -273.34, + "X": -273.19, "Y": -263.49, - "Z": -5503.0 + "Z": -5495.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450484,9 +450196,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5667.5, + "X": -5666.37, "Y": 252.02, - "Z": -548.03 + "Z": -547.91 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450641,9 +450353,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5924.75, + "X": -5923.62, "Y": 281.75, - "Z": -450.68 + "Z": -450.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -451003,9 +450715,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5189.36, + "X": -5184.02, "Y": 14.4, - "Z": 1847.76 + "Z": 1845.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", diff --git a/tests/golden_master_zero_dep_audit.json b/tests/golden_master_zero_dep_audit.json index a376fe0cc..e1877065b 100644 --- a/tests/golden_master_zero_dep_audit.json +++ b/tests/golden_master_zero_dep_audit.json @@ -12,8 +12,8 @@ }, "Target Root Name": "data", "Absolute Project Path": "/home/joe/nyx_projects/language-crucible/data", - "Analysis ISO Timestamp": "2026-08-27T13:52:47.910941+00:00", - "Total Scan Duration": "32.3 seconds" + "Analysis ISO Timestamp": "2026-08-27T14:39:14.758675+00:00", + "Total Scan Duration": "32.11 seconds" }, "Source Control Footprint (Immutable Anchor)": { "Active Branch": "HEAD", @@ -25,11 +25,11 @@ "2. Global Ecosystem Summary": { "summary": { "total_files": 1104, - "verified_files": 938, - "total_loc": 603434, + "verified_files": 937, + "total_loc": 603294, "dominant_language": "c", "volatility_index": 0.0, - "Percent_Visible": 85.0 + "Percent_Visible": 84.9 }, "repo_macro_species": { "name": "Cluster 3", @@ -38,7 +38,7 @@ "raw_drift": 0.414 }, "unparsable_files": { - "ambig_file_count": 166, + "ambig_file_count": 167, "size_limit": 0, "binary": 0, "unparsable": 0, @@ -110,6 +110,10 @@ ".cff": { "Blocked (Unsupported Extension: '.cff')": 2 }, + ".js": { + "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1, + "Packed Payload Guard (Impossible Density: 3.32 hits/line)": 1 + }, ".am": { "Blocked (Unsupported Extension: '.am')": 2 }, @@ -138,9 +142,6 @@ ".html": { "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1 }, - ".js": { - "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1 - }, ".kts": { "Blocked (System Exclusion, Hidden Directory, or Dynamic Ignored Dir)": 1 }, @@ -195,10 +196,10 @@ } }, "health": { - "avg_cognitive_load": 24.882, - "avg_safety_score": 38.809, - "avg_tech_debt": 24.93, - "avg_documentation": 21.537 + "avg_cognitive_load": 24.878, + "avg_safety_score": 38.851, + "avg_tech_debt": 24.941, + "avg_documentation": 21.454 }, "composition": { "xml": { @@ -352,9 +353,9 @@ "impact": 0.30000000000000004 }, "javascript": { - "files": 19, - "loc": 23453, - "impact": 18446.66 + "files": 18, + "loc": 23313, + "impact": 18289.86 }, "typescript": { "files": 24, @@ -470,7 +471,7 @@ "ecosystem_fingerprint": { "ml_clusters": { "Unclassified": { - "count": 868, + "count": 867, "pct": 92.5 } }, @@ -2482,21 +2483,21 @@ } }, "javascript/threejs": { - "file_count": 7, - "total_mass": 7872.3, + "file_count": 6, + "total_mass": 7715.5, "avg_exposures": { - "cognitive_load": 44.26, - "safety_score": 57.19, - "tech_debt": 38.36, - "verification": 68.9, - "api_exposure": 4.99, - "concurrency": 28.64, - "state_flux": 72.34, - "dead_code": 2.85, + "cognitive_load": 46.97, + "safety_score": 66.72, + "tech_debt": 42.36, + "verification": 80.0, + "api_exposure": 2.6, + "concurrency": 33.42, + "state_flux": 84.4, + "dead_code": 3.33, "spec_match": 100.0, "stability": 50.0, "churn": 0.0, - "documentation": 28.25, + "documentation": 16.29, "secrets_risk": 0.0 } }, @@ -3231,7 +3232,7 @@ "typosquat_hits": 8, "Global Architectural Fingerprint": { "Active Execution Logic (ML Clusters)": { - "Unclassified": "92.5% (868 files)" + "Unclassified": "92.5% (867 files)" }, "Static Assets (Static Categories)": { "Static: Literature & Documentation": "7.5% (70 files)" @@ -3249,7 +3250,7 @@ "Critical Targets": [] }, "Scope": { - "Artifacts Evaluated": 938, + "Artifacts Evaluated": 937, "Threat Signatures Monitored": 11, "Vulnerability Vectors Calculated": 1 }, @@ -3433,11 +3434,6 @@ }, "api_exposure": { "highest": [ - { - "name": "Nodes.js", - "path": "javascript/threejs/Nodes.js", - "value": 19.2884 - }, { "name": "server.h", "path": "lua/redis/server.h", @@ -3447,6 +3443,11 @@ "name": "api.ts", "path": "typescript/playwright/api.ts", "value": 17.8757 + }, + { + "name": "main.py", + "path": "python/fastapi/tests/main.py", + "value": 17.6488 } ], "lowest": [ @@ -5332,6 +5333,14 @@ "Size": "751 bytes", "Identity Confidence": "0.0%", "Discovery Proof": "Radar Scan" + }, + { + "Path": "javascript/threejs/Nodes.js", + "Forensic Category": "Excluded Artifact", + "Diagnostic Reason": "Packed Payload Guard (Impossible Density: 3.32 hits/line)", + "Size": "9925 bytes", + "Identity Confidence": "91.0%", + "Discovery Proof": "Single Indicator (Ext: .js)" } ], "6. Parsed Files (Scanned Artifacts)": { @@ -48742,9 +48751,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1533.23, + "X": 7203.98, "Y": -12.93, - "Z": 5506.98 + "Z": 1688.17 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -50196,9 +50205,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1515.55, + "X": 7221.67, "Y": 60.53, - "Z": 4975.37 + "Z": 1156.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -51069,9 +51078,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": -1135.66, + "X": 7601.55, "Y": 119.87, - "Z": 5372.91 + "Z": 1554.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -51226,9 +51235,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -1867.38, + "X": 6869.83, "Y": -100.48, - "Z": 5780.44 + "Z": 1961.63 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -59194,9 +59203,9 @@ "Identity Proof": "Absolute Consensus (Ext + Shebang)" }, "2. Topological Coordinates": { - "X": -1182.61, + "X": 7554.6, "Y": 56.54, - "Z": 6109.97 + "Z": 2291.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -59412,9 +59421,9 @@ "Identity Proof": "Single Indicator (Ext: .at)" }, "2. Topological Coordinates": { - "X": -2036.64, + "X": 6700.57, "Y": -122.56, - "Z": 5304.32 + "Z": 1485.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -70539,9 +70548,9 @@ "Identity Proof": "Metadata Anchor (README)" }, "2. Topological Coordinates": { - "X": 7693.3, + "X": 1272.38, "Y": -36.78, - "Z": 1379.97 + "Z": -4390.12 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -70696,9 +70705,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6646.05, + "X": 225.12, "Y": 8.53, - "Z": 1535.78 + "Z": -4234.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -70854,9 +70863,9 @@ "Identity Proof": "Single Indicator (Ext: .pm)" }, "2. Topological Coordinates": { - "X": 7231.32, + "X": 810.4, "Y": -1.39, - "Z": 1542.86 + "Z": -4227.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -72722,9 +72731,9 @@ "Identity Proof": "Metadata Anchor (Makefile.PL)" }, "2. Topological Coordinates": { - "X": 7481.06, + "X": 1060.13, "Y": 28.3, - "Z": 2130.31 + "Z": -3639.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -72882,9 +72891,9 @@ "Identity Proof": "Single Indicator (Ext: .pm)" }, "2. Topological Coordinates": { - "X": 7267.42, + "X": 846.5, "Y": -83.58, - "Z": 1133.64 + "Z": -4636.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -73156,9 +73165,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 6908.1, + "X": 487.17, "Y": 50.88, - "Z": 2054.97 + "Z": -3715.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -84850,9 +84859,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5203.35, + "X": -1102.14, "Y": 18.1, - "Z": -1368.14 + "Z": -2191.15 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -87508,9 +87517,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 6036.18, + "X": -269.31, "Y": 206.44, - "Z": -1810.51 + "Z": -2633.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -89132,9 +89141,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5841.24, + "X": -464.26, "Y": 110.24, - "Z": -1097.79 + "Z": -1920.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -92531,9 +92540,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 4998.65, + "X": -1306.84, "Y": 76.43, - "Z": -1468.65 + "Z": -2291.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -95442,9 +95451,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5595.84, + "X": -709.65, "Y": 179.03, - "Z": -1955.08 + "Z": -2778.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -98641,9 +98650,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5575.74, + "X": -729.76, "Y": 147.84, - "Z": -1559.64 + "Z": -2382.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -102900,9 +102909,9 @@ "Identity Proof": "Single Indicator (Ext: .dart)" }, "2. Topological Coordinates": { - "X": 5333.92, + "X": -971.57, "Y": 21.69, - "Z": -911.51 + "Z": -1734.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -130078,9 +130087,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -4721.76, + "X": -1041.27, "Y": -131.97, - "Z": -1981.52 + "Z": 5218.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -130691,9 +130700,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -4921.13, + "X": -1240.64, "Y": -190.57, - "Z": -1285.79 + "Z": 5914.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -131453,9 +131462,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5495.56, + "X": -1815.07, "Y": -185.7, - "Z": -1282.7 + "Z": 5917.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -132349,9 +132358,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5197.38, + "X": -1516.89, "Y": -190.97, - "Z": -1843.22 + "Z": 5356.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -134490,9 +134499,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5173.48, + "X": -1492.99, "Y": -143.71, - "Z": -2250.99 + "Z": 4949.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -135211,9 +135220,9 @@ "Identity Proof": "Single Indicator (Ext: .zig)" }, "2. Topological Coordinates": { - "X": -5803.23, + "X": -2122.74, "Y": -155.7, - "Z": -1631.98 + "Z": 5568.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -165618,46 +165627,201 @@ } } }, - "javascript/threejs": { - "Directory Group Magnitude": 7872.3, - "File Count": 7, + "python/fastapi/tests": { + "Directory Group Magnitude": 7729.24, + "File Count": 204, "Ecosystem Fingerprint (Archetypes)": { "Unclassified": "100.0%" }, "Average Risk Exposures": { - "Cognitive Load Exposure": "44.26%", - "Error & Exception Exposure": "57.19%", - "Tech Debt Exposure": "38.36%", - "Testing Exposure": "68.9%", - "API Exposure": "4.99%", - "Concurrency Exposure": "28.64%", - "State Flux Exposure": "72.34%", - "Commented Logic Exposure": "2.85%", - "Specification Exposure": "100.0%", + "Cognitive Load Exposure": "4.89%", + "Error & Exception Exposure": "10.96%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.6%", + "Concurrency Exposure": "23.96%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.31%", + "Specification Exposure": "98.59%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "28.25%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "Files": { - "javascript/threejs/BufferGeometry.js": { + "python/fastapi/tests/__init__.py": { "1. Artifact Identity": { - "Filename": "BufferGeometry.js", - "Path": "javascript/threejs/BufferGeometry.js", - "Language": "Javascript", + "Filename": "__init__.py", + "Path": "python/fastapi/tests/__init__.py", + "Language": "Python", "Architect": "Unknown Architect", - "Indentation Style": "Tabs", - "Parent Entity": "EventDispatcher", + "Indentation Style": "Neutral / No Indentation", "Doc Umbrella": 0.0, - "Alert": "TYPOSQUATTING THREAT: 'math/Vector2.js' mimics 'math/Vector3.js'", - "Folder Dominant Lang": "javascript", + "Folder Dominant Lang": "python", + "Lock Tier": 1.5, + "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" + }, + "2. Topological Coordinates": { + "X": 3175.53, + "Y": -11.84, + "Z": 2270.55 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 1, + "Coding LOC": 0, + "Documentation LOC": 0, + "Structural Magnitude": 10.52, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 2.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "0.0%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "6.67%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 0, + "Function Parameters": 0, + "Function/Method Declarations": 0, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 0, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 0, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 0, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 0, + "Design Camel Case": 0, + "Design Snake Case": 0, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 0, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 0, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [] + }, + "python/fastapi/tests/main.py": { + "1. Artifact Identity": { + "Filename": "main.py", + "Path": "python/fastapi/tests/main.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -1270.08, - "Y": -162.66, - "Z": -2376.39 + "X": 2540.68, + "Y": -49.92, + "Z": -485.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -165666,420 +165830,450 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1459, - "Coding LOC": 588, - "Documentation LOC": 377, - "Structural Magnitude": 616.46, - "Control Flow Ratio": "55.7%", + "Total LOC": 209, + "Coding LOC": 127, + "Documentation LOC": 0, + "Structural Magnitude": 173.44, + "Control Flow Ratio": "3.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.275 + "Raw Cognitive Density": 0.058 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "44.55%", - "Error & Exception Exposure": "90.35%", - "Tech Debt Exposure": "44.92%", - "Testing Exposure": "80.0%", - "API Exposure": "1.9%", + "Cognitive Load Exposure": "2.95%", + "Error & Exception Exposure": "55.34%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "17.65%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "100.0%", - "Commented Logic Exposure": "5.03%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "computeTangents", - "Structural Impact": 21.9, - "Lines of Code (LOC)": 158, - "Control Flow Branches": 13, - "Input Parameters": 0, - "Control Flow Ratio": "61.9%", - "Start Line": 822, - "End Line": 979 + "Function Name": "get_query_optional", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 151, + "End Line": 154 }, { - "Function Name": "computeBoundingSphere", - "Structural Impact": 20.6, - "Lines of Code (LOC)": 111, - "Control Flow Branches": 14, - "Input Parameters": 0, - "Control Flow Ratio": "70.0%", - "Start Line": 703, - "End Line": 813 + "Function Name": "get_query_type_optional", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 163, + "End Line": 166 }, { - "Function Name": "toJSON", - "Structural Impact": 19.4, - "Lines of Code (LOC)": 109, - "Control Flow Branches": 13, - "Input Parameters": 0, - "Control Flow Ratio": "76.5%", - "Start Line": 1212, - "End Line": 1320 + "Function Name": "get_query_param", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 175, + "End Line": 178 }, { - "Function Name": "copy", - "Structural Impact": 16.5, - "Lines of Code (LOC)": 104, - "Control Flow Branches": 7, + "Function Name": "get_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "70.0%", - "Start Line": 1339, - "End Line": 1442 + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "computeBoundingBox", - "Structural Impact": 16.4, - "Lines of Code (LOC)": 69, - "Control Flow Branches": 12, - "Input Parameters": 0, - "Control Flow Ratio": "85.7%", - "Start Line": 628, - "End Line": 696 + "Function Name": "get_str_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 }, { - "Function Name": "toNonIndexed", - "Structural Impact": 15.1, - "Lines of Code (LOC)": 101, - "Control Flow Branches": 9, - "Input Parameters": 0, - "Control Flow Ratio": "52.9%", - "Start Line": 1105, - "End Line": 1205 + "Function Name": "get_int_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 }, { - "Function Name": "setFromPoints", - "Structural Impact": 14.8, - "Lines of Code (LOC)": 41, - "Control Flow Branches": 8, + "Function Name": "get_float_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "72.7%", - "Start Line": 581, - "End Line": 621 + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 }, { - "Function Name": "computeVertexNormals", - "Structural Impact": 13.6, - "Lines of Code (LOC)": 91, - "Control Flow Branches": 8, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 987, - "End Line": 1077 + "Function Name": "get_bool_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 52 }, { - "Function Name": "applyMatrix4", - "Structural Impact": 10.9, - "Lines of Code (LOC)": 49, - "Control Flow Branches": 5, + "Function Name": "get_path_param_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "83.3%", - "Start Line": 363, - "End Line": 411 + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 }, { - "Function Name": "convertBufferAttribute", - "Structural Impact": 10.3, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 1107, - "End Line": 1139 + "Function Name": "get_path_param_min_length", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 62 }, { - "Function Name": "setIndex", - "Structural Impact": 6.4, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 3, + "Function Name": "get_path_param_max_length", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 217, - "End Line": 231 + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 67 }, { - "Function Name": "handleTriangle", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 872, - "End Line": 905 + "Function Name": "get_path_param_min_max_length", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 72 }, { - "Function Name": "handleVertex", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 1, + "Function Name": "get_path_param_gt", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 940, - "End Line": 960 + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 77 }, { - "Function Name": "normalizeNormals", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 1083, - "End Line": 1097 + "Function Name": "get_path_param_gt0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 81, + "End Line": 82 }, { - "Function Name": "addGroup", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_ge", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 322, - "End Line": 332 + "Start Line": 86, + "End Line": 87 }, { - "Function Name": "translate", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_lt", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 499, - "End Line": 509 + "Start Line": 91, + "End Line": 92 }, { - "Function Name": "scale", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_lt0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 521, - "End Line": 531 + "Start Line": 96, + "End Line": 97 }, { - "Function Name": "setIndirect", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 8, + "Function Name": "get_path_param_le", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 240, - "End Line": 247 + "Start Line": 101, + "End Line": 102 }, { - "Function Name": "setAttribute", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, + "Function Name": "get_path_param_lt_gt", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 280, - "End Line": 286 + "Start Line": 106, + "End Line": 107 }, { - "Function Name": "constructor", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 146, + "Function Name": "get_path_param_le_ge", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 198 + "Start Line": 111, + "End Line": 112 }, { - "Function Name": "setDrawRange", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "get_path_param_lt_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 350, - "End Line": 355 + "Start Line": 116, + "End Line": 117 }, { - "Function Name": "rotateX", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_gt_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 437, - "End Line": 447 + "Start Line": 121, + "End Line": 122 }, { - "Function Name": "rotateY", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_le_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 457, - "End Line": 467 + "Start Line": 126, + "End Line": 127 }, { - "Function Name": "rotateZ", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_ge_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 477, - "End Line": 487 + "Start Line": 131, + "End Line": 132 }, { - "Function Name": "lookAt", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "get_path_param_lt_gt_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 541, - "End Line": 551 + "Start Line": 136, + "End Line": 137 }, { - "Function Name": "applyQuaternion", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, + "Function Name": "get_path_param_le_ge_int", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 419, - "End Line": 427 + "Start Line": 141, + "End Line": 142 }, { - "Function Name": "deleteAttribute", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, + "Function Name": "get_query", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 294, - "End Line": 300 + "Start Line": 146, + "End Line": 147 }, { - "Function Name": "getAttribute", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_type", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 267, - "End Line": 271 + "Start Line": 158, + "End Line": 159 }, { - "Function Name": "hasAttribute", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_type_int_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 308, - "End Line": 312 + "Start Line": 170, + "End Line": 171 }, { - "Function Name": "center", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Function Name": "get_query_param_required", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 558, - "End Line": 568 + "Start Line": 182, + "End Line": 183 }, { - "Function Name": "getIndex", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_param_required_type", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 205, - "End Line": 209 + "Start Line": 187, + "End Line": 188 }, { - "Function Name": "getIndirect", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_query_type_frozenset", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 197, + "End Line": 198 + }, + { + "Function Name": "get_query_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 202, + "End Line": 203 + }, + { + "Function Name": "get_query_list_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 207, + "End Line": 208 + }, + { + "Function Name": "non_operation", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 258 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "clearGroups", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "non_decorated_route", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 337, - "End Line": 341 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "clone", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_text", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1327, - "End Line": 1331 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "dispose", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_enum_status_code", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1450, - "End Line": 1454 + "Start Line": 192, + "End Line": 193 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 93, - "Sequential Logic Declarations": 74, - "Function Parameters": 35, - "Function/Method Declarations": 35, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 28, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 82, + "Function Parameters": 38, + "Function/Method Declarations": 38, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 387, - "Commented-out Code (Dead Logic)": 1, - "Structured Documentation Blocks": 112, + "Exposed API / Public Exports": 111, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, "Unit Test Assertions": 0, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 37, + "Generic Type Abstractions": 6, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 2, - "Module Dependencies (Imports)": 11, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 40, + "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -166088,19 +166282,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 98, - "Resource Deallocation & Cleanup": 4, + "Immutable Data Declarations": 2, + "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 564, - "Structural Space Indentations": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 2, + "Serialization Parsing": 0, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -166110,16 +166304,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 136, - "Design Camel Case": 46, - "Design Snake Case": 89, - "Design Pascal Case": 0, + "Vectorized Math & Tensor Operations": 27, + "Core Var Decl": 24, + "Design Camel Case": 0, + "Design Snake Case": 22, + "Design Pascal Case": 2, "Design Upper Case": 0, - "Design Short Vars": 37, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 0, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -166129,10 +166323,10 @@ "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 1, + "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 1, + "Non-Standard Unicode / Homoglyphs": 0, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -166143,41 +166337,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 11, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 3, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "../math/Box3.js", - "../math/MathUtils.js", - "../math/Matrix3.js", - "../math/Matrix4.js", - "../math/Sphere.js", - "../math/Vector2.js", - "../math/Vector3.js", - "../utils.js", - "./BufferAttribute.js", - "./EventDispatcher.js", - "./Object3D.js" + "fastapi", + "http" ] }, - "javascript/threejs/Editor.js": { + "python/fastapi/tests/test_additional_properties.py": { "1. Artifact Identity": { - "Filename": "Editor.js", - "Path": "javascript/threejs/Editor.js", - "Language": "Javascript", + "Filename": "test_additional_properties.py", + "Path": "python/fastapi/tests/test_additional_properties.py", + "Language": "Python", "Architect": "Unknown Architect", - "Indentation Style": "Tabs", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", + "Folder Dominant Lang": "python", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -467.3, - "Y": -58.58, - "Z": -1837.0 + "X": 1411.85, + "Y": -199.34, + "Z": 1232.94 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -166186,490 +166372,497 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 820, - "Coding LOC": 458, - "Documentation LOC": 14, - "Structural Magnitude": 631.06, - "Control Flow Ratio": "54.8%", + "Total LOC": 115, + "Coding LOC": 103, + "Documentation LOC": 0, + "Structural Magnitude": 15.16, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.021 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "74.71%", - "Error & Exception Exposure": "96.41%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", - "Testing Exposure": "80.0%", - "API Exposure": "8.44%", - "Concurrency Exposure": "75.79%", - "State Flux Exposure": "100.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.54%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "34.08%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "addHelper", - "Structural Impact": 23.2, - "Lines of Code (LOC)": 85, - "Control Flow Branches": 18, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 88, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "78.3%", - "Start Line": 392, - "End Line": 476 - }, - { - "Function Name": "addObject", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 179, - "End Line": 207 - }, - { - "Function Name": "setObjectMaterial", - "Structural Impact": 8.7, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 540, - "End Line": 552 - }, - { - "Function Name": "fromJSON", - "Structural Impact": 7.4, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "37.5%", - "Start Line": 674, - "End Line": 707 - }, - { - "Function Name": "addMaterial", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 251, - "End Line": 269 - }, - { - "Function Name": "removeMaterial", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 291, - "End Line": 309 + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 114 }, { - "Function Name": "getMaterialById", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, + "Function Name": "foo", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "42.9%", - "Start Line": 331, - "End Line": 349 + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "toJSON", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 3, + "Function Name": "test_additional_properties_post", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 709, - "End Line": 748 - }, - { - "Function Name": "removeScript", - "Structural Impact": 5.9, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 510, - "End Line": 524 - }, - { - "Function Name": "getObjectMaterial", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 526, - "End Line": 538 - }, - { - "Function Name": "save", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 787, - "End Line": 799 - }, - { - "Function Name": "removeObject", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 216, - "End Line": 236 - }, - { - "Function Name": "addMaterialToRefCounter", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 271, - "End Line": 289 - }, - { - "Function Name": "removeMaterialFromRefCounter", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 311, - "End Line": 329 - }, - { - "Function Name": "setScene", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 147, - "End Line": 175 - }, - { - "Function Name": "addScript", - "Structural Impact": 4.1, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 496, - "End Line": 508 - }, - { - "Function Name": "removeHelper", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 478, - "End Line": 492 - }, - { - "Function Name": "selectByUuid", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 589, - "End Line": 603 - }, - { - "Function Name": "clear", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 44, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 627, - "End Line": 670 - }, - { - "Function Name": "addCamera", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 366, - "End Line": 376 - }, - { - "Function Name": "removeCamera", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 378, - "End Line": 388 - }, - { - "Function Name": "selectById", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 576, - "End Line": 587 - }, - { - "Function Name": "focus", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 611, - "End Line": 619 - }, - { - "Function Name": "setViewportCamera", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 554, - "End Line": 559 - }, - { - "Function Name": "Editor", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 129, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 15, - "End Line": 143 - }, - { - "Function Name": "updateMatrixWorld", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 415, - "End Line": 433 - }, - { - "Function Name": "nameObject", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 214 - }, - { - "Function Name": "setGeometryName", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 244, - "End Line": 249 - }, - { - "Function Name": "setMaterialName", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 351, - "End Line": 356 - }, - { - "Function Name": "execute", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 756, - "End Line": 760 - }, - { - "Function Name": "saveArrayBuffer", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 801, - "End Line": 805 - }, - { - "Function Name": "saveString", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 807, - "End Line": 811 - }, - { - "Function Name": "addGeometry", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 238, - "End Line": 242 - }, - { - "Function Name": "addTexture", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 358, - "End Line": 362 - }, - { - "Function Name": "setViewportShading", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 561, - "End Line": 566 - }, + "Start Line": 21, + "End Line": 24 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 31, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 92, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, + "Design Camel Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_additional_properties_bool.py": { + "1. Artifact Identity": { + "Filename": "test_additional_properties_bool.py", + "Path": "python/fastapi/tests/test_additional_properties_bool.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, FooBaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1938.11, + "Y": -188.72, + "Z": 1581.17 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 126, + "Coding LOC": 109, + "Documentation LOC": 0, + "Structural Magnitude": 19.48, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "39.74%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.59%", + "Concurrency Exposure": "22.39%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "select", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 87, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 570, - "End Line": 574 + "Start Line": 39, + "End Line": 125 }, { - "Function Name": "focusById", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "post", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 621, - "End Line": 625 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "objectByUuid", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_call_valid", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 750, - "End Line": 754 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "formatNumber", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_call_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 813, - "End Line": 817 - }, + "Start Line": 28, + "End Line": 30 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 34, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 3, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 95, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, + "Design Camel Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_additional_response_extra.py": { + "1. Artifact Identity": { + "Filename": "test_additional_response_extra.py", + "Path": "python/fastapi/tests/test_additional_response_extra.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1743.54, + "Y": -210.35, + "Z": -1728.1 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 53, + "Coding LOC": 39, + "Documentation LOC": 0, + "Structural Magnitude": 8.28, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.051 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "2.88%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "6.95%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "deselect", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 605, - "End Line": 609 + "Start Line": 30, + "End Line": 52 }, { - "Function Name": "undo", + "Function Name": "test_path_operation", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 762, - "End Line": 766 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "redo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_item", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 768, - "End Line": 772 + "Start Line": 13, + "End Line": 14 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 63, - "Sequential Logic Declarations": 52, - "Function Parameters": 46, - "Function/Method Declarations": 42, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 28, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 16, - "State Mutations / Variable Reassignments": 409, + "Exposed API / Public Exports": 3, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 18, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 41, - "Global State Dependencies": 1, - "Decorators and Annotations": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 7, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 74, + "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -166678,19 +166871,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 10, - "Resource Deallocation & Cleanup": 7, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 433, - "Structural Space Indentations": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 2, + "Serialization Parsing": 0, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -166700,16 +166893,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 43, - "Design Camel Case": 4, - "Design Snake Case": 37, - "Design Pascal Case": 1, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, + "Design Camel Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 4, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -166733,38 +166926,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "./Config.js", - "./History.js", - "./Loader.js", - "./Selector.js", - "./Storage.js", - "./Strings.js", - "three" + "fastapi", + "fastapi.testclient", + "inline_snapshot" ] }, - "javascript/threejs/GLTFLoader.js": { + "python/fastapi/tests/test_additional_responses_bad.py": { "1. Artifact Identity": { - "Filename": "GLTFLoader.js", - "Path": "javascript/threejs/GLTFLoader.js", - "Language": "Javascript", - "Architect": "GLTFExporter", - "Indentation Style": "Tabs", - "Parent Entity": "Loader, Interpolant, GLTFCubicSplineInterpolant", + "Filename": "test_additional_responses_bad.py", + "Path": "python/fastapi/tests/test_additional_responses_bad.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", + "Folder Dominant Lang": "python", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -803.55, - "Y": -74.07, - "Z": -2260.84 + "X": 4641.35, + "Y": 155.59, + "Z": 1304.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -166773,3582 +166961,306 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 4861, - "Coding LOC": 2413, - "Documentation LOC": 613, - "Structural Magnitude": 3082.26, - "Control Flow Ratio": "66.1%", + "Total LOC": 41, + "Coding LOC": 30, + "Documentation LOC": 2, + "Structural Magnitude": 6.8, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.53 + "Raw Cognitive Density": 0.2 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "47.88%", - "Error & Exception Exposure": "75.38%", - "Tech Debt Exposure": "46.56%", - "Testing Exposure": "80.0%", - "API Exposure": "1.63%", - "Concurrency Exposure": "100.0%", - "State Flux Exposure": "100.0%", - "Commented Logic Exposure": "4.91%", + "Cognitive Load Exposure": "4.99%", + "Error & Exception Exposure": "58.03%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "5.88%", + "Concurrency Exposure": "40.48%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", + "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "parse", - "Structural Impact": 77.7, - "Lines of Code (LOC)": 122, - "Control Flow Branches": 31, - "Input Parameters": 4, - "Control Flow Ratio": "86.1%", - "Start Line": 429, - "End Line": 550 - }, - { - "Function Name": "_createAnimationTracks", - "Structural Impact": 71.3, - "Lines of Code (LOC)": 103, - "Control Flow Branches": 26, - "Input Parameters": 5, - "Control Flow Ratio": "89.7%", - "Start Line": 4514, - "End Line": 4616 - }, - { - "Function Name": "getDependency", - "Structural Impact": 67.4, - "Lines of Code (LOC)": 101, - "Control Flow Branches": 35, - "Input Parameters": 2, - "Control Flow Ratio": "79.5%", - "Start Line": 2872, - "End Line": 2972 - }, - { - "Function Name": "loadMaterial", - "Structural Impact": 50.1, - "Lines of Code (LOC)": 153, - "Control Flow Branches": 29, - "Input Parameters": 1, - "Control Flow Ratio": "85.3%", - "Start Line": 3542, - "End Line": 3694 - }, - { - "Function Name": "loadMesh", - "Structural Impact": 49.5, - "Lines of Code (LOC)": 142, - "Control Flow Branches": 29, - "Input Parameters": 1, - "Control Flow Ratio": "78.4%", - "Start Line": 3799, - "End Line": 3940 - }, - { - "Function Name": "addMorphTargets", - "Structural Impact": 48.0, - "Lines of Code (LOC)": 80, - "Control Flow Branches": 21, - "Input Parameters": 3, - "Control Flow Ratio": "72.4%", - "Start Line": 2333, - "End Line": 2412 - }, - { - "Function Name": "_loadNodeShallow", - "Structural Impact": 44.1, - "Lines of Code (LOC)": 146, - "Control Flow Branches": 25, - "Input Parameters": 1, - "Control Flow Ratio": "75.8%", - "Start Line": 4274, - "End Line": 4419 - }, - { - "Function Name": "createNodeMesh", - "Structural Impact": 40.9, - "Lines of Code (LOC)": 139, - "Control Flow Branches": 23, - "Input Parameters": 1, - "Control Flow Ratio": "69.7%", - "Start Line": 1691, - "End Line": 1829 - }, - { - "Function Name": "loadAccessor", - "Structural Impact": 39.2, - "Lines of Code (LOC)": 133, - "Control Flow Branches": 22, - "Input Parameters": 1, - "Control Flow Ratio": "78.6%", - "Start Line": 3071, - "End Line": 3203 - }, - { - "Function Name": "computeBounds", - "Structural Impact": 37.5, - "Lines of Code (LOC)": 109, - "Control Flow Branches": 15, - "Input Parameters": 3, - "Control Flow Ratio": "83.3%", - "Start Line": 4669, - "End Line": 4777 + "Function Name": "test_openapi_schema", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 38, + "End Line": 40 }, { - "Function Name": "loadTextureImage", - "Structural Impact": 36.6, - "Lines of Code (LOC)": 53, - "Control Flow Branches": 16, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 3233, - "End Line": 3285 - }, + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 9, + "End Line": 10 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 1, + "Sequential Logic Declarations": 8, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 1, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 2, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 20, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, + "Design Camel Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 1, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "pytest" + ] + }, + "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py": { + "1. Artifact Identity": { + "Filename": "test_additional_responses_custom_model_in_callback.py", + "Path": "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4112.95, + "Y": 142.25, + "Z": 1331.64 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 148, + "Coding LOC": 134, + "Documentation LOC": 0, + "Structural Magnitude": 17.08, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "48.2%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.16%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "_loadLight", - "Structural Impact": 31.7, - "Lines of Code (LOC)": 68, - "Control Flow Branches": 19, - "Input Parameters": 1, - "Control Flow Ratio": "82.6%", - "Start Line": 694, - "End Line": 761 + "Function Name": "test_openapi_schema", + "Structural Impact": 6.8, + "Lines of Code (LOC)": 116, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 147 }, { - "Function Name": "assignFinalMaterial", - "Structural Impact": 29.9, - "Lines of Code (LOC)": 89, - "Control Flow Branches": 17, + "Function Name": "main_route", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "77.3%", - "Start Line": 3439, - "End Line": 3527 - }, - { - "Function Name": "constructor", - "Structural Impact": 27.9, - "Lines of Code (LOC)": 74, - "Control Flow Branches": 13, - "Input Parameters": 2, - "Control Flow Ratio": "76.5%", - "Start Line": 2549, - "End Line": 2622 + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "load", - "Structural Impact": 23.9, - "Lines of Code (LOC)": 76, - "Control Flow Branches": 8, - "Input Parameters": 4, - "Control Flow Ratio": "88.9%", - "Start Line": 264, - "End Line": 339 - }, - { - "Function Name": "loadImageSource", - "Structural Impact": 23.5, - "Lines of Code (LOC)": 88, - "Control Flow Branches": 10, - "Input Parameters": 2, - "Control Flow Ratio": "52.6%", - "Start Line": 3287, - "End Line": 3374 - }, - { - "Function Name": "loadAnimation", - "Structural Impact": 22.9, - "Lines of Code (LOC)": 90, - "Control Flow Branches": 12, - "Input Parameters": 1, - "Control Flow Ratio": "70.6%", - "Start Line": 4059, - "End Line": 4148 - }, - { - "Function Name": "addPrimitiveAttributes", - "Structural Impact": 22.9, - "Lines of Code (LOC)": 59, - "Control Flow Branches": 9, - "Input Parameters": 3, - "Control Flow Ratio": "75.0%", - "Start Line": 4787, - "End Line": 4845 - }, - { - "Function Name": "loadBufferView", - "Structural Impact": 21.7, - "Lines of Code (LOC)": 67, - "Control Flow Branches": 12, - "Input Parameters": 1, - "Control Flow Ratio": "63.2%", - "Start Line": 1605, - "End Line": 1671 - }, - { - "Function Name": "loadScene", - "Structural Impact": 21.2, - "Lines of Code (LOC)": 85, - "Control Flow Branches": 11, - "Input Parameters": 1, - "Control Flow Ratio": "61.1%", - "Start Line": 4428, - "End Line": 4512 - }, - { - "Function Name": "assignTexture", - "Structural Impact": 20.0, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 7, - "Input Parameters": 4, - "Control Flow Ratio": "70.0%", - "Start Line": 3386, - "End Line": 3427 - }, - { - "Function Name": "extendTexture", - "Structural Impact": 19.5, - "Lines of Code (LOC)": 43, - "Control Flow Branches": 9, - "Input Parameters": 2, - "Control Flow Ratio": "81.8%", - "Start Line": 2005, - "End Line": 2047 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 18.2, - "Lines of Code (LOC)": 53, - "Control Flow Branches": 8, - "Input Parameters": 2, - "Control Flow Ratio": "80.0%", - "Start Line": 1019, - "End Line": 1071 - }, - { - "Function Name": "decodePrimitive", - "Structural Impact": 16.8, - "Lines of Code (LOC)": 58, - "Control Flow Branches": 7, - "Input Parameters": 2, - "Control Flow Ratio": "77.8%", - "Start Line": 1929, - "End Line": 1986 - }, - { - "Function Name": "loadNode", - "Structural Impact": 16.7, - "Lines of Code (LOC)": 79, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "57.1%", - "Start Line": 4192, - "End Line": 4270 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 16.3, - "Lines of Code (LOC)": 49, - "Control Flow Branches": 7, - "Input Parameters": 2, - "Control Flow Ratio": "77.8%", - "Start Line": 905, - "End Line": 953 - }, - { - "Function Name": "getImageURIMimeType", - "Structural Impact": 16.0, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 10, - "Input Parameters": 1, - "Control Flow Ratio": "71.4%", - "Start Line": 2533, - "End Line": 2541 - }, - { - "Function Name": "constructor", - "Structural Impact": 15.8, - "Lines of Code (LOC)": 62, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "88.9%", - "Start Line": 1840, - "End Line": 1901 - }, - { - "Function Name": "updateMorphTargets", - "Structural Impact": 15.8, - "Lines of Code (LOC)": 38, - "Control Flow Branches": 7, - "Input Parameters": 2, - "Control Flow Ratio": "77.8%", - "Start Line": 2420, - "End Line": 2457 - }, - { - "Function Name": "parse", - "Structural Impact": 15.4, - "Lines of Code (LOC)": 66, - "Control Flow Branches": 6, - "Input Parameters": 2, - "Control Flow Ratio": "54.5%", - "Start Line": 2636, - "End Line": 2701 - }, - { - "Function Name": "loadSkin", - "Structural Impact": 14.5, - "Lines of Code (LOC)": 64, - "Control Flow Branches": 7, - "Input Parameters": 1, - "Control Flow Ratio": "63.6%", - "Start Line": 3987, - "End Line": 4050 - }, - { - "Function Name": "loadCamera", - "Structural Impact": 14.2, - "Lines of Code (LOC)": 30, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "72.7%", - "Start Line": 3949, - "End Line": 3978 - }, - { - "Function Name": "loadGeometries", - "Structural Impact": 12.9, - "Lines of Code (LOC)": 61, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "54.5%", - "Start Line": 3730, - "End Line": 3790 - }, - { - "Function Name": "_markDefs", - "Structural Impact": 12.5, - "Lines of Code (LOC)": 50, - "Control Flow Branches": 9, - "Input Parameters": 0, - "Control Flow Ratio": "75.0%", - "Start Line": 2708, - "End Line": 2757 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 12.4, - "Lines of Code (LOC)": 40, - "Control Flow Branches": 5, - "Input Parameters": 2, - "Control Flow Ratio": "71.4%", - "Start Line": 1099, - "End Line": 1138 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 11.8, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 5, - "Input Parameters": 2, - "Control Flow Ratio": "71.4%", - "Start Line": 1308, - "End Line": 1335 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 5, - "Input Parameters": 2, - "Control Flow Ratio": "71.4%", - "Start Line": 1217, - "End Line": 1240 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 1458, - "End Line": 1491 - }, - { - "Function Name": "getNormalizedComponentScale", - "Structural Impact": 11.1, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "60.0%", - "Start Line": 2507, - "End Line": 2531 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 10.1, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "66.7%", - "Start Line": 1410, - "End Line": 1438 - }, - { - "Function Name": "createPrimitiveKey", - "Structural Impact": 10.0, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "62.5%", - "Start Line": 2459, - "End Line": 2489 - }, - { - "Function Name": "extendParams", - "Structural Impact": 9.6, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "75.0%", - "Start Line": 813, - "End Line": 843 - }, - { - "Function Name": "_getNodeRef", - "Structural Impact": 9.6, - "Lines of Code (LOC)": 32, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 2795, - "End Line": 2826 - }, - { - "Function Name": "reduceAssociations", - "Structural Impact": 8.9, - "Lines of Code (LOC)": 37, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 4476, - "End Line": 4512 - }, - { - "Function Name": "addUnknownExtensionsToUserData", - "Structural Impact": 8.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 2283, - "End Line": 2298 - }, - { - "Function Name": "createNodeMesh", - "Structural Impact": 8.8, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "44.4%", - "Start Line": 4150, - "End Line": 4183 - }, - { - "Function Name": "loadBuffer", - "Structural Impact": 8.6, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 3011, - "End Line": 3041 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 8.5, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "57.1%", - "Start Line": 1511, - "End Line": 1538 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 8.5, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "57.1%", - "Start Line": 1558, - "End Line": 1585 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 8.1, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 1167, - "End Line": 1189 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 7.9, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 1364, - "End Line": 1382 - }, - { - "Function Name": "assignExtrasToUserData", - "Structural Impact": 7.8, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 2306, - "End Line": 2322 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 7.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 1268, - "End Line": 1280 - }, - { - "Function Name": "constructor", - "Structural Impact": 7.4, - "Lines of Code (LOC)": 119, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 253 - }, - { - "Function Name": "_markDefs", - "Structural Impact": 7.0, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 5, - "Input Parameters": 0, - "Control Flow Ratio": "83.3%", - "Start Line": 673, - "End Line": 692 - }, - { - "Function Name": "getDependencies", - "Structural Impact": 6.8, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2981, - "End Line": 3002 - }, - { - "Function Name": "getMaterialExtension", - "Structural Impact": 6.7, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 614, - "End Line": 626 - }, - { - "Function Name": "createNodeAttachment", - "Structural Impact": 6.6, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 771, - "End Line": 788 - }, - { - "Function Name": "createUniqueName", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "60.0%", - "Start Line": 3703, - "End Line": 3719 - }, - { - "Function Name": "interpolate_", - "Structural Impact": 6.4, - "Lines of Code (LOC)": 39, - "Control Flow Branches": 1, - "Input Parameters": 4, - "Control Flow Ratio": "33.3%", - "Start Line": 2102, - "End Line": 2140 - }, - { - "Function Name": "updateMappings", - "Structural Impact": 6.4, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 2803, - "End Line": 2826 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 5.9, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 863, - "End Line": 877 - }, - { - "Function Name": "_addNodeRef", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "66.7%", - "Start Line": 2772, - "End Line": 2784 - }, - { - "Function Name": "extendMaterialParams", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 981, - "End Line": 991 - }, - { - "Function Name": "_getArrayFromAccessor", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 4618, - "End Line": 4639 - }, - { - "Function Name": "loadTexture", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 3212, - "End Line": 3231 - }, - { - "Function Name": "_invokeAll", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2845, - "End Line": 2862 - }, - { - "Function Name": "_onError", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 295, - "End Line": 310 - }, - { - "Function Name": "_invokeOne", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 2828, - "End Line": 2843 - }, - { - "Function Name": "loadBufferView", - "Structural Impact": 4.9, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 3050, - "End Line": 3062 - }, - { - "Function Name": "collectMorphTargets", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 4521, - "End Line": 4529 - }, - { - "Function Name": "constructor", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "100.0%", - "Start Line": 1914, - "End Line": 1927 - }, - { - "Function Name": "getDependency", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "33.3%", - "Start Line": 763, - "End Line": 769 - }, - { - "Function Name": "copySampleValue_", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 2082, - "End Line": 2100 - }, - { - "Function Name": "createDefaultMaterial", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2263, - "End Line": 2281 - }, - { - "Function Name": "_createCubicSplineTrackInterpolant", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 4641, - "End Line": 4658 - }, - { - "Function Name": "createAttributesKey", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 2491, - "End Line": 2505 - }, - { - "Function Name": "register", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 391, - "End Line": 401 - }, - { - "Function Name": "unregister", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 409, - "End Line": 419 - }, - { - "Function Name": "InterpolantFactoryMethodGLTFCubicSpline", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 4643, - "End Line": 4653 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 897, - "End Line": 903 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 973, - "End Line": 979 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1011, - "End Line": 1017 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1091, - "End Line": 1097 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1159, - "End Line": 1165 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1209, - "End Line": 1215 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1260, - "End Line": 1266 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1300, - "End Line": 1306 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1356, - "End Line": 1362 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 1402, - "End Line": 1408 - }, - { - "Function Name": "GLTFRegistry", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 576, - "End Line": 608 - }, - { - "Function Name": "interpolate_", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 2148, - "End Line": 2156 - }, - { - "Function Name": "constructor", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 2076, - "End Line": 2080 - }, - { - "Function Name": "parseAsync", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 560, - "End Line": 570 - }, - { - "Function Name": "assignAttributeAccessor", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 4793, - "End Line": 4802 - }, - { - "Function Name": "add", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 588, - "End Line": 592 - }, - { - "Function Name": "constructor", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 1598, - "End Line": 1603 - }, - { - "Function Name": "createDracoPrimitive", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3736, - "End Line": 3746 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 663, - "End Line": 671 - }, - { - "Function Name": "onLoad", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3331, - "End Line": 3338 - }, - { - "Function Name": "setDRACOLoader", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 348, - "End Line": 353 - }, - { - "Function Name": "setKTX2Loader", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 362, - "End Line": 367 - }, - { - "Function Name": "setMeshoptDecoder", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 376, - "End Line": 381 - }, - { - "Function Name": "get", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 582, - "End Line": 586 - }, - { - "Function Name": "remove", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 594, - "End Line": 598 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 856, - "End Line": 861 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 890, - "End Line": 895 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 966, - "End Line": 971 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1004, - "End Line": 1009 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1084, - "End Line": 1089 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1152, - "End Line": 1157 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1202, - "End Line": 1207 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1253, - "End Line": 1258 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1293, - "End Line": 1298 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1349, - "End Line": 1354 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1395, - "End Line": 1400 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1451, - "End Line": 1456 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1504, - "End Line": 1509 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1551, - "End Line": 1556 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1684, - "End Line": 1689 - }, - { - "Function Name": "setExtensions", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2624, - "End Line": 2628 - }, - { - "Function Name": "setPlugins", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 2630, - "End Line": 2634 - }, - { - "Function Name": "removeAll", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 600, - "End Line": 604 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 801, - "End Line": 805 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 807, - "End Line": 811 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1999, - "End Line": 2003 - }, - { - "Function Name": "constructor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2060, - "End Line": 2064 - }, - { - "Function Name": "getMaterialType", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3529, - "End Line": 3533 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 614, - "Sequential Logic Declarations": 315, - "Function Parameters": 207, - "Function/Method Declarations": 129, - "Class/Entity Declarations": 26, - "Defensive Programming Constructs": 247, - "Type/Safety Bypasses": 3, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 13, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 1186, - "Commented-out Code (Dead Logic)": 2, - "Structured Documentation Blocks": 150, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 415, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 86, - "Global State Dependencies": 5, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 3, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 3, - "Authorship Metadata": 1, - "Planned Work (TODOs)": 3, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 49, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 122, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 11, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 14, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 4, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 418, - "Resource Deallocation & Cleanup": 2, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 2300, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 3, - "Regex Execution": 8, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 546, - "Design Camel Case": 199, - "Design Snake Case": 323, - "Design Pascal Case": 8, - "Design Upper Case": 14, - "Design Short Vars": 51, - "Design Long Vars": 3, - "Duplicate Logic": 12, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "../utils/BufferGeometryUtils.js", - "../utils/SkeletonUtils.js", - "three", - "three/addons/loaders/GLTFLoader.js" - ] - }, - "javascript/threejs/Matrix4.js": { - "1. Artifact Identity": { - "Filename": "Matrix4.js", - "Path": "javascript/threejs/Matrix4.js", - "Language": "Javascript", - "Architect": "Unknown Architect", - "Indentation Style": "Tabs", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -265.36, - "Y": -30.17, - "Z": -2774.58 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 1315, - "Coding LOC": 597, - "Documentation LOC": 376, - "Structural Magnitude": 292.94, - "Control Flow Ratio": "44.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.515 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "14.03%", - "Error & Exception Exposure": "51.2%", - "Tech Debt Exposure": "89.15%", - "Testing Exposure": "80.0%", - "API Exposure": "1.93%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "54.96%", - "Commented Logic Exposure": "5.06%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "makePerspective", - "Structural Impact": 23.2, - "Lines of Code (LOC)": 45, - "Control Flow Branches": 6, - "Input Parameters": 8, - "Control Flow Ratio": "75.0%", - "Start Line": 1122, - "End Line": 1166 - }, - { - "Function Name": "makeOrthographic", - "Structural Impact": 23.2, - "Lines of Code (LOC)": 45, - "Control Flow Branches": 6, - "Input Parameters": 8, - "Control Flow Ratio": "75.0%", - "Start Line": 1182, - "End Line": 1226 - }, - { - "Function Name": "makeRotationFromEuler", - "Structural Impact": 23.0, - "Lines of Code (LOC)": 121, - "Control Flow Branches": 11, - "Input Parameters": 1, - "Control Flow Ratio": "91.7%", - "Start Line": 338, - "End Line": 458 - }, - { - "Function Name": "lookAt", - "Structural Impact": 12.3, - "Lines of Code (LOC)": 46, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 483, - "End Line": 528 - }, - { - "Function Name": "constructor", - "Structural Impact": 9.4, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 1, - "Input Parameters": 16, - "Control Flow Ratio": "100.0%", - "Start Line": 79, - "End Line": 101 - }, - { - "Function Name": "decompose", - "Structural Impact": 8.7, - "Lines of Code (LOC)": 54, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "40.0%", - "Start Line": 1053, - "End Line": 1106 - }, - { - "Function Name": "makeTranslation", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "66.7%", - "Start Line": 810, - "End Line": 838 - }, - { - "Function Name": "setPosition", - "Structural Impact": 7.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "66.7%", - "Start Line": 683, - "End Line": 703 - }, - { - "Function Name": "extractBasis", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "33.3%", - "Start Line": 239, - "End Line": 257 - }, - { - "Function Name": "equals", - "Structural Impact": 4.9, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 1234, - "End Line": 1247 - }, - { - "Function Name": "set", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 16, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 136 - }, - { - "Function Name": "extractRotation", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 38, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 289, - "End Line": 326 - }, - { - "Function Name": "invert", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 52, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 712, - "End Line": 763 - }, - { - "Function Name": "fromArray", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "33.3%", - "Start Line": 1256, - "End Line": 1266 - }, - { - "Function Name": "compose", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 35, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 1004, - "End Line": 1038 - }, - { - "Function Name": "multiplyMatrices", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 39, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 562, - "End Line": 600 - }, - { - "Function Name": "makeShear", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 6, - "Control Flow Ratio": "0.0%", - "Start Line": 980, - "End Line": 993 - }, - { - "Function Name": "toArray", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 1276, - "End Line": 1302 - }, - { - "Function Name": "makeRotationAxis", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 923, - "End Line": 944 - }, - { - "Function Name": "makeScale", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 954, - "End Line": 967 - }, - { - "Function Name": "makeBasis", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 267, - "End Line": 278 - }, - { - "Function Name": "setFromMatrix3", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 214, - "End Line": 229 - }, - { - "Function Name": "makeRotationX", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 847, - "End Line": 862 - }, - { - "Function Name": "makeRotationY", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 871, - "End Line": 886 - }, - { - "Function Name": "makeRotationZ", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 895, - "End Line": 910 - }, - { - "Function Name": "copy", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 175, - "End Line": 187 - }, - { - "Function Name": "scale", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 771, - "End Line": 783 - }, - { - "Function Name": "copyPosition", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 196, - "End Line": 206 - }, - { - "Function Name": "multiplyScalar", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 608, - "End Line": 619 - }, - { - "Function Name": "determinant", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 628, - "End Line": 650 - }, - { - "Function Name": "transpose", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 657, - "End Line": 672 - }, - { - "Function Name": "identity", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 143, - "End Line": 156 - }, - { - "Function Name": "makeRotationFromQuaternion", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 468, - "End Line": 472 - }, - { - "Function Name": "multiply", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 536, - "End Line": 540 - }, - { - "Function Name": "premultiply", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 548, - "End Line": 552 - }, - { - "Function Name": "getMaxScaleOnAxis", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 790, - "End Line": 800 - }, - { - "Function Name": "clone", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 163, - "End Line": 167 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 40, - "Sequential Logic Declarations": 51, - "Function Parameters": 37, - "Function/Method Declarations": 37, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 19, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 86, - "Commented-out Code (Dead Logic)": 1, - "Structured Documentation Blocks": 178, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 2, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 10, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 2, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 98, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 582, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 140, - "Design Camel Case": 12, - "Design Snake Case": 128, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 89, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 27, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 1, - "Commented-Out Executable Logic": 1, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "../constants.js", - "./Vector3.js" - ] - }, - "javascript/threejs/Nodes.js": { - "1. Artifact Identity": { - "Filename": "Nodes.js", - "Path": "javascript/threejs/Nodes.js", - "Language": "Javascript", - "Architect": "Unknown Architect", - "Indentation Style": "Neutral / No Indentation", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -943.1, - "Y": -90.14, - "Z": -1961.62 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 167, - "Coding LOC": 140, - "Documentation LOC": 13, - "Structural Magnitude": 156.8, - "Control Flow Ratio": "49.5%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.514 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "28.03%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "14.36%", - "Testing Exposure": "2.3%", - "API Exposure": "19.29%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "100.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 137, - "Sequential Logic Declarations": 140, - "Function Parameters": 0, - "Function/Method Declarations": 0, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 139, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 139, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 1, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 0, - "Design Camel Case": 0, - "Design Snake Case": 0, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 0, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 139, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "./accessors/BatchNode.js", - "./accessors/BufferAttributeNode.js", - "./accessors/BufferNode.js", - "./accessors/BuiltinNode.js", - "./accessors/ClippingNode.js", - "./accessors/CubeTextureNode.js", - "./accessors/InstanceNode.js", - "./accessors/InstancedMeshNode.js", - "./accessors/MaterialNode.js", - "./accessors/MaterialReferenceNode.js", - "./accessors/ModelNode.js", - "./accessors/MorphNode.js", - "./accessors/Object3DNode.js", - "./accessors/PointUVNode.js", - "./accessors/ReferenceBaseNode.js", - "./accessors/ReferenceNode.js", - "./accessors/RendererReferenceNode.js", - "./accessors/SkinningNode.js", - "./accessors/StorageBufferNode.js", - "./accessors/StorageTextureNode.js", - "./accessors/Texture3DNode.js", - "./accessors/TextureNode.js", - "./accessors/TextureSizeNode.js", - "./accessors/UniformArrayNode.js", - "./accessors/UserDataNode.js", - "./accessors/VelocityNode.js", - "./accessors/VertexColorNode.js", - "./code/CodeNode.js", - "./code/ExpressionNode.js", - "./code/FunctionCallNode.js", - "./code/FunctionNode.js", - "./core/ArrayNode.js", - "./core/AssignNode.js", - "./core/AttributeNode.js", - "./core/BypassNode.js", - "./core/ConstNode.js", - "./core/ContextNode.js", - "./core/IndexNode.js", - "./core/InputNode.js", - "./core/InspectorNode.js", - "./core/IsolateNode.js", - "./core/LightingModel.js", - "./core/MRTNode.js", - "./core/Node.js", - "./core/NodeAttribute.js", - "./core/NodeBuilder.js", - "./core/NodeCache.js", - "./core/NodeCode.js", - "./core/NodeError.js", - "./core/NodeFrame.js", - "./core/NodeFunctionInput.js", - "./core/NodeUniform.js", - "./core/NodeUtils.js", - "./core/NodeVar.js", - "./core/NodeVarying.js", - "./core/OutputStructNode.js", - "./core/ParameterNode.js", - "./core/PropertyNode.js", - "./core/StackNode.js", - "./core/StackTrace.js", - "./core/StructNode.js", - "./core/StructTypeNode.js", - "./core/SubBuildNode.js", - "./core/TempNode.js", - "./core/UniformGroupNode.js", - "./core/UniformNode.js", - "./core/VarNode.js", - "./core/VaryingNode.js", - "./core/constants.js", - "./display/BumpMapNode.js", - "./display/ColorSpaceNode.js", - "./display/FrontFacingNode.js", - "./display/NormalMapNode.js", - "./display/PassNode.js", - "./display/RenderOutputNode.js", - "./display/ScreenNode.js", - "./display/ToneMappingNode.js", - "./display/ToonOutlinePassNode.js", - "./display/ViewportDepthNode.js", - "./display/ViewportDepthTextureNode.js", - "./display/ViewportSharedTextureNode.js", - "./display/ViewportTextureNode.js", - "./functions/PhongLightingModel.js", - "./functions/PhysicalLightingModel.js", - "./geometry/RangeNode.js", - "./gpgpu/AtomicFunctionNode.js", - "./gpgpu/BarrierNode.js", - "./gpgpu/ComputeBuiltinNode.js", - "./gpgpu/ComputeNode.js", - "./gpgpu/SubgroupFunctionNode.js", - "./gpgpu/WorkgroupInfoNode.js", - "./lighting/AONode.js", - "./lighting/AmbientLightNode.js", - "./lighting/AnalyticLightNode.js", - "./lighting/BasicEnvironmentNode.js", - "./lighting/BasicLightMapNode.js", - "./lighting/DirectionalLightNode.js", - "./lighting/EnvironmentNode.js", - "./lighting/HemisphereLightNode.js", - "./lighting/IESSpotLightNode.js", - "./lighting/IrradianceNode.js", - "./lighting/LightProbeNode.js", - "./lighting/LightingContextNode.js", - "./lighting/LightingNode.js", - "./lighting/LightsNode.js", - "./lighting/PointLightNode.js", - "./lighting/PointShadowNode.js", - "./lighting/ProjectorLightNode.js", - "./lighting/RectAreaLightNode.js", - "./lighting/ShadowBaseNode.js", - "./lighting/ShadowNode.js", - "./lighting/SpotLightNode.js", - "./math/BitcastNode.js", - "./math/BitcountNode.js", - "./math/ConditionalNode.js", - "./math/MathNode.js", - "./math/OperatorNode.js", - "./math/PackFloatNode.js", - "./math/UnpackFloatNode.js", - "./parsers/GLSLNodeParser.js", - "./pmrem/PMREMNode.js", - "./utils/ArrayElementNode.js", - "./utils/ConvertNode.js", - "./utils/CubeMapNode.js", - "./utils/DebugNode.js", - "./utils/EventNode.js", - "./utils/FlipNode.js", - "./utils/FunctionOverloadingNode.js", - "./utils/JoinNode.js", - "./utils/LoopNode.js", - "./utils/MaxMipLevelNode.js", - "./utils/MemberNode.js", - "./utils/RTTNode.js", - "./utils/ReflectorNode.js", - "./utils/RotateNode.js", - "./utils/SampleNode.js", - "./utils/SetNode.js", - "./utils/SplitNode.js", - "./utils/StorageArrayElementNode.js" - ] - }, - "javascript/threejs/WebGLProgram.js": { - "1. Artifact Identity": { - "Filename": "WebGLProgram.js", - "Path": "javascript/threejs/WebGLProgram.js", - "Language": "Javascript", - "Architect": "Unknown Architect", - "Indentation Style": "Tabs", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -715.52, - "Y": -88.2, - "Z": -2775.6 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 1029, - "Coding LOC": 621, - "Documentation LOC": 30, - "Structural Magnitude": 684.02, - "Control Flow Ratio": "77.6%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.857 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "60.53%", - "Error & Exception Exposure": "47.87%", - "Tech Debt Exposure": "21.55%", - "Testing Exposure": "80.0%", - "API Exposure": "0.01%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "53.38%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "15.98%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "WebGLProgram", - "Structural Impact": 455.6, - "Lines of Code (LOC)": 615, - "Control Flow Branches": 189, - "Input Parameters": 4, - "Control Flow Ratio": "93.6%", - "Start Line": 412, - "End Line": 1026 - }, - { - "Function Name": "onFirstUse", - "Structural Impact": 24.5, - "Lines of Code (LOC)": 94, - "Control Flow Branches": 13, - "Input Parameters": 1, - "Control Flow Ratio": "86.7%", - "Start Line": 856, - "End Line": 949 - }, - { - "Function Name": "getShaderErrors", - "Structural Impact": 13.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 5, - "Input Parameters": 3, - "Control Flow Ratio": "62.5%", - "Start Line": 58, - "End Line": 82 - }, - { - "Function Name": "generatePrecision", - "Structural Impact": 10.4, - "Lines of Code (LOC)": 38, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "71.4%", - "Start Line": 306, - "End Line": 343 - }, - { - "Function Name": "fetchAttributeLocations", - "Structural Impact": 10.1, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "57.1%", - "Start Line": 178, - "End Line": 206 - }, - { - "Function Name": "getEncodingComponents", - "Structural Impact": 8.1, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 4, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 36, - "End Line": 56 - }, - { - "Function Name": "includeReplacer", - "Structural Impact": 8.1, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 253, - "End Line": 276 - }, - { - "Function Name": "generateDefines", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 160, - "End Line": 176 - }, - { - "Function Name": "handleSource", - "Structural Impact": 6.1, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 15, - "End Line": 32 - }, - { - "Function Name": "loopReplacer", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 4, - "Control Flow Ratio": "25.0%", - "Start Line": 288, - "End Line": 302 - }, - { - "Function Name": "generateVertexExtensions", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 149, - "End Line": 158 - }, - { - "Function Name": "generateEnvMapTypeDefine", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 362, - "End Line": 368 - }, - { - "Function Name": "generateEnvMapModeDefine", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 374, - "End Line": 380 - }, - { - "Function Name": "generateEnvMapBlendingDefine", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 388, - "End Line": 394 - }, - { - "Function Name": "getToneMappingFunction", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 110, - "End Line": 123 - }, - { - "Function Name": "generateCubeUVSize", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 396, - "End Line": 410 - }, - { - "Function Name": "generateShadowMapTypeDefine", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 350, - "End Line": 354 - }, - { - "Function Name": "replaceLightNums", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 214, - "End Line": 231 - }, - { - "Function Name": "getUniforms", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 955, - "End Line": 966 - }, - { - "Function Name": "getAttributes", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 972, - "End Line": 983 - }, - { - "Function Name": "getTexelEncodingFunction", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 98 - }, - { - "Function Name": "isReady", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 990, - "End Line": 1000 - }, - { - "Function Name": "replaceClippingPlaneNums", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 233, - "End Line": 239 - }, - { - "Function Name": "getLuminanceFunction", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 127, - "End Line": 147 - }, - { - "Function Name": "filterEmptyLine", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 208, - "End Line": 212 - }, - { - "Function Name": "resolveIncludes", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 245, - "End Line": 249 - }, - { - "Function Name": "unrollLoops", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 282, - "End Line": 286 - }, - { - "Function Name": "destroy", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1004, - "End Line": 1011 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 229, - "Sequential Logic Declarations": 66, - "Function Parameters": 29, - "Function/Method Declarations": 28, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 38, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 70, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 4, - "Global State Dependencies": 3, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 6, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 8, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 1, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 1, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 5, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 1, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 65, - "Resource Deallocation & Cleanup": 1, - "Private / Encapsulated Scopes": 204, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 549, - "Structural Space Indentations": 0, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 18, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 98, - "Design Camel Case": 64, - "Design Snake Case": 33, - "Design Pascal Case": 0, - "Design Upper Case": 1, - "Design Short Vars": 9, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 4, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 8, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "../../constants.js", - "../../math/ColorManagement.js", - "../../math/Matrix3.js", - "../../math/Vector3.js", - "../../utils.js", - "../shaders/ShaderChunk.js", - "./WebGLShader.js", - "./WebGLUniforms.js" - ] - }, - "javascript/threejs/WebGLRenderer.js": { - "1. Artifact Identity": { - "Filename": "WebGLRenderer.js", - "Path": "javascript/threejs/WebGLRenderer.js", - "Language": "Javascript", - "Architect": "the renderer", - "Indentation Style": "Tabs", - "Doc Umbrella": 0.0, - "Alert": "TYPOSQUATTING THREAT: 'math/Vector4.js' mimics 'math/Vector3.js'", - "Folder Dominant Lang": "javascript", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Ext: .js)" - }, - "2. Topological Coordinates": { - "X": -1103.93, - "Y": -96.13, - "Z": -2179.36 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 3639, - "Coding LOC": 1628, - "Documentation LOC": 734, - "Structural Magnitude": 2408.76, - "Control Flow Ratio": "77.2%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.1 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "40.12%", - "Error & Exception Exposure": "39.1%", - "Tech Debt Exposure": "52.0%", - "Testing Exposure": "80.0%", - "API Exposure": "1.69%", - "Concurrency Exposure": "24.71%", - "State Flux Exposure": "98.04%", - "Commented Logic Exposure": "4.97%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "11.92%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "constructor", - "Structural Impact": 642.0, - "Lines of Code (LOC)": 2545, - "Control Flow Branches": 363, - "Input Parameters": 1, - "Control Flow Ratio": "80.5%", - "Start Line": 70, - "End Line": 2614 - }, - { - "Function Name": "setProgram", - "Structural Impact": 374.1, - "Lines of Code (LOC)": 428, - "Control Flow Branches": 143, - "Input Parameters": 5, - "Control Flow Ratio": "94.7%", - "Start Line": 2295, - "End Line": 2722 - }, - { - "Function Name": "copyTextureToTexture", - "Structural Impact": 141.4, - "Lines of Code (LOC)": 235, - "Control Flow Branches": 48, - "Input Parameters": 6, - "Control Flow Ratio": "90.6%", - "Start Line": 3205, - "End Line": 3439 - }, - { - "Function Name": "renderBufferDirect", - "Structural Impact": 108.5, - "Lines of Code (LOC)": 159, - "Control Flow Branches": 37, - "Input Parameters": 6, - "Control Flow Ratio": "78.7%", - "Start Line": 1175, - "End Line": 1333 - }, - { - "Function Name": "render", - "Structural Impact": 94.2, - "Lines of Code (LOC)": 221, - "Control Flow Branches": 47, - "Input Parameters": 2, - "Control Flow Ratio": "92.2%", - "Start Line": 1600, - "End Line": 1820 - }, - { - "Function Name": "projectObject", - "Structural Impact": 81.7, - "Lines of Code (LOC)": 113, - "Control Flow Branches": 33, - "Input Parameters": 4, - "Control Flow Ratio": "91.7%", - "Start Line": 1822, - "End Line": 1934 - }, - { - "Function Name": "setRenderTarget", - "Structural Impact": 80.4, - "Lines of Code (LOC)": 168, - "Control Flow Branches": 35, - "Input Parameters": 3, - "Control Flow Ratio": "87.5%", - "Start Line": 2823, - "End Line": 2990 - }, - { - "Function Name": "getProgram", - "Structural Impact": 51.8, - "Lines of Code (LOC)": 116, - "Control Flow Branches": 22, - "Input Parameters": 3, - "Control Flow Ratio": "84.6%", - "Start Line": 2142, - "End Line": 2257 - }, - { - "Function Name": "readRenderTargetPixels", - "Structural Impact": 51.2, - "Lines of Code (LOC)": 65, - "Control Flow Branches": 15, - "Input Parameters": 8, - "Control Flow Ratio": "78.9%", - "Start Line": 3004, - "End Line": 3068 - }, - { - "Function Name": "readRenderTargetPixelsAsync", - "Structural Impact": 48.9, - "Lines of Code (LOC)": 78, - "Control Flow Branches": 14, - "Input Parameters": 8, - "Control Flow Ratio": "82.4%", - "Start Line": 3086, - "End Line": 3163 - }, - { - "Function Name": "renderTransmissionPass", - "Structural Impact": 44.2, - "Lines of Code (LOC)": 123, - "Control Flow Branches": 16, - "Input Parameters": 4, - "Control Flow Ratio": "84.2%", - "Start Line": 1960, - "End Line": 2082 - }, - { - "Function Name": "compile", - "Structural Impact": 38.6, - "Lines of Code (LOC)": 92, - "Control Flow Branches": 16, - "Input Parameters": 3, - "Control Flow Ratio": "84.2%", - "Start Line": 1371, - "End Line": 1462 - }, - { - "Function Name": "clear", - "Structural Impact": 23.8, - "Lines of Code (LOC)": 75, - "Control Flow Branches": 9, - "Input Parameters": 3, - "Control Flow Ratio": "81.8%", - "Start Line": 944, - "End Line": 1018 - }, - { - "Function Name": "renderObject", - "Structural Impact": 14.7, - "Lines of Code (LOC)": 30, - "Control Flow Branches": 4, - "Input Parameters": 6, - "Control Flow Ratio": "100.0%", - "Start Line": 2111, - "End Line": 2140 - }, - { - "Function Name": "renderScene", - "Structural Impact": 14.6, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 5, - "Input Parameters": 4, - "Control Flow Ratio": "100.0%", - "Start Line": 1936, - "End Line": 1958 - }, - { - "Function Name": "renderObjects", - "Structural Impact": 13.3, - "Lines of Code (LOC)": 26, - "Control Flow Branches": 5, - "Input Parameters": 3, - "Control Flow Ratio": "71.4%", - "Start Line": 2084, - "End Line": 2109 - }, - { - "Function Name": "compileAsync", - "Structural Impact": 12.9, - "Lines of Code (LOC)": 59, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "50.0%", - "Start Line": 1478, - "End Line": 1536 - }, - { - "Function Name": "initTexture", - "Structural Impact": 12.5, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 7, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 3464, - "End Line": 3486 - }, - { - "Function Name": "setSize", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "80.0%", - "Start Line": 650, - "End Line": 680 - }, - { - "Function Name": "setEffects", - "Structural Impact": 11.2, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 726, - "End Line": 752 - }, - { - "Function Name": "prepareMaterial", - "Structural Impact": 11.1, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 4, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 1337, - "End Line": 1357 - }, - { - "Function Name": "materialNeedsLights", - "Structural Impact": 10.2, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 6, - "Input Parameters": 1, - "Control Flow Ratio": "85.7%", - "Start Line": 2742, - "End Line": 2748 - }, - { - "Function Name": "setViewport", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 4, - "Control Flow Ratio": "100.0%", - "Start Line": 787, - "End Line": 801 - }, - { - "Function Name": "setScissor", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 4, - "Control Flow Ratio": "100.0%", - "Start Line": 824, - "End Line": 838 - }, - { - "Function Name": "setRenderTargetTextures", - "Structural Impact": 7.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 2784, - "End Line": 2802 - }, - { - "Function Name": "copyFramebufferToTexture", - "Structural Impact": 6.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 3, - "Control Flow Ratio": "100.0%", - "Start Line": 3172, - "End Line": 3187 - }, - { - "Function Name": "releaseMaterialProgramReferences", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 1151, - "End Line": 1171 - }, - { - "Function Name": "initGLContext", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 116, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 423, - "End Line": 538 - }, - { - "Function Name": "checkMaterialsReady", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 30, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 1487, - "End Line": 1516 - }, - { - "Function Name": "getUniformList", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 2259, - "End Line": 2270 - }, - { - "Function Name": "setPixelRatio", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 619, - "End Line": 627 - }, - { - "Function Name": "initRenderTarget", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 3448, - "End Line": 3456 - }, - { - "Function Name": "setAnimationLoop", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 1572, - "End Line": 1579 - }, - { - "Function Name": "onAnimationFrame", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "100.0%", - "Start Line": 1542, - "End Line": 1546 - }, - { - "Function Name": "updateCommonMaterialProperties", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 22, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 2272, - "End Line": 2293 - }, - { - "Function Name": "setDrawingBufferSize", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 707, - "End Line": 719 - }, - { - "Function Name": "markUniformsLightsNeedsUpdate", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 2726, - "End Line": 2740 - }, - { - "Function Name": "forceContextLoss", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 586, - "End Line": 591 - }, - { - "Function Name": "forceContextRestore", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "100.0%", - "Start Line": 596, - "End Line": 601 - }, - { - "Function Name": "getTargetPixelRatio", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 349, - "End Line": 353 - }, - { - "Function Name": "setRenderTargetFramebuffer", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 2804, - "End Line": 2810 - }, - { - "Function Name": "getContext", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 359, - "End Line": 363 - }, - { - "Function Name": "onContextLost", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1092, - "End Line": 1100 - }, - { - "Function Name": "onMaterialDispose", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1130, - "End Line": 1138 - }, - { - "Function Name": "outputColorSpace", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 3539, - "End Line": 3547 - }, - { - "Function Name": "deallocateMaterial", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1142, - "End Line": 1148 - }, - { - "Function Name": "getSize", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 635, - "End Line": 639 - }, - { - "Function Name": "getDrawingBufferSize", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 688, - "End Line": 692 - }, - { - "Function Name": "getCurrentViewport", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 760, - "End Line": 764 - }, - { - "Function Name": "getViewport", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 772, - "End Line": 776 - }, - { - "Function Name": "getScissor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 809, - "End Line": 813 - }, - { - "Function Name": "setScissorTest", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 858, - "End Line": 862 - }, - { - "Function Name": "setOpaqueSort", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 870, - "End Line": 874 - }, - { - "Function Name": "setTransparentSort", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 882, - "End Line": 886 - }, - { - "Function Name": "getClearColor", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 896, - "End Line": 900 - }, - { - "Function Name": "setNodesHandler", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1054, - "End Line": 1059 - }, - { - "Function Name": "onContextCreationError", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 1124, - "End Line": 1128 - }, - { - "Function Name": "dispose", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1065, - "End Line": 1088 - }, - { - "Function Name": "onContextRestore", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1102, - "End Line": 1122 - }, - { - "Function Name": "resetState", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3493, - "End Line": 3502 - }, - { - "Function Name": "getContext", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 566, - "End Line": 570 - }, - { - "Function Name": "getContextAttributes", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 577, - "End Line": 581 - }, - { - "Function Name": "getPixelRatio", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 608, - "End Line": 612 - }, - { - "Function Name": "getScissorTest", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 845, - "End Line": 849 - }, - { - "Function Name": "setClearColor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 908, - "End Line": 912 - }, - { - "Function Name": "getClearAlpha", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 919, - "End Line": 923 - }, - { - "Function Name": "setClearAlpha", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 930, - "End Line": 934 - }, - { - "Function Name": "clearColor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1023, - "End Line": 1027 - }, - { - "Function Name": "clearDepth", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1032, - "End Line": 1036 - }, - { - "Function Name": "clearStencil", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1041, - "End Line": 1045 - }, - { - "Function Name": "onXRSessionStart", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1548, - "End Line": 1552 - }, - { - "Function Name": "onXRSessionEnd", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1554, - "End Line": 1558 - }, - { - "Function Name": "getActiveCubeFace", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2755, - "End Line": 2759 - }, - { - "Function Name": "getActiveMipmapLevel", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2766, - "End Line": 2770 - }, - { - "Function Name": "getRenderTarget", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 2778, - "End Line": 2782 - }, - { - "Function Name": "coordinateSystem", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 3521, - "End Line": 3525 - }, - { - "Function Name": "outputColorSpace", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "callback_route", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 3533, - "End Line": 3537 + "Start Line": 20, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 515, - "Sequential Logic Declarations": 152, - "Function Parameters": 83, - "Function/Method Declarations": 77, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 32, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 204, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, - "State Mutations / Variable Reassignments": 338, - "Commented-out Code (Dead Logic)": 2, - "Structured Documentation Blocks": 198, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 15, - "UI / View Layer Components": 3, - "Closures and Anonymous Functions": 54, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 2, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 37, - "Authorship Metadata": 2, - "Planned Work (TODOs)": 1, + "Module Dependencies (Imports)": 5, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, - "Dependency Injection Constructs": 2, + "Server-Side Rendering Contexts": 2, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 49, + "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 9, - "Thread Sleeps & Blocking Waits": 2, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 172, - "Resource Deallocation & Cleanup": 20, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 6, + "Event Listeners & Subscribers": 2, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 1587, - "Structural Space Indentations": 0, - "Hardware Bridge": 26, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 119, + "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 2, + "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, @@ -170356,16 +167268,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 391, - "Design Camel Case": 195, - "Design Snake Case": 141, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 6, "Design Pascal Case": 0, - "Design Upper Case": 2, - "Design Short Vars": 21, - "Design Long Vars": 6, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 27, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -170378,7 +167290,7 @@ "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 1, + "Non-Standard Unicode / Homoglyphs": 0, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -170389,91 +167301,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 37, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "../constants.js", - "../math/Color.js", - "../math/ColorManagement.js", - "../math/Frustum.js", - "../math/Matrix4.js", - "../math/Vector3.js", - "../math/Vector4.js", - "../utils.js", - "./WebGLRenderTarget.js", - "./shaders/DFGLUTData.js", - "./webgl/WebGLAnimation.js", - "./webgl/WebGLAttributes.js", - "./webgl/WebGLBackground.js", - "./webgl/WebGLBindingStates.js", - "./webgl/WebGLBufferRenderer.js", - "./webgl/WebGLCapabilities.js", - "./webgl/WebGLClipping.js", - "./webgl/WebGLEnvironments.js", - "./webgl/WebGLExtensions.js", - "./webgl/WebGLGeometries.js", - "./webgl/WebGLIndexedBufferRenderer.js", - "./webgl/WebGLInfo.js", - "./webgl/WebGLMaterials.js", - "./webgl/WebGLMorphtargets.js", - "./webgl/WebGLObjects.js", - "./webgl/WebGLOutput.js", - "./webgl/WebGLPrograms.js", - "./webgl/WebGLProperties.js", - "./webgl/WebGLRenderLists.js", - "./webgl/WebGLRenderStates.js", - "./webgl/WebGLShadowMap.js", - "./webgl/WebGLState.js", - "./webgl/WebGLTextures.js", - "./webgl/WebGLUniforms.js", - "./webgl/WebGLUniformsGroups.js", - "./webgl/WebGLUtils.js", - "./webxr/WebXRManager.js" + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "starlette.responses" ] - } - } - }, - "python/fastapi/tests": { - "Directory Group Magnitude": 7729.24, - "File Count": 204, - "Ecosystem Fingerprint (Archetypes)": { - "Unclassified": "100.0%" - }, - "Average Risk Exposures": { - "Cognitive Load Exposure": "4.89%", - "Error & Exception Exposure": "10.96%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.6%", - "Concurrency Exposure": "23.96%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.31%", - "Specification Exposure": "98.59%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "Files": { - "python/fastapi/tests/__init__.py": { + }, + "python/fastapi/tests/test_additional_responses_custom_validationerror.py": { "1. Artifact Identity": { - "Filename": "__init__.py", - "Path": "python/fastapi/tests/__init__.py", + "Filename": "test_additional_responses_custom_validationerror.py", + "Path": "python/fastapi/tests/test_additional_responses_custom_validationerror.py", "Language": "Python", "Architect": "Unknown Architect", - "Indentation Style": "Neutral / No Indentation", + "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", - "Lock Tier": 1.5, - "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3175.53, - "Y": -11.84, - "Z": 2270.55 + "X": 2712.02, + "Y": -33.61, + "Z": 2084.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -170482,64 +167339,85 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1, - "Coding LOC": 0, + "Total LOC": 101, + "Coding LOC": 87, "Documentation LOC": 0, - "Structural Magnitude": 10.52, + "Structural Magnitude": 13.54, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 2.0 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "41.94%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "0.0%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.75%", + "Concurrency Exposure": "24.5%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "6.67%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", "Hardcoded Payload Artifacts": "0.0%" }, - "5. Function Analysis": [], + "5. Function Analysis": [ + { + "Function Name": "test_openapi_schema", + "Structural Impact": 4.3, + "Lines of Code (LOC)": 66, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 100 + }, + { + "Function Name": "a", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + } + ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 0, - "Function Parameters": 0, - "Function/Method Declarations": 0, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 23, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 0, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 0, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -170559,7 +167437,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 0, + "Structural Space Indentations": 73, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -170575,16 +167453,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 0, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -170608,17 +167486,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 0, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, - "9. Extracted Dependencies": [] + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.responses", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] }, - "python/fastapi/tests/main.py": { + "python/fastapi/tests/test_additional_responses_default_validationerror.py": { "1. Artifact Identity": { - "Filename": "main.py", - "Path": "python/fastapi/tests/main.py", + "Filename": "test_additional_responses_default_validationerror.py", + "Path": "python/fastapi/tests/test_additional_responses_default_validationerror.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -170628,9 +167512,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2540.68, - "Y": -49.92, - "Z": -485.34 + "X": 4725.31, + "Y": 161.51, + "Z": 1142.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -170639,24 +167523,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 209, - "Coding LOC": 127, + "Total LOC": 92, + "Coding LOC": 84, "Documentation LOC": 0, - "Structural Magnitude": 173.44, - "Control Flow Ratio": "3.5%", + "Structural Magnitude": 10.98, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.058 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.95%", - "Error & Exception Exposure": "55.34%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "48.99%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "17.65%", - "Concurrency Exposure": "0.0%", + "API Exposure": "4.85%", + "Concurrency Exposure": "24.86%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -170667,417 +167551,250 @@ }, "5. Function Analysis": [ { - "Function Name": "get_query_optional", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 151, - "End Line": 154 - }, - { - "Function Name": "get_query_type_optional", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 163, - "End Line": 166 - }, - { - "Function Name": "get_query_param", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 175, - "End Line": 178 - }, - { - "Function Name": "get_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 - }, - { - "Function Name": "get_str_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "get_int_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 - }, - { - "Function Name": "get_float_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 - }, - { - "Function Name": "get_bool_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 52 - }, - { - "Function Name": "get_path_param_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 57 - }, - { - "Function Name": "get_path_param_min_length", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 62 - }, - { - "Function Name": "get_path_param_max_length", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 67 - }, - { - "Function Name": "get_path_param_min_max_length", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 72 - }, - { - "Function Name": "get_path_param_gt", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 77 - }, - { - "Function Name": "get_path_param_gt0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 82 - }, - { - "Function Name": "get_path_param_ge", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 87 - }, - { - "Function Name": "get_path_param_lt", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 92 - }, - { - "Function Name": "get_path_param_lt0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 97 - }, - { - "Function Name": "get_path_param_le", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 101, - "End Line": 102 - }, - { - "Function Name": "get_path_param_lt_gt", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 107 - }, - { - "Function Name": "get_path_param_le_ge", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 112 - }, - { - "Function Name": "get_path_param_lt_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 117 - }, - { - "Function Name": "get_path_param_gt_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 121, - "End Line": 122 - }, - { - "Function Name": "get_path_param_le_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 127 - }, - { - "Function Name": "get_path_param_ge_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 131, - "End Line": 132 - }, - { - "Function Name": "get_path_param_lt_gt_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 136, - "End Line": 137 - }, - { - "Function Name": "get_path_param_le_ge_int", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 141, - "End Line": 142 - }, - { - "Function Name": "get_query", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 146, - "End Line": 147 - }, - { - "Function Name": "get_query_type", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 159 - }, - { - "Function Name": "get_query_type_int_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 170, - "End Line": 171 - }, - { - "Function Name": "get_query_param_required", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 183 - }, - { - "Function Name": "get_query_param_required_type", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 188 - }, - { - "Function Name": "get_query_type_frozenset", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 197, - "End Line": 198 - }, - { - "Function Name": "get_query_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 76, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 202, - "End Line": 203 + "Start Line": 16, + "End Line": 91 }, { - "Function Name": "get_query_list_default", + "Function Name": "a", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 207, - "End Line": 208 - }, - { - "Function Name": "non_operation", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, + "Start Line": 9, + "End Line": 10 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 1, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 2, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 76, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 3, + "Design Camel Case": 0, + "Design Snake Case": 3, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 1, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot" + ] + }, + "python/fastapi/tests/test_additional_responses_response_class.py": { + "1. Artifact Identity": { + "Filename": "test_additional_responses_response_class.py", + "Path": "python/fastapi/tests/test_additional_responses_response_class.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse, BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1637.53, + "Y": -153.47, + "Z": 1242.05 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 118, + "Coding LOC": 102, + "Documentation LOC": 0, + "Structural Magnitude": 17.14, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "45.65%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.14%", + "Concurrency Exposure": "35.89%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "non_decorated_route", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.9, + "Lines of Code (LOC)": 78, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 40, + "End Line": 117 }, { - "Function Name": "get_text", + "Function Name": "a", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "get_enum_status_code", + "Function Name": "b", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 192, - "End Line": 193 + "Start Line": 33, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 82, - "Function Parameters": 38, - "Function/Method Declarations": 38, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 25, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 111, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 0, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 37, - "Generic Type Abstractions": 6, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -171091,13 +167808,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 2, + "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 86, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171113,16 +167830,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 27, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171146,20 +167863,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 3, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "http" + "fastapi.responses", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_additional_properties.py": { + "python/fastapi/tests/test_additional_responses_router.py": { "1. Artifact Identity": { - "Filename": "test_additional_properties.py", - "Path": "python/fastapi/tests/test_additional_properties.py", + "Filename": "test_additional_responses_router.py", + "Path": "python/fastapi/tests/test_additional_responses_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -171170,9 +167890,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1411.85, - "Y": -199.34, - "Z": 1232.94 + "X": 3572.1, + "Y": 27.29, + "Z": 986.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171181,24 +167901,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 103, + "Total LOC": 183, + "Coding LOC": 156, "Documentation LOC": 0, - "Structural Magnitude": 15.16, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 36.22, + "Control Flow Ratio": "19.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.204 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "5.05%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.54%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.2%", + "Concurrency Exposure": "48.2%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171210,57 +167930,117 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 88, + "Structural Impact": 9.9, + "Lines of Code (LOC)": 98, + "Control Flow Branches": 4, + "Input Parameters": 0, + "Control Flow Ratio": "44.4%", + "Start Line": 85, + "End Line": 182 + }, + { + "Function Name": "test_a", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 114 + "Start Line": 61, + "End Line": 64 }, { - "Function Name": "foo", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_b", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 67, + "End Line": 70 }, { - "Function Name": "test_additional_properties_post", + "Function Name": "test_c", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 73, + "End Line": 76 + }, + { + "Function Name": "test_d", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 82 + }, + { + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 28 + }, + { + "Function Name": "c", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 40 + }, + { + "Function Name": "d", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 52 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 34, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -171289,7 +168069,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 92, + "Structural Space Indentations": 131, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171306,15 +168086,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 12, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171350,23 +168130,23 @@ "pydantic" ] }, - "python/fastapi/tests/test_additional_properties_bool.py": { + "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py": { "1. Artifact Identity": { - "Filename": "test_additional_properties_bool.py", - "Path": "python/fastapi/tests/test_additional_properties_bool.py", + "Filename": "test_additional_responses_union_duplicate_anyof.py", + "Path": "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, FooBaseModel", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1938.11, - "Y": -188.72, - "Z": 1581.17 + "X": 1112.86, + "Y": -234.99, + "Z": -522.08 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171375,10 +168155,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 126, - "Coding LOC": 109, - "Documentation LOC": 0, - "Structural Magnitude": 19.48, + "Total LOC": 125, + "Coding LOC": 104, + "Documentation LOC": 5, + "Structural Magnitude": 18.28, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -171388,11 +168168,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "39.74%", + "Error & Exception Exposure": "45.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.59%", - "Concurrency Exposure": "22.39%", + "API Exposure": "8.6%", + "Concurrency Exposure": "35.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171404,66 +168184,56 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 87, + "Structural Impact": 5.0, + "Lines of Code (LOC)": 81, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 125 - }, - { - "Function Name": "post", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 44, + "End Line": 124 }, { - "Function Name": "test_call_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "route1", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 32, + "End Line": 33 }, { - "Function Name": "test_call_invalid", + "Function Name": "route2", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 30 + "Start Line": 37, + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 34, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Sequential Logic Declarations": 21, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, @@ -171493,7 +168263,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 95, + "Structural Space Indentations": 90, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171509,16 +168279,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171554,10 +168324,10 @@ "pydantic" ] }, - "python/fastapi/tests/test_additional_response_extra.py": { + "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py": { "1. Artifact Identity": { - "Filename": "test_additional_response_extra.py", - "Path": "python/fastapi/tests/test_additional_response_extra.py", + "Filename": "test_allow_inf_nan_in_enforcing.py", + "Path": "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -171567,9 +168337,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1743.54, - "Y": -210.35, - "Z": -1728.1 + "X": 1443.13, + "Y": -235.19, + "Z": 908.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171578,24 +168348,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 53, - "Coding LOC": 39, + "Total LOC": 85, + "Coding LOC": 70, "Documentation LOC": 0, - "Structural Magnitude": 8.28, + "Structural Magnitude": 18.6, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.051 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.88%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.95%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.74%", + "Concurrency Exposure": "26.94%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171606,62 +168376,82 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, + "Function Name": "get", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 4, "Control Flow Ratio": "0.0%", - "Start Line": 30, + "Start Line": 11, + "End Line": 17 + }, + { + "Function Name": "test_allow_inf_nan_param_true", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 36 + }, + { + "Function Name": "test_allow_inf_nan_param_false", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 50, "End Line": 52 }, { - "Function Name": "test_path_operation", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_allow_inf_nan_param_default", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 27 + "Start Line": 66, + "End Line": 68 }, { - "Function Name": "read_item", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_allow_inf_nan_body", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 82, + "End Line": 84 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 17, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -171686,7 +168476,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, + "Structural Space Indentations": 49, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171702,16 +168492,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 5, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171735,7 +168525,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -171743,13 +168533,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_bad.py": { + "python/fastapi/tests/test_ambiguous_params.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_bad.py", - "Path": "python/fastapi/tests/test_additional_responses_bad.py", + "Filename": "test_ambiguous_params.py", + "Path": "python/fastapi/tests/test_ambiguous_params.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -171759,9 +168550,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4641.35, - "Y": 155.59, - "Z": 1304.75 + "X": 3605.8, + "Y": 37.38, + "Z": 794.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171770,24 +168561,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 41, - "Coding LOC": 30, - "Documentation LOC": 2, - "Structural Magnitude": 6.8, - "Control Flow Ratio": "11.1%", + "Total LOC": 75, + "Coding LOC": 57, + "Documentation LOC": 0, + "Structural Magnitude": 47.84, + "Control Flow Ratio": "33.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.2 + "Raw Cognitive Density": 0.826 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.99%", - "Error & Exception Exposure": "58.03%", + "Cognitive Load Exposure": "28.75%", + "Error & Exception Exposure": "46.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.88%", - "Concurrency Exposure": "40.48%", + "API Exposure": "12.19%", + "Concurrency Exposure": "98.23%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171798,59 +168589,119 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "test_multiple_annotations", + "Structural Impact": 11.1, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 8, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", + "Control Flow Ratio": "36.4%", + "Start Line": 33, + "End Line": 74 + }, + { + "Function Name": "test_no_annotated_defaults", + "Structural Impact": 8.0, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 6, + "Input Parameters": 0, + "Control Flow Ratio": "54.5%", + "Start Line": 11, + "End Line": 30 + }, + { + "Function Name": "get_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 18 + }, + { + "Function Name": "get", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 30 + }, + { + "Function Name": "get", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 40 + "End Line": 39 }, { - "Function Name": "a", + "Function Name": "get2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 51 + }, + { + "Function Name": "get3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 62, + "End Line": 63 + }, + { + "Function Name": "dep", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 34, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 8, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 14, + "Sequential Logic Declarations": 28, + "Function Parameters": 8, + "Function/Method Declarations": 8, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 5, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 11, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 5, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 3, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 6, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -171868,7 +168719,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 20, + "Structural Space Indentations": 49, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -171885,15 +168736,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -171917,34 +168768,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.param_functions", "fastapi.testclient", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py": { + "python/fastapi/tests/test_annotated.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_custom_model_in_callback.py", - "Path": "python/fastapi/tests/test_additional_responses_custom_model_in_callback.py", + "Filename": "test_annotated.py", + "Path": "python/fastapi/tests/test_annotated.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4112.95, - "Y": 142.25, - "Z": 1331.64 + "X": 3397.39, + "Y": 36.46, + "Z": -788.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -171953,10 +168805,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 148, - "Coding LOC": 134, + "Total LOC": 299, + "Coding LOC": 267, "Documentation LOC": 0, - "Structural Magnitude": 17.08, + "Structural Magnitude": 53.44, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -171966,11 +168818,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "48.2%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.16%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.13%", + "Concurrency Exposure": "45.11%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -171982,56 +168834,126 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 6.8, - "Lines of Code (LOC)": 116, + "Structural Impact": 9.9, + "Lines of Code (LOC)": 178, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 147 + "Start Line": 121, + "End Line": 298 }, { - "Function Name": "main_route", + "Function Name": "test_get", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 74 + }, + { + "Function Name": "test_multiple_path", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 100 + }, + { + "Function Name": "test_nested_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 103, + "End Line": 118 + }, + { + "Function Name": "default", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "callback_route", - "Structural Impact": 1.1, + "Function Name": "required", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 17, + "End Line": 18 + }, + { + "Function Name": "multiple", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "unrelated", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 28 + }, + { + "Function Name": "test", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 82, + "End Line": 83 + }, + { + "Function Name": "test", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 109, + "End Line": 110 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 32, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 56, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 15, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 20, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 8, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, @@ -172041,7 +168963,7 @@ "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -172058,10 +168980,10 @@ "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 2, + "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 119, + "Structural Space Indentations": 242, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172077,16 +168999,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 16, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 16, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Duplicate Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172119,27 +169041,26 @@ "fastapi", "fastapi.testclient", "inline_snapshot", - "pydantic", - "starlette.responses" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_custom_validationerror.py": { + "python/fastapi/tests/test_application.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_custom_validationerror.py", - "Path": "python/fastapi/tests/test_additional_responses_custom_validationerror.py", + "Filename": "test_application.py", + "Path": "python/fastapi/tests/test_application.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2712.02, - "Y": -33.61, - "Z": 2084.9 + "X": 1941.23, + "Y": -119.42, + "Z": -383.63 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172148,10 +169069,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 101, - "Coding LOC": 87, + "Total LOC": 1286, + "Coding LOC": 1271, "Documentation LOC": 0, - "Structural Magnitude": 13.54, + "Structural Magnitude": 66.12, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -172161,11 +169082,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "41.94%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.75%", - "Concurrency Exposure": "24.5%", + "API Exposure": "5.44%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -172177,56 +169098,96 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 66, + "Structural Impact": 27.5, + "Lines of Code (LOC)": 1231, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 55, + "End Line": 1285 + }, + { + "Function Name": "test_get_path", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 21 + }, + { + "Function Name": "test_swagger_ui", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 32 + }, + { + "Function Name": "test_swagger_ui_oauth2_redirect", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 35, - "End Line": 100 + "End Line": 39 }, { - "Function Name": "a", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_redoc", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 42, + "End Line": 46 + }, + { + "Function Name": "test_enum_status_code_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 52 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 1, + "Sequential Logic Declarations": 81, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 16, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 24, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -172240,13 +169201,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, + "Immutable Data Declarations": 1, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 73, + "Structural Space Indentations": 1258, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172262,16 +169223,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172279,7 +169240,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 1, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -172295,35 +169256,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.responses", + ".main", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pytest" ] }, - "python/fastapi/tests/test_additional_responses_default_validationerror.py": { + "python/fastapi/tests/test_arbitrary_types.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_default_validationerror.py", - "Path": "python/fastapi/tests/test_additional_responses_default_validationerror.py", + "Filename": "test_arbitrary_types.py", + "Path": "python/fastapi/tests/test_arbitrary_types.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4725.31, - "Y": 161.51, - "Z": 1142.62 + "X": 3928.9, + "Y": 83.99, + "Z": 1087.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172332,10 +169293,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 92, - "Coding LOC": 84, - "Documentation LOC": 0, - "Structural Magnitude": 10.98, + "Total LOC": 136, + "Coding LOC": 115, + "Documentation LOC": 1, + "Structural Magnitude": 29.2, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -172345,11 +169306,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "48.99%", + "Error & Exception Exposure": "28.22%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "4.85%", - "Concurrency Exposure": "24.86%", + "API Exposure": "8.12%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -172361,51 +169322,101 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 76, + "Structural Impact": 3.6, + "Lines of Code (LOC)": 44, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 92, + "End Line": 135 + }, + { + "Function Name": "test_typeadapter", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 42, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 91 + "Start Line": 48, + "End Line": 89 }, { - "Function Name": "a", + "Function Name": "get_client", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 10, + "End Line": 40 + }, + { + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 45 + }, + { + "Function Name": "__init__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 60 + }, + { + "Function Name": "test", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 1, + "Sequential Logic Declarations": 36, + "Function Parameters": 9, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 10, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 10, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Closures and Anonymous Functions": 2, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -172426,11 +169437,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 76, + "Structural Space Indentations": 105, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172446,16 +169457,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 3, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 3, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Duplicate Logic": 2, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172479,7 +169490,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -172487,26 +169498,28 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_response_class.py": { + "python/fastapi/tests/test_callable_endpoint.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_response_class.py", - "Path": "python/fastapi/tests/test_additional_responses_response_class.py", + "Filename": "test_callable_endpoint.py", + "Path": "python/fastapi/tests/test_callable_endpoint.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1637.53, - "Y": -153.47, - "Z": 1242.05 + "X": 2901.44, + "Y": 0.56, + "Z": 2385.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172515,27 +169528,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 118, - "Coding LOC": 102, + "Total LOC": 25, + "Coding LOC": 13, "Documentation LOC": 0, - "Structural Magnitude": 17.14, + "Structural Magnitude": 5.26, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.154 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "45.65%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.14%", - "Concurrency Exposure": "35.89%", + "API Exposure": "6.74%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "86.67%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -172543,67 +169556,57 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.9, - "Lines of Code (LOC)": 78, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 117 - }, - { - "Function Name": "a", - "Structural Impact": 1.1, + "Function Name": "main", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 7, + "End Line": 8 }, { - "Function Name": "b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_partial", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 21, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 10, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -172623,7 +169626,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 86, + "Structural Space Indentations": 4, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172639,11 +169642,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -172672,23 +169675,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "functools" ] }, - "python/fastapi/tests/test_additional_responses_router.py": { + "python/fastapi/tests/test_compat.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_router.py", - "Path": "python/fastapi/tests/test_additional_responses_router.py", + "Filename": "test_compat.py", + "Path": "python/fastapi/tests/test_compat.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -172699,9 +169700,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3572.1, - "Y": 27.29, - "Z": 986.12 + "X": 3629.62, + "Y": 69.34, + "Z": -1104.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172710,26 +169711,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 183, - "Coding LOC": 156, - "Documentation LOC": 0, - "Structural Magnitude": 36.22, - "Control Flow Ratio": "19.0%", + "Total LOC": 133, + "Coding LOC": 87, + "Documentation LOC": 13, + "Structural Magnitude": 39.54, + "Control Flow Ratio": "3.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.204 + "Raw Cognitive Density": 0.065 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.05%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "1.52%", + "Error & Exception Exposure": "4.12%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.2%", - "Concurrency Exposure": "48.2%", + "API Exposure": "7.72%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Commented Logic Exposure": "8.92%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -172738,124 +169739,144 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 9.9, - "Lines of Code (LOC)": 98, - "Control Flow Branches": 4, + "Function Name": "test_propagates_pydantic2_model_config", + "Structural Impact": 5.1, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "44.4%", - "Start Line": 85, - "End Line": 182 + "Control Flow Ratio": "14.3%", + "Start Line": 39, + "End Line": 80 }, { - "Function Name": "test_a", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "foo", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 58, + "End Line": 62 + }, + { + "Function Name": "test_complex", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 64 + "Start Line": 21, + "End Line": 36 }, { - "Function Name": "test_b", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_serialize_sequence_value_with_none_first_in_union", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 12, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 70 + "Start Line": 121, + "End Line": 132 }, { - "Function Name": "test_c", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "foo", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "test_d", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "__bool__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "test_model_field_default_required", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 82 + "Start Line": 12, + "End Line": 18 }, { - "Function Name": "a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_serialize_sequence_value_with_optional_list", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 99, + "End Line": 107 }, { - "Function Name": "b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_serialize_sequence_value_with_optional_list_pipe_union", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 + "Start Line": 110, + "End Line": 118 }, { - "Function Name": "c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_is_bytes_sequence_annotation_union", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 83, + "End Line": 88 }, { - "Function Name": "d", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_is_uploadfile_sequence_annotation", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 52 + "Start Line": 91, + "End Line": 96 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 34, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 56, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 23, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, + "Exposed API / Public Exports": 15, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 4, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 6, + "Unit Test Assertions": 25, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 10, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 11, "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Planned Work (TODOs)": 2, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, @@ -172874,11 +169895,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 7, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, + "Structural Space Indentations": 72, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -172894,16 +169915,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 26, "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 0, + "Design Snake Case": 23, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -172927,22 +169948,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi._compat", + "fastapi._compat.shared", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pydantic", + "pydantic.fields", + "typing" ] }, - "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py": { + "python/fastapi/tests/test_computed_fields.py": { "1. Artifact Identity": { - "Filename": "test_additional_responses_union_duplicate_anyof.py", - "Path": "python/fastapi/tests/test_additional_responses_union_duplicate_anyof.py", + "Filename": "test_computed_fields.py", + "Path": "python/fastapi/tests/test_computed_fields.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -172953,9 +169977,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1112.86, - "Y": -234.99, - "Z": -522.08 + "X": 4409.22, + "Y": 159.02, + "Z": -165.71 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -172964,10 +169988,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 125, - "Coding LOC": 104, - "Documentation LOC": 5, - "Structural Magnitude": 18.28, + "Total LOC": 109, + "Coding LOC": 96, + "Documentation LOC": 0, + "Structural Magnitude": 23.92, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -172977,11 +170001,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "45.31%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.6%", - "Concurrency Exposure": "35.44%", + "API Exposure": "9.8%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -172993,61 +170017,91 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 81, + "Structural Impact": 4.7, + "Lines of Code (LOC)": 65, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 44, - "End Line": 124 + "End Line": 108 }, { - "Function Name": "route1", + "Function Name": "get_client", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 32 + }, + { + "Function Name": "test_get", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 40 + }, + { + "Function Name": "area", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "route2", + "Function Name": "read_responses", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 + "Start Line": 28, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 28, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -173072,7 +170126,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 90, + "Structural Space Indentations": 85, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173088,16 +170142,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 7, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173121,7 +170175,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -173130,13 +170184,14 @@ "fastapi", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py": { + "python/fastapi/tests/test_custom_middleware_exception.py": { "1. Artifact Identity": { - "Filename": "test_allow_inf_nan_in_enforcing.py", - "Path": "python/fastapi/tests/test_allow_inf_nan_in_enforcing.py", + "Filename": "test_custom_middleware_exception.py", + "Path": "python/fastapi/tests/test_custom_middleware_exception.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -173146,9 +170201,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1443.13, - "Y": -235.19, - "Z": 908.06 + "X": 2443.2, + "Y": -119.45, + "Z": 764.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173157,24 +170212,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 85, - "Coding LOC": 70, - "Documentation LOC": 0, - "Structural Magnitude": 18.6, - "Control Flow Ratio": "0.0%", + "Total LOC": 95, + "Coding LOC": 65, + "Documentation LOC": 5, + "Structural Magnitude": 58.9, + "Control Flow Ratio": "19.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.077 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "29.06%", + "Error & Exception Exposure": "40.43%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.74%", - "Concurrency Exposure": "26.94%", + "API Exposure": "7.09%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173185,88 +170240,108 @@ }, "5. Function Analysis": [ { - "Function Name": "get", - "Structural Impact": 2.6, + "Function Name": "__call__", + "Structural Impact": 7.1, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Control Flow Branches": 2, "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 17 + "Control Flow Ratio": "28.6%", + "Start Line": 47, + "End Line": 53 }, { - "Function Name": "test_allow_inf_nan_param_true", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Function Name": "receive_wrapper", + "Structural Impact": 6.3, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 2, "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 36 + "Control Flow Ratio": "20.0%", + "Start Line": 23, + "End Line": 45 }, { - "Function Name": "test_allow_inf_nan_param_false", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 52 + "Function Name": "test_custom_middleware_exception", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 68, + "End Line": 83 }, { - "Function Name": "test_allow_inf_nan_param_default", - "Structural Impact": 1.9, + "Function Name": "test_custom_middleware_exception_not_raised", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 86, + "End Line": 94 + }, + { + "Function Name": "inner", + "Structural Impact": 3.9, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 26, + "End Line": 43 + }, + { + "Function Name": "__init__", + "Structural Impact": 2.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 68 + "Start Line": 19, + "End Line": 21 }, { - "Function Name": "test_allow_inf_nan_body", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "run_middleware", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 84 + "Start Line": 57, + "End Line": 58 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 17, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 33, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 3, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 5, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 15, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 1, "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 3, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -173275,17 +170350,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 49, + "Structural Space Indentations": 51, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173301,16 +170376,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 5, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 16, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173341,27 +170416,28 @@ }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "pytest", - "typing" + "pathlib" ] }, - "python/fastapi/tests/test_ambiguous_params.py": { + "python/fastapi/tests/test_custom_route_class.py": { "1. Artifact Identity": { - "Filename": "test_ambiguous_params.py", - "Path": "python/fastapi/tests/test_ambiguous_params.py", + "Filename": "test_custom_route_class.py", + "Path": "python/fastapi/tests/test_custom_route_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "APIRoute", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3605.8, - "Y": 37.38, - "Z": 794.13 + "X": 3894.25, + "Y": 86.34, + "Z": 1094.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173370,24 +170446,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 75, - "Coding LOC": 57, + "Total LOC": 122, + "Coding LOC": 96, "Documentation LOC": 0, - "Structural Magnitude": 47.84, - "Control Flow Ratio": "33.3%", + "Structural Magnitude": 21.82, + "Control Flow Ratio": "3.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.826 + "Raw Cognitive Density": 0.266 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "28.75%", - "Error & Exception Exposure": "46.31%", + "Cognitive Load Exposure": "6.3%", + "Error & Exception Exposure": "20.5%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.19%", - "Concurrency Exposure": "98.23%", + "API Exposure": "9.57%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173398,119 +170474,99 @@ }, "5. Function Analysis": [ { - "Function Name": "test_multiple_annotations", - "Structural Impact": 11.1, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 8, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 47, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "36.4%", - "Start Line": 33, - "End Line": 74 + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 121 }, { - "Function Name": "test_no_annotated_defaults", - "Structural Impact": 8.0, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 6, + "Function Name": "test_route_classes", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "54.5%", - "Start Line": 11, - "End Line": 30 + "Control Flow Ratio": "16.7%", + "Start Line": 65, + "End Line": 72 }, { - "Function Name": "get_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_path", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 59, + "End Line": 62 }, { - "Function Name": "get", - "Structural Impact": 1.5, + "Function Name": "get_a", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 29, "End Line": 30 }, { - "Function Name": "get", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "get2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 - }, - { - "Function Name": "get3", - "Structural Impact": 1.5, + "Function Name": "get_b", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "dep", + "Function Name": "get_c", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 39, + "End Line": 40 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 14, - "Sequential Logic Declarations": 28, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 5, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 12, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 3, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 3, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 6, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -173528,7 +170584,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 49, + "Structural Space Indentations": 68, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173544,16 +170600,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 9, + "Design Snake Case": 11, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173577,35 +170633,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.param_functions", + "fastapi.routing", "fastapi.testclient", + "inline_snapshot", "pytest", - "typing" + "starlette.routing" ] }, - "python/fastapi/tests/test_annotated.py": { + "python/fastapi/tests/test_custom_schema_fields.py": { "1. Artifact Identity": { - "Filename": "test_annotated.py", - "Path": "python/fastapi/tests/test_annotated.py", + "Filename": "test_custom_schema_fields.py", + "Path": "python/fastapi/tests/test_custom_schema_fields.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3397.39, - "Y": 36.46, - "Z": -788.39 + "X": 4315.51, + "Y": 143.41, + "Z": 1589.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173614,24 +170672,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 299, - "Coding LOC": 267, - "Documentation LOC": 0, - "Structural Magnitude": 53.44, + "Total LOC": 63, + "Coding LOC": 45, + "Documentation LOC": 1, + "Structural Magnitude": 9.4, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.044 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.81%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.13%", - "Concurrency Exposure": "45.11%", + "API Exposure": "8.62%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173642,132 +170700,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 9.9, - "Lines of Code (LOC)": 178, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 121, - "End Line": 298 - }, - { - "Function Name": "test_get", - "Structural Impact": 2.2, + "Function Name": "test_custom_response_schema", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 74 - }, - { - "Function Name": "test_multiple_path", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 100 + "Start Line": 52, + "End Line": 55 }, { - "Function Name": "test_nested_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "test_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 118 - }, - { - "Function Name": "default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "required", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 - }, - { - "Function Name": "multiple", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 - }, - { - "Function Name": "unrelated", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 - }, - { - "Function Name": "test", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 83 + "Start Line": 58, + "End Line": 62 }, { - "Function Name": "test", - "Structural Impact": 1.5, + "Function Name": "foo", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 109, - "End Line": 110 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 56, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 15, + "Sequential Logic Declarations": 21, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 20, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -173792,7 +170780,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 242, + "Structural Space Indentations": 32, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -173808,16 +170796,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 16, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 16, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 4, + "Duplicate Logic": 0, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -173841,7 +170829,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -173849,15 +170837,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pytest", + "pydantic", "typing" ] }, - "python/fastapi/tests/test_application.py": { + "python/fastapi/tests/test_custom_swagger_ui_redirect.py": { "1. Artifact Identity": { - "Filename": "test_application.py", - "Path": "python/fastapi/tests/test_application.py", + "Filename": "test_custom_swagger_ui_redirect.py", + "Path": "python/fastapi/tests/test_custom_swagger_ui_redirect.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -173867,9 +170854,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1941.23, - "Y": -119.42, - "Z": -383.63 + "X": 4758.61, + "Y": 196.88, + "Z": -686.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -173878,24 +170865,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1286, - "Coding LOC": 1271, + "Total LOC": 39, + "Coding LOC": 26, "Documentation LOC": 0, - "Structural Magnitude": 66.12, + "Structural Magnitude": 11.42, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.192 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "4.85%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.44%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.71%", + "Concurrency Exposure": "43.26%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -173905,35 +170892,15 @@ "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ - { - "Function Name": "test_openapi_schema", - "Structural Impact": 27.5, - "Lines of Code (LOC)": 1231, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 1285 - }, - { - "Function Name": "test_get_path", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 21 - }, { "Function Name": "test_swagger_ui", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 32 + "Start Line": 17, + "End Line": 26 }, { "Function Name": "test_swagger_ui_oauth2_redirect", @@ -173942,47 +170909,47 @@ "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 29, + "End Line": 33 }, { - "Function Name": "test_redoc", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_items", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 46 - }, - { - "Function Name": "test_enum_status_code_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Start Line": 10, + "End Line": 11 + }, + { + "Function Name": "test_response", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 52 + "Start Line": 36, + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 81, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Sequential Logic Declarations": 19, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 16, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 24, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 11, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -173991,7 +170958,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -174004,19 +170971,19 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 1, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 1, + "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 1258, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174032,16 +170999,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174065,35 +171032,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".main", - "fastapi.testclient", - "inline_snapshot", - "pytest" + "fastapi", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_arbitrary_types.py": { + "python/fastapi/tests/test_datastructures.py": { "1. Artifact Identity": { - "Filename": "test_arbitrary_types.py", - "Path": "python/fastapi/tests/test_arbitrary_types.py", + "Filename": "test_datastructures.py", + "Path": "python/fastapi/tests/test_datastructures.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3928.9, - "Y": 83.99, - "Z": 1087.96 + "X": 1988.37, + "Y": -163.42, + "Z": 1169.54 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -174102,24 +171066,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 136, - "Coding LOC": 115, + "Total LOC": 66, + "Coding LOC": 47, "Documentation LOC": 1, - "Structural Magnitude": 29.2, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 29.34, + "Control Flow Ratio": "9.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.617 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "28.22%", + "Cognitive Load Exposure": "18.5%", + "Error & Exception Exposure": "4.56%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.12%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.65%", + "Concurrency Exposure": "99.74%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -174130,102 +171094,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 44, - "Control Flow Branches": 0, + "Function Name": "test_upload_file_is_closed", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 135 + "Control Flow Ratio": "11.1%", + "Start Line": 29, + "End Line": 48 }, { - "Function Name": "test_typeadapter", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 0, + "Function Name": "test_upload_file", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 89 + "Control Flow Ratio": "14.3%", + "Start Line": 55, + "End Line": 65 }, { - "Function Name": "get_client", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 0, + "Function Name": "test_upload_file_invalid_pydantic_v2", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "50.0%", "Start Line": 10, - "End Line": 40 + "End Line": 12 }, { - "Function Name": "test_get", + "Function Name": "create_upload_file", "Structural Impact": 1.6, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 45 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 37, + "End Line": 39 }, { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_default_placeholder_equals", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 + "Start Line": 15, + "End Line": 19 }, { - "Function Name": "test", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_default_placeholder_bool", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 + "Start Line": 22, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 36, - "Function Parameters": 9, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 10, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 37, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 13, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, - "State Mutations / Variable Reassignments": 2, + "I/O and Network Boundaries": 2, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 21, + "Asynchronous/Concurrent Execution": 7, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 2, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 2, - "Generic Type Abstractions": 3, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -174245,12 +171199,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Resource Deallocation & Cleanup": 1, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 105, + "Structural Space Indentations": 35, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174267,15 +171221,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 9, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 10, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 5, + "Duplicate Logic": 0, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174301,34 +171255,35 @@ "8. Dependency Network": { "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 1, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.datastructures", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "typing" + "io", + "pathlib", + "pytest" ] }, - "python/fastapi/tests/test_callable_endpoint.py": { + "python/fastapi/tests/test_datetime_custom_encoder.py": { "1. Artifact Identity": { - "Filename": "test_callable_endpoint.py", - "Path": "python/fastapi/tests/test_callable_endpoint.py", + "Filename": "test_datetime_custom_encoder.py", + "Path": "python/fastapi/tests/test_datetime_custom_encoder.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2901.44, - "Y": 0.56, - "Z": 2385.37 + "X": 1958.21, + "Y": -115.33, + "Z": 1861.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -174337,27 +171292,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 25, - "Coding LOC": 13, + "Total LOC": 29, + "Coding LOC": 20, "Documentation LOC": 0, - "Structural Magnitude": 5.26, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 11.3, + "Control Flow Ratio": "5.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.154 + "Raw Cognitive Density": 0.15 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "4.16%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.74%", + "API Exposure": "10.54%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "86.67%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -174365,38 +171320,48 @@ }, "5. Function Analysis": [ { - "Function Name": "main", + "Function Name": "test_pydanticv2", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "10.0%", + "Start Line": 8, + "End Line": 28 + }, + { + "Function Name": "serialize_datetime", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 8 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "test_partial", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 22, + "End Line": 23 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 10, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 17, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, @@ -174405,12 +171370,12 @@ "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -174435,7 +171400,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, + "Structural Space Indentations": 15, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174451,16 +171416,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 5, "Design Camel Case": 0, "Design Snake Case": 5, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174484,34 +171449,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "datetime", "fastapi", "fastapi.testclient", - "functools" + "pydantic" ] }, - "python/fastapi/tests/test_compat.py": { + "python/fastapi/tests/test_default_response_class.py": { "1. Artifact Identity": { - "Filename": "test_compat.py", - "Path": "python/fastapi/tests/test_compat.py", + "Filename": "test_default_response_class.py", + "Path": "python/fastapi/tests/test_default_response_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3629.62, - "Y": 69.34, - "Z": -1104.84 + "X": 2843.85, + "Y": -19.11, + "Z": 939.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -174520,26 +171486,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 133, - "Coding LOC": 87, - "Documentation LOC": 13, - "Structural Magnitude": 39.54, - "Control Flow Ratio": "3.4%", + "Total LOC": 217, + "Coding LOC": 147, + "Documentation LOC": 0, + "Structural Magnitude": 83.94, + "Control Flow Ratio": "12.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.065 + "Raw Cognitive Density": 0.109 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "1.52%", - "Error & Exception Exposure": "4.12%", + "Cognitive Load Exposure": "3.57%", + "Error & Exception Exposure": "2.41%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.72%", + "API Exposure": "13.1%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "8.92%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -174548,374 +171514,327 @@ }, "5. Function Analysis": [ { - "Function Name": "test_propagates_pydantic2_model_config", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 42, - "Control Flow Branches": 2, + "Function Name": "test_app", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 39, - "End Line": 80 + "Control Flow Ratio": "20.0%", + "Start Line": 121, + "End Line": 125 }, { - "Function Name": "foo", - "Structural Impact": 4.5, + "Function Name": "test_app_override", + "Structural Impact": 2.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 58, - "End Line": 62 + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 128, + "End Line": 132 }, { - "Function Name": "test_complex", + "Function Name": "test_router_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 135, + "End Line": 139 + }, + { + "Function Name": "test_router_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 142, + "End Line": 146 + }, + { + "Function Name": "test_router_a_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 149, + "End Line": 153 + }, + { + "Function Name": "test_router_a_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 156, + "End Line": 160 + }, + { + "Function Name": "test_router_a_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 163, + "End Line": 167 + }, + { + "Function Name": "test_router_a_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 170, + "End Line": 174 + }, + { + "Function Name": "test_router_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 177, + "End Line": 181 + }, + { + "Function Name": "test_router_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 184, + "End Line": 188 + }, + { + "Function Name": "test_router_b_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 191, + "End Line": 195 + }, + { + "Function Name": "test_router_b_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 198, + "End Line": 202 + }, + { + "Function Name": "test_router_b_a_c", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 205, + "End Line": 209 + }, + { + "Function Name": "test_router_b_a_c_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 212, + "End Line": 216 + }, + { + "Function Name": "render", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 36 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_serialize_sequence_value_with_none_first_in_union", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 12, + "Function Name": "get_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 121, - "End Line": 132 + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "foo", - "Structural Impact": 1.5, + "Function Name": "get_path_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "__bool__", - "Structural Impact": 1.5, + "Function Name": "get_a", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 + "Start Line": 40, + "End Line": 41 }, { - "Function Name": "test_model_field_default_required", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "get_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 18 + "Start Line": 45, + "End Line": 46 }, { - "Function Name": "test_serialize_sequence_value_with_optional_list", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "get_a_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 107 + "Start Line": 50, + "End Line": 51 }, { - "Function Name": "test_serialize_sequence_value_with_optional_list_pipe_union", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "get_a_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 118 + "Start Line": 55, + "End Line": 56 }, { - "Function Name": "test_is_bytes_sequence_annotation_union", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_a_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 88 + "Start Line": 60, + "End Line": 61 }, { - "Function Name": "test_is_uploadfile_sequence_annotation", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_a_b_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 96 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 56, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 23, - "Type/Safety Bypasses": 1, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 15, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 1, - "Structured Documentation Blocks": 6, - "Unit Test Assertions": 25, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 10, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 11, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 2, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 7, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 72, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 26, - "Design Camel Case": 0, - "Design Snake Case": 23, - "Design Pascal Case": 3, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 9, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi._compat", - "fastapi._compat.shared", - "fastapi.testclient", - "pydantic", - "pydantic.fields", - "typing" - ] - }, - "python/fastapi/tests/test_computed_fields.py": { - "1. Artifact Identity": { - "Filename": "test_computed_fields.py", - "Path": "python/fastapi/tests/test_computed_fields.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4409.22, - "Y": 159.02, - "Z": -165.71 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 109, - "Coding LOC": 96, - "Documentation LOC": 0, - "Structural Magnitude": 23.92, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.8%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 65, + "End Line": 66 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 65, + "Function Name": "get_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 108 + "Start Line": 70, + "End Line": 71 }, { - "Function Name": "get_client", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 25, + "Function Name": "get_b_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 32 + "Start Line": 75, + "End Line": 76 }, { - "Function Name": "test_get", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "get_b_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 40 + "Start Line": 80, + "End Line": 81 }, { - "Function Name": "area", - "Structural Impact": 1.5, + "Function Name": "get_b_a_path_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 85, + "End Line": 86 }, { - "Function Name": "read_root", + "Function Name": "get_b_a_c", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 90, + "End Line": 91 }, { - "Function Name": "read_responses", + "Function Name": "get_b_a_c_path_override", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 95, + "End Line": 96 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 28, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 14, + "Sequential Logic Declarations": 97, + "Function Parameters": 29, + "Function/Method Declarations": 29, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 44, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 33, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 42, "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, + "UI / View Layer Components": 1, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 14, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, + "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 3, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -174935,7 +171854,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 85, + "Structural Space Indentations": 77, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -174951,16 +171870,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 7, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 41, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 41, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 29, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -174991,28 +171910,29 @@ }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest" + "orjson", + "typing" ] }, - "python/fastapi/tests/test_custom_middleware_exception.py": { + "python/fastapi/tests/test_default_response_class_router.py": { "1. Artifact Identity": { - "Filename": "test_custom_middleware_exception.py", - "Path": "python/fastapi/tests/test_custom_middleware_exception.py", + "Filename": "test_default_response_class_router.py", + "Path": "python/fastapi/tests/test_default_response_class_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2443.2, - "Y": -119.45, - "Z": 764.4 + "X": 2295.04, + "Y": -118.82, + "Z": -788.21 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175021,24 +171941,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 95, - "Coding LOC": 65, - "Documentation LOC": 5, - "Structural Magnitude": 58.9, - "Control Flow Ratio": "19.5%", + "Total LOC": 207, + "Coding LOC": 141, + "Documentation LOC": 0, + "Structural Magnitude": 80.02, + "Control Flow Ratio": "13.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.077 + "Raw Cognitive Density": 0.113 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "29.06%", - "Error & Exception Exposure": "40.43%", + "Cognitive Load Exposure": "3.63%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.09%", - "Concurrency Exposure": "100.0%", + "API Exposure": "12.99%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -175049,108 +171969,318 @@ }, "5. Function Analysis": [ { - "Function Name": "__call__", - "Structural Impact": 7.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 4, - "Control Flow Ratio": "28.6%", - "Start Line": 47, - "End Line": 53 + "Function Name": "test_app", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 111, + "End Line": 115 + }, + { + "Function Name": "test_app_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 118, + "End Line": 122 + }, + { + "Function Name": "test_router_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 125, + "End Line": 129 + }, + { + "Function Name": "test_router_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 132, + "End Line": 136 + }, + { + "Function Name": "test_router_a_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 139, + "End Line": 143 + }, + { + "Function Name": "test_router_a_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 146, + "End Line": 150 + }, + { + "Function Name": "test_router_a_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 153, + "End Line": 157 + }, + { + "Function Name": "test_router_a_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 160, + "End Line": 164 + }, + { + "Function Name": "test_router_b", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 167, + "End Line": 171 + }, + { + "Function Name": "test_router_b_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 174, + "End Line": 178 + }, + { + "Function Name": "test_router_b_a", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 181, + "End Line": 185 + }, + { + "Function Name": "test_router_b_a_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 188, + "End Line": 192 + }, + { + "Function Name": "test_router_b_a_c", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 195, + "End Line": 199 + }, + { + "Function Name": "test_router_b_a_c_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 202, + "End Line": 206 + }, + { + "Function Name": "get_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "get_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "receive_wrapper", - "Structural Impact": 6.3, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 23, - "End Line": 45 + "Function Name": "get_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "test_custom_middleware_exception", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 68, - "End Line": 83 + "Function Name": "get_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "test_custom_middleware_exception_not_raised", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 86, - "End Line": 94 + "Function Name": "get_a_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 40, + "End Line": 41 }, { - "Function Name": "inner", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 2, + "Function Name": "get_a_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 26, - "End Line": 43 + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 46 }, { - "Function Name": "__init__", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "get_a_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 21 + "Start Line": 50, + "End Line": 51 }, { - "Function Name": "run_middleware", - "Structural Impact": 1.5, + "Function Name": "get_a_b_path_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 58 + "Start Line": 55, + "End Line": 56 + }, + { + "Function Name": "get_b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 60, + "End Line": 61 + }, + { + "Function Name": "get_b_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 66 + }, + { + "Function Name": "get_b_a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 71 + }, + { + "Function Name": "get_b_a_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 76 + }, + { + "Function Name": "get_b_a_c", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 80, + "End Line": 81 + }, + { + "Function Name": "get_b_a_c_path_override", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 86 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 33, - "Function Parameters": 7, - "Function/Method Declarations": 7, + "Control Flow Branches": 14, + "Sequential Logic Declarations": 91, + "Function Parameters": 28, + "Function/Method Declarations": 28, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 44, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 3, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 5, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 31, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 15, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 42, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 14, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 3, + "Server-Side Rendering Contexts": 2, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -175159,17 +172289,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 51, + "Structural Space Indentations": 74, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175186,15 +172316,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 16, + "Core Var Decl": 40, "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 2, + "Design Snake Case": 40, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 28, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175218,35 +172348,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pathlib" + "fastapi.responses", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_custom_route_class.py": { + "python/fastapi/tests/test_dependencies_utils.py": { "1. Artifact Identity": { - "Filename": "test_custom_route_class.py", - "Path": "python/fastapi/tests/test_custom_route_class.py", + "Filename": "test_dependencies_utils.py", + "Path": "python/fastapi/tests/test_dependencies_utils.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "APIRoute", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3894.25, - "Y": 86.34, - "Z": 1094.23 + "X": 599.15, + "Y": -320.01, + "Z": -529.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175255,27 +172383,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 122, - "Coding LOC": 96, - "Documentation LOC": 0, - "Structural Magnitude": 21.82, - "Control Flow Ratio": "3.1%", + "Total LOC": 9, + "Coding LOC": 5, + "Documentation LOC": 1, + "Structural Magnitude": 2.3, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.266 + "Raw Cognitive Density": 0.4 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.3%", - "Error & Exception Exposure": "20.5%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "5.78%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "33.33%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -175283,92 +172411,42 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 47, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 121 - }, - { - "Function Name": "test_route_classes", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 65, - "End Line": 72 - }, - { - "Function Name": "test_get_path", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 - }, - { - "Function Name": "get_a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 - }, - { - "Function Name": "get_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "get_c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_typed_annotation", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 4, + "End Line": 8 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 4, + "Function Parameters": 1, + "Function/Method Declarations": 1, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 1, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, + "Unit Test Assertions": 2, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 4, + "Global State Dependencies": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 3, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 1, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -175393,7 +172471,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 68, + "Structural Space Indentations": 3, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175409,16 +172487,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 2, "Design Camel Case": 0, - "Design Snake Case": 11, + "Design Snake Case": 2, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175442,37 +172520,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 1, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.routing", - "fastapi.testclient", - "inline_snapshot", - "pytest", - "starlette.routing" + "fastapi.dependencies.utils" ] }, - "python/fastapi/tests/test_custom_schema_fields.py": { + "python/fastapi/tests/test_dependency_after_yield_raise.py": { "1. Artifact Identity": { - "Filename": "test_custom_schema_fields.py", - "Path": "python/fastapi/tests/test_custom_schema_fields.py", + "Filename": "test_dependency_after_yield_raise.py", + "Path": "python/fastapi/tests/test_dependency_after_yield_raise.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4315.51, - "Y": 143.41, - "Z": 1589.95 + "X": 1450.76, + "Y": -220.36, + "Z": -430.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175481,23 +172554,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 63, - "Coding LOC": 45, - "Documentation LOC": 1, - "Structural Magnitude": 9.4, - "Control Flow Ratio": "0.0%", + "Total LOC": 69, + "Coding LOC": 39, + "Documentation LOC": 6, + "Structural Magnitude": 26.08, + "Control Flow Ratio": "12.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.044 + "Raw Cognitive Density": 0.154 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.81%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.38%", + "Error & Exception Exposure": "31.5%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.62%", + "API Exposure": "11.7%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -175509,58 +172582,108 @@ }, "5. Function Analysis": [ { - "Function Name": "test_custom_response_schema", + "Function Name": "test_broken_raise", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 46, + "End Line": 48 + }, + { + "Function Name": "test_broken_no_raise", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 51, + "End Line": 61 + }, + { + "Function Name": "catching_dep", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 16 + }, + { + "Function Name": "catching", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + }, + { + "Function Name": "broken", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 34 + }, + { + "Function Name": "test_catching", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 55 + "Start Line": 40, + "End Line": 43 }, { - "Function Name": "test_response", + "Function Name": "test_broken_return_finishes", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 62 + "Start Line": 64, + "End Line": 68 }, { - "Function Name": "foo", + "Function Name": "broken_dep", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 19, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 27, + "Function Parameters": 8, + "Function/Method Declarations": 8, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 6, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -175571,7 +172694,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -175579,7 +172702,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 3, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -175589,7 +172712,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 32, + "Structural Space Indentations": 22, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175604,17 +172727,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 7, + "Lazy Evaluation & Generators (O(1) Memory)": 4, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175646,14 +172769,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pydantic", + "pytest", "typing" ] }, - "python/fastapi/tests/test_custom_swagger_ui_redirect.py": { + "python/fastapi/tests/test_dependency_after_yield_streaming.py": { "1. Artifact Identity": { - "Filename": "test_custom_swagger_ui_redirect.py", - "Path": "python/fastapi/tests/test_custom_swagger_ui_redirect.py", + "Filename": "test_dependency_after_yield_streaming.py", + "Path": "python/fastapi/tests/test_dependency_after_yield_streaming.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -175663,9 +172786,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4758.61, - "Y": 196.88, - "Z": -686.25 + "X": 3343.6, + "Y": 66.43, + "Z": 985.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175674,24 +172797,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 39, - "Coding LOC": 26, - "Documentation LOC": 0, - "Structural Magnitude": 11.42, - "Control Flow Ratio": "0.0%", + "Total LOC": 131, + "Coding LOC": 82, + "Documentation LOC": 6, + "Structural Magnitude": 66.64, + "Control Flow Ratio": "17.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.192 + "Raw Cognitive Density": 0.283 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.85%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.31%", + "Error & Exception Exposure": "39.02%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.71%", - "Concurrency Exposure": "43.26%", + "API Exposure": "12.17%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -175702,97 +172825,257 @@ }, "5. Function Analysis": [ { - "Function Name": "test_swagger_ui", - "Structural Impact": 1.5, + "Function Name": "__iter__", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 16, + "End Line": 21 + }, + { + "Function Name": "acquire_session", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 25, + "End Line": 30 + }, + { + "Function Name": "test_broken_session_data", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 103, + "End Line": 105 + }, + { + "Function Name": "test_broken_session_stream_no_raise", + "Structural Impact": 2.5, "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 121, + "End Line": 130 + }, + { + "Function Name": "broken_dep_session", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 38, + "End Line": 41 + }, + { + "Function Name": "test_broken_session_stream_raise", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 115, + "End Line": 118 + }, + { + "Function Name": "dep_session", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 33, + "End Line": 35 + }, + { + "Function Name": "get_stream_simple", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 26 + "Start Line": 57, + "End Line": 61 }, { - "Function Name": "test_swagger_ui_oauth2_redirect", + "Function Name": "get_stream_session", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 69 + }, + { + "Function Name": "get_broken_session_stream", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 82 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 14 + }, + { + "Function Name": "get_data", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 53 + }, + { + "Function Name": "get_broken_session_data", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 74 + }, + { + "Function Name": "test_broken_session_data_no_raise", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 33 + "Start Line": 108, + "End Line": 112 }, { - "Function Name": "read_items", + "Function Name": "iter_data", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "test_response", + "Function Name": "iter_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 67 + }, + { + "Function Name": "iter_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 80 + }, + { + "Function Name": "test_regular_no_stream", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 88, + "End Line": 90 + }, + { + "Function Name": "test_stream_simple", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 95 + }, + { + "Function Name": "test_stream_session", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 100 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 11, + "Sequential Logic Declarations": 52, + "Function Parameters": 20, + "Function/Method Declarations": 20, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 8, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 4, + "Exposed API / Public Exports": 24, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 17, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 6, + "Generic Type Abstractions": 10, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 1, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 2, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, + "Structural Space Indentations": 49, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -175807,17 +173090,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Lazy Evaluation & Generators (O(1) Memory)": 10, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 14, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 12, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, - "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Design Long Vars": 0, + "Duplicate Logic": 2, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -175825,7 +173108,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -175841,20 +173124,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", + "contextlib", "fastapi", - "fastapi.testclient" + "fastapi.responses", + "fastapi.testclient", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_datastructures.py": { + "python/fastapi/tests/test_dependency_after_yield_websockets.py": { "1. Artifact Identity": { - "Filename": "test_datastructures.py", - "Path": "python/fastapi/tests/test_datastructures.py", + "Filename": "test_dependency_after_yield_websockets.py", + "Path": "python/fastapi/tests/test_dependency_after_yield_websockets.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -175864,9 +173152,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1988.37, - "Y": -163.42, - "Z": 1169.54 + "X": 3243.72, + "Y": -20.06, + "Z": -1184.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -175875,24 +173163,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 66, - "Coding LOC": 47, - "Documentation LOC": 1, - "Structural Magnitude": 29.34, - "Control Flow Ratio": "9.8%", + "Total LOC": 80, + "Coding LOC": 56, + "Documentation LOC": 0, + "Structural Magnitude": 46.32, + "Control Flow Ratio": "28.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.617 + "Raw Cognitive Density": 0.661 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "18.5%", - "Error & Exception Exposure": "4.56%", + "Cognitive Load Exposure": "20.58%", + "Error & Exception Exposure": "48.13%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.65%", - "Concurrency Exposure": "99.74%", + "API Exposure": "8.0%", + "Concurrency Exposure": "98.35%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -175903,88 +173191,118 @@ }, "5. Function Analysis": [ { - "Function Name": "test_upload_file_is_closed", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 1, + "Function Name": "__iter__", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 3, "Input Parameters": 1, - "Control Flow Ratio": "11.1%", - "Start Line": 29, - "End Line": 48 + "Control Flow Ratio": "75.0%", + "Start Line": 15, + "End Line": 20 }, { - "Function Name": "test_upload_file", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 11, + "Function Name": "test_websocket_dependency_after_yield_broken", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "60.0%", + "Start Line": 76, + "End Line": 79 + }, + { + "Function Name": "websocket_endpoint", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "25.0%", + "Start Line": 50, + "End Line": 53 + }, + { + "Function Name": "websocket_endpoint_broken", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "25.0%", + "Start Line": 57, + "End Line": 60 + }, + { + "Function Name": "acquire_session", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 55, - "End Line": 65 + "Control Flow Ratio": "66.7%", + "Start Line": 24, + "End Line": 29 }, { - "Function Name": "test_upload_file_invalid_pydantic_v2", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_websocket_dependency_after_yield", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 10, - "End Line": 12 + "Control Flow Ratio": "16.7%", + "Start Line": 66, + "End Line": 73 }, { - "Function Name": "create_upload_file", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", + "Function Name": "broken_dep_session", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", "Start Line": 37, - "End Line": 39 + "End Line": 40 }, { - "Function Name": "test_default_placeholder_equals", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, + "Function Name": "dep_session", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Control Flow Ratio": "33.3%", + "Start Line": 32, + "End Line": 34 }, { - "Function Name": "test_default_placeholder_bool", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "__init__", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 26 + "Start Line": 11, + "End Line": 13 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 37, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 13, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 13, + "Sequential Logic Declarations": 32, + "Function Parameters": 9, + "Function/Method Declarations": 9, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 2, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 1, + "I/O and Network Boundaries": 4, + "Exposed API / Public Exports": 8, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 21, - "Asynchronous/Concurrent Execution": 7, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -175995,7 +173313,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -176003,13 +173321,13 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 1, - "Private / Encapsulated Scopes": 1, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, @@ -176028,12 +173346,12 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 10, + "Lazy Evaluation & Generators (O(1) Memory)": 7, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -176045,7 +173363,7 @@ "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 2, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -176064,35 +173382,34 @@ "8. Dependency Network": { "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 1, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", + "contextlib", "fastapi", - "fastapi.datastructures", "fastapi.testclient", - "io", - "pathlib", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_datetime_custom_encoder.py": { + "python/fastapi/tests/test_dependency_cache.py": { "1. Artifact Identity": { - "Filename": "test_datetime_custom_encoder.py", - "Path": "python/fastapi/tests/test_datetime_custom_encoder.py", + "Filename": "test_dependency_cache.py", + "Path": "python/fastapi/tests/test_dependency_cache.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1958.21, - "Y": -115.33, - "Z": 1861.37 + "X": 4126.89, + "Y": 154.67, + "Z": -41.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -176101,24 +173418,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, - "Coding LOC": 20, + "Total LOC": 92, + "Coding LOC": 67, "Documentation LOC": 0, - "Structural Magnitude": 11.3, - "Control Flow Ratio": "5.6%", + "Structural Magnitude": 37.44, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.15 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.16%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.54%", - "Concurrency Exposure": "0.0%", + "API Exposure": "11.95%", + "Concurrency Exposure": "96.7%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -176129,69 +173446,139 @@ }, "5. Function Analysis": [ { - "Function Name": "test_pydanticv2", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "10.0%", - "Start Line": 8, - "End Line": 28 + "Function Name": "get_scope_counter", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 48 + }, + { + "Function Name": "get_sub_counter_no_cache", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 35 }, { - "Function Name": "serialize_datetime", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "get_sub_counter", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "get_model", - "Structural Impact": 1.1, + "Function Name": "super_dep", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 + }, + { + "Function Name": "get_counter", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 19, + "End Line": 20 + }, + { + "Function Name": "test_normal_counter", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 54, + "End Line": 61 + }, + { + "Function Name": "test_sub_counter", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 64, + "End Line": 71 + }, + { + "Function Name": "test_sub_counter_no_cache", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 74, + "End Line": 81 + }, + { + "Function Name": "test_security_cache", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 91 + }, + { + "Function Name": "dep_counter", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 9, + "End Line": 11 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 17, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 3, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 36, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 20, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 7, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -176209,7 +173596,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 15, + "Structural Space Indentations": 45, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -176225,16 +173612,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 19, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 19, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -176258,35 +173645,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "datetime", "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_default_response_class.py": { + "python/fastapi/tests/test_dependency_class.py": { "1. Artifact Identity": { - "Filename": "test_default_response_class.py", - "Path": "python/fastapi/tests/test_default_response_class.py", + "Filename": "test_dependency_class.py", + "Path": "python/fastapi/tests/test_dependency_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2843.85, - "Y": -19.11, - "Z": 939.45 + "X": 2711.13, + "Y": -29.9, + "Z": -888.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -176295,24 +173679,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 217, - "Coding LOC": 147, + "Total LOC": 155, + "Coding LOC": 109, "Documentation LOC": 0, - "Structural Magnitude": 83.94, - "Control Flow Ratio": "12.6%", + "Structural Magnitude": 102.68, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.109 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.57%", - "Error & Exception Exposure": "2.41%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.1%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.28%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -176323,329 +173707,249 @@ }, "5. Function Analysis": [ { - "Function Name": "test_app", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 121, - "End Line": 125 - }, - { - "Function Name": "test_app_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 128, - "End Line": 132 - }, - { - "Function Name": "test_router_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 135, - "End Line": 139 - }, - { - "Function Name": "test_router_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 142, - "End Line": 146 - }, - { - "Function Name": "test_router_a_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 149, - "End Line": 153 - }, - { - "Function Name": "test_router_a_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 156, - "End Line": 160 - }, - { - "Function Name": "test_router_a_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 163, - "End Line": 167 - }, - { - "Function Name": "test_router_a_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 170, - "End Line": 174 - }, - { - "Function Name": "test_router_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 177, - "End Line": 181 + "Function Name": "get_callable_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 55 }, { - "Function Name": "test_router_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 184, - "End Line": 188 + "Function Name": "get_callable_gen_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 62 }, { - "Function Name": "test_router_b_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 191, - "End Line": 195 + "Function Name": "get_async_callable_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 69 }, { - "Function Name": "test_router_b_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 198, - "End Line": 202 + "Function Name": "get_async_callable_gen_dependency_class", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 76 }, { - "Function Name": "test_router_b_a_c", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 205, - "End Line": 209 + "Function Name": "test_class_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 151, + "End Line": 154 }, { - "Function Name": "test_router_b_a_c_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 212, - "End Line": 216 + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "render", + "Function Name": "__call__", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "get_root", - "Structural Impact": 1.1, + "Function Name": "__call__", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 21, + "End Line": 22 }, { - "Function Name": "get_path_override", - "Structural Impact": 1.1, + "Function Name": "__call__", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "get_a", - "Structural Impact": 1.1, + "Function Name": "synchronous", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 41 + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "get_a_path_override", - "Structural Impact": 1.1, + "Function Name": "asynchronous", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "get_a_a", - "Structural Impact": 1.1, + "Function Name": "synchronous_gen", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 + "Start Line": 37, + "End Line": 38 }, { - "Function Name": "get_a_a_path_override", - "Structural Impact": 1.1, + "Function Name": "asynchronous_gen", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 + "Start Line": 40, + "End Line": 41 }, { - "Function Name": "get_a_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_async_callable_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 61 + "Start Line": 90, + "End Line": 93 }, { - "Function Name": "get_a_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_async_callable_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 + "Start Line": 97, + "End Line": 100 }, { - "Function Name": "get_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_synchronous_method_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 + "Start Line": 104, + "End Line": 107 }, { - "Function Name": "get_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_synchronous_method_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 + "Start Line": 111, + "End Line": 114 }, { - "Function Name": "get_b_a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_asynchronous_method_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 118, + "End Line": 121 }, { - "Function Name": "get_b_a_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_asynchronous_method_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 125, + "End Line": 128 }, { - "Function Name": "get_b_a_c", - "Structural Impact": 1.1, + "Function Name": "get_callable_dependency", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 91 + "Start Line": 80, + "End Line": 81 }, { - "Function Name": "get_b_a_c_path_override", - "Structural Impact": 1.1, + "Function Name": "get_callable_gen_dependency", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 85, + "End Line": 86 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 14, - "Sequential Logic Declarations": 97, - "Function Parameters": 29, - "Function/Method Declarations": 29, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 44, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 65, + "Function Parameters": 21, + "Function/Method Declarations": 21, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 33, + "Exposed API / Public Exports": 34, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 42, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 1, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 30, + "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 14, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 13, + "Generic Type Abstractions": 8, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 4, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 3, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 13, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -176659,11 +173963,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 5, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 77, + "Structural Space Indentations": 56, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -176678,17 +173982,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 41, + "Lazy Evaluation & Generators (O(1) Memory)": 10, + "Vectorized Math & Tensor Operations": 13, + "Core Var Decl": 20, "Design Camel Case": 0, - "Design Snake Case": 41, - "Design Pascal Case": 0, + "Design Snake Case": 16, + "Design Pascal Case": 4, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 3, "Duplicate Logic": 0, - "Orphaned Logic": 29, + "Orphaned Logic": 13, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -176712,36 +174016,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", "fastapi", - "fastapi.responses", "fastapi.testclient", - "orjson", - "typing" + "pytest" ] }, - "python/fastapi/tests/test_default_response_class_router.py": { + "python/fastapi/tests/test_dependency_contextmanager.py": { "1. Artifact Identity": { - "Filename": "test_default_response_class_router.py", - "Path": "python/fastapi/tests/test_default_response_class_router.py", + "Filename": "test_dependency_contextmanager.py", + "Path": "python/fastapi/tests/test_dependency_contextmanager.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse", + "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2295.04, - "Y": -118.82, - "Z": -788.21 + "X": 3162.1, + "Y": 31.41, + "Z": 387.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -176750,24 +174053,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 207, - "Coding LOC": 141, - "Documentation LOC": 0, - "Structural Magnitude": 80.02, - "Control Flow Ratio": "13.3%", + "Total LOC": 400, + "Coding LOC": 287, + "Documentation LOC": 1, + "Structural Magnitude": 222.24, + "Control Flow Ratio": "13.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.113 + "Raw Cognitive Density": 0.657 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.63%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "20.38%", + "Error & Exception Exposure": "1.02%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.99%", - "Concurrency Exposure": "0.0%", + "API Exposure": "14.27%", + "Concurrency Exposure": "99.52%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -176778,319 +174081,539 @@ }, "5. Function Analysis": [ { - "Function Name": "test_app", - "Structural Impact": 2.2, + "Function Name": "context_b", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 81, + "End Line": 86 + }, + { + "Function Name": "asyncgen_state_try", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 51, + "End Line": 59 + }, + { + "Function Name": "generator_state_try", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 62, + "End Line": 70 + }, + { + "Function Name": "context_a", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 73, + "End Line": 78 + }, + { + "Function Name": "test_context_b_raise", + "Structural Impact": 3.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 111, - "End Line": 115 + "Control Flow Ratio": "40.0%", + "Start Line": 274, + "End Line": 278 }, { - "Function Name": "test_app_override", - "Structural Impact": 2.2, + "Function Name": "test_sync_context_b_raise", + "Structural Impact": 3.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 118, - "End Line": 122 + "Control Flow Ratio": "40.0%", + "Start Line": 384, + "End Line": 388 }, { - "Function Name": "test_router_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_background_tasks", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 125, - "End Line": 129 + "Control Flow Ratio": "9.1%", + "Start Line": 281, + "End Line": 293 }, { - "Function Name": "test_router_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_background_tasks", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 132, - "End Line": 136 + "Control Flow Ratio": "12.5%", + "Start Line": 391, + "End Line": 399 }, { - "Function Name": "test_router_a_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_context_b", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 139, - "End Line": 143 + "Control Flow Ratio": "16.7%", + "Start Line": 265, + "End Line": 271 }, { - "Function Name": "test_router_a_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_context_b", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 146, - "End Line": 150 + "Control Flow Ratio": "16.7%", + "Start Line": 375, + "End Line": 381 }, { - "Function Name": "test_router_a_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_async_raise_other", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "20.0%", - "Start Line": 153, - "End Line": 157 + "Start Line": 232, + "End Line": 237 }, { - "Function Name": "test_router_a_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_raise_other", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "20.0%", - "Start Line": 160, - "End Line": 164 + "Start Line": 240, + "End Line": 245 }, { - "Function Name": "test_router_b", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_async_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 167, - "End Line": 171 + "Control Flow Ratio": "25.0%", + "Start Line": 248, + "End Line": 253 }, { - "Function Name": "test_router_b_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 174, - "End Line": 178 + "Control Flow Ratio": "25.0%", + "Start Line": 296, + "End Line": 301 }, { - "Function Name": "test_router_b_a", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_async_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 181, - "End Line": 185 + "Control Flow Ratio": "25.0%", + "Start Line": 341, + "End Line": 346 }, { - "Function Name": "test_router_b_a_override", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_sync_sync_raise_raises", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 188, - "End Line": 192 + "Control Flow Ratio": "25.0%", + "Start Line": 358, + "End Line": 363 }, { - "Function Name": "test_router_b_a_c", + "Function Name": "get_sync_context_b_bg", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 194, + "End Line": 203 + }, + { + "Function Name": "test_sync_async_raise_other", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 195, - "End Line": 199 + "Control Flow Ratio": "25.0%", + "Start Line": 327, + "End Line": 331 }, { - "Function Name": "test_router_b_a_c_override", + "Function Name": "test_sync_sync_raise_other", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 202, - "End Line": 206 + "Control Flow Ratio": "25.0%", + "Start Line": 334, + "End Line": 338 }, { - "Function Name": "get_root", - "Structural Impact": 1.1, + "Function Name": "get_context_b_bg", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 136, + "End Line": 141 + }, + { + "Function Name": "middleware", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 207, + "End Line": 210 + }, + { + "Function Name": "asyncgen_state", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 42 + }, + { + "Function Name": "generator_state", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 48 + }, + { + "Function Name": "get_async_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 100, + "End Line": 102 + }, + { + "Function Name": "get_sync_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 106, + "End Line": 108 + }, + { + "Function Name": "get_async_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 112, + "End Line": 114 + }, + { + "Function Name": "get_sync_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 118, + "End Line": 120 + }, + { + "Function Name": "get_context_b_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 129, + "End Line": 132 + }, + { + "Function Name": "get_sync_async_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 158, + "End Line": 160 + }, + { + "Function Name": "get_sync_sync_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 164, + "End Line": 166 + }, + { + "Function Name": "get_sync_async_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 170, + "End Line": 172 + }, + { + "Function Name": "get_sync_sync_raise_other", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 176, + "End Line": 178 + }, + { + "Function Name": "get_sync_context_b_raise", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 187, + "End Line": 190 + }, + { + "Function Name": "bg", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 197, + "End Line": 200 + }, + { + "Function Name": "get_async", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 90, + "End Line": 91 }, { - "Function Name": "get_path_override", - "Structural Impact": 1.1, + "Function Name": "get_sync", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 95, + "End Line": 96 }, { - "Function Name": "get_a", - "Structural Impact": 1.1, + "Function Name": "get_context_b", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 124, + "End Line": 125 }, { - "Function Name": "get_a_path_override", - "Structural Impact": 1.1, + "Function Name": "bg", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 137, + "End Line": 138 }, { - "Function Name": "get_a_a", - "Structural Impact": 1.1, + "Function Name": "get_sync_async", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 41 + "Start Line": 148, + "End Line": 149 + }, + { + "Function Name": "get_sync_sync", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 153, + "End Line": 154 + }, + { + "Function Name": "get_sync_context_b", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 183 }, { - "Function Name": "get_a_a_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_async_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 + "Start Line": 256, + "End Line": 262 }, { - "Function Name": "get_a_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 + "Start Line": 304, + "End Line": 310 }, { - "Function Name": "get_a_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_async_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 + "Start Line": 349, + "End Line": 355 }, { - "Function Name": "get_b", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_sync_raise_server_error", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 61 + "Start Line": 366, + "End Line": 372 }, { - "Function Name": "get_b_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_async_state", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 + "Start Line": 216, + "End Line": 221 }, { - "Function Name": "get_b_a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_state", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 + "Start Line": 224, + "End Line": 229 }, { - "Function Name": "get_b_a_path_override", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_async_state", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 + "Start Line": 313, + "End Line": 317 }, { - "Function Name": "get_b_a_c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_sync_sync_state", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 320, + "End Line": 324 }, { - "Function Name": "get_b_a_c_path_override", + "Function Name": "get_state", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 14, - "Sequential Logic Declarations": 91, - "Function Parameters": 28, - "Function/Method Declarations": 28, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 44, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 25, + "Sequential Logic Declarations": 158, + "Function Parameters": 50, + "Function/Method Declarations": 50, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 93, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 31, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 71, + "State Mutations / Variable Reassignments": 14, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 42, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 116, + "Asynchronous/Concurrent Execution": 28, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 14, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 19, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 25, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -177098,7 +174621,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 40, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -177108,7 +174631,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 74, + "Structural Space Indentations": 206, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177123,17 +174646,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 40, + "Lazy Evaluation & Generators (O(1) Memory)": 6, + "Vectorized Math & Tensor Operations": 18, + "Core Var Decl": 46, "Design Camel Case": 0, - "Design Snake Case": 40, - "Design Pascal Case": 0, + "Design Snake Case": 45, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 28, + "Orphaned Logic": 40, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177157,7 +174680,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -177165,13 +174688,15 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.responses", - "fastapi.testclient" + "fastapi.testclient", + "json", + "pytest" ] }, - "python/fastapi/tests/test_dependencies_utils.py": { + "python/fastapi/tests/test_dependency_contextvars.py": { "1. Artifact Identity": { - "Filename": "test_dependencies_utils.py", - "Path": "python/fastapi/tests/test_dependencies_utils.py", + "Filename": "test_dependency_contextvars.py", + "Path": "python/fastapi/tests/test_dependency_contextvars.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -177181,9 +174706,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 599.15, - "Y": -320.01, - "Z": -529.29 + "X": 4695.34, + "Y": 189.13, + "Z": 749.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177192,27 +174717,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 9, - "Coding LOC": 5, - "Documentation LOC": 1, - "Structural Magnitude": 2.3, + "Total LOC": 53, + "Coding LOC": 31, + "Documentation LOC": 6, + "Structural Magnitude": 14.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.4 + "Raw Cognitive Density": 0.355 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "4.27%", + "Error & Exception Exposure": "46.07%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.78%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.98%", + "Concurrency Exposure": "92.02%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "33.33%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -177220,56 +174745,86 @@ }, "5. Function Analysis": [ { - "Function Name": "test_get_typed_annotation", + "Function Name": "custom_middleware", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 28 + }, + { + "Function Name": "test_dependency_contextvars", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 52 + }, + { + "Function Name": "set_up_request_state_dependency", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 4, - "End Line": 8 + "Start Line": 15, + "End Line": 19 + }, + { + "Function Name": "get_user", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 4, - "Function Parameters": 1, - "Function/Method Declarations": 1, + "Sequential Logic Declarations": 20, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 3, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 4, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 1, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -177280,7 +174835,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 3, + "Structural Space Indentations": 15, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177295,17 +174850,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 2, + "Lazy Evaluation & Generators (O(1) Memory)": 1, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 2, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177329,32 +174884,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 1, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.dependencies.utils" + "collections.abc", + "contextvars", + "fastapi", + "fastapi.testclient", + "typing" ] }, - "python/fastapi/tests/test_dependency_after_yield_raise.py": { + "python/fastapi/tests/test_dependency_duplicates.py": { "1. Artifact Identity": { - "Filename": "test_dependency_after_yield_raise.py", - "Path": "python/fastapi/tests/test_dependency_after_yield_raise.py", + "Filename": "test_dependency_duplicates.py", + "Path": "python/fastapi/tests/test_dependency_duplicates.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "Exception", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1450.76, - "Y": -220.36, - "Z": -430.31 + "X": 1999.7, + "Y": -150.68, + "Z": -506.81 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177363,24 +174922,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 69, - "Coding LOC": 39, - "Documentation LOC": 6, - "Structural Magnitude": 26.08, - "Control Flow Ratio": "12.9%", + "Total LOC": 238, + "Coding LOC": 211, + "Documentation LOC": 0, + "Structural Magnitude": 50.92, + "Control Flow Ratio": "10.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.154 + "Raw Cognitive Density": 0.112 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.38%", - "Error & Exception Exposure": "31.5%", + "Cognitive Load Exposure": "3.61%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.7%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.13%", + "Concurrency Exposure": "30.51%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -177391,108 +174950,138 @@ }, "5. Function Analysis": [ { - "Function Name": "test_broken_raise", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 10.7, + "Lines of Code (LOC)": 153, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 46, - "End Line": 48 + "Control Flow Ratio": "10.5%", + "Start Line": 85, + "End Line": 237 }, { - "Function Name": "test_broken_no_raise", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "test_sub_duplicates", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 51, - "End Line": 61 + "Control Flow Ratio": "25.0%", + "Start Line": 76, + "End Line": 82 }, { - "Function Name": "catching_dep", + "Function Name": "test_duplicates", "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 16 + "Start Line": 70, + "End Line": 73 }, { - "Function Name": "catching", - "Structural Impact": 1.5, + "Function Name": "sub_duplicate_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 26 + }, + { + "Function Name": "no_duplicates_sub", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 40, + "End Line": 43 + }, + { + "Function Name": "with_duplicates", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "broken", - "Structural Impact": 1.5, + "Function Name": "no_duplicates", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "test_catching", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_no_duplicates_invalid", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 43 + "Start Line": 46, + "End Line": 58 }, { - "Function Name": "test_broken_return_finishes", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "duplicate_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 68 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "broken_dep", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 19, - "End Line": 21 + "End Line": 20 + }, + { + "Function Name": "test_no_duplicates", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 67 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 27, - "Function Parameters": 8, - "Function/Method Declarations": 8, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 51, + "Function Parameters": 11, + "Function/Method Declarations": 11, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 6, + "Defensive Programming Constructs": 13, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, + "Exposed API / Public Exports": 15, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 4, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -177503,7 +175092,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 5, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -177511,7 +175100,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 3, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -177521,7 +175110,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 22, + "Structural Space Indentations": 188, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177536,17 +175125,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 4, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 8, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177578,14 +175167,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pytest", - "typing" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_dependency_after_yield_streaming.py": { + "python/fastapi/tests/test_dependency_overrides.py": { "1. Artifact Identity": { - "Filename": "test_dependency_after_yield_streaming.py", - "Path": "python/fastapi/tests/test_dependency_after_yield_streaming.py", + "Filename": "test_dependency_overrides.py", + "Path": "python/fastapi/tests/test_dependency_overrides.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -177595,9 +175184,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3343.6, - "Y": 66.43, - "Z": 985.89 + "X": 3486.34, + "Y": 41.3, + "Z": 357.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177606,24 +175195,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 131, - "Coding LOC": 82, - "Documentation LOC": 6, - "Structural Magnitude": 66.64, - "Control Flow Ratio": "17.5%", + "Total LOC": 390, + "Coding LOC": 310, + "Documentation LOC": 0, + "Structural Magnitude": 101.7, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.283 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.31%", - "Error & Exception Exposure": "39.02%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "7.45%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.17%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.19%", + "Concurrency Exposure": "51.76%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -177634,257 +175223,629 @@ }, "5. Function Analysis": [ { - "Function Name": "__iter__", - "Structural Impact": 6.0, + "Function Name": "test_override_simple", + "Structural Impact": 2.3, "Lines of Code (LOC)": 6, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 16, - "End Line": 21 + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 208, + "End Line": 213 }, { - "Function Name": "acquire_session", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, + "Function Name": "common_parameters", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 10, + "End Line": 11 + }, + { + "Function Name": "test_override_with_sub_main_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 25, - "End Line": 30 + "Control Flow Ratio": "0.0%", + "Start Line": 216, + "End Line": 231 }, { - "Function Name": "test_broken_session_data", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 2, + "Function Name": "test_override_with_sub__main_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 103, - "End Line": 105 + "Control Flow Ratio": "0.0%", + "Start Line": 234, + "End Line": 249 }, { - "Function Name": "test_broken_session_stream_no_raise", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_decorator_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 121, - "End Line": 130 + "Control Flow Ratio": "0.0%", + "Start Line": 260, + "End Line": 275 }, { - "Function Name": "broken_dep_session", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_decorator_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 38, - "End Line": 41 + "Control Flow Ratio": "0.0%", + "Start Line": 278, + "End Line": 293 }, { - "Function Name": "test_broken_session_stream_raise", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_router_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 115, - "End Line": 118 + "Control Flow Ratio": "0.0%", + "Start Line": 304, + "End Line": 319 }, { - "Function Name": "dep_session", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "test_override_with_sub_router_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 33, - "End Line": 35 + "Control Flow Ratio": "0.0%", + "Start Line": 322, + "End Line": 337 }, { - "Function Name": "get_stream_simple", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_override_with_sub_router_decorator_depends", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 61 + "Start Line": 348, + "End Line": 363 }, { - "Function Name": "get_stream_session", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_override_with_sub_router_decorator_depends_q_foo", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 366, + "End Line": 381 + }, + { + "Function Name": "test_main_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 63 + }, + { + "Function Name": "test_decorator_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 96 + }, + { + "Function Name": "test_router_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 111, + "End Line": 123 + }, + { + "Function Name": "test_router_decorator_depends", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 144, + "End Line": 156 + }, + { + "Function Name": "main_depends", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 69 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "get_broken_session_stream", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "router_depends", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 82 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "__init__", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "overrider_dependency_simple", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 14 + "Start Line": 39, + "End Line": 40 }, { - "Function Name": "get_data", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "overrider_sub_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 53 + "Start Line": 43, + "End Line": 44 }, { - "Function Name": "get_broken_session_data", + "Function Name": "overrider_dependency_with_sub", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_broken_session_data_no_raise", + "Function Name": "test_main_depends_q_foo", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 72 + }, + { + "Function Name": "test_main_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 81 + }, + { + "Function Name": "test_router_depends_q_foo", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 126, + "End Line": 132 + }, + { + "Function Name": "test_router_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 141 + }, + { + "Function Name": "test_override_with_sub_main_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 252, + "End Line": 257 + }, + { + "Function Name": "test_override_with_sub_decorator_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 296, + "End Line": 301 + }, + { + "Function Name": "test_override_with_sub_router_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 340, + "End Line": 345 + }, + { + "Function Name": "test_override_with_sub_router_decorator_depends_k_bar", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 384, + "End Line": 389 + }, + { + "Function Name": "test_decorator_depends_q_foo", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 108, - "End Line": 112 + "Start Line": 99, + "End Line": 102 }, { - "Function Name": "iter_data", + "Function Name": "test_decorator_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 108 + }, + { + "Function Name": "test_router_decorator_depends_q_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 159, + "End Line": 162 + }, + { + "Function Name": "test_router_decorator_depends_q_foo_skip_100_limit_200", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 165, + "End Line": 168 + }, + { + "Function Name": "decorator_depends", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "iter_data", + "Function Name": "router_decorator_depends", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 31 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 108, + "Function Parameters": 33, + "Function/Method Declarations": 33, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 62, + "Type/Safety Bypasses": 13, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 37, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 77, + "Asynchronous/Concurrent Execution": 8, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 6, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 264, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 35, + "Design Camel Case": 0, + "Design Snake Case": 34, + "Design Pascal Case": 1, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 29, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "pytest" + ] + }, + "python/fastapi/tests/test_dependency_paramless.py": { + "1. Artifact Identity": { + "Filename": "test_dependency_paramless.py", + "Path": "python/fastapi/tests/test_dependency_paramless.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1630.95, + "Y": -202.56, + "Z": -593.86 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 78, + "Coding LOC": 52, + "Documentation LOC": 4, + "Structural Magnitude": 30.24, + "Control Flow Ratio": "18.2%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.21 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.16%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "11.37%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ + { + "Function Name": "process_auth", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 15, + "End Line": 25 + }, + { + "Function Name": "test_parameterless_with_scopes", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 60, + "End Line": 65 + }, + { + "Function Name": "test_parameterless_without_scopes", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 68, + "End Line": 73 + }, + { + "Function Name": "get_credentials", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 67 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "iter_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 80 + "Start Line": 54, + "End Line": 57 }, { - "Function Name": "test_regular_no_stream", + "Function Name": "get_parameterless_with_scopes", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 90 + "Start Line": 39, + "End Line": 40 }, { - "Function Name": "test_stream_simple", + "Function Name": "get_parameterless_without_scopes", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 95 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_stream_session", + "Function Name": "test_call_get_parameterless_without_scopes_for_coverage", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 100 + "Start Line": 76, + "End Line": 77 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 11, - "Sequential Logic Declarations": 52, - "Function Parameters": 20, - "Function/Method Declarations": 20, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, - "Type/Safety Bypasses": 8, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 27, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 4, - "Exposed API / Public Exports": 24, - "State Mutations / Variable Reassignments": 2, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 11, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 17, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 11, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, - "Generic Type Abstractions": 10, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 2, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 49, + "Structural Space Indentations": 29, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -177899,17 +175860,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 10, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 14, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 2, + "Design Snake Case": 11, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 14, + "Duplicate Logic": 0, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -177933,25 +175894,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", - "contextlib", "fastapi", - "fastapi.responses", + "fastapi.security", "fastapi.testclient", - "pytest", "typing" ] }, - "python/fastapi/tests/test_dependency_after_yield_websockets.py": { + "python/fastapi/tests/test_dependency_partial.py": { "1. Artifact Identity": { - "Filename": "test_dependency_after_yield_websockets.py", - "Path": "python/fastapi/tests/test_dependency_after_yield_websockets.py", + "Filename": "test_dependency_partial.py", + "Path": "python/fastapi/tests/test_dependency_partial.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -177961,9 +175919,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3243.72, - "Y": -20.06, - "Z": -1184.39 + "X": 2193.01, + "Y": -110.7, + "Z": -382.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -177972,24 +175930,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 56, + "Total LOC": 252, + "Coding LOC": 198, "Documentation LOC": 0, - "Structural Magnitude": 46.32, - "Control Flow Ratio": "28.9%", + "Structural Magnitude": 120.56, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.661 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "20.58%", - "Error & Exception Exposure": "48.13%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.0%", - "Concurrency Exposure": "98.35%", + "API Exposure": "11.98%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -178000,121 +175958,281 @@ }, "5. Function Analysis": [ { - "Function Name": "__iter__", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 3, + "Function Name": "get_partial_async_callable_gen_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 15, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 138, + "End Line": 148 }, { - "Function Name": "test_websocket_dependency_after_yield_broken", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 76, - "End Line": 79 + "Function Name": "get_partial_synchronous_method_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 152, + "End Line": 162 }, { - "Function Name": "websocket_endpoint", - "Structural Impact": 3.7, + "Function Name": "get_partial_synchronous_method_gen_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 166, + "End Line": 177 + }, + { + "Function Name": "get_partial_asynchronous_method_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 181, + "End Line": 192 + }, + { + "Function Name": "get_partial_asynchronous_method_gen_dependency", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 196, + "End Line": 207 + }, + { + "Function Name": "get_partial_async_function_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 87 + }, + { + "Function Name": "get_partial_async_callable_dependency", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 126, + "End Line": 134 + }, + { + "Function Name": "test_dependency_types_with_partial", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 2, - "Control Flow Ratio": "25.0%", - "Start Line": 50, + "Control Flow Ratio": "0.0%", + "Start Line": 248, + "End Line": 251 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 30 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 35 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 40 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 45 + }, + { + "Function Name": "synchronous", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "asynchronous", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 52, "End Line": 53 }, { - "Function Name": "websocket_endpoint_broken", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "synchronous_gen", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 2, - "Control Flow Ratio": "25.0%", - "Start Line": 57, - "End Line": 60 + "Control Flow Ratio": "0.0%", + "Start Line": 55, + "End Line": 56 }, { - "Function Name": "acquire_session", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 24, - "End Line": 29 + "Function Name": "asynchronous_gen", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "test_websocket_dependency_after_yield", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 66, - "End Line": 73 + "Function Name": "get_partial_callable_gen_dependency", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 116, + "End Line": 122 }, { - "Function Name": "broken_dep_session", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 37, - "End Line": 40 + "Function Name": "get_partial_function_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 75 }, { - "Function Name": "dep_session", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 32, - "End Line": 34 + "Function Name": "get_partial_async_gen_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 103 }, { - "Function Name": "__init__", + "Function Name": "get_partial_callable_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 107, + "End Line": 112 + }, + { + "Function Name": "get_partial_gen_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 11, + "Start Line": 91, + "End Line": 94 + }, + { + "Function Name": "function_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 12, "End Line": 13 + }, + { + "Function Name": "async_function_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "gen_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "async_gen_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 13, - "Sequential Logic Declarations": 32, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 4, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 61, + "Function Parameters": 25, + "Function/Method Declarations": 25, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 4, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 2, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 38, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 34, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 13, + "Generic Type Abstractions": 25, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 4, "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -178122,7 +176240,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 13, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -178130,17 +176248,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 4, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 35, + "Structural Space Indentations": 137, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -178155,24 +176273,24 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 7, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 9, + "Lazy Evaluation & Generators (O(1) Memory)": 14, + "Vectorized Math & Tensor Operations": 13, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 2, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 13, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 2, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -178196,17 +176314,17 @@ }, "9. Extracted Dependencies": [ "collections.abc", - "contextlib", "fastapi", "fastapi.testclient", + "functools", "pytest", "typing" ] }, - "python/fastapi/tests/test_dependency_cache.py": { + "python/fastapi/tests/test_dependency_pep695.py": { "1. Artifact Identity": { - "Filename": "test_dependency_cache.py", - "Path": "python/fastapi/tests/test_dependency_cache.py", + "Filename": "test_dependency_pep695.py", + "Path": "python/fastapi/tests/test_dependency_pep695.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -178216,9 +176334,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4126.89, - "Y": 154.67, - "Z": -41.03 + "X": 4039.41, + "Y": 107.42, + "Z": -1968.79 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -178227,24 +176345,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 92, - "Coding LOC": 67, + "Total LOC": 28, + "Coding LOC": 18, "Documentation LOC": 0, - "Structural Magnitude": 37.44, + "Structural Magnitude": 10.56, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.444 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "11.38%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.95%", - "Concurrency Exposure": "96.7%", + "API Exposure": "9.56%", + "Concurrency Exposure": "86.77%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -178255,139 +176373,69 @@ }, "5. Function Analysis": [ { - "Function Name": "get_scope_counter", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 48 - }, - { - "Function Name": "get_sub_counter_no_cache", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 35 - }, - { - "Function Name": "get_sub_counter", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "test_pep695_type_dependencies", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, + "Start Line": 17, "End Line": 27 }, { - "Function Name": "super_dep", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, - { - "Function Name": "get_counter", + "Function Name": "get_with_dep", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "test_normal_counter", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 61 - }, - { - "Function Name": "test_sub_counter", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 71 - }, - { - "Function Name": "test_sub_counter_no_cache", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 81 - }, - { - "Function Name": "test_security_cache", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 91 + "Start Line": 21, + "End Line": 22 }, { - "Function Name": "dep_counter", + "Function Name": "some_value", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 11 + "Start Line": 8, + "End Line": 9 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 36, - "Function Parameters": 10, - "Function/Method Declarations": 10, + "Sequential Logic Declarations": 15, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 16, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 20, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 7, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -178405,7 +176453,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 45, + "Structural Space Indentations": 10, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -178422,15 +176470,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 19, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 19, - "Design Pascal Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -178454,20 +176502,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "typing", + "typing_extensions" ] }, - "python/fastapi/tests/test_dependency_class.py": { + "python/fastapi/tests/test_dependency_security_overrides.py": { "1. Artifact Identity": { - "Filename": "test_dependency_class.py", - "Path": "python/fastapi/tests/test_dependency_class.py", + "Filename": "test_dependency_security_overrides.py", + "Path": "python/fastapi/tests/test_dependency_security_overrides.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -178477,9 +176527,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2711.13, - "Y": -29.9, - "Z": -888.9 + "X": 2478.96, + "Y": -56.9, + "Z": 1467.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -178488,24 +176538,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 155, - "Coding LOC": 109, + "Total LOC": 64, + "Coding LOC": 44, "Documentation LOC": 0, - "Structural Magnitude": 102.68, + "Structural Magnitude": 21.28, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.045 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.82%", + "Error & Exception Exposure": "43.71%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.28%", - "Concurrency Exposure": "100.0%", + "API Exposure": "11.03%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -178516,249 +176566,119 @@ }, "5. Function Analysis": [ { - "Function Name": "get_callable_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 55 - }, - { - "Function Name": "get_callable_gen_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 - }, - { - "Function Name": "get_async_callable_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 69 - }, - { - "Function Name": "get_async_callable_gen_dependency_class", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 - }, - { - "Function Name": "test_class_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 151, - "End Line": 154 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 22 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 - }, - { - "Function Name": "synchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 - }, - { - "Function Name": "asynchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "synchronous_gen", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "read_user", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 + "Start Line": 25, + "End Line": 29 }, { - "Function Name": "asynchronous_gen", - "Structural Impact": 1.8, + "Function Name": "get_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 41 - }, - { - "Function Name": "get_async_callable_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 93 - }, - { - "Function Name": "get_async_callable_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 100 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "get_synchronous_method_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "get_user_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 104, - "End Line": 107 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "get_synchronous_method_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_normal", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 114 + "Start Line": 35, + "End Line": 41 }, { - "Function Name": "get_asynchronous_method_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_override_data", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 121 + "Start Line": 44, + "End Line": 52 }, { - "Function Name": "get_asynchronous_method_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_override_security", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 128 + "Start Line": 55, + "End Line": 63 }, { - "Function Name": "get_callable_dependency", - "Structural Impact": 1.5, + "Function Name": "get_data", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "get_callable_gen_dependency", - "Structural Impact": 1.5, + "Function Name": "get_data_override", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 20, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 65, - "Function Parameters": 21, - "Function/Method Declarations": 21, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 3, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 34, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 30, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 13, - "Generic Type Abstractions": 8, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 13, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -178772,11 +176692,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 5, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 56, + "Structural Space Indentations": 29, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -178791,17 +176711,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 10, - "Vectorized Math & Tensor Operations": 13, - "Core Var Decl": 20, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 4, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 3, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -178825,35 +176745,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", "fastapi", - "fastapi.testclient", - "pytest" + "fastapi.security", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_dependency_contextmanager.py": { + "python/fastapi/tests/test_dependency_wrapped.py": { "1. Artifact Identity": { - "Filename": "test_dependency_contextmanager.py", - "Path": "python/fastapi/tests/test_dependency_contextmanager.py", + "Filename": "test_dependency_wrapped.py", + "Path": "python/fastapi/tests/test_dependency_wrapped.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3162.1, - "Y": 31.41, - "Z": 387.65 + "X": 2559.82, + "Y": -64.83, + "Z": 212.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -178862,789 +176780,645 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 400, - "Coding LOC": 287, - "Documentation LOC": 1, - "Structural Magnitude": 222.24, - "Control Flow Ratio": "13.7%", + "Total LOC": 450, + "Coding LOC": 301, + "Documentation LOC": 2, + "Structural Magnitude": 295.42, + "Control Flow Ratio": "5.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.657 + "Raw Cognitive Density": 1.956 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "20.38%", - "Error & Exception Exposure": "1.02%", + "Cognitive Load Exposure": "49.6%", + "Error & Exception Exposure": "47.39%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.27%", - "Concurrency Exposure": "99.52%", + "API Exposure": "12.46%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "context_b", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "75.0%", - "Start Line": 81, - "End Line": 86 - }, - { - "Function Name": "asyncgen_state_try", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 51, - "End Line": 59 - }, - { - "Function Name": "generator_state_try", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 62, - "End Line": 70 - }, - { - "Function Name": "context_a", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "66.7%", - "Start Line": 73, - "End Line": 78 - }, - { - "Function Name": "test_context_b_raise", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 274, - "End Line": 278 - }, - { - "Function Name": "test_sync_context_b_raise", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 384, - "End Line": 388 - }, + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_background_tasks", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "9.1%", - "Start Line": 281, - "End Line": 293 + "Function Name": "noop_wrap_async", + "Structural Impact": 14.3, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "34.8%", + "Start Line": 25, + "End Line": 55 }, { - "Function Name": "test_sync_background_tasks", - "Structural Impact": 2.5, + "Function Name": "wrapper", + "Structural Impact": 9.1, "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "12.5%", - "Start Line": 391, - "End Line": 399 - }, - { - "Function Name": "test_context_b", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 265, - "End Line": 271 + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "30.8%", + "Start Line": 45, + "End Line": 53 }, { - "Function Name": "test_sync_context_b", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, + "Function Name": "gen_wrapper", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 375, - "End Line": 381 + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 29, + "End Line": 31 }, { - "Function Name": "test_async_raise_other", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, + "Function Name": "async_gen_wrapper", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 232, - "End Line": 237 + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 38, + "End Line": 40 }, { - "Function Name": "test_sync_raise_other", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 240, - "End Line": 245 + "Function Name": "wrapper", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "test_async_raise_raises", - "Structural Impact": 2.3, + "Function Name": "noop_wrap", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 248, - "End Line": 253 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 22 }, { - "Function Name": "test_sync_raise_raises", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 296, - "End Line": 301 + "Function Name": "get_async_wrapped_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 219, + "End Line": 222 }, { - "Function Name": "test_sync_async_raise_raises", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 341, - "End Line": 346 + "Function Name": "get_wrapped_class_instance_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 226, + "End Line": 229 }, { - "Function Name": "test_sync_sync_raise_raises", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 358, - "End Line": 363 + "Function Name": "get_wrapped_class_instance_async_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 233, + "End Line": 236 }, { - "Function Name": "get_sync_context_b_bg", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 10, + "Function Name": "get_wrapped_class_instance_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 203 + "Start Line": 240, + "End Line": 243 }, { - "Function Name": "test_sync_async_raise_other", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 327, - "End Line": 331 + "Function Name": "get_wrapped_class_instance_async_gen_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 247, + "End Line": 250 }, { - "Function Name": "test_sync_sync_raise_other", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 334, - "End Line": 338 + "Function Name": "get_class_instance_wrapped_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 257 }, { - "Function Name": "get_context_b_bg", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "get_class_instance_wrapped_async_dependency", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 136, - "End Line": 141 + "Start Line": 261, + "End Line": 264 }, { - "Function Name": "middleware", - "Structural Impact": 1.9, + "Function Name": "get_class_instance_async_wrapped_dependency", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 207, - "End Line": 210 + "Start Line": 268, + "End Line": 271 }, { - "Function Name": "asyncgen_state", + "Function Name": "get_class_instance_async_wrapped_async_dependency", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 275, + "End Line": 278 }, { - "Function Name": "generator_state", + "Function Name": "get_class_instance_wrapped_gen_dependency", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 48 + "Start Line": 282, + "End Line": 285 }, { - "Function Name": "get_async_raise", + "Function Name": "get_class_instance_wrapped_async_gen_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 100, - "End Line": 102 + "Start Line": 289, + "End Line": 292 }, { - "Function Name": "get_sync_raise", + "Function Name": "get_class_instance_async_wrapped_gen_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 108 + "Start Line": 296, + "End Line": 299 }, { - "Function Name": "get_async_raise_other", + "Function Name": "get_class_instance_async_wrapped_gen_async_dependency", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 114 + "Start Line": 303, + "End Line": 306 }, { - "Function Name": "get_sync_raise_other", + "Function Name": "get_wrapped_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 120 + "Start Line": 350, + "End Line": 353 }, { - "Function Name": "get_context_b_raise", + "Function Name": "get_wrapped_gen_dependency_async_wrapper", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 132 + "Start Line": 357, + "End Line": 360 }, { - "Function Name": "get_sync_async_raise", + "Function Name": "get_async_wrapped_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 160 + "Start Line": 364, + "End Line": 367 }, { - "Function Name": "get_sync_sync_raise", + "Function Name": "get_async_wrapped_gen_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 164, - "End Line": 166 + "Start Line": 371, + "End Line": 374 }, { - "Function Name": "get_sync_async_raise_other", + "Function Name": "get_wrapped_class_instance_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 170, - "End Line": 172 + "Start Line": 378, + "End Line": 381 }, { - "Function Name": "get_sync_sync_raise_other", + "Function Name": "get_wrapped_class_instance_async_dependency_async_wrapper", "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 176, - "End Line": 178 + "Start Line": 385, + "End Line": 388 }, { - "Function Name": "get_sync_context_b_raise", + "Function Name": "get_wrapped_class_dependency_async_wrapper", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 190 + "Start Line": 392, + "End Line": 395 }, { - "Function Name": "bg", + "Function Name": "test_class_dependency", "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 197, - "End Line": 200 + "Start Line": 446, + "End Line": 449 }, { - "Function Name": "get_async", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 91 + "Start Line": 59, + "End Line": 60 }, { - "Function Name": "get_sync", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 69, + "End Line": 70 }, { - "Function Name": "get_context_b", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 124, - "End Line": 125 + "Start Line": 79, + "End Line": 80 }, { - "Function Name": "bg", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 138 + "Start Line": 88, + "End Line": 89 }, { - "Function Name": "get_sync_async", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 148, - "End Line": 149 + "Start Line": 97, + "End Line": 98 }, { - "Function Name": "get_sync_sync", + "Function Name": "__call__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 153, - "End Line": 154 + "Start Line": 106, + "End Line": 107 }, { - "Function Name": "get_sync_context_b", + "Function Name": "__init__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 183 + "Start Line": 114, + "End Line": 115 }, { - "Function Name": "test_async_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 256, - "End Line": 262 + "Start Line": 123, + "End Line": 124 }, { - "Function Name": "test_sync_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 304, - "End Line": 310 + "Start Line": 135, + "End Line": 136 }, { - "Function Name": "test_sync_async_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 145, + "End Line": 146 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 154, + "End Line": 155 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 163, + "End Line": 164 + }, + { + "Function Name": "__call__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 172, + "End Line": 173 + }, + { + "Function Name": "get_wrapped_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 204, + "End Line": 205 + }, + { + "Function Name": "get_wrapped_gen_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 209, + "End Line": 210 + }, + { + "Function Name": "get_async_wrapped_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 214, + "End Line": 215 + }, + { + "Function Name": "get_wrapped_class_dependency", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 310, + "End Line": 311 + }, + { + "Function Name": "wrapped_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 349, - "End Line": 355 + "Start Line": 184, + "End Line": 185 }, { - "Function Name": "test_sync_sync_raise_server_error", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "wrapped_gen_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 366, - "End Line": 372 + "Start Line": 189, + "End Line": 190 }, { - "Function Name": "test_async_state", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "async_wrapped_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 216, - "End Line": 221 + "Start Line": 194, + "End Line": 195 }, { - "Function Name": "test_sync_state", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "async_wrapped_gen_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 224, - "End Line": 229 + "Start Line": 199, + "End Line": 200 }, { - "Function Name": "test_sync_async_state", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_wrapped_endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 313, + "Start Line": 316, "End Line": 317 }, { - "Function Name": "test_sync_sync_state", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_async_wrapped_endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 320, - "End Line": 324 + "Start Line": 322, + "End Line": 323 }, { - "Function Name": "get_state", + "Function Name": "wrapped_dependency_async_wrapper", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 25, - "Sequential Logic Declarations": 158, - "Function Parameters": 50, - "Function/Method Declarations": 50, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 93, - "Type/Safety Bypasses": 4, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 71, - "State Mutations / Variable Reassignments": 14, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 116, - "Asynchronous/Concurrent Execution": 28, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 19, - "Generic Type Abstractions": 4, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 25, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 40, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 206, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 6, - "Vectorized Math & Tensor Operations": 18, - "Core Var Decl": 46, - "Design Camel Case": 0, - "Design Snake Case": 45, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 40, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.responses", - "fastapi.testclient", - "json", - "pytest" - ] - }, - "python/fastapi/tests/test_dependency_contextvars.py": { - "1. Artifact Identity": { - "Filename": "test_dependency_contextvars.py", - "Path": "python/fastapi/tests/test_dependency_contextvars.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4695.34, - "Y": 189.13, - "Z": 749.29 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 53, - "Coding LOC": 31, - "Documentation LOC": 6, - "Structural Magnitude": 14.62, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.355 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.27%", - "Error & Exception Exposure": "46.07%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.98%", - "Concurrency Exposure": "92.02%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 330, + "End Line": 331 + }, { - "Function Name": "custom_middleware", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "wrapped_gen_dependency_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 28 + "Start Line": 335, + "End Line": 336 }, { - "Function Name": "test_dependency_contextvars", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 12, + "Function Name": "async_wrapped_dependency_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 52 + "Start Line": 340, + "End Line": 341 }, { - "Function Name": "set_up_request_state_dependency", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "async_wrapped_gen_dependency_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Start Line": 345, + "End Line": 346 }, { - "Function Name": "get_user", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_wrapped_endpoint_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 35 + "Start Line": 400, + "End Line": 401 + }, + { + "Function Name": "get_async_wrapped_endpoint_async_wrapper", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 406, + "End Line": 407 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 20, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, + "Control Flow Branches": 10, + "Sequential Logic Declarations": 171, + "Function Parameters": 56, + "Function/Method Declarations": 56, + "Class/Entity Declarations": 13, "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 84, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 4, - "Asynchronous/Concurrent Execution": 3, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 98, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 53, + "Generic Type Abstractions": 8, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 18, + "Module Dependencies (Imports)": 10, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 25, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 14, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 15, + "Structural Space Indentations": 154, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -179659,17 +177433,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 1, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 9, + "Lazy Evaluation & Generators (O(1) Memory)": 18, + "Vectorized Math & Tensor Operations": 42, + "Core Var Decl": 48, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 0, + "Design Snake Case": 46, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Design Long Vars": 16, + "Duplicate Logic": 12, + "Orphaned Logic": 30, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -179693,36 +177467,39 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 9, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "asyncio", "collections.abc", - "contextvars", "fastapi", + "fastapi.concurrency", "fastapi.testclient", - "typing" + "functools", + "inspect", + "pytest", + "sys" ] }, - "python/fastapi/tests/test_dependency_duplicates.py": { + "python/fastapi/tests/test_dependency_yield_except_httpexception.py": { "1. Artifact Identity": { - "Filename": "test_dependency_duplicates.py", - "Path": "python/fastapi/tests/test_dependency_duplicates.py", + "Filename": "test_dependency_yield_except_httpexception.py", + "Path": "python/fastapi/tests/test_dependency_yield_except_httpexception.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1999.7, - "Y": -150.68, - "Z": -506.81 + "X": 3075.13, + "Y": 2.33, + "Z": -1339.47 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -179731,24 +177508,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 238, - "Coding LOC": 211, + "Total LOC": 73, + "Coding LOC": 53, "Documentation LOC": 0, - "Structural Magnitude": 50.92, - "Control Flow Ratio": "10.5%", + "Structural Magnitude": 37.06, + "Control Flow Ratio": "22.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.112 + "Raw Cognitive Density": 0.717 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.61%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "23.35%", + "Error & Exception Exposure": "0.8%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.13%", - "Concurrency Exposure": "30.51%", + "API Exposure": "10.21%", + "Concurrency Exposure": "98.68%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -179759,149 +177536,99 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 10.7, - "Lines of Code (LOC)": 153, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "10.5%", - "Start Line": 85, - "End Line": 237 - }, - { - "Function Name": "test_sub_duplicates", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, + "Function Name": "get_database", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 3, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 76, - "End Line": 82 + "Control Flow Ratio": "75.0%", + "Start Line": 16, + "End Line": 25 }, { - "Function Name": "test_duplicates", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_dependency_gets_exception", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 70, - "End Line": 73 - }, - { - "Function Name": "sub_duplicate_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 - }, - { - "Function Name": "no_duplicates_sub", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 43 - }, - { - "Function Name": "with_duplicates", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 - }, - { - "Function Name": "no_duplicates", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Control Flow Ratio": "20.0%", + "Start Line": 53, + "End Line": 61 }, { - "Function Name": "test_no_duplicates_invalid", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, + "Function Name": "test_dependency_no_exception", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 58 + "Control Flow Ratio": "20.0%", + "Start Line": 64, + "End Line": 72 }, { - "Function Name": "duplicate_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "put_invalid_user", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 29, + "End Line": 33 }, { - "Function Name": "dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "put_user", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 37, + "End Line": 39 }, { - "Function Name": "test_no_duplicates", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "reset_state_and_db", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 67 + "Start Line": 43, + "End Line": 47 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 51, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 13, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 28, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 29, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 15, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 8, + "State Mutations / Variable Reassignments": 5, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 19, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 3, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 5, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -179909,7 +177636,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 2, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -179919,7 +177646,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 188, + "Structural Space Indentations": 34, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -179934,17 +177661,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Lazy Evaluation & Generators (O(1) Memory)": 1, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 13, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 3, + "Design Snake Case": 13, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -179968,7 +177695,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -179976,14 +177703,13 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pytest" ] }, - "python/fastapi/tests/test_dependency_overrides.py": { + "python/fastapi/tests/test_dependency_yield_scope.py": { "1. Artifact Identity": { - "Filename": "test_dependency_overrides.py", - "Path": "python/fastapi/tests/test_dependency_overrides.py", + "Filename": "test_dependency_yield_scope.py", + "Path": "python/fastapi/tests/test_dependency_yield_scope.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -179993,9 +177719,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3486.34, - "Y": 41.3, - "Z": 357.88 + "X": 2385.38, + "Y": -110.45, + "Z": 688.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -180004,24 +177730,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 390, - "Coding LOC": 310, + "Total LOC": 246, + "Coding LOC": 171, "Documentation LOC": 0, - "Structural Magnitude": 101.7, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 104.62, + "Control Flow Ratio": "6.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.119 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "7.45%", + "Cognitive Load Exposure": "3.71%", + "Error & Exception Exposure": "23.23%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.19%", - "Concurrency Exposure": "51.76%", + "API Exposure": "13.22%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -180032,369 +177758,379 @@ }, "5. Function Analysis": [ { - "Function Name": "test_override_simple", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 208, - "End Line": 213 + "Function Name": "test_broken_scope", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 182, + "End Line": 190 }, { - "Function Name": "common_parameters", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Function Name": "test_app_level_dep_scope_function", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "14.3%", + "Start Line": 222, + "End Line": 232 }, { - "Function Name": "test_override_with_sub_main_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, + "Function Name": "test_app_level_dep_scope_request", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 216, - "End Line": 231 + "Control Flow Ratio": "14.3%", + "Start Line": 235, + "End Line": 245 }, { - "Function Name": "test_override_with_sub__main_depends_q_foo", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "get_stream_session", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 234, - "End Line": 249 + "Start Line": 96, + "End Line": 104 }, { - "Function Name": "test_override_with_sub_decorator_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, + "Function Name": "test_router_level_dep_scope_request", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 260, - "End Line": 275 + "Control Flow Ratio": "20.0%", + "Start Line": 215, + "End Line": 219 }, { - "Function Name": "test_override_with_sub_decorator_depends_q_foo", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "get_named_session", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 278, - "End Line": 293 + "Start Line": 38, + "End Line": 42 }, { - "Function Name": "test_override_with_sub_router_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Function Name": "__init__", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 304, - "End Line": 319 + "Start Line": 33, + "End Line": 35 }, { - "Function Name": "test_override_with_sub_router_depends_q_foo", + "Function Name": "get_sub", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 322, - "End Line": 337 + "Start Line": 108, + "End Line": 114 }, { - "Function Name": "test_override_with_sub_router_decorator_depends", + "Function Name": "get_named_function_scope", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 348, - "End Line": 363 + "Start Line": 118, + "End Line": 124 }, { - "Function Name": "test_override_with_sub_router_decorator_depends_q_foo", + "Function Name": "get_regular_function_scope", "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 366, - "End Line": 381 + "Start Line": 128, + "End Line": 134 }, { - "Function Name": "test_main_depends", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "function_scope", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 63 + "Start Line": 80, + "End Line": 84 }, { - "Function Name": "test_decorator_depends", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "request_scope", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 96 + "Start Line": 88, + "End Line": 92 }, { - "Function Name": "test_router_depends", + "Function Name": "get_named_func_session", "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 123 + "Start Line": 48, + "End Line": 51 }, { - "Function Name": "test_router_decorator_depends", + "Function Name": "get_named_regular_func_session", "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 144, - "End Line": 156 + "Start Line": 54, + "End Line": 56 }, { - "Function Name": "main_depends", + "Function Name": "__init__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "router_depends", + "Function Name": "get_broken", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 189, + "End Line": 190 }, { - "Function Name": "overrider_dependency_simple", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_two_scopes", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 166, + "End Line": 171 }, { - "Function Name": "overrider_sub_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_sub", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 + "Start Line": 174, + "End Line": 179 }, { - "Function Name": "overrider_dependency_with_sub", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_named_function_scope", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 193, + "End Line": 198 }, { - "Function Name": "test_main_depends_q_foo", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_regular_function_scope", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 72 + "Start Line": 201, + "End Line": 206 }, { - "Function Name": "test_main_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "dep_session", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 81 + "Start Line": 16, + "End Line": 19 }, { - "Function Name": "test_router_depends_q_foo", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 132 + "Start Line": 99, + "End Line": 102 }, { - "Function Name": "test_router_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 141 + "Start Line": 109, + "End Line": 112 }, { - "Function Name": "test_override_with_sub_main_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 252, - "End Line": 257 + "Start Line": 119, + "End Line": 122 }, { - "Function Name": "test_override_with_sub_decorator_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "iter_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 296, - "End Line": 301 + "Start Line": 129, + "End Line": 132 }, { - "Function Name": "test_override_with_sub_router_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_function_scope", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 340, - "End Line": 345 + "Start Line": 152, + "End Line": 156 }, { - "Function Name": "test_override_with_sub_router_decorator_depends_k_bar", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_request_scope", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 384, - "End Line": 389 + "Start Line": 159, + "End Line": 163 }, { - "Function Name": "test_decorator_depends_q_foo", + "Function Name": "test_router_level_dep_scope_function", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 102 + "Start Line": 209, + "End Line": 212 }, { - "Function Name": "test_decorator_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "raise_after_yield", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 108 + "Start Line": 22, + "End Line": 24 }, { - "Function Name": "test_router_decorator_depends_q_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_index", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 159, - "End Line": 162 + "Start Line": 75, + "End Line": 76 }, { - "Function Name": "test_router_decorator_depends_q_foo_skip_100_limit_200", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "iter_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 165, - "End Line": 168 + "Start Line": 81, + "End Line": 82 }, { - "Function Name": "decorator_depends", + "Function Name": "iter_data", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 89, + "End Line": 90 }, { - "Function Name": "router_decorator_depends", + "Function Name": "get_app_scope_function", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 226, + "End Line": 227 + }, + { + "Function Name": "get_app_scope_request", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 239, + "End Line": 240 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 108, - "Function Parameters": 33, - "Function/Method Declarations": 33, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 62, - "Type/Safety Bypasses": 13, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 87, + "Function Parameters": 34, + "Function/Method Declarations": 34, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 25, + "Type/Safety Bypasses": 14, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 37, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 15, + "Exposed API / Public Exports": 44, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 77, - "Asynchronous/Concurrent Execution": 8, + "Unit Test Assertions": 38, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 10, + "Generic Type Abstractions": 29, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 6, + "Dependency Injection Constructs": 12, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -180402,17 +178138,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 264, + "Structural Space Indentations": 114, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -180427,17 +178163,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 35, + "Lazy Evaluation & Generators (O(1) Memory)": 13, + "Vectorized Math & Tensor Operations": 8, + "Core Var Decl": 43, "Design Camel Case": 0, - "Design Snake Case": 34, - "Design Pascal Case": 1, + "Design Snake Case": 36, + "Design Pascal Case": 7, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 29, + "Duplicate Logic": 5, + "Orphaned Logic": 21, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -180461,21 +178197,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "pytest" + "json", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_dependency_paramless.py": { + "python/fastapi/tests/test_dependency_yield_scope_websockets.py": { "1. Artifact Identity": { - "Filename": "test_dependency_paramless.py", - "Path": "python/fastapi/tests/test_dependency_paramless.py", + "Filename": "test_dependency_yield_scope_websockets.py", + "Path": "python/fastapi/tests/test_dependency_yield_scope_websockets.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -180485,9 +178225,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1630.95, - "Y": -202.56, - "Z": -593.86 + "X": 2042.83, + "Y": -116.99, + "Z": 191.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -180496,24 +178236,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 78, - "Coding LOC": 52, - "Documentation LOC": 4, - "Structural Magnitude": 30.24, - "Control Flow Ratio": "18.2%", + "Total LOC": 201, + "Coding LOC": 149, + "Documentation LOC": 0, + "Structural Magnitude": 89.58, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.21 + "Raw Cognitive Density": 0.702 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.16%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "22.61%", + "Error & Exception Exposure": "35.27%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.37%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.43%", + "Concurrency Exposure": "99.94%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -180524,137 +178264,257 @@ }, "5. Function Analysis": [ { - "Function Name": "process_auth", - "Structural Impact": 7.5, + "Function Name": "test_broken_scope", + "Structural Impact": 4.5, "Lines of Code (LOC)": 11, "Control Flow Branches": 3, - "Input Parameters": 2, - "Control Flow Ratio": "60.0%", - "Start Line": 15, - "End Line": 25 + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 169, + "End Line": 179 }, { - "Function Name": "test_parameterless_with_scopes", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_stream_session", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 88, + "End Line": 96 + }, + { + "Function Name": "test_sub", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 60, - "End Line": 65 + "Control Flow Ratio": "14.3%", + "Start Line": 158, + "End Line": 166 }, { - "Function Name": "test_parameterless_without_scopes", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_named_function_scope", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 68, - "End Line": 73 + "Control Flow Ratio": "14.3%", + "Start Line": 182, + "End Line": 190 }, { - "Function Name": "get_credentials", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_function_scope", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 130, + "End Line": 136 + }, + { + "Function Name": "test_request_scope", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 139, + "End Line": 145 + }, + { + "Function Name": "test_two_scopes", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 148, + "End Line": 155 + }, + { + "Function Name": "test_regular_function_scope", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 193, + "End Line": 200 + }, + { + "Function Name": "get_named_session", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 36, + "End Line": 42 }, { - "Function Name": "test_get_credentials", - "Structural Impact": 1.2, + "Function Name": "get_named_function_scope", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 108, + "End Line": 114 + }, + { + "Function Name": "get_regular_function_scope", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 118, + "End Line": 124 + }, + { + "Function Name": "get_sub", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 100, + "End Line": 104 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 33 + }, + { + "Function Name": "function_scope", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 78 + }, + { + "Function Name": "request_scope", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 82, + "End Line": 84 + }, + { + "Function Name": "get_broken", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 176, + "End Line": 179 }, { - "Function Name": "get_parameterless_with_scopes", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_named_func_session", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 + "Start Line": 48, + "End Line": 53 }, { - "Function Name": "get_parameterless_without_scopes", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_named_regular_func_session", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 56, + "End Line": 58 }, { - "Function Name": "test_call_get_parameterless_without_scopes_for_coverage", - "Structural Impact": 1.1, + "Function Name": "__init__", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "dep_session", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 77 + "Start Line": 17, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 27, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 9, + "Sequential Logic Declarations": 72, + "Function Parameters": 20, + "Function/Method Declarations": 20, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 19, + "Type/Safety Bypasses": 15, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, - "State Mutations / Variable Reassignments": 0, + "I/O and Network Boundaries": 15, + "Exposed API / Public Exports": 20, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 28, + "Asynchronous/Concurrent Execution": 20, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 7, + "Generic Type Abstractions": 25, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 8, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Explicit Type Casts": 6, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 29, + "Structural Space Indentations": 102, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -180669,24 +178529,24 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 31, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 0, + "Design Snake Case": 24, + "Design Pascal Case": 7, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 7, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -180703,22 +178563,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "contextvars", "fastapi", - "fastapi.security", + "fastapi.exceptions", "fastapi.testclient", + "pytest", "typing" ] }, - "python/fastapi/tests/test_dependency_partial.py": { + "python/fastapi/tests/test_depends_hashable.py": { "1. Artifact Identity": { - "Filename": "test_dependency_partial.py", - "Path": "python/fastapi/tests/test_dependency_partial.py", + "Filename": "test_depends_hashable.py", + "Path": "python/fastapi/tests/test_depends_hashable.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -180728,9 +178590,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2193.01, - "Y": -110.7, - "Z": -382.62 + "X": 5147.06, + "Y": 266.18, + "Z": 30.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -180739,24 +178601,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 252, - "Coding LOC": 198, - "Documentation LOC": 0, - "Structural Magnitude": 120.56, + "Total LOC": 26, + "Coding LOC": 15, + "Documentation LOC": 3, + "Structural Magnitude": 5.1, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.133 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "3.91%", + "Error & Exception Exposure": "27.01%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.98%", - "Concurrency Exposure": "100.0%", + "API Exposure": "6.67%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -180767,289 +178629,59 @@ }, "5. Function Analysis": [ { - "Function Name": "get_partial_async_callable_gen_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 138, - "End Line": 148 - }, - { - "Function Name": "get_partial_synchronous_method_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 152, - "End Line": 162 - }, - { - "Function Name": "get_partial_synchronous_method_gen_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 166, - "End Line": 177 - }, - { - "Function Name": "get_partial_asynchronous_method_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 181, - "End Line": 192 - }, - { - "Function Name": "get_partial_asynchronous_method_gen_dependency", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 196, - "End Line": 207 - }, - { - "Function Name": "get_partial_async_function_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 87 - }, - { - "Function Name": "get_partial_async_callable_dependency", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 134 - }, - { - "Function Name": "test_dependency_types_with_partial", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 248, - "End Line": 251 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 45 - }, - { - "Function Name": "synchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "asynchronous", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 53 - }, - { - "Function Name": "synchronous_gen", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 - }, - { - "Function Name": "asynchronous_gen", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 - }, - { - "Function Name": "get_partial_callable_gen_dependency", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 122 - }, - { - "Function Name": "get_partial_function_dependency", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 75 - }, - { - "Function Name": "get_partial_async_gen_dependency", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 103 - }, - { - "Function Name": "get_partial_callable_dependency", + "Function Name": "test_depends_hashable", "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 107, - "End Line": 112 - }, - { - "Function Name": "get_partial_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 94 - }, - { - "Function Name": "function_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "async_function_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "gen_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "End Line": 25 }, { - "Function Name": "async_gen_dependency", - "Structural Impact": 1.5, + "Function Name": "dep", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 8, + "End Line": 9 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 61, - "Function Parameters": 25, - "Function/Method Declarations": 25, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 9, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 38, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 34, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 13, - "Generic Type Abstractions": 25, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 1, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 13, + "Dependency Injection Constructs": 5, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -181063,11 +178695,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 4, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 137, + "Structural Space Indentations": 12, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -181082,17 +178714,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 14, - "Vectorized Math & Tensor Operations": 13, - "Core Var Decl": 8, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 2, + "Design Short Vars": 6, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -181116,24 +178748,19 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 1, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", - "fastapi", - "fastapi.testclient", - "functools", - "pytest", - "typing" + "fastapi" ] }, - "python/fastapi/tests/test_dependency_pep695.py": { + "python/fastapi/tests/test_deprecated_openapi_prefix.py": { "1. Artifact Identity": { - "Filename": "test_dependency_pep695.py", - "Path": "python/fastapi/tests/test_dependency_pep695.py", + "Filename": "test_deprecated_openapi_prefix.py", + "Path": "python/fastapi/tests/test_deprecated_openapi_prefix.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -181143,9 +178770,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4039.41, - "Y": 107.42, - "Z": -1968.79 + "X": 2926.6, + "Y": -83.22, + "Z": -2013.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -181154,24 +178781,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 28, - "Coding LOC": 18, + "Total LOC": 46, + "Coding LOC": 36, "Documentation LOC": 0, - "Structural Magnitude": 10.56, + "Structural Magnitude": 9.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.444 + "Raw Cognitive Density": 0.056 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "11.38%", + "Cognitive Load Exposure": "2.93%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.56%", - "Concurrency Exposure": "86.77%", + "API Exposure": "8.36%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -181182,44 +178809,44 @@ }, "5. Function Analysis": [ { - "Function Name": "test_pep695_type_dependencies", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Function Name": "test_openapi", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 27 + "Start Line": 22, + "End Line": 45 }, { - "Function Name": "get_with_dep", + "Function Name": "read_main", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 22 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "some_value", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_main", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 16, + "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 15, + "Sequential Logic Declarations": 14, "Function Parameters": 3, "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -181227,24 +178854,24 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -181262,7 +178889,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, + "Structural Space Indentations": 27, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -181279,15 +178906,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Core Var Decl": 4, "Design Camel Case": 0, "Design Snake Case": 4, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -181311,7 +178938,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -181319,26 +178946,26 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "typing", - "typing_extensions" + "inline_snapshot" ] }, - "python/fastapi/tests/test_dependency_security_overrides.py": { + "python/fastapi/tests/test_deprecated_responses.py": { "1. Artifact Identity": { - "Filename": "test_dependency_security_overrides.py", - "Path": "python/fastapi/tests/test_dependency_security_overrides.py", + "Filename": "test_deprecated_responses.py", + "Path": "python/fastapi/tests/test_deprecated_responses.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2478.96, - "Y": -56.9, - "Z": 1467.73 + "X": 3934.72, + "Y": 124.85, + "Z": -989.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -181347,23 +178974,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 44, - "Documentation LOC": 0, - "Structural Magnitude": 21.28, - "Control Flow Ratio": "0.0%", + "Total LOC": 74, + "Coding LOC": 48, + "Documentation LOC": 2, + "Structural Magnitude": 28.16, + "Control Flow Ratio": "21.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.045 + "Raw Cognitive Density": 0.208 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.82%", - "Error & Exception Exposure": "43.71%", + "Cognitive Load Exposure": "5.14%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.03%", + "API Exposure": "7.38%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -181375,119 +179002,119 @@ }, "5. Function Analysis": [ { - "Function Name": "read_user", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Function Name": "test_orjson_response_emits_deprecation_warning", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 41, + "End Line": 43 }, { - "Function Name": "get_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Function Name": "test_ujson_response_emits_deprecation_warning", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 71, + "End Line": 73 }, { - "Function Name": "get_user_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Function Name": "_make_orjson_app", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 19, + "End Line": 28 }, { - "Function Name": "test_normal", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Function Name": "_make_ujson_app", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 41 + "Control Flow Ratio": "20.0%", + "Start Line": 49, + "End Line": 58 }, { - "Function Name": "test_override_data", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, + "Function Name": "test_orjson_response_returns_correct_data", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 52 + "Control Flow Ratio": "25.0%", + "Start Line": 31, + "End Line": 38 }, { - "Function Name": "test_override_security", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, + "Function Name": "test_ujson_response_returns_correct_data", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 63 + "Control Flow Ratio": "25.0%", + "Start Line": 61, + "End Line": 68 }, { - "Function Name": "get_data", + "Function Name": "get_items", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "get_data_override", + "Function Name": "get_items", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 55, + "End Line": 56 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 29, "Function Parameters": 8, "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 2, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 11, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -181501,11 +179128,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 4, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 29, + "Structural Space Indentations": 34, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -181521,15 +179148,15 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, + "Duplicate Logic": 2, "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, @@ -181554,33 +179181,38 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient" + "fastapi.exceptions", + "fastapi.responses", + "fastapi.testclient", + "pydantic", + "pytest", + "warnings" ] }, - "python/fastapi/tests/test_dependency_wrapped.py": { + "python/fastapi/tests/test_dump_json_fast_path.py": { "1. Artifact Identity": { - "Filename": "test_dependency_wrapped.py", - "Path": "python/fastapi/tests/test_dependency_wrapped.py", + "Filename": "test_dump_json_fast_path.py", + "Path": "python/fastapi/tests/test_dump_json_fast_path.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2559.82, - "Y": -64.83, - "Z": 212.84 + "X": 872.11, + "Y": -318.49, + "Z": -253.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -181589,24 +179221,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 450, - "Coding LOC": 301, - "Documentation LOC": 2, - "Structural Magnitude": 295.42, - "Control Flow Ratio": "5.5%", + "Total LOC": 52, + "Coding LOC": 32, + "Documentation LOC": 4, + "Structural Magnitude": 14.84, + "Control Flow Ratio": "8.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.956 + "Raw Cognitive Density": 0.438 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "49.6%", - "Error & Exception Exposure": "47.39%", + "Cognitive Load Exposure": "5.57%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.46%", - "Concurrency Exposure": "100.0%", + "API Exposure": "8.15%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -181617,599 +179249,79 @@ }, "5. Function Analysis": [ { - "Function Name": "noop_wrap_async", - "Structural Impact": 14.3, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 8, - "Input Parameters": 1, - "Control Flow Ratio": "34.8%", - "Start Line": 25, - "End Line": 55 - }, - { - "Function Name": "wrapper", - "Structural Impact": 9.1, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 4, - "Input Parameters": 2, - "Control Flow Ratio": "30.8%", - "Start Line": 45, - "End Line": 53 - }, - { - "Function Name": "gen_wrapper", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 29, - "End Line": 31 - }, - { - "Function Name": "async_gen_wrapper", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_default_response_class_skips_json_dumps", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "50.0%", - "Start Line": 38, - "End Line": 40 - }, - { - "Function Name": "wrapper", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "noop_wrap", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 22 - }, - { - "Function Name": "get_async_wrapped_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 219, - "End Line": 222 - }, - { - "Function Name": "get_wrapped_class_instance_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 226, - "End Line": 229 - }, - { - "Function Name": "get_wrapped_class_instance_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 233, - "End Line": 236 - }, - { - "Function Name": "get_wrapped_class_instance_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 240, - "End Line": 243 - }, - { - "Function Name": "get_wrapped_class_instance_async_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 247, - "End Line": 250 - }, - { - "Function Name": "get_class_instance_wrapped_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 257 - }, - { - "Function Name": "get_class_instance_wrapped_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 261, - "End Line": 264 - }, - { - "Function Name": "get_class_instance_async_wrapped_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 268, - "End Line": 271 - }, - { - "Function Name": "get_class_instance_async_wrapped_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 275, - "End Line": 278 - }, - { - "Function Name": "get_class_instance_wrapped_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 282, - "End Line": 285 - }, - { - "Function Name": "get_class_instance_wrapped_async_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 289, - "End Line": 292 - }, - { - "Function Name": "get_class_instance_async_wrapped_gen_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 296, - "End Line": 299 - }, - { - "Function Name": "get_class_instance_async_wrapped_gen_async_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 303, - "End Line": 306 - }, - { - "Function Name": "get_wrapped_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 350, - "End Line": 353 - }, - { - "Function Name": "get_wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 357, - "End Line": 360 - }, - { - "Function Name": "get_async_wrapped_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 364, - "End Line": 367 - }, - { - "Function Name": "get_async_wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 371, - "End Line": 374 - }, - { - "Function Name": "get_wrapped_class_instance_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 378, - "End Line": 381 - }, - { - "Function Name": "get_wrapped_class_instance_async_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 385, - "End Line": 388 - }, - { - "Function Name": "get_wrapped_class_dependency_async_wrapper", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 392, - "End Line": 395 - }, - { - "Function Name": "test_class_dependency", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 446, - "End Line": 449 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 70 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 80 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 89 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 98 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 107 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 114, - "End Line": 115 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 123, - "End Line": 124 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 136 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 145, - "End Line": 146 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 154, - "End Line": 155 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 163, - "End Line": 164 - }, - { - "Function Name": "__call__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 172, - "End Line": 173 - }, - { - "Function Name": "get_wrapped_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 204, - "End Line": 205 - }, - { - "Function Name": "get_wrapped_gen_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 210 - }, - { - "Function Name": "get_async_wrapped_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 214, - "End Line": 215 - }, - { - "Function Name": "get_wrapped_class_dependency", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 310, - "End Line": 311 - }, - { - "Function Name": "wrapped_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 184, - "End Line": 185 - }, - { - "Function Name": "wrapped_gen_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 189, - "End Line": 190 - }, - { - "Function Name": "async_wrapped_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 195 - }, - { - "Function Name": "async_wrapped_gen_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 199, - "End Line": 200 - }, - { - "Function Name": "get_wrapped_endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 316, - "End Line": 317 - }, - { - "Function Name": "get_async_wrapped_endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 322, - "End Line": 323 - }, - { - "Function Name": "wrapped_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 330, - "End Line": 331 - }, - { - "Function Name": "wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 335, - "End Line": 336 - }, - { - "Function Name": "async_wrapped_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 340, - "End Line": 341 + "Control Flow Ratio": "20.0%", + "Start Line": 30, + "End Line": 39 }, { - "Function Name": "async_wrapped_gen_dependency_async_wrapper", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_explicit_response_class_uses_json_dumps", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 345, - "End Line": 346 + "Control Flow Ratio": "20.0%", + "Start Line": 42, + "End Line": 51 }, { - "Function Name": "get_wrapped_endpoint_async_wrapper", + "Function Name": "get_default", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 400, - "End Line": 401 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "get_async_wrapped_endpoint_async_wrapper", + "Function Name": "get_explicit", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 406, - "End Line": 407 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 10, - "Sequential Logic Declarations": 171, - "Function Parameters": 56, - "Function/Method Declarations": 56, - "Class/Entity Declarations": 13, - "Defensive Programming Constructs": 3, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 23, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 84, - "State Mutations / Variable Reassignments": 1, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 98, + "Structured Documentation Blocks": 4, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 53, - "Generic Type Abstractions": 8, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 18, - "Module Dependencies (Imports)": 10, + "Metaprogramming & Reflection": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 25, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -182223,11 +179335,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 14, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 154, + "Structural Space Indentations": 18, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -182242,17 +179354,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 18, - "Vectorized Math & Tensor Operations": 42, - "Core Var Decl": 48, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 46, - "Design Pascal Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 16, - "Duplicate Logic": 12, - "Orphaned Logic": 30, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -182276,39 +179388,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 9, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "asyncio", - "collections.abc", "fastapi", - "fastapi.concurrency", + "fastapi.responses", "fastapi.testclient", - "functools", - "inspect", - "pytest", - "sys" + "json", + "pydantic", + "unittest.mock" ] }, - "python/fastapi/tests/test_dependency_yield_except_httpexception.py": { + "python/fastapi/tests/test_duplicate_models_openapi.py": { "1. Artifact Identity": { - "Filename": "test_dependency_yield_except_httpexception.py", - "Path": "python/fastapi/tests/test_dependency_yield_except_httpexception.py", + "Filename": "test_duplicate_models_openapi.py", + "Path": "python/fastapi/tests/test_duplicate_models_openapi.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3075.13, - "Y": 2.33, - "Z": -1339.47 + "X": 1582.8, + "Y": -176.55, + "Z": -1673.71 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -182317,24 +179427,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 73, - "Coding LOC": 53, + "Total LOC": 85, + "Coding LOC": 69, "Documentation LOC": 0, - "Structural Magnitude": 37.06, - "Control Flow Ratio": "22.2%", + "Structural Magnitude": 13.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.717 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "23.35%", - "Error & Exception Exposure": "0.8%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "28.77%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.21%", - "Concurrency Exposure": "98.68%", + "API Exposure": "8.74%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -182345,99 +179455,69 @@ }, "5. Function Analysis": [ { - "Function Name": "get_database", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "75.0%", - "Start Line": 16, - "End Line": 25 - }, - { - "Function Name": "test_dependency_gets_exception", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 53, - "End Line": 61 - }, - { - "Function Name": "test_dependency_no_exception", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 64, - "End Line": 72 - }, - { - "Function Name": "put_invalid_user", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 49, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 33 + "Start Line": 36, + "End Line": 84 }, { - "Function Name": "put_user", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_get_api_route", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 39 + "Start Line": 30, + "End Line": 33 }, { - "Function Name": "reset_state_and_db", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "f", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 47 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 28, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 29, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 23, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 5, + "Exposed API / Public Exports": 6, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 19, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -182445,7 +179525,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 2, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -182455,7 +179535,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 34, + "Structural Space Indentations": 56, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -182470,17 +179550,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 1, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 13, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 13, + "Design Snake Case": 5, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -182504,7 +179584,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -182512,13 +179592,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pytest" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_dependency_yield_scope.py": { + "python/fastapi/tests/test_empty_router.py": { "1. Artifact Identity": { - "Filename": "test_dependency_yield_scope.py", - "Path": "python/fastapi/tests/test_dependency_yield_scope.py", + "Filename": "test_empty_router.py", + "Path": "python/fastapi/tests/test_empty_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -182528,9 +179609,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2385.38, - "Y": -110.45, - "Z": 688.36 + "X": 1186.9, + "Y": -295.59, + "Z": -1405.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -182539,26 +179620,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 246, - "Coding LOC": 171, - "Documentation LOC": 0, - "Structural Magnitude": 104.62, - "Control Flow Ratio": "6.5%", + "Total LOC": 37, + "Coding LOC": 22, + "Documentation LOC": 1, + "Structural Magnitude": 10.24, + "Control Flow Ratio": "11.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.119 + "Raw Cognitive Density": 0.182 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.71%", - "Error & Exception Exposure": "23.23%", + "Cognitive Load Exposure": "4.67%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.22%", + "API Exposure": "8.85%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Commented Logic Exposure": "23.15%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -182567,379 +179648,69 @@ }, "5. Function Analysis": [ { - "Function Name": "test_broken_scope", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 182, - "End Line": 190 - }, - { - "Function Name": "test_app_level_dep_scope_function", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 222, - "End Line": 232 - }, - { - "Function Name": "test_app_level_dep_scope_request", + "Function Name": "test_use_empty", "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 235, - "End Line": 245 - }, - { - "Function Name": "get_stream_session", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 104 + "Control Flow Ratio": "16.7%", + "Start Line": 22, + "End Line": 30 }, { - "Function Name": "test_router_level_dep_scope_request", + "Function Name": "test_include_empty", "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 215, - "End Line": 219 - }, - { - "Function Name": "get_named_session", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 42 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "50.0%", "Start Line": 33, - "End Line": 35 - }, - { - "Function Name": "get_sub", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 108, - "End Line": 114 - }, - { - "Function Name": "get_named_function_scope", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 124 - }, - { - "Function Name": "get_regular_function_scope", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 134 - }, - { - "Function Name": "function_scope", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 84 - }, - { - "Function Name": "request_scope", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 92 - }, - { - "Function Name": "get_named_func_session", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 - }, - { - "Function Name": "get_named_regular_func_session", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 56 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "get_broken", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 189, - "End Line": 190 - }, - { - "Function Name": "test_two_scopes", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 166, - "End Line": 171 - }, - { - "Function Name": "test_sub", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 174, - "End Line": 179 - }, - { - "Function Name": "test_named_function_scope", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 193, - "End Line": 198 - }, - { - "Function Name": "test_regular_function_scope", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 201, - "End Line": 206 - }, - { - "Function Name": "dep_session", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 102 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 109, - "End Line": 112 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 119, - "End Line": 122 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 132 - }, - { - "Function Name": "test_function_scope", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 152, - "End Line": 156 - }, - { - "Function Name": "test_request_scope", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 159, - "End Line": 163 - }, - { - "Function Name": "test_router_level_dep_scope_function", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 212 - }, - { - "Function Name": "raise_after_yield", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 24 - }, - { - "Function Name": "get_index", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 82 - }, - { - "Function Name": "iter_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 90 - }, - { - "Function Name": "get_app_scope_function", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 226, - "End Line": 227 + "End Line": 36 }, { - "Function Name": "get_app_scope_request", + "Function Name": "get_empty", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 239, - "End Line": 240 + "Start Line": 12, + "End Line": 13 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 87, - "Function Parameters": 34, - "Function/Method Declarations": 34, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 25, - "Type/Safety Bypasses": 14, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 15, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 15, - "Exposed API / Public Exports": 44, - "State Mutations / Variable Reassignments": 3, - "Commented-out Code (Dead Logic)": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 1, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 38, + "Unit Test Assertions": 8, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 10, - "Generic Type Abstractions": 29, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 12, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -182947,17 +179718,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 114, + "Structural Space Indentations": 10, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -182972,17 +179743,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 13, - "Vectorized Math & Tensor Operations": 8, - "Core Var Decl": 43, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 36, - "Design Pascal Case": 7, + "Design Snake Case": 6, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 5, - "Orphaned Logic": 21, + "Duplicate Logic": 0, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183006,7 +179777,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -183014,17 +179785,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.exceptions", - "fastapi.responses", "fastapi.testclient", - "json", - "pytest", - "typing" + "pytest" ] }, - "python/fastapi/tests/test_dependency_yield_scope_websockets.py": { + "python/fastapi/tests/test_enforce_once_required_parameter.py": { "1. Artifact Identity": { - "Filename": "test_dependency_yield_scope_websockets.py", - "Path": "python/fastapi/tests/test_dependency_yield_scope_websockets.py", + "Filename": "test_enforce_once_required_parameter.py", + "Path": "python/fastapi/tests/test_enforce_once_required_parameter.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -183034,9 +179802,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2042.83, - "Y": -116.99, - "Z": 191.96 + "X": 3481.17, + "Y": 7.27, + "Z": -1666.07 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183045,24 +179813,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 201, - "Coding LOC": 149, + "Total LOC": 116, + "Coding LOC": 100, "Documentation LOC": 0, - "Structural Magnitude": 89.58, - "Control Flow Ratio": "11.1%", + "Structural Magnitude": 20.6, + "Control Flow Ratio": "2.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.702 + "Raw Cognitive Density": 0.043 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "22.61%", - "Error & Exception Exposure": "35.27%", + "Cognitive Load Exposure": "2.79%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.43%", - "Concurrency Exposure": "99.94%", + "API Exposure": "3.42%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -183073,257 +179841,117 @@ }, "5. Function Analysis": [ { - "Function Name": "test_broken_scope", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 169, - "End Line": 179 - }, - { - "Function Name": "get_stream_session", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 76, "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 96 - }, - { - "Function Name": "test_sub", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 158, - "End Line": 166 - }, - { - "Function Name": "test_named_function_scope", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 182, - "End Line": 190 - }, - { - "Function Name": "test_function_scope", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 130, - "End Line": 136 - }, - { - "Function Name": "test_request_scope", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 139, - "End Line": 145 - }, - { - "Function Name": "test_two_scopes", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 148, - "End Line": 155 - }, - { - "Function Name": "test_regular_function_scope", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 193, - "End Line": 200 - }, - { - "Function Name": "get_named_session", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 42 - }, - { - "Function Name": "get_named_function_scope", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 108, - "End Line": 114 + "Start Line": 40, + "End Line": 115 }, { - "Function Name": "get_regular_function_scope", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 118, - "End Line": 124 + "Function Name": "_get_client_tag", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 15 }, { - "Function Name": "get_sub", + "Function Name": "foo_handler", "Structural Impact": 2.0, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 100, - "End Line": 104 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 33 - }, - { - "Function Name": "function_scope", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 78 + "Start Line": 19, + "End Line": 23 }, { - "Function Name": "request_scope", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "_get_client_key", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 84 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "get_broken", - "Structural Impact": 1.9, + "Function Name": "test_get_valid", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 176, - "End Line": 179 - }, - { - "Function Name": "get_named_func_session", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 53 + "Start Line": 34, + "End Line": 37 }, { - "Function Name": "get_named_regular_func_session", - "Structural Impact": 1.6, + "Function Name": "test_get_invalid", + "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 58 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 - }, - { - "Function Name": "dep_session", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 22 + "Start Line": 29, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 9, - "Sequential Logic Declarations": 72, - "Function Parameters": 20, - "Function/Method Declarations": 20, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 19, - "Type/Safety Bypasses": 15, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 33, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 15, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 3, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 28, - "Asynchronous/Concurrent Execution": 20, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 25, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 8, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 6, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 6, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 102, + "Structural Space Indentations": 87, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -183338,24 +179966,24 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 3, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 31, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 24, - "Design Pascal Case": 7, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 14, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 7, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -183372,24 +180000,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "contextvars", "fastapi", - "fastapi.exceptions", "fastapi.testclient", - "pytest", - "typing" + "inline_snapshot" ] }, - "python/fastapi/tests/test_depends_hashable.py": { + "python/fastapi/tests/test_exception_handlers.py": { "1. Artifact Identity": { - "Filename": "test_depends_hashable.py", - "Path": "python/fastapi/tests/test_depends_hashable.py", + "Filename": "test_exception_handlers.py", + "Path": "python/fastapi/tests/test_exception_handlers.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -183399,9 +180024,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 5147.06, - "Y": 266.18, - "Z": 30.03 + "X": 2187.75, + "Y": -131.34, + "Z": 967.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183410,23 +180035,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 26, - "Coding LOC": 15, - "Documentation LOC": 3, - "Structural Magnitude": 5.1, - "Control Flow Ratio": "0.0%", + "Total LOC": 89, + "Coding LOC": 57, + "Documentation LOC": 0, + "Structural Magnitude": 40.64, + "Control Flow Ratio": "10.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.133 + "Raw Cognitive Density": 0.152 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.91%", - "Error & Exception Exposure": "27.01%", + "Cognitive Load Exposure": "4.18%", + "Error & Exception Exposure": "15.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.67%", + "API Exposure": "11.78%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -183438,77 +180063,197 @@ }, "5. Function Analysis": [ { - "Function Name": "test_depends_hashable", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, + "Function Name": "test_traceback_for_dependency_with_yield", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 82, + "End Line": 88 + }, + { + "Function Name": "test_override_server_error_exception_raises", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 70, + "End Line": 72 + }, + { + "Function Name": "http_exception_handler", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 + }, + { + "Function Name": "request_validation_exception_handler", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", "Start Line": 12, - "End Line": 25 + "End Line": 13 }, { - "Function Name": "dep", + "Function Name": "server_error_exception_handler", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "route_with_request_validation_exception", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "test_override_http_exception", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 58, + "End Line": 61 + }, + { + "Function Name": "test_override_request_validation_exception", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 64, + "End Line": 67 + }, + { + "Function Name": "test_override_server_error_exception_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 79 + }, + { + "Function Name": "raise_value_error", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 31, + "End Line": 32 + }, + { + "Function Name": "dependency_with_yield", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 36 + }, + { + "Function Name": "with_yield", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 1, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 40, + "End Line": 40 + }, + { + "Function Name": "route_with_http_exception", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 45 + }, + { + "Function Name": "route_with_server_error", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 55 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 9, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 36, + "Function Parameters": 14, + "Function/Method Declarations": 14, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 18, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, + "Unit Test Assertions": 16, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 4, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 5, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Explicit Type Casts": 1, + "Fatal Aborts & Exceptions": 3, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 12, + "Structural Space Indentations": 31, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -183523,17 +180268,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, + "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 6, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183557,31 +180302,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 1, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi" + "fastapi", + "fastapi.exceptions", + "fastapi.testclient", + "pytest", + "starlette.responses" ] }, - "python/fastapi/tests/test_deprecated_openapi_prefix.py": { + "python/fastapi/tests/test_extra_routes.py": { "1. Artifact Identity": { - "Filename": "test_deprecated_openapi_prefix.py", - "Path": "python/fastapi/tests/test_deprecated_openapi_prefix.py", + "Filename": "test_extra_routes.py", + "Path": "python/fastapi/tests/test_extra_routes.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2926.6, - "Y": -83.22, - "Z": -2013.83 + "X": 3702.57, + "Y": 81.25, + "Z": 302.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183590,23 +180340,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 46, - "Coding LOC": 36, + "Total LOC": 371, + "Coding LOC": 333, "Documentation LOC": 0, - "Structural Magnitude": 9.62, + "Structural Magnitude": 57.16, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.056 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.93%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.36%", + "API Exposure": "9.77%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -183618,67 +180368,187 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, + "Function Name": "test_openapi_schema", + "Structural Impact": 14.0, + "Lines of Code (LOC)": 274, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 45 + "Start Line": 97, + "End Line": 370 }, { - "Function Name": "read_main", + "Function Name": "delete_item", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + }, + { + "Function Name": "patch_item", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "get_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "test_main", + "Function Name": "get_not_decorated", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "head_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 34 + }, + { + "Function Name": "options_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 39 + }, + { + "Function Name": "trace_item", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 49 + }, + { + "Function Name": "test_get_api_route", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 55, + "End Line": 58 + }, + { + "Function Name": "test_get_api_route_not_decorated", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 64 + }, + { + "Function Name": "test_delete", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 67, + "End Line": 70 + }, + { + "Function Name": "test_head", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 76 + }, + { + "Function Name": "test_options", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 82 + }, + { + "Function Name": "test_patch", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 88 + }, + { + "Function Name": "test_trace", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 91, + "End Line": 94 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Sequential Logic Declarations": 72, + "Function Parameters": 15, + "Function/Method Declarations": 15, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 18, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 27, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 6, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 4, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -183698,7 +180568,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 27, + "Structural Space Indentations": 303, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -183714,16 +180584,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183747,34 +180617,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_deprecated_responses.py": { + "python/fastapi/tests/test_fastapi_cli.py": { "1. Artifact Identity": { - "Filename": "test_deprecated_responses.py", - "Path": "python/fastapi/tests/test_deprecated_responses.py", + "Filename": "test_fastapi_cli.py", + "Path": "python/fastapi/tests/test_fastapi_cli.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3934.72, - "Y": 124.85, - "Z": -989.16 + "X": 2400.8, + "Y": -134.87, + "Z": -2139.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -183783,23 +180654,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 74, - "Coding LOC": 48, - "Documentation LOC": 2, - "Structural Magnitude": 28.16, - "Control Flow Ratio": "21.6%", + "Total LOC": 35, + "Coding LOC": 29, + "Documentation LOC": 0, + "Structural Magnitude": 7.68, + "Control Flow Ratio": "13.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.208 + "Raw Cognitive Density": 0.138 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.14%", + "Cognitive Load Exposure": "3.98%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.38%", + "API Exposure": "6.13%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -183811,112 +180682,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_orjson_response_emits_deprecation_warning", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 41, - "End Line": 43 - }, - { - "Function Name": "test_ujson_response_emits_deprecation_warning", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_fastapi_cli_not_installed", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 71, - "End Line": 73 - }, - { - "Function Name": "_make_orjson_app", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 19, - "End Line": 28 - }, - { - "Function Name": "_make_ujson_app", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 49, - "End Line": 58 - }, - { - "Function Name": "test_orjson_response_returns_correct_data", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 31, - "End Line": 38 - }, - { - "Function Name": "test_ujson_response_returns_correct_data", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 61, - "End Line": 68 - }, - { - "Function Name": "get_items", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Control Flow Ratio": "40.0%", + "Start Line": 30, + "End Line": 34 }, { - "Function Name": "get_items", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_fastapi_cli", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 + "Start Line": 10, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 29, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 13, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "I/O and Network Boundaries": 2, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 4, + "Global State Dependencies": 1, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -183930,22 +180741,22 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 4, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 34, + "Structural Space Indentations": 21, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, + "Ipc Rpc Bridges": 2, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, @@ -183957,16 +180768,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 4, + "Duplicate Logic": 0, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -183983,45 +180794,43 @@ "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, - "Sec Tainted Injection": 0, + "Sec Tainted Injection": 1, "Prompt Injection": 0, "Agentic Rce": 0, "Invisible Unicode Payload Smuggling": 0, "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 1, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.responses", - "fastapi.testclient", - "pydantic", + "fastapi.cli", + "os", "pytest", - "warnings" + "subprocess", + "sys", + "unittest.mock" ] }, - "python/fastapi/tests/test_dump_json_fast_path.py": { + "python/fastapi/tests/test_file_and_form_order_issue_9116.py": { "1. Artifact Identity": { - "Filename": "test_dump_json_fast_path.py", - "Path": "python/fastapi/tests/test_dump_json_fast_path.py", + "Filename": "test_file_and_form_order_issue_9116.py", + "Path": "python/fastapi/tests/test_file_and_form_order_issue_9116.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 872.11, - "Y": -318.49, - "Z": -253.12 + "X": 1384.75, + "Y": -230.69, + "Z": -28.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184030,23 +180839,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 52, - "Coding LOC": 32, + "Total LOC": 90, + "Coding LOC": 64, "Documentation LOC": 4, - "Structural Magnitude": 14.84, - "Control Flow Ratio": "8.0%", + "Structural Magnitude": 29.08, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.438 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.57%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.15%", + "API Exposure": "11.37%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -184058,77 +180867,117 @@ }, "5. Function Analysis": [ { - "Function Name": "test_default_response_class_skips_json_dumps", + "Function Name": "test_file_list_form_order", "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 30, - "End Line": 39 + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 89 }, { - "Function Name": "test_explicit_response_class_uses_json_dumps", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 42, - "End Line": 51 + "Function Name": "test_file_form_order", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 73 }, { - "Function Name": "get_default", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "file_before_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 17, + "End Line": 21 }, { - "Function Name": "get_explicit", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "file_after_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 25, + "End Line": 29 + }, + { + "Function Name": "file_list_before_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 37 + }, + { + "Function Name": "file_list_after_form", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 45 + }, + { + "Function Name": "tmp_file_1", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 55 + }, + { + "Function Name": "tmp_file_2", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 62 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 23, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 27, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 4, - "Unit Test Assertions": 10, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 2, - "Module Dependencies (Imports)": 7, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -184144,11 +180993,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 18, + "Structural Space Indentations": 36, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -184164,16 +181013,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 16, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 16, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 2, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184197,37 +181046,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", - "json", - "pydantic", - "unittest.mock" + "pathlib", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_duplicate_models_openapi.py": { + "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py": { "1. Artifact Identity": { - "Filename": "test_duplicate_models_openapi.py", - "Path": "python/fastapi/tests/test_duplicate_models_openapi.py", + "Filename": "test_filter_pydantic_sub_model_pv2.py", + "Path": "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "BaseModel, ModelB", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1582.8, - "Y": -176.55, - "Z": -1673.71 + "X": 3871.94, + "Y": 78.35, + "Z": 668.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184236,24 +181084,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 85, - "Coding LOC": 69, + "Total LOC": 183, + "Coding LOC": 166, "Documentation LOC": 0, - "Structural Magnitude": 13.18, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 39.82, + "Control Flow Ratio": "3.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.06 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "28.77%", + "Cognitive Load Exposure": "2.98%", + "Error & Exception Exposure": "35.47%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.74%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.53%", + "Concurrency Exposure": "26.85%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -184265,68 +181113,108 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 49, + "Structural Impact": 6.9, + "Lines of Code (LOC)": 109, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 84 + "Start Line": 74, + "End Line": 182 }, { - "Function Name": "test_get_api_route", - "Structural Impact": 1.2, + "Function Name": "lower_username", + "Structural Impact": 4.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "33.3%", + "Start Line": 28, + "End Line": 31 + }, + { + "Function Name": "get_client", + "Structural Impact": 3.9, + "Lines of Code (LOC)": 37, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "7.1%", + "Start Line": 10, + "End Line": 46 + }, + { + "Function Name": "test_validator_is_cloned", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 60, + "End Line": 71 + }, + { + "Function Name": "get_model_a", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 37, + "End Line": 43 }, { - "Function Name": "f", + "Function Name": "test_filter_sub_model", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 57 + }, + { + "Function Name": "get_model_c", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 33, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 54, + "Function Parameters": 7, + "Function/Method Declarations": 7, "Class/Entity Declarations": 3, "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -184334,7 +181222,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -184344,7 +181232,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 56, + "Structural Space Indentations": 155, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -184360,16 +181248,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184393,22 +181281,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dirty_equals", "fastapi", + "fastapi.exceptions", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_empty_router.py": { + "python/fastapi/tests/test_form_default.py": { "1. Artifact Identity": { - "Filename": "test_empty_router.py", - "Path": "python/fastapi/tests/test_empty_router.py", + "Filename": "test_form_default.py", + "Path": "python/fastapi/tests/test_form_default.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -184418,9 +181309,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1186.9, - "Y": -295.59, - "Z": -1405.69 + "X": 1609.86, + "Y": -199.24, + "Z": 1640.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184429,26 +181320,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 37, + "Total LOC": 35, "Coding LOC": 22, - "Documentation LOC": 1, - "Structural Magnitude": 10.24, - "Control Flow Ratio": "11.8%", + "Documentation LOC": 0, + "Structural Magnitude": 14.34, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.182 + "Raw Cognitive Density": 0.364 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.67%", + "Cognitive Load Exposure": "8.79%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.85%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.86%", + "Concurrency Exposure": "82.7%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "23.15%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -184457,62 +181348,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_use_empty", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 22, - "End Line": 30 + "Function Name": "post_multi_part", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 15, + "End Line": 19 }, { - "Function Name": "test_include_empty", - "Structural Impact": 2.2, + "Function Name": "post_url_encoded", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 10, + "End Line": 11 + }, + { + "Function Name": "test_form_default_url_encoded", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 33, - "End Line": 36 + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "get_empty", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_form_default_multi_part", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 15, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 16, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 1, + "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -184553,16 +181454,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184586,22 +181487,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pytest" + "starlette.testclient", + "typing" ] }, - "python/fastapi/tests/test_enforce_once_required_parameter.py": { + "python/fastapi/tests/test_forms_from_non_typing_sequences.py": { "1. Artifact Identity": { - "Filename": "test_enforce_once_required_parameter.py", - "Path": "python/fastapi/tests/test_enforce_once_required_parameter.py", + "Filename": "test_forms_from_non_typing_sequences.py", + "Path": "python/fastapi/tests/test_forms_from_non_typing_sequences.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -184611,9 +181511,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3481.17, - "Y": 7.27, - "Z": -1666.07 + "X": 2225.54, + "Y": -144.6, + "Z": 1587.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184622,23 +181522,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 116, - "Coding LOC": 100, + "Total LOC": 47, + "Coding LOC": 31, "Documentation LOC": 0, - "Structural Magnitude": 20.6, - "Control Flow Ratio": "2.9%", + "Structural Magnitude": 18.02, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.043 + "Raw Cognitive Density": 0.065 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.79%", + "Cognitive Load Exposure": "3.03%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "3.42%", + "API Exposure": "11.9%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -184650,117 +181550,117 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 76, + "Function Name": "post_form_param_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 115 - }, - { - "Function Name": "_get_client_tag", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 15 + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "foo_handler", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "post_form_param_set", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 23 + "Start Line": 13, + "End Line": 14 }, { - "Function Name": "_get_client_key", + "Function Name": "post_form_param_tuple", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "test_get_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_python_list_param_as_form", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 37 + "Start Line": 25, + "End Line": 30 }, { - "Function Name": "test_get_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_python_set_param_as_form", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 31 + "Start Line": 33, + "End Line": 38 + }, + { + "Function Name": "test_python_tuple_param_as_form", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 46 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 33, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 19, "Function Parameters": 6, "Function/Method Declarations": 6, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 6, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 87, + "Structural Space Indentations": 18, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -184776,16 +181676,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 11, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -184809,33 +181709,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_exception_handlers.py": { + "python/fastapi/tests/test_forms_single_model.py": { "1. Artifact Identity": { - "Filename": "test_exception_handlers.py", - "Path": "python/fastapi/tests/test_exception_handlers.py", + "Filename": "test_forms_single_model.py", + "Path": "python/fastapi/tests/test_forms_single_model.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2187.75, - "Y": -131.34, - "Z": 967.1 + "X": 4034.77, + "Y": 133.35, + "Z": -529.18 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -184844,23 +181744,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 89, - "Coding LOC": 57, + "Total LOC": 142, + "Coding LOC": 116, "Documentation LOC": 0, - "Structural Magnitude": 40.64, - "Control Flow Ratio": "10.0%", + "Structural Magnitude": 33.02, + "Control Flow Ratio": "14.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.152 + "Raw Cognitive Density": 0.069 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.18%", - "Error & Exception Exposure": "15.31%", + "Cognitive Load Exposure": "3.08%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.78%", + "API Exposure": "10.34%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -184872,197 +181772,137 @@ }, "5. Function Analysis": [ { - "Function Name": "test_traceback_for_dependency_with_yield", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_send_all_data", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 19, "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 82, - "End Line": 88 - }, - { - "Function Name": "test_override_server_error_exception_raises", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 70, - "End Line": 72 - }, - { - "Function Name": "http_exception_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 - }, - { - "Function Name": "request_validation_exception_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "server_error_exception_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "route_with_request_validation_exception", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "test_override_http_exception", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 61 + "Control Flow Ratio": "40.0%", + "Start Line": 37, + "End Line": 55 }, { - "Function Name": "test_override_request_validation_exception", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "test_no_data", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 67 + "Control Flow Ratio": "28.6%", + "Start Line": 93, + "End Line": 111 }, { - "Function Name": "test_override_server_error_exception_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, + "Function Name": "test_defaults", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 79 + "Control Flow Ratio": "25.0%", + "Start Line": 58, + "End Line": 67 }, { - "Function Name": "raise_value_error", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_invalid_data", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 70, + "End Line": 90 }, { - "Function Name": "dependency_with_yield", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_extra_param_single", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 114, + "End Line": 126 }, { - "Function Name": "with_yield", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 1, + "Function Name": "test_extra_param_list", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 40 + "Start Line": 129, + "End Line": 141 }, { - "Function Name": "route_with_http_exception", - "Structural Impact": 1.1, + "Function Name": "post_form", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 45 + "Start Line": 25, + "End Line": 26 }, { - "Function Name": "route_with_server_error", - "Structural Impact": 1.1, + "Function Name": "post_form_extra_allow", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 + "Start Line": 30, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, + "Control Flow Branches": 6, "Sequential Logic Declarations": 36, - "Function Parameters": 14, - "Function/Method Declarations": 14, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 1, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 19, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 18, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 16, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 4, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, - "Fatal Aborts & Exceptions": 3, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 31, + "Structural Space Indentations": 98, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -185077,17 +181917,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 3, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 10, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -185111,36 +181951,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", "fastapi.testclient", - "pytest", - "starlette.responses" + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_extra_routes.py": { + "python/fastapi/tests/test_forms_single_param.py": { "1. Artifact Identity": { - "Filename": "test_extra_routes.py", - "Path": "python/fastapi/tests/test_extra_routes.py", + "Filename": "test_forms_single_param.py", + "Path": "python/fastapi/tests/test_forms_single_param.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3702.57, - "Y": 81.25, - "Z": 302.41 + "X": 4383.87, + "Y": 119.72, + "Z": 1323.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185149,10 +181987,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 371, - "Coding LOC": 333, + "Total LOC": 110, + "Coding LOC": 99, "Documentation LOC": 0, - "Structural Magnitude": 57.16, + "Structural Magnitude": 13.98, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -185165,7 +182003,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.77%", + "API Exposure": "6.83%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -185178,186 +182016,66 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 14.0, - "Lines of Code (LOC)": 274, + "Structural Impact": 5.3, + "Lines of Code (LOC)": 86, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 370 - }, - { - "Function Name": "delete_item", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 - }, - { - "Function Name": "patch_item", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 - }, - { - "Function Name": "get_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "get_not_decorated", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 - }, - { - "Function Name": "head_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 - }, - { - "Function Name": "options_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 + "Start Line": 24, + "End Line": 109 }, { - "Function Name": "trace_item", + "Function Name": "post_form", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 49 - }, - { - "Function Name": "test_get_api_route", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 58 - }, - { - "Function Name": "test_get_api_route_not_decorated", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 64 - }, - { - "Function Name": "test_delete", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 70 - }, - { - "Function Name": "test_head", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 - }, - { - "Function Name": "test_options", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 82 - }, - { - "Function Name": "test_patch", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 88 + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "test_trace", + "Function Name": "test_single_form_field", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 94 + "Start Line": 18, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 72, - "Function Parameters": 15, - "Function/Method Declarations": 15, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 18, + "Sequential Logic Declarations": 29, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 27, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 4, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -185377,7 +182095,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 303, + "Structural Space Indentations": 89, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -185393,16 +182111,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 15, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 1, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 14, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -185426,35 +182144,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "pydantic" + "typing" ] }, - "python/fastapi/tests/test_fastapi_cli.py": { + "python/fastapi/tests/test_generate_unique_id_function.py": { "1. Artifact Identity": { - "Filename": "test_fastapi_cli.py", - "Path": "python/fastapi/tests/test_fastapi_cli.py", + "Filename": "test_generate_unique_id_function.py", + "Path": "python/fastapi/tests/test_generate_unique_id_function.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2400.8, - "Y": -134.87, - "Z": -2139.96 + "X": 2333.81, + "Y": -133.68, + "Z": -220.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185463,23 +182181,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 35, - "Coding LOC": 29, + "Total LOC": 1700, + "Coding LOC": 1644, "Documentation LOC": 0, - "Structural Magnitude": 7.68, - "Control Flow Ratio": "13.3%", + "Structural Magnitude": 216.08, + "Control Flow Ratio": "1.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.138 + "Raw Cognitive Density": 0.005 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.98%", + "Cognitive Load Exposure": "2.41%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.13%", + "API Exposure": "10.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -185491,49 +182209,339 @@ }, "5. Function Analysis": [ { - "Function Name": "test_fastapi_cli_not_installed", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, + "Function Name": "test_callback_override_generate_unique_id", + "Structural Impact": 15.7, + "Lines of Code (LOC)": 293, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 30, - "End Line": 34 + "Control Flow Ratio": "0.0%", + "Start Line": 1377, + "End Line": 1669 }, { - "Function Name": "test_fastapi_cli", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, + "Function Name": "test_subrouter_top_level_include_overrides_generate_unique_id", + "Structural Impact": 15.2, + "Lines of Code (LOC)": 283, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 662, + "End Line": 944 + }, + { + "Function Name": "test_app_path_operation_overrides_generate_unique_id", + "Structural Impact": 11.8, + "Lines of Code (LOC)": 215, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1160, + "End Line": 1374 + }, + { + "Function Name": "test_router_path_operation_overrides_generate_unique_id", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 211, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 947, + "End Line": 1157 + }, + { + "Function Name": "test_top_level_generate_unique_id", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 208, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 239 + }, + { + "Function Name": "test_router_overrides_generate_unique_id", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 208, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 242, + "End Line": 449 + }, + { + "Function Name": "test_router_include_overrides_generate_unique_id", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 208, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", + "Start Line": 452, + "End Line": 659 + }, + { + "Function Name": "test_warn_duplicate_operation_id", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "18.8%", + "Start Line": 1672, + "End Line": 1699 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 38 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 247, + "End Line": 248 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 253, + "End Line": 254 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 457, + "End Line": 458 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 463, + "End Line": 464 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 668, + "End Line": 669 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 674, + "End Line": 675 + }, + { + "Function Name": "post_subrouter", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 682, + "End Line": 683 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 952, + "End Line": 953 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 961, + "End Line": 962 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1170, + "End Line": 1171 + }, + { + "Function Name": "post_router", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1178, + "End Line": 1179 + }, + { + "Function Name": "post_callback", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1387, + "End Line": 1388 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1397, + "End Line": 1398 + }, + { + "Function Name": "post_with_callback", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1405, + "End Line": 1406 + }, + { + "Function Name": "custom_generate_unique_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", "Start Line": 10, - "End Line": 27 + "End Line": 11 + }, + { + "Function Name": "custom_generate_unique_id2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 + }, + { + "Function Name": "custom_generate_unique_id3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "broken_operation_id", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1673, + "End Line": 1674 + }, + { + "Function Name": "post_root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1679, + "End Line": 1680 + }, + { + "Function Name": "post_second", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1683, + "End Line": 1684 + }, + { + "Function Name": "post_third", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1687, + "End Line": 1688 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 13, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 245, + "Function Parameters": 31, + "Function/Method Declarations": 31, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 14, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 2, - "Exposed API / Public Exports": 2, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 50, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, - "Global State Dependencies": 1, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 19, + "Generic Type Abstractions": 32, + "Collection Iterators / Comprehensions": 1, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 6, @@ -185558,14 +182566,14 @@ "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, + "Event Listeners & Subscribers": 2, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 21, + "Structural Space Indentations": 1625, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, - "Ipc Rpc Bridges": 2, + "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, @@ -185577,16 +182585,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 19, + "Core Var Decl": 62, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 62, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Design Long Vars": 6, + "Duplicate Logic": 13, + "Orphaned Logic": 12, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -185603,7 +182611,7 @@ "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, - "Sec Tainted Injection": 1, + "Sec Tainted Injection": 0, "Prompt Injection": 0, "Agentic Rce": 0, "Invisible Unicode Payload Smuggling": 0, @@ -185612,22 +182620,22 @@ "8. Dependency Network": { "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 1, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.cli", - "os", - "pytest", - "subprocess", - "sys", - "unittest.mock" + "fastapi", + "fastapi.routing", + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "warnings" ] }, - "python/fastapi/tests/test_file_and_form_order_issue_9116.py": { + "python/fastapi/tests/test_generic_parameterless_depends.py": { "1. Artifact Identity": { - "Filename": "test_file_and_form_order_issue_9116.py", - "Path": "python/fastapi/tests/test_file_and_form_order_issue_9116.py", + "Filename": "test_generic_parameterless_depends.py", + "Path": "python/fastapi/tests/test_generic_parameterless_depends.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -185637,9 +182645,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1384.75, - "Y": -230.69, - "Z": -28.3 + "X": 4865.06, + "Y": 221.98, + "Z": -369.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185648,10 +182656,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 90, - "Coding LOC": 64, - "Documentation LOC": 4, - "Structural Magnitude": 29.08, + "Total LOC": 80, + "Coding LOC": 60, + "Documentation LOC": 0, + "Structural Magnitude": 14.4, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -185661,11 +182669,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "32.9%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.37%", - "Concurrency Exposure": "0.0%", + "API Exposure": "3.66%", + "Concurrency Exposure": "51.06%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -185676,119 +182684,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_file_list_form_order", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 89 - }, - { - "Function Name": "test_file_form_order", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 73 - }, - { - "Function Name": "file_before_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 21 - }, - { - "Function Name": "file_after_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 - }, - { - "Function Name": "file_list_before_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 35, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 37 + "Start Line": 45, + "End Line": 79 }, { - "Function Name": "file_list_after_form", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "a", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 45 + "Start Line": 23, + "End Line": 24 }, { - "Function Name": "tmp_file_1", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "b", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 55 + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "tmp_file_2", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_generic_parameterless_depends", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 + "Start Line": 35, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 24, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 12, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 4, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -185802,11 +182770,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 4, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 36, + "Structural Space Indentations": 44, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -185822,13 +182790,13 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 16, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 2, + "Design Snake Case": 5, + "Design Pascal Case": 1, + "Design Upper Case": 1, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 2, @@ -185855,7 +182823,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -185863,28 +182831,27 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pathlib", - "pytest", + "inline_snapshot", "typing" ] }, - "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py": { + "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py": { "1. Artifact Identity": { - "Filename": "test_filter_pydantic_sub_model_pv2.py", - "Path": "python/fastapi/tests/test_filter_pydantic_sub_model_pv2.py", + "Filename": "test_get_model_definitions_formfeed_escape.py", + "Path": "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, ModelB", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3871.94, - "Y": 78.35, - "Z": 668.62 + "X": 1736.67, + "Y": -143.41, + "Z": 1091.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -185893,24 +182860,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 183, - "Coding LOC": 166, - "Documentation LOC": 0, - "Structural Magnitude": 39.82, - "Control Flow Ratio": "3.6%", + "Total LOC": 161, + "Coding LOC": 139, + "Documentation LOC": 9, + "Structural Magnitude": 22.88, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.06 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.98%", - "Error & Exception Exposure": "35.47%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.53%", - "Concurrency Exposure": "26.85%", + "API Exposure": "8.17%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -185927,103 +182894,73 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 182 - }, - { - "Function Name": "lower_username", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "33.3%", - "Start Line": 28, - "End Line": 31 - }, - { - "Function Name": "get_client", - "Structural Impact": 3.9, - "Lines of Code (LOC)": 37, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "7.1%", - "Start Line": 10, - "End Line": 46 - }, - { - "Function Name": "test_validator_is_cloned", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 60, - "End Line": 71 + "Start Line": 52, + "End Line": 160 }, { - "Function Name": "get_model_a", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, + "Function Name": "client_fixture", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 43 + "Start Line": 8, + "End Line": 36 }, { - "Function Name": "test_filter_sub_model", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, + "Function Name": "test_get", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 57 + "Start Line": 39, + "End Line": 49 }, { - "Function Name": "get_model_c", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_facility", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 29, + "End Line": 33 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 54, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 39, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 2, + "Structured Documentation Blocks": 4, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -186031,7 +182968,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 1, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -186041,7 +182978,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 155, + "Structural Space Indentations": 131, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186058,15 +182995,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Core Var Decl": 6, "Design Camel Case": 0, "Design Snake Case": 6, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186090,37 +183027,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dirty_equals", "fastapi", - "fastapi.exceptions", "fastapi.testclient", "inline_snapshot", "pydantic", "pytest" ] }, - "python/fastapi/tests/test_form_default.py": { + "python/fastapi/tests/test_get_request_body.py": { "1. Artifact Identity": { - "Filename": "test_form_default.py", - "Path": "python/fastapi/tests/test_form_default.py", + "Filename": "test_get_request_body.py", + "Path": "python/fastapi/tests/test_get_request_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1609.86, - "Y": -199.24, - "Z": 1640.4 + "X": 4478.85, + "Y": 193.65, + "Z": 908.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186129,24 +183065,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 35, - "Coding LOC": 22, + "Total LOC": 115, + "Coding LOC": 103, "Documentation LOC": 0, - "Structural Magnitude": 14.34, + "Structural Magnitude": 16.06, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.364 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "8.79%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.86%", - "Concurrency Exposure": "82.7%", + "API Exposure": "7.54%", + "Concurrency Exposure": "22.88%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -186157,72 +183093,62 @@ }, "5. Function Analysis": [ { - "Function Name": "post_multi_part", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 86, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Start Line": 29, + "End Line": 114 }, { - "Function Name": "post_url_encoded", + "Function Name": "create_item", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 - }, - { - "Function Name": "test_form_default_url_encoded", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "test_form_default_multi_part", + "Function Name": "test_get_with_body", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 23, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 16, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Sequential Logic Declarations": 31, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -186247,7 +183173,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, + "Structural Space Indentations": 92, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186263,16 +183189,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186296,21 +183222,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "starlette.testclient", - "typing" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_forms_from_non_typing_sequences.py": { + "python/fastapi/tests/test_http_connection_injection.py": { "1. Artifact Identity": { - "Filename": "test_forms_from_non_typing_sequences.py", - "Path": "python/fastapi/tests/test_forms_from_non_typing_sequences.py", + "Filename": "test_http_connection_injection.py", + "Path": "python/fastapi/tests/test_http_connection_injection.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -186320,9 +183247,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2225.54, - "Y": -144.6, - "Z": 1587.41 + "X": 4390.57, + "Y": 137.1, + "Z": 638.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186331,24 +183258,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 47, - "Coding LOC": 31, + "Total LOC": 40, + "Coding LOC": 26, "Documentation LOC": 0, - "Structural Magnitude": 18.02, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 20.82, + "Control Flow Ratio": "4.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.065 + "Raw Cognitive Density": 1.131 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.03%", + "Cognitive Load Exposure": "41.05%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.9%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.48%", + "Concurrency Exposure": "99.95%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -186359,117 +183286,107 @@ }, "5. Function Analysis": [ { - "Function Name": "post_form_param_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_value_extracting_by_ws", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 37, + "End Line": 39 + }, + { + "Function Name": "get_value_by_ws", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 20, + "End Line": 25 }, { - "Function Name": "post_form_param_set", + "Function Name": "extract_value_from_http_connection", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "post_form_param_tuple", + "Function Name": "get_value_by_http", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 - }, - { - "Function Name": "test_python_list_param_as_form", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 30 - }, - { - "Function Name": "test_python_set_param_as_form", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 38 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "test_python_tuple_param_as_form", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_value_extracting_by_http", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 46 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 22, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Resource Deallocation & Cleanup": 1, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 18, + "Structural Space Indentations": 11, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186485,23 +183402,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 11, + "Design Snake Case": 5, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 1, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -186518,33 +183435,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.requests", + "fastapi.testclient", + "starlette.websockets" ] }, - "python/fastapi/tests/test_forms_single_model.py": { + "python/fastapi/tests/test_include_route.py": { "1. Artifact Identity": { - "Filename": "test_forms_single_model.py", - "Path": "python/fastapi/tests/test_forms_single_model.py", + "Filename": "test_include_route.py", + "Path": "python/fastapi/tests/test_include_route.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4034.77, - "Y": 133.35, - "Z": -529.18 + "X": 1106.62, + "Y": -261.82, + "Z": 1538.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186553,27 +183471,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 142, - "Coding LOC": 116, + "Total LOC": 23, + "Coding LOC": 14, "Documentation LOC": 0, - "Structural Magnitude": 33.02, - "Control Flow Ratio": "14.3%", + "Structural Magnitude": 4.98, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.069 + "Raw Cognitive Density": 0.143 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.08%", + "Cognitive Load Exposure": "5.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.34%", + "API Exposure": "6.91%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "93.33%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -186581,117 +183499,57 @@ }, "5. Function Analysis": [ { - "Function Name": "test_send_all_data", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 37, - "End Line": 55 - }, - { - "Function Name": "test_no_data", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 93, - "End Line": 111 - }, - { - "Function Name": "test_defaults", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 58, - "End Line": 67 - }, - { - "Function Name": "test_invalid_data", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 90 - }, - { - "Function Name": "test_extra_param_single", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 114, - "End Line": 126 - }, - { - "Function Name": "test_extra_param_list", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 141 - }, - { - "Function Name": "post_form", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "post_form_extra_allow", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_sub_router", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 19, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 36, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 19, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 11, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -186711,7 +183569,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 98, + "Structural Space Indentations": 4, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186728,15 +183586,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 15, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 1, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186760,34 +183618,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic", - "typing" + "fastapi.responses", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_forms_single_param.py": { + "python/fastapi/tests/test_include_router_defaults_overrides.py": { "1. Artifact Identity": { - "Filename": "test_forms_single_param.py", - "Path": "python/fastapi/tests/test_forms_single_param.py", + "Filename": "test_include_router_defaults_overrides.py", + "Path": "python/fastapi/tests/test_include_router_defaults_overrides.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4383.87, - "Y": 119.72, - "Z": 1323.45 + "X": 2832.54, + "Y": -53.29, + "Z": -42.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186796,24 +183654,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 110, - "Coding LOC": 99, + "Total LOC": 7305, + "Coding LOC": 7207, "Documentation LOC": 0, - "Structural Magnitude": 13.98, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 384.84, + "Control Flow Ratio": "6.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.018 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.54%", + "Error & Exception Exposure": "48.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.83%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.06%", + "Concurrency Exposure": "16.85%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -186824,76 +183682,316 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 86, - "Control Flow Branches": 0, + "Function Name": "test_openapi", + "Structural Impact": 99.5, + "Lines of Code (LOC)": 6866, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "0.5%", + "Start Line": 439, + "End Line": 7304 + }, + { + "Function Name": "test_paths_level5", + "Structural Impact": 31.0, + "Lines of Code (LOC)": 32, + "Control Flow Branches": 11, + "Input Parameters": 5, + "Control Flow Ratio": "52.4%", + "Start Line": 405, + "End Line": 436 + }, + { + "Function Name": "test_paths_level3", + "Structural Impact": 17.2, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 7, + "Input Parameters": 3, + "Control Flow Ratio": "46.7%", + "Start Line": 374, + "End Line": 397 + }, + { + "Function Name": "dep0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 109 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "post_form", + "Function Name": "dep1", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "test_single_form_field", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "dep2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 42, + "End Line": 43 + }, + { + "Function Name": "dep3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 + }, + { + "Function Name": "dep4", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 51 + }, + { + "Function Name": "dep5", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 55 + }, + { + "Function Name": "callback0", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 62, + "End Line": 63 + }, + { + "Function Name": "callback1", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 71 + }, + { + "Function Name": "callback2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 79 + }, + { + "Function Name": "callback3", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 86, + "End Line": 87 + }, + { + "Function Name": "callback4", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 94, + "End Line": 95 + }, + { + "Function Name": "callback5", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 102, + "End Line": 103 + }, + { + "Function Name": "path1_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 156, + "End Line": 157 + }, + { + "Function Name": "path1_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 161, + "End Line": 162 + }, + { + "Function Name": "path3_override_router2_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 177, + "End Line": 178 + }, + { + "Function Name": "path3_default_router2_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 183 + }, + { + "Function Name": "path3_override_router2_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 198, + "End Line": 199 + }, + { + "Function Name": "path3_default_router2_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 203, + "End Line": 204 + }, + { + "Function Name": "path5_override_router4_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 219, + "End Line": 220 + }, + { + "Function Name": "path5_default_router4_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 226, + "End Line": 227 + }, + { + "Function Name": "path5_override_router4_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 242, + "End Line": 243 + }, + { + "Function Name": "path5_default_router4_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 249, + "End Line": 250 + }, + { + "Function Name": "test_level1_override", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 21 + "Start Line": 347, + "End Line": 356 + }, + { + "Function Name": "test_level1_default", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 359, + "End Line": 368 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 19, + "Sequential Logic Declarations": 285, + "Function Parameters": 27, + "Function/Method Declarations": 27, + "Class/Entity Declarations": 6, + "Defensive Programming Constructs": 34, + "Type/Safety Bypasses": 6, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 35, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 47, + "Asynchronous/Concurrent Execution": 22, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 24, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 7, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 15, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -186904,7 +184002,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 89, + "Structural Space Indentations": 7104, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -186920,16 +184018,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 24, + "Core Var Decl": 120, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 120, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 15, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -186937,7 +184035,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 2, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -186953,35 +184051,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "typing" + "pytest", + "warnings" ] }, - "python/fastapi/tests/test_generate_unique_id_function.py": { + "python/fastapi/tests/test_infer_param_optionality.py": { "1. Artifact Identity": { - "Filename": "test_generate_unique_id_function.py", - "Path": "python/fastapi/tests/test_generate_unique_id_function.py", + "Filename": "test_infer_param_optionality.py", + "Path": "python/fastapi/tests/test_infer_param_optionality.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2333.81, - "Y": -133.68, - "Z": -220.73 + "X": 1850.98, + "Y": -182.05, + "Z": 259.99 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -186990,23 +184089,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1700, - "Coding LOC": 1644, - "Documentation LOC": 0, - "Structural Magnitude": 216.08, - "Control Flow Ratio": "1.2%", + "Total LOC": 338, + "Coding LOC": 295, + "Documentation LOC": 8, + "Structural Magnitude": 53.8, + "Control Flow Ratio": "5.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.005 + "Raw Cognitive Density": 0.029 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.41%", + "Cognitive Load Exposure": "1.43%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.57%", + "API Exposure": "9.06%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -187018,341 +184117,404 @@ }, "5. Function Analysis": [ { - "Function Name": "test_callback_override_generate_unique_id", - "Structural Impact": 15.7, - "Lines of Code (LOC)": 293, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1377, - "End Line": 1669 - }, - { - "Function Name": "test_subrouter_top_level_include_overrides_generate_unique_id", - "Structural Impact": 15.2, - "Lines of Code (LOC)": 283, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 662, - "End Line": 944 - }, - { - "Function Name": "test_app_path_operation_overrides_generate_unique_id", - "Structural Impact": 11.8, - "Lines of Code (LOC)": 215, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 1160, - "End Line": 1374 - }, - { - "Function Name": "test_router_path_operation_overrides_generate_unique_id", - "Structural Impact": 11.6, - "Lines of Code (LOC)": 211, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 947, - "End Line": 1157 - }, - { - "Function Name": "test_top_level_generate_unique_id", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 208, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 239 - }, - { - "Function Name": "test_router_overrides_generate_unique_id", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 208, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 242, - "End Line": 449 - }, - { - "Function Name": "test_router_include_overrides_generate_unique_id", - "Structural Impact": 11.4, - "Lines of Code (LOC)": 208, + "Function Name": "test_openapi_schema", + "Structural Impact": 12.6, + "Lines of Code (LOC)": 232, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 452, - "End Line": 659 + "Start Line": 106, + "End Line": 337 }, { - "Function Name": "test_warn_duplicate_operation_id", + "Function Name": "get_item", "Structural Impact": 5.4, - "Lines of Code (LOC)": 28, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "18.8%", - "Start Line": 1672, - "End Line": 1699 - }, - { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 - }, - { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 - }, - { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 247, - "End Line": 248 - }, - { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 253, - "End Line": 254 - }, - { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 457, - "End Line": 458 - }, - { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 463, - "End Line": 464 + "Control Flow Ratio": "40.0%", + "Start Line": 31, + "End Line": 35 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 668, - "End Line": 669 + "Function Name": "get_items", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 23, + "End Line": 27 }, { - "Function Name": "post_router", - "Structural Impact": 1.8, + "Function Name": "get_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 674, - "End Line": 675 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "post_subrouter", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_items_1", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 682, - "End Line": 683 + "Start Line": 61, + "End Line": 68 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_users", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 952, - "End Line": 953 + "Start Line": 47, + "End Line": 51 }, { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_user", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 961, - "End Line": 962 + "Start Line": 54, + "End Line": 58 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_items_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1170, - "End Line": 1171 + "Start Line": 71, + "End Line": 75 }, { - "Function Name": "post_router", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_item_1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1178, - "End Line": 1179 + "Start Line": 78, + "End Line": 82 }, { - "Function Name": "post_callback", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_item_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1387, - "End Line": 1388 + "Start Line": 85, + "End Line": 89 }, { - "Function Name": "post_root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_users_items", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1397, - "End Line": 1398 + "Start Line": 92, + "End Line": 96 }, { - "Function Name": "post_with_callback", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_users_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1405, - "End Line": 1406 + "Start Line": 99, + "End Line": 103 }, { - "Function Name": "custom_generate_unique_id", - "Structural Impact": 1.5, + "Function Name": "get_users", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 13, + "End Line": 14 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 4, + "Sequential Logic Declarations": 65, + "Function Parameters": 13, + "Function/Method Declarations": 13, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 18, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 13, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 16, + "Unit Test Assertions": 27, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 268, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 18, + "Design Camel Case": 0, + "Design Snake Case": 16, + "Design Pascal Case": 2, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 13, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot" + ] + }, + "python/fastapi/tests/test_inherited_custom_class.py": { + "1. Artifact Identity": { + "Filename": "test_inherited_custom_class.py", + "Path": "python/fastapi/tests/test_inherited_custom_class.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4326.56, + "Y": 159.06, + "Z": 201.71 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 68, + "Coding LOC": 46, + "Documentation LOC": 3, + "Structural Magnitude": 26.72, + "Control Flow Ratio": "6.2%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.789 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "16.99%", + "Error & Exception Exposure": "21.2%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "6.39%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ + { + "Function Name": "test_pydanticv2", + "Structural Impact": 5.1, + "Lines of Code (LOC)": 41, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "11.8%", + "Start Line": 27, + "End Line": 67 }, { - "Function Name": "custom_generate_unique_id2", - "Structural Impact": 1.5, + "Function Name": "return_fast_uuid", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 33, + "End Line": 39 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "custom_generate_unique_id3", - "Structural Impact": 1.5, + "Function Name": "serialize_a_uuid", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "broken_operation_id", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "__dict__", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 1673, - "End Line": 1674 + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "post_root", + "Function Name": "__str__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 1679, - "End Line": 1680 + "Start Line": 13, + "End Line": 14 }, { - "Function Name": "post_second", + "Function Name": "__class__", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 1683, - "End Line": 1684 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "post_third", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "return_some_user", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 1687, - "End Line": 1688 + "Start Line": 51, + "End Line": 53 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 245, - "Function Parameters": 31, - "Function/Method Declarations": 31, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 30, + "Function Parameters": 8, + "Function/Method Declarations": 8, "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 14, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 50, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 8, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 7, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 19, - "Generic Type Abstractions": 32, - "Collection Iterators / Comprehensions": 1, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 4, "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -187368,17 +184530,17 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 1, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 2, + "Private / Encapsulated Scopes": 5, + "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 1625, + "Structural Space Indentations": 39, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187394,16 +184556,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 19, - "Core Var Decl": 62, + "Vectorized Math & Tensor Operations": 5, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 62, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 6, - "Duplicate Logic": 13, - "Orphaned Logic": 12, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -187427,36 +184589,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.routing", "fastapi.testclient", - "inline_snapshot", "pydantic", - "warnings" + "pytest", + "uuid" ] }, - "python/fastapi/tests/test_generic_parameterless_depends.py": { + "python/fastapi/tests/test_invalid_path_param.py": { "1. Artifact Identity": { - "Filename": "test_generic_parameterless_depends.py", - "Path": "python/fastapi/tests/test_generic_parameterless_depends.py", + "Filename": "test_invalid_path_param.py", + "Path": "python/fastapi/tests/test_invalid_path_param.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4865.06, - "Y": 221.98, - "Z": -369.97 + "X": 2982.62, + "Y": -17.4, + "Z": 970.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -187465,24 +184627,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 60, + "Total LOC": 76, + "Coding LOC": 51, "Documentation LOC": 0, - "Structural Magnitude": 14.4, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 52.62, + "Control Flow Ratio": "19.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.176 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "32.9%", + "Cognitive Load Exposure": "4.58%", + "Error & Exception Exposure": "48.31%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "3.66%", - "Concurrency Exposure": "51.06%", + "API Exposure": "14.82%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -187493,79 +184655,179 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 35, - "Control Flow Branches": 0, + "Function Name": "test_invalid_sequence", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 6, + "End Line": 15 + }, + { + "Function Name": "test_invalid_tuple", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 18, + "End Line": 27 + }, + { + "Function Name": "test_invalid_dict", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 30, + "End Line": 39 + }, + { + "Function Name": "test_invalid_simple_list", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 42, + "End Line": 48 + }, + { + "Function Name": "test_invalid_simple_tuple", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 51, + "End Line": 57 + }, + { + "Function Name": "test_invalid_simple_set", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 60, + "End Line": 66 + }, + { + "Function Name": "test_invalid_simple_dict", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 69, + "End Line": 75 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 79 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "a", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "b", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "test_generic_parameterless_depends", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 42 + "Start Line": 47, + "End Line": 48 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 66 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 74, + "End Line": 75 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 24, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 7, + "Sequential Logic Declarations": 29, + "Function Parameters": 14, + "Function/Method Declarations": 14, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 7, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 24, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 7, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -187579,11 +184841,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 4, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 41, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187599,16 +184861,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, + "Vectorized Math & Tensor Operations": 7, "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 1, - "Design Upper Case": 1, - "Design Short Vars": 1, + "Design Snake Case": 7, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -187632,22 +184894,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py": { + "python/fastapi/tests/test_invalid_sequence_param.py": { "1. Artifact Identity": { - "Filename": "test_get_model_definitions_formfeed_escape.py", - "Path": "python/fastapi/tests/test_get_model_definitions_formfeed_escape.py", + "Filename": "test_invalid_sequence_param.py", + "Path": "python/fastapi/tests/test_invalid_sequence_param.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -187658,9 +184919,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1736.67, - "Y": -143.41, - "Z": 1091.38 + "X": 1829.79, + "Y": -197.15, + "Z": 950.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -187669,23 +184930,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 161, - "Coding LOC": 139, - "Documentation LOC": 9, - "Structural Magnitude": 22.88, - "Control Flow Ratio": "0.0%", + "Total LOC": 64, + "Coding LOC": 47, + "Documentation LOC": 0, + "Structural Magnitude": 37.34, + "Control Flow Ratio": "27.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.213 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.22%", + "Error & Exception Exposure": "40.81%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.17%", + "API Exposure": "13.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -187697,72 +184958,112 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.9, - "Lines of Code (LOC)": 109, + "Function Name": "test_invalid_sequence", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 6, + "End Line": 18 + }, + { + "Function Name": "test_invalid_tuple", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 21, + "End Line": 33 + }, + { + "Function Name": "test_invalid_dict", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 36, + "End Line": 48 + }, + { + "Function Name": "test_invalid_simple_dict", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 51, + "End Line": 63 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 160 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "client_fixture", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 36 + "Start Line": 32, + "End Line": 33 }, { - "Function Name": "test_get", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 11, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 49 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "get_facility", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 33 + "Start Line": 62, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 21, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 16, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 4, + "Structured Documentation Blocks": 0, "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -187787,7 +185088,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, + "Structural Space Indentations": 40, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187803,13 +185104,13 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 4, @@ -187836,36 +185137,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot", "pydantic", "pytest" ] }, - "python/fastapi/tests/test_get_request_body.py": { + "python/fastapi/tests/test_json_type.py": { "1. Artifact Identity": { - "Filename": "test_get_request_body.py", - "Path": "python/fastapi/tests/test_get_request_body.py", + "Filename": "test_json_type.py", + "Path": "python/fastapi/tests/test_json_type.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4478.85, - "Y": 193.65, - "Z": 908.83 + "X": 4159.22, + "Y": 122.3, + "Z": 839.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -187874,24 +185172,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 103, + "Total LOC": 64, + "Coding LOC": 43, "Documentation LOC": 0, - "Structural Magnitude": 16.06, + "Structural Magnitude": 25.06, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.093 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "3.37%", + "Error & Exception Exposure": "12.9%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.54%", - "Concurrency Exposure": "22.88%", + "API Exposure": "12.29%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -187902,62 +185200,112 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.3, - "Lines of Code (LOC)": 86, + "Function Name": "form_json_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 114 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "create_item", + "Function Name": "query_json_list", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_get_with_body", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "header_json_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "cookie_json_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 28 + }, + { + "Function Name": "test_form_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 34, + "End Line": 39 + }, + { + "Function Name": "test_query_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 42, + "End Line": 47 + }, + { + "Function Name": "test_header_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 55 + }, + { + "Function Name": "test_cookie_json_list", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 58, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 5, + "Sequential Logic Declarations": 37, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 12, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 12, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -187971,7 +185319,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -187982,7 +185330,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 92, + "Structural Space Indentations": 24, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -187998,16 +185346,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -188031,7 +185379,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -188039,26 +185387,28 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "json", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_http_connection_injection.py": { + "python/fastapi/tests/test_jsonable_encoder.py": { "1. Artifact Identity": { - "Filename": "test_http_connection_injection.py", - "Path": "python/fastapi/tests/test_http_connection_injection.py", + "Filename": "test_jsonable_encoder.py", + "Path": "python/fastapi/tests/test_jsonable_encoder.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "Person, Pet, Enum", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4390.57, - "Y": 137.1, - "Z": 638.86 + "X": 3536.45, + "Y": 29.19, + "Z": -185.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188067,24 +185417,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 40, - "Coding LOC": 26, + "Total LOC": 314, + "Coding LOC": 219, "Documentation LOC": 0, - "Structural Magnitude": 20.82, - "Control Flow Ratio": "4.3%", + "Structural Magnitude": 106.68, + "Control Flow Ratio": "4.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.131 + "Raw Cognitive Density": 0.222 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "41.05%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.4%", + "Error & Exception Exposure": "3.69%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.48%", - "Concurrency Exposure": "99.95%", + "API Exposure": "11.2%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -188095,107 +185445,377 @@ }, "5. Function Analysis": [ { - "Function Name": "test_value_extracting_by_ws", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "test_json_encoder_error_with_pydanticv1", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 159, + "End Line": 169 + }, + { + "Function Name": "__iter__", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 36, + "End Line": 37 + }, + { + "Function Name": "__iter__", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 41, + "End Line": 42 + }, + { + "Function Name": "test_encode_unsupported", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 134, + "End Line": 137 + }, + { + "Function Name": "__init__", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 26 + }, + { + "Function Name": "test_encode_model_with_alias_raises", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 177, + "End Line": 179 + }, + { + "Function Name": "test_custom_encoders", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 205, + "End Line": 225 + }, + { + "Function Name": "test_encode_custom_json_encoders_model_pydanticv2", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 140, + "End Line": 156 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 19, + "End Line": 20 + }, + { + "Function Name": "serialize_dt_field", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 147, + "End Line": 148 + }, + { + "Function Name": "test_encode_model_with_default", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 187, + "End Line": 202 + }, + { + "Function Name": "test_encode_class", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 99, + "End Line": 109 + }, + { + "Function Name": "test_encode_dictable", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 112, + "End Line": 122 + }, + { + "Function Name": "test_custom_enum_encoders", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 228, + "End Line": 240 + }, + { + "Function Name": "__iter__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 + }, + { + "Function Name": "__dict__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 51 + }, + { + "Function Name": "test_encode_dict", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 37, - "End Line": 39 + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 84 }, { - "Function Name": "get_value_by_ws", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "test_encode_dict_include_exclude_list", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 25 + "Start Line": 87, + "End Line": 96 }, { - "Function Name": "extract_value_from_http_connection", + "Function Name": "custom_enum_encoder", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 229, + "End Line": 230 }, { - "Function Name": "get_value_by_http", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_encode_dataclass", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 125, + "End Line": 131 }, { - "Function Name": "test_value_extracting_by_http", + "Function Name": "test_encode_model_with_pure_path", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 243, + "End Line": 251 + }, + { + "Function Name": "test_encode_model_with_pure_posix_path", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 261 + }, + { + "Function Name": "test_encode_model_with_pure_windows_path", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 264, + "End Line": 271 + }, + { + "Function Name": "test_encode_deque_encodes_child_models", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 302, + "End Line": 308 + }, + { + "Function Name": "test_encode_pure_path", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 274, + "End Line": 277 + }, + { + "Function Name": "test_decimal_encoder_infinity", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 295, + "End Line": 299 + }, + { + "Function Name": "test_encode_model_with_config", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 172, + "End Line": 174 + }, + { + "Function Name": "test_encode_model_with_alias", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 184 + }, + { + "Function Name": "test_decimal_encoder_float", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 280, + "End Line": 282 + }, + { + "Function Name": "test_decimal_encoder_int", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 285, + "End Line": 287 + }, + { + "Function Name": "test_decimal_encoder_nan", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 290, + "End Line": 292 + }, + { + "Function Name": "test_encode_pydantic_undefined", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 311, + "End Line": 313 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 22, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 140, + "Function Parameters": 34, + "Function/Method Declarations": 32, + "Class/Entity Declarations": 20, + "Defensive Programming Constructs": 66, + "Type/Safety Bypasses": 20, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 6, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 46, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 80, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, + "Closures and Anonymous Functions": 2, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 4, + "Module Dependencies (Imports)": 16, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Explicit Type Casts": 2, + "Fatal Aborts & Exceptions": 2, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 1, - "Private / Encapsulated Scopes": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 9, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 11, + "Structural Space Indentations": 170, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -188211,23 +185831,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 74, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Snake Case": 72, + "Design Pascal Case": 1, + "Design Upper Case": 1, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Duplicate Logic": 2, + "Orphaned Logic": 25, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 1, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -188244,22 +185864,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 14, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.requests", - "fastapi.testclient", - "starlette.websockets" + "collections", + "dataclasses", + "datetime", + "decimal", + "enum", + "fastapi._compat", + "fastapi.encoders", + "fastapi.exceptions", + "math", + "pathlib", + "pydantic", + "pytest", + "typing", + "warnings" ] }, - "python/fastapi/tests/test_include_route.py": { + "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py": { "1. Artifact Identity": { - "Filename": "test_include_route.py", - "Path": "python/fastapi/tests/test_include_route.py", + "Filename": "test_list_bytes_file_order_preserved_issue_14811.py", + "Path": "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -188269,9 +185899,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1106.62, - "Y": -261.82, - "Z": 1538.04 + "X": 2929.42, + "Y": -16.67, + "Z": 1247.14 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188280,27 +185910,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 23, - "Coding LOC": 14, - "Documentation LOC": 0, - "Structural Magnitude": 4.98, - "Control Flow Ratio": "0.0%", + "Total LOC": 47, + "Coding LOC": 27, + "Documentation LOC": 8, + "Structural Magnitude": 39.04, + "Control Flow Ratio": "9.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.143 + "Raw Cognitive Density": 2.667 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "24.99%", + "Error & Exception Exposure": "41.34%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.91%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.31%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "93.33%", + "Commented Logic Exposure": "23.15%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -188308,57 +185938,67 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_list_bytes_file_preserves_order", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 2, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Control Flow Ratio": "18.2%", + "Start Line": 16, + "End Line": 46 }, { - "Function Name": "test_sub_router", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Function Name": "patched_read", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "20.0%", + "Start Line": 28, + "End Line": 32 + }, + { + "Function Name": "upload", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 22, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 11, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 20, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 0, + "Exposed API / Public Exports": 4, + "State Mutations / Variable Reassignments": 3, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 19, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -188378,7 +186018,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, + "Structural Space Indentations": 19, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -188395,15 +186035,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -188427,34 +186067,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "anyio", "fastapi", - "fastapi.responses", - "fastapi.testclient" + "fastapi.testclient", + "pytest", + "starlette.datastructures", + "typing" ] }, - "python/fastapi/tests/test_include_router_defaults_overrides.py": { + "python/fastapi/tests/test_multi_body_errors.py": { "1. Artifact Identity": { - "Filename": "test_include_router_defaults_overrides.py", - "Path": "python/fastapi/tests/test_include_router_defaults_overrides.py", + "Filename": "test_multi_body_errors.py", + "Path": "python/fastapi/tests/test_multi_body_errors.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2832.54, - "Y": -53.29, - "Z": -42.65 + "X": 3030.28, + "Y": 27.91, + "Z": 1558.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188463,24 +186106,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 7305, - "Coding LOC": 7207, - "Documentation LOC": 0, - "Structural Magnitude": 384.84, - "Control Flow Ratio": "6.2%", + "Total LOC": 192, + "Coding LOC": 173, + "Documentation LOC": 2, + "Structural Magnitude": 23.96, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.018 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.54%", - "Error & Exception Exposure": "48.31%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.06%", - "Concurrency Exposure": "16.85%", + "API Exposure": "7.9%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -188491,298 +186134,78 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 99.5, - "Lines of Code (LOC)": 6866, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "0.5%", - "Start Line": 439, - "End Line": 7304 - }, - { - "Function Name": "test_paths_level5", - "Structural Impact": 31.0, - "Lines of Code (LOC)": 32, - "Control Flow Branches": 11, - "Input Parameters": 5, - "Control Flow Ratio": "52.4%", - "Start Line": 405, - "End Line": 436 - }, - { - "Function Name": "test_paths_level3", - "Structural Impact": 17.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 7, - "Input Parameters": 3, - "Control Flow Ratio": "46.7%", - "Start Line": 374, - "End Line": 397 - }, - { - "Function Name": "dep0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 - }, - { - "Function Name": "dep1", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "dep2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 43 - }, - { - "Function Name": "dep3", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 - }, - { - "Function Name": "dep4", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 - }, - { - "Function Name": "dep5", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 - }, - { - "Function Name": "callback0", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 - }, - { - "Function Name": "callback1", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 - }, - { - "Function Name": "callback2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 79 - }, - { - "Function Name": "callback3", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 87 - }, - { - "Function Name": "callback4", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 94, - "End Line": 95 - }, - { - "Function Name": "callback5", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 102, - "End Line": 103 - }, - { - "Function Name": "path1_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 156, - "End Line": 157 - }, - { - "Function Name": "path1_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 161, - "End Line": 162 - }, - { - "Function Name": "path3_override_router2_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 177, - "End Line": 178 - }, - { - "Function Name": "path3_default_router2_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 183 - }, - { - "Function Name": "path3_override_router2_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 198, - "End Line": 199 - }, - { - "Function Name": "path3_default_router2_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 103, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 203, - "End Line": 204 + "Start Line": 89, + "End Line": 191 }, { - "Function Name": "path5_override_router4_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_put_incorrect_body_multiple", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 31, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 219, - "End Line": 220 + "Start Line": 56, + "End Line": 86 }, { - "Function Name": "path5_default_router4_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_jsonable_encoder_requiring_error", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 226, - "End Line": 227 + "Start Line": 40, + "End Line": 53 }, { - "Function Name": "path5_override_router4_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_put_correct_body", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 242, - "End Line": 243 + "Start Line": 25, + "End Line": 37 }, { - "Function Name": "path5_default_router4_default", + "Function Name": "save_item_no_body", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 249, - "End Line": 250 - }, - { - "Function Name": "test_level1_override", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 347, - "End Line": 356 - }, - { - "Function Name": "test_level1_default", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 359, - "End Line": 368 + "Start Line": 18, + "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 19, - "Sequential Logic Declarations": 285, - "Function Parameters": 27, - "Function/Method Declarations": 27, - "Class/Entity Declarations": 6, - "Defensive Programming Constructs": 34, - "Type/Safety Bypasses": 6, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 49, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 12, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 35, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 47, - "Asynchronous/Concurrent Execution": 22, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 24, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -188791,19 +186214,19 @@ "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 7, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 15, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 2, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -188811,7 +186234,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 7104, + "Structural Space Indentations": 158, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -188827,16 +186250,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 24, - "Core Var Decl": 120, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 120, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 15, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -188844,7 +186267,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 2, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -188866,18 +186289,18 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "decimal", + "dirty_equals", "fastapi", - "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "pytest", - "warnings" + "pydantic" ] }, - "python/fastapi/tests/test_infer_param_optionality.py": { + "python/fastapi/tests/test_multi_query_errors.py": { "1. Artifact Identity": { - "Filename": "test_infer_param_optionality.py", - "Path": "python/fastapi/tests/test_infer_param_optionality.py", + "Filename": "test_multi_query_errors.py", + "Path": "python/fastapi/tests/test_multi_query_errors.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -188887,9 +186310,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1850.98, - "Y": -182.05, - "Z": 259.99 + "X": 4274.58, + "Y": 99.55, + "Z": -1212.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -188898,23 +186321,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 338, - "Coding LOC": 295, - "Documentation LOC": 8, - "Structural Magnitude": 53.8, - "Control Flow Ratio": "5.8%", + "Total LOC": 123, + "Coding LOC": 111, + "Documentation LOC": 0, + "Structural Magnitude": 16.92, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.029 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "1.43%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.06%", + "API Exposure": "7.43%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -188927,157 +186350,67 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 12.6, - "Lines of Code (LOC)": 232, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 337 - }, - { - "Function Name": "get_item", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 2, - "Control Flow Ratio": "40.0%", - "Start Line": 31, - "End Line": 35 - }, - { - "Function Name": "get_items", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 23, - "End Line": 27 - }, - { - "Function Name": "get_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 - }, - { - "Function Name": "test_get_items_1", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 68 - }, - { - "Function Name": "test_get_users", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 51 - }, - { - "Function Name": "test_get_user", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 58 - }, - { - "Function Name": "test_get_items_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 75 - }, - { - "Function Name": "test_get_item_1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Structural Impact": 5.0, + "Lines of Code (LOC)": 80, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 82 + "Start Line": 43, + "End Line": 122 }, { - "Function Name": "test_get_item_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_multi_query_incorrect", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 19, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 89 + "Start Line": 22, + "End Line": 40 }, { - "Function Name": "test_get_users_items", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 96 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "test_get_users_item", + "Function Name": "test_multi_query", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 103 - }, - { - "Function Name": "get_users", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 16, + "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 65, - "Function Parameters": 13, - "Function/Method Declarations": 13, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 34, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 18, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 16, - "Unit Test Assertions": 27, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -189106,7 +186439,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 268, + "Structural Space Indentations": 101, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189122,16 +186455,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 2, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 13, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -189166,23 +186499,22 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_inherited_custom_class.py": { + "python/fastapi/tests/test_multipart_installation.py": { "1. Artifact Identity": { - "Filename": "test_inherited_custom_class.py", - "Path": "python/fastapi/tests/test_inherited_custom_class.py", + "Filename": "test_multipart_installation.py", + "Path": "python/fastapi/tests/test_multipart_installation.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4326.56, - "Y": 159.06, - "Z": 201.71 + "X": 3136.3, + "Y": 33.25, + "Z": -508.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189191,24 +186523,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 68, - "Coding LOC": 46, - "Documentation LOC": 3, - "Structural Magnitude": 26.72, - "Control Flow Ratio": "6.2%", + "Total LOC": 150, + "Coding LOC": 115, + "Documentation LOC": 0, + "Structural Magnitude": 129.3, + "Control Flow Ratio": "44.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.789 + "Raw Cognitive Density": 1.052 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "16.99%", - "Error & Exception Exposure": "21.2%", + "Cognitive Load Exposure": "38.5%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.39%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.47%", + "Concurrency Exposure": "98.84%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -189219,112 +186551,252 @@ }, "5. Function Analysis": [ { - "Function Name": "test_pydanticv2", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 41, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "11.8%", - "Start Line": 27, - "End Line": 67 + "Function Name": "test_incorrect_multipart_installed_form", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 11, + "End Line": 21 + }, + { + "Function Name": "test_incorrect_multipart_installed_file_upload", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 24, + "End Line": 34 + }, + { + "Function Name": "test_incorrect_multipart_installed_file_bytes", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 37, + "End Line": 47 + }, + { + "Function Name": "test_incorrect_multipart_installed_multi_form", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 50, + "End Line": 60 + }, + { + "Function Name": "test_incorrect_multipart_installed_form_file", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 63, + "End Line": 73 + }, + { + "Function Name": "test_no_multipart_installed", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 76, + "End Line": 86 + }, + { + "Function Name": "test_no_multipart_installed_file", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 89, + "End Line": 99 + }, + { + "Function Name": "test_no_multipart_installed_file_bytes", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 102, + "End Line": 112 + }, + { + "Function Name": "test_no_multipart_installed_multi_form", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 115, + "End Line": 125 }, { - "Function Name": "return_fast_uuid", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_no_multipart_installed_form_file", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 128, + "End Line": 138 + }, + { + "Function Name": "test_old_multipart_installed", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 33, - "End Line": 39 + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 141, + "End Line": 149 }, { - "Function Name": "__init__", + "Function Name": "root", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 59, + "End Line": 60 }, { - "Function Name": "serialize_a_uuid", + "Function Name": "root", "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 72, + "End Line": 73 }, { - "Function Name": "__dict__", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 124, + "End Line": 125 + }, + { + "Function Name": "root", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 137, + "End Line": 138 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "__str__", + "Function Name": "root", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 33, + "End Line": 34 }, { - "Function Name": "__class__", + "Function Name": "root", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 46, + "End Line": 47 }, { - "Function Name": "return_some_user", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 53 + "Start Line": 85, + "End Line": 86 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 99 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 111, + "End Line": 112 + }, + { + "Function Name": "root", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 148, + "End Line": 149 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 30, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 31, + "Sequential Logic Declarations": 39, + "Function Parameters": 22, + "Function/Method Declarations": 22, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 1, + "Exposed API / Public Exports": 33, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 22, + "Asynchronous/Concurrent Execution": 11, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, + "Decorators and Annotations": 11, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 11, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -189338,18 +186810,18 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, - "Fatal Aborts & Exceptions": 1, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 5, + "Private / Encapsulated Scopes": 16, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 39, + "Structural Space Indentations": 99, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189365,16 +186837,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 5, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 11, + "Core Var Decl": 42, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 40, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 7, + "Duplicate Logic": 11, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -189398,36 +186870,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic", + "fastapi.dependencies.utils", "pytest", - "uuid" + "warnings" ] }, - "python/fastapi/tests/test_invalid_path_param.py": { + "python/fastapi/tests/test_no_schema_split.py": { "1. Artifact Identity": { - "Filename": "test_invalid_path_param.py", - "Path": "python/fastapi/tests/test_invalid_path_param.py", + "Filename": "test_no_schema_split.py", + "Path": "python/fastapi/tests/test_no_schema_split.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "str, Enum, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2982.62, - "Y": -17.4, - "Z": 970.8 + "X": 2920.67, + "Y": -59.24, + "Z": -1792.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189436,24 +186907,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 51, - "Documentation LOC": 0, - "Structural Magnitude": 52.62, - "Control Flow Ratio": "19.4%", + "Total LOC": 177, + "Coding LOC": 153, + "Documentation LOC": 4, + "Structural Magnitude": 22.26, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.176 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.58%", - "Error & Exception Exposure": "48.31%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "35.79%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.82%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.48%", + "Concurrency Exposure": "19.93%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -189464,172 +186935,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_sequence", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 6, - "End Line": 15 - }, - { - "Function Name": "test_invalid_tuple", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 18, - "End Line": 27 - }, - { - "Function Name": "test_invalid_dict", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 30, - "End Line": 39 - }, - { - "Function Name": "test_invalid_simple_list", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 42, - "End Line": 48 - }, - { - "Function Name": "test_invalid_simple_tuple", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 51, - "End Line": 57 - }, - { - "Function Name": "test_invalid_simple_set", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 60, - "End Line": 66 - }, - { - "Function Name": "test_invalid_simple_dict", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 69, - "End Line": 75 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.1, + "Lines of Code (LOC)": 121, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 56, - "End Line": 57 + "End Line": 176 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "create_message", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 + "Start Line": 37, + "End Line": 41 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_message", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 75 + "Start Line": 47, + "End Line": 53 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 7, - "Sequential Logic Declarations": 29, - "Function Parameters": 14, - "Function/Method Declarations": 14, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 7, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 42, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 10, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 24, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -189654,7 +187015,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 41, + "Structural Space Indentations": 138, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189670,16 +187031,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 7, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 7, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -189703,34 +187064,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "enum", "fastapi", - "pydantic", - "pytest" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_invalid_sequence_param.py": { + "python/fastapi/tests/test_no_swagger_ui_redirect.py": { "1. Artifact Identity": { - "Filename": "test_invalid_sequence_param.py", - "Path": "python/fastapi/tests/test_invalid_sequence_param.py", + "Filename": "test_no_swagger_ui_redirect.py", + "Path": "python/fastapi/tests/test_no_swagger_ui_redirect.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1829.79, - "Y": -197.15, - "Z": 950.1 + "X": 2152.98, + "Y": -99.85, + "Z": -2069.63 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189739,24 +187101,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 47, + "Total LOC": 32, + "Coding LOC": 20, "Documentation LOC": 0, - "Structural Magnitude": 37.34, - "Control Flow Ratio": "27.6%", + "Structural Magnitude": 11.1, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.213 + "Raw Cognitive Density": 0.25 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.22%", - "Error & Exception Exposure": "40.81%", + "Cognitive Load Exposure": "5.96%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.57%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.25%", + "Concurrency Exposure": "48.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -189767,112 +187129,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_sequence", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 6, - "End Line": 18 - }, - { - "Function Name": "test_invalid_tuple", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 21, - "End Line": 33 - }, - { - "Function Name": "test_invalid_dict", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 36, - "End Line": 48 - }, - { - "Function Name": "test_invalid_simple_dict", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 51, - "End Line": 63 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_swagger_ui", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 15, + "End Line": 21 }, { "Function Name": "read_items", - "Structural Impact": 1.5, + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_swagger_ui_no_oauth2_redirect", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 24, + "End Line": 26 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_response", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 + "Start Line": 29, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 21, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 4, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 16, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 16, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -189885,7 +187207,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 1, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -189897,7 +187219,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 40, + "Structural Space Indentations": 11, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -189913,11 +187235,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -189946,21 +187268,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "pydantic", - "pytest" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_json_type.py": { + "python/fastapi/tests/test_openapi_cache_root_path.py": { "1. Artifact Identity": { - "Filename": "test_json_type.py", - "Path": "python/fastapi/tests/test_json_type.py", + "Filename": "test_openapi_cache_root_path.py", + "Path": "python/fastapi/tests/test_openapi_cache_root_path.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -189970,9 +187291,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4159.22, - "Y": 122.3, - "Z": 839.8 + "X": 3510.2, + "Y": 57.49, + "Z": -1318.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -189981,23 +187302,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 43, - "Documentation LOC": 0, - "Structural Magnitude": 25.06, - "Control Flow Ratio": "0.0%", + "Total LOC": 76, + "Coding LOC": 51, + "Documentation LOC": 5, + "Structural Magnitude": 30.72, + "Control Flow Ratio": "22.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.093 + "Raw Cognitive Density": 0.212 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.37%", - "Error & Exception Exposure": "12.9%", + "Cognitive Load Exposure": "5.21%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.29%", + "API Exposure": "11.81%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -190009,112 +187330,112 @@ }, "5. Function Analysis": [ { - "Function Name": "form_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Function Name": "test_multiple_different_root_paths_do_not_accumulate", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "42.9%", + "Start Line": 26, + "End Line": 45 }, { - "Function Name": "query_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Function Name": "test_root_path_does_not_persist_across_requests", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "28.6%", + "Start Line": 5, + "End Line": 23 }, { - "Function Name": "header_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Function Name": "test_legitimate_root_path_still_appears", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 48, + "End Line": 59 }, { - "Function Name": "cookie_json_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_configured_servers_not_mutated", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 + "Start Line": 62, + "End Line": 75 }, { - "Function Name": "test_form_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 39 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "test_query_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 47 + "Start Line": 30, + "End Line": 31 }, { - "Function Name": "test_header_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 55 + "Start Line": 52, + "End Line": 53 }, { - "Function Name": "test_cookie_json_list", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 63 + "Start Line": 67, + "End Line": 68 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 37, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 21, "Function Parameters": 8, "Function/Method Declarations": 8, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 12, - "State Mutations / Variable Reassignments": 1, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 4, - "Generic Type Abstractions": 12, - "Collection Iterators / Comprehensions": 0, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 3, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -190128,7 +187449,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -190139,7 +187460,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 24, + "Structural Space Indentations": 45, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -190156,15 +187477,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 9, + "Core Var Decl": 22, "Design Camel Case": 0, - "Design Snake Case": 9, + "Design Snake Case": 22, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 1, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Duplicate Logic": 4, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -190188,36 +187509,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "json", - "pydantic", - "typing" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_jsonable_encoder.py": { + "python/fastapi/tests/test_openapi_examples.py": { "1. Artifact Identity": { - "Filename": "test_jsonable_encoder.py", - "Path": "python/fastapi/tests/test_jsonable_encoder.py", + "Filename": "test_openapi_examples.py", + "Path": "python/fastapi/tests/test_openapi_examples.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "Person, Pet, Enum", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3536.45, - "Y": 29.19, - "Z": -185.85 + "X": 3711.94, + "Y": 54.01, + "Z": -630.32 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -190226,23 +187544,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 314, - "Coding LOC": 219, + "Total LOC": 423, + "Coding LOC": 399, "Documentation LOC": 0, - "Structural Magnitude": 106.68, - "Control Flow Ratio": "4.1%", + "Structural Magnitude": 47.58, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.222 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.4%", - "Error & Exception Exposure": "3.69%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.2%", + "API Exposure": "8.72%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -190253,353 +187571,103 @@ "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ - { - "Function Name": "test_json_encoder_error_with_pydanticv1", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 159, - "End Line": 169 - }, - { - "Function Name": "__iter__", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "__iter__", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 41, - "End Line": 42 - }, - { - "Function Name": "test_encode_unsupported", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 134, - "End Line": 137 - }, - { - "Function Name": "__init__", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 - }, - { - "Function Name": "test_encode_model_with_alias_raises", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 177, - "End Line": 179 - }, - { - "Function Name": "test_custom_encoders", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 205, - "End Line": 225 - }, - { - "Function Name": "test_encode_custom_json_encoders_model_pydanticv2", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 140, - "End Line": 156 - }, - { - "Function Name": "__init__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "serialize_dt_field", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 147, - "End Line": 148 - }, - { - "Function Name": "test_encode_model_with_default", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 202 - }, - { - "Function Name": "test_encode_class", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 109 - }, - { - "Function Name": "test_encode_dictable", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 122 - }, - { - "Function Name": "test_custom_enum_encoders", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 228, - "End Line": 240 - }, - { - "Function Name": "__iter__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 - }, - { - "Function Name": "__dict__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 51 - }, - { - "Function Name": "test_encode_dict", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 84 - }, - { - "Function Name": "test_encode_dict_include_exclude_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 87, - "End Line": 96 - }, - { - "Function Name": "custom_enum_encoder", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 229, - "End Line": 230 - }, - { - "Function Name": "test_encode_dataclass", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 131 - }, - { - "Function Name": "test_encode_model_with_pure_path", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 243, - "End Line": 251 - }, - { - "Function Name": "test_encode_model_with_pure_posix_path", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 261 - }, - { - "Function Name": "test_encode_model_with_pure_windows_path", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 264, - "End Line": 271 - }, - { - "Function Name": "test_encode_deque_encodes_child_models", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 302, - "End Line": 308 - }, - { - "Function Name": "test_encode_pure_path", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 274, - "End Line": 277 - }, - { - "Function Name": "test_decimal_encoder_infinity", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + { + "Function Name": "test_openapi_schema", + "Structural Impact": 13.0, + "Lines of Code (LOC)": 281, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 295, - "End Line": 299 + "Start Line": 142, + "End Line": 422 }, { - "Function Name": "test_encode_model_with_config", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "path_examples", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 19, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 172, - "End Line": 174 + "Start Line": 35, + "End Line": 53 }, { - "Function Name": "test_encode_model_with_alias", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "query_examples", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 20, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 184 + "Start Line": 57, + "End Line": 76 }, { - "Function Name": "test_decimal_encoder_float", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "header_examples", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 20, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 280, - "End Line": 282 + "Start Line": 80, + "End Line": 99 }, { - "Function Name": "test_decimal_encoder_int", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "examples", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 285, - "End Line": 287 + "Start Line": 14, + "End Line": 31 }, { - "Function Name": "test_decimal_encoder_nan", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "cookie_examples", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 290, - "End Line": 292 + "Start Line": 103, + "End Line": 119 }, { - "Function Name": "test_encode_pydantic_undefined", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_call_api", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 15, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 311, - "End Line": 313 + "Start Line": 125, + "End Line": 139 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 140, - "Function Parameters": 34, - "Function/Method Declarations": 32, - "Class/Entity Declarations": 20, - "Defensive Programming Constructs": 66, - "Type/Safety Bypasses": 20, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 48, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 46, - "State Mutations / Variable Reassignments": 3, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 13, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 80, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 2, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 5, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 4, - "Module Dependencies (Imports)": 16, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -190613,18 +187681,18 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 2, - "Fatal Aborts & Exceptions": 2, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 9, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 170, + "Structural Space Indentations": 375, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -190640,16 +187708,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 74, + "Vectorized Math & Tensor Operations": 5, + "Core Var Decl": 26, "Design Camel Case": 0, - "Design Snake Case": 72, - "Design Pascal Case": 1, - "Design Upper Case": 1, - "Design Short Vars": 1, + "Design Snake Case": 22, + "Design Pascal Case": 4, + "Design Upper Case": 0, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 25, + "Duplicate Logic": 0, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -190673,44 +187741,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 14, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections", - "dataclasses", - "datetime", - "decimal", - "enum", - "fastapi._compat", - "fastapi.encoders", - "fastapi.exceptions", - "math", - "pathlib", - "pydantic", - "pytest", - "typing", - "warnings" + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py": { + "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py": { "1. Artifact Identity": { - "Filename": "test_list_bytes_file_order_preserved_issue_14811.py", - "Path": "python/fastapi/tests/test_list_bytes_file_order_preserved_issue_14811.py", + "Filename": "test_openapi_model_description_trim_on_formfeed.py", + "Path": "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2929.42, - "Y": -16.67, - "Z": 1247.14 + "X": 3667.21, + "Y": 93.27, + "Z": -2014.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -190719,26 +187778,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 47, - "Coding LOC": 27, - "Documentation LOC": 8, - "Structural Magnitude": 39.04, - "Control Flow Ratio": "9.1%", + "Total LOC": 32, + "Coding LOC": 16, + "Documentation LOC": 5, + "Structural Magnitude": 8.22, + "Control Flow Ratio": "7.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 2.667 + "Raw Cognitive Density": 0.188 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "24.99%", - "Error & Exception Exposure": "41.34%", + "Cognitive Load Exposure": "2.38%", + "Error & Exception Exposure": "32.3%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.31%", - "Concurrency Exposure": "100.0%", + "API Exposure": "9.21%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "23.15%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -190747,62 +187806,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_list_bytes_file_preserves_order", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "18.2%", - "Start Line": 16, - "End Line": 46 - }, - { - "Function Name": "patched_read", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 5, + "Function Name": "test_openapi", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 28, - "End Line": 32 + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 24, + "End Line": 31 }, { - "Function Name": "upload", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, + "Function Name": "foo", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 22, - "End Line": 24 + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 18 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 20, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 12, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 4, - "State Mutations / Variable Reassignments": 3, - "Commented-out Code (Dead Logic)": 1, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 2, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 19, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -190827,7 +187876,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 19, + "Structural Space Indentations": 7, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -190843,13 +187892,13 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 1, @@ -190876,37 +187925,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "anyio", "fastapi", "fastapi.testclient", - "pytest", - "starlette.datastructures", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_multi_body_errors.py": { + "python/fastapi/tests/test_openapi_query_parameter_extension.py": { "1. Artifact Identity": { - "Filename": "test_multi_body_errors.py", - "Path": "python/fastapi/tests/test_multi_body_errors.py", + "Filename": "test_openapi_query_parameter_extension.py", + "Path": "python/fastapi/tests/test_openapi_query_parameter_extension.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3030.28, - "Y": 27.91, - "Z": 1558.88 + "X": 1993.15, + "Y": -147.3, + "Z": -1988.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -190915,10 +187960,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 192, - "Coding LOC": 173, - "Documentation LOC": 2, - "Structural Magnitude": 23.96, + "Total LOC": 132, + "Coding LOC": 122, + "Documentation LOC": 0, + "Structural Magnitude": 14.74, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -190928,10 +187973,10 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "43.02%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.9%", + "API Exposure": "6.58%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -190943,82 +187988,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 103, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 191 - }, - { - "Function Name": "test_put_incorrect_body_multiple", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 31, + "Function Name": "test_openapi", + "Structural Impact": 5.6, + "Lines of Code (LOC)": 92, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 86 + "Start Line": 40, + "End Line": 131 }, { - "Function Name": "test_jsonable_encoder_requiring_error", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Function Name": "route_with_extra_query_parameters", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 53 + "Start Line": 27, + "End Line": 28 }, { - "Function Name": "test_put_correct_body", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_get_route", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, + "Start Line": 34, "End Line": 37 - }, - { - "Function Name": "save_item_no_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 49, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 27, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -191035,7 +188060,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 2, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -191043,7 +188068,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 158, + "Structural Space Indentations": 112, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191062,13 +188087,13 @@ "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -191092,24 +188117,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "decimal", - "dirty_equals", "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_multi_query_errors.py": { + "python/fastapi/tests/test_openapi_route_extensions.py": { "1. Artifact Identity": { - "Filename": "test_multi_query_errors.py", - "Path": "python/fastapi/tests/test_multi_query_errors.py", + "Filename": "test_openapi_route_extensions.py", + "Path": "python/fastapi/tests/test_openapi_route_extensions.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -191119,9 +188141,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4274.58, - "Y": 99.55, - "Z": -1212.29 + "X": 4584.79, + "Y": 147.16, + "Z": -1473.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191130,23 +188152,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 123, - "Coding LOC": 111, + "Total LOC": 46, + "Coding LOC": 36, "Documentation LOC": 0, - "Structural Magnitude": 16.92, + "Structural Magnitude": 9.22, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.056 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.93%", + "Error & Exception Exposure": "32.9%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.43%", + "API Exposure": "8.36%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -191159,67 +188181,57 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 80, + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 122 + "Start Line": 22, + "End Line": 45 }, { - "Function Name": "test_multi_query_incorrect", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 19, + "Function Name": "test_get_route", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 40 + "Start Line": 16, + "End Line": 19 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, + "Function Name": "route_with_extras", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 9, "End Line": 10 - }, - { - "Function Name": "test_multi_query", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 34, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Sequential Logic Declarations": 14, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -191248,7 +188260,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 101, + "Structural Space Indentations": 27, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191273,7 +188285,7 @@ "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -191308,10 +188320,10 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_multipart_installation.py": { + "python/fastapi/tests/test_openapi_schema_type.py": { "1. Artifact Identity": { - "Filename": "test_multipart_installation.py", - "Path": "python/fastapi/tests/test_multipart_installation.py", + "Filename": "test_openapi_schema_type.py", + "Path": "python/fastapi/tests/test_openapi_schema_type.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -191321,9 +188333,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3136.3, - "Y": 33.25, - "Z": -508.95 + "X": 4925.73, + "Y": 258.75, + "Z": 764.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191332,24 +188344,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 150, - "Coding LOC": 115, - "Documentation LOC": 0, - "Structural Magnitude": 129.3, - "Control Flow Ratio": "44.3%", + "Total LOC": 25, + "Coding LOC": 18, + "Documentation LOC": 2, + "Structural Magnitude": 8.26, + "Control Flow Ratio": "25.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.052 + "Raw Cognitive Density": 0.278 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "38.5%", + "Cognitive Load Exposure": "3.28%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.47%", - "Concurrency Exposure": "98.84%", + "API Exposure": "6.74%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -191360,255 +188372,347 @@ }, "5. Function Analysis": [ { - "Function Name": "test_incorrect_multipart_installed_form", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 11, - "End Line": 21 - }, - { - "Function Name": "test_incorrect_multipart_installed_file_upload", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 24, - "End Line": 34 - }, - { - "Function Name": "test_incorrect_multipart_installed_file_bytes", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 37, - "End Line": 47 - }, - { - "Function Name": "test_incorrect_multipart_installed_multi_form", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 50, - "End Line": 60 - }, - { - "Function Name": "test_incorrect_multipart_installed_form_file", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 63, - "End Line": 73 - }, - { - "Function Name": "test_no_multipart_installed", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 76, - "End Line": 86 - }, - { - "Function Name": "test_no_multipart_installed_file", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, + "Function Name": "test_invalid_type_value", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 89, - "End Line": 99 + "Input Parameters": 0, + "Control Flow Ratio": "60.0%", + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "test_no_multipart_installed_file_bytes", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, + "Function Name": "test_allowed_schema_type", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 102, - "End Line": 112 - }, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 18 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 3, + "Sequential Logic Declarations": 9, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 2, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 4, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 3, + "Collection Iterators / Comprehensions": 1, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 11, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 2, + "Design Camel Case": 0, + "Design Snake Case": 2, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi.openapi.models", + "pytest" + ] + }, + "python/fastapi/tests/test_openapi_separate_input_output_schemas.py": { + "1. Artifact Identity": { + "Filename": "test_openapi_separate_input_output_schemas.py", + "Path": "python/fastapi/tests/test_openapi_separate_input_output_schemas.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 3473.07, + "Y": 10.01, + "Z": -673.8 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 677, + "Coding LOC": 648, + "Documentation LOC": 0, + "Structural Magnitude": 85.96, + "Control Flow Ratio": "4.2%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.025 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "2.61%", + "Error & Exception Exposure": "38.96%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.34%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_no_multipart_installed_multi_form", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 115, - "End Line": 125 + "Function Name": "test_openapi_schema", + "Structural Impact": 16.0, + "Lines of Code (LOC)": 280, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "2.3%", + "Start Line": 159, + "End Line": 438 }, { - "Function Name": "test_no_multipart_installed_form_file", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "50.0%", - "Start Line": 128, - "End Line": 138 + "Function Name": "test_openapi_schema_no_separate", + "Structural Impact": 13.8, + "Lines of Code (LOC)": 236, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "3.0%", + "Start Line": 441, + "End Line": 676 }, { - "Function Name": "test_old_multipart_installed", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 9, + "Function Name": "get_app_client", + "Structural Impact": 4.3, + "Lines of Code (LOC)": 30, "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 141, - "End Line": 149 - }, - { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 + "Control Flow Ratio": "9.1%", + "Start Line": 30, + "End Line": 59 }, { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 72, - "End Line": 73 + "Function Name": "test_with_computed_field", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "40.0%", + "Start Line": 143, + "End Line": 156 }, { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_item_list", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 124, - "End Line": 125 + "Start Line": 96, + "End Line": 120 }, { - "Function Name": "root", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_item_with_sub", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 19, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 138 + "Start Line": 75, + "End Line": 93 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_read_items", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 123, + "End Line": 140 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "create_with_computed_field", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 53, + "End Line": 56 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_create_item", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 + "Start Line": 62, + "End Line": 72 }, { - "Function Name": "root", + "Function Name": "computed_field", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 26, + "End Line": 27 }, { - "Function Name": "root", + "Function Name": "create_item", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 99 + "Start Line": 34, + "End Line": 35 }, { - "Function Name": "root", + "Function Name": "create_item_list", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 111, - "End Line": 112 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "root", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "read_items", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 148, - "End Line": 149 + "Start Line": 42, + "End Line": 50 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 31, - "Sequential Logic Declarations": 39, - "Function Parameters": 22, - "Function/Method Declarations": 22, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 113, + "Function Parameters": 13, + "Function/Method Declarations": 13, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 22, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 33, + "Exposed API / Public Exports": 20, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 22, - "Asynchronous/Concurrent Execution": 11, + "Unit Test Assertions": 21, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 11, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 6, + "Generic Type Abstractions": 8, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 11, + "Metaprogramming & Reflection": 1, "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 2, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, @@ -191626,11 +188730,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 16, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 99, + "Structural Space Indentations": 633, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191646,15 +188750,15 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 11, - "Core Var Decl": 42, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 38, "Design Camel Case": 0, - "Design Snake Case": 40, - "Design Pascal Case": 2, + "Design Snake Case": 35, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 11, + "Duplicate Logic": 0, "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, @@ -191663,7 +188767,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 5, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -191686,28 +188790,27 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.dependencies.utils", - "pytest", - "warnings" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_no_schema_split.py": { + "python/fastapi/tests/test_openapi_servers.py": { "1. Artifact Identity": { - "Filename": "test_no_schema_split.py", - "Path": "python/fastapi/tests/test_no_schema_split.py", + "Filename": "test_openapi_servers.py", + "Path": "python/fastapi/tests/test_openapi_servers.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "str, Enum, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2920.67, - "Y": -59.24, - "Z": -1792.37 + "X": 4973.35, + "Y": 236.72, + "Z": 39.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191716,10 +188819,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 177, - "Coding LOC": 153, - "Documentation LOC": 4, - "Structural Magnitude": 22.26, + "Total LOC": 61, + "Coding LOC": 51, + "Documentation LOC": 0, + "Structural Magnitude": 9.72, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -191729,11 +188832,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "35.79%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.48%", - "Concurrency Exposure": "19.93%", + "API Exposure": "7.8%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -191745,61 +188848,61 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 7.1, - "Lines of Code (LOC)": 121, + "Structural Impact": 2.5, + "Lines of Code (LOC)": 31, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 176 + "Start Line": 30, + "End Line": 60 }, { - "Function Name": "create_message", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "foo", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 41 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "test_create_message", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_app", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 53 + "Start Line": 25, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 42, + "Sequential Logic Declarations": 13, "Function Parameters": 3, "Function/Method Declarations": 3, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 10, - "Type/Safety Bypasses": 1, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 3, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -191824,7 +188927,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 138, + "Structural Space Indentations": 41, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -191841,15 +188944,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 1, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -191873,23 +188976,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "enum", "fastapi", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_no_swagger_ui_redirect.py": { + "python/fastapi/tests/test_operations_signatures.py": { "1. Artifact Identity": { - "Filename": "test_no_swagger_ui_redirect.py", - "Path": "python/fastapi/tests/test_no_swagger_ui_redirect.py", + "Filename": "test_operations_signatures.py", + "Path": "python/fastapi/tests/test_operations_signatures.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -191899,9 +189000,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2152.98, - "Y": -99.85, - "Z": -2069.63 + "X": 1329.4, + "Y": -249.72, + "Z": -1537.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -191910,24 +189011,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 32, - "Coding LOC": 20, + "Total LOC": 23, + "Coding LOC": 18, "Documentation LOC": 0, - "Structural Magnitude": 11.1, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 5.16, + "Control Flow Ratio": "20.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.25 + "Raw Cognitive Density": 2.444 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.96%", + "Cognitive Load Exposure": "49.94%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.25%", - "Concurrency Exposure": "48.44%", + "API Exposure": "4.36%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -191938,71 +189039,41 @@ }, "5. Function Analysis": [ { - "Function Name": "test_swagger_ui", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 21 - }, - { - "Function Name": "read_items", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_signatures_consistency", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "28.6%", "Start Line": 8, - "End Line": 9 - }, - { - "Function Name": "test_swagger_ui_no_oauth2_redirect", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 - }, - { - "Function Name": "test_response", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 31 + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 16, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 8, + "Function Parameters": 1, + "Function/Method Declarations": 1, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 1, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 8, "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -192016,7 +189087,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 1, + "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -192028,7 +189099,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 11, + "Structural Space Indentations": 14, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192044,16 +189115,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -192084,13 +189155,13 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "inspect" ] }, - "python/fastapi/tests/test_openapi_cache_root_path.py": { + "python/fastapi/tests/test_optional_file_list.py": { "1. Artifact Identity": { - "Filename": "test_openapi_cache_root_path.py", - "Path": "python/fastapi/tests/test_openapi_cache_root_path.py", + "Filename": "test_optional_file_list.py", + "Path": "python/fastapi/tests/test_optional_file_list.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -192100,9 +189171,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3510.2, - "Y": 57.49, - "Z": -1318.36 + "X": 3829.74, + "Y": 116.26, + "Z": 1804.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192111,24 +189182,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 51, - "Documentation LOC": 5, - "Structural Magnitude": 30.72, - "Control Flow Ratio": "22.2%", + "Total LOC": 29, + "Coding LOC": 21, + "Documentation LOC": 0, + "Structural Magnitude": 12.42, + "Control Flow Ratio": "13.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.212 + "Raw Cognitive Density": 0.333 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.21%", + "Cognitive Load Exposure": "7.94%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.81%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.46%", + "Concurrency Exposure": "47.48%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -192139,109 +189210,59 @@ }, "5. Function Analysis": [ { - "Function Name": "test_multiple_different_root_paths_do_not_accumulate", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "42.9%", - "Start Line": 26, - "End Line": 45 - }, - { - "Function Name": "test_root_path_does_not_persist_across_requests", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 19, + "Function Name": "upload_files", + "Structural Impact": 4.4, + "Lines of Code (LOC)": 4, "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 5, - "End Line": 23 - }, - { - "Function Name": "test_legitimate_root_path_still_appears", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 12, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 48, - "End Line": 59 - }, - { - "Function Name": "test_configured_servers_not_mutated", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 75 - }, - { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 - }, - { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 8, + "End Line": 11 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_optional_bytes_list", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 53 + "Start Line": 14, + "End Line": 21 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_optional_bytes_list_no_files", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 68 + "Start Line": 24, + "End Line": 28 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 21, - "Function Parameters": 8, - "Function/Method Declarations": 8, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 13, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 3, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 1, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 2, @@ -192269,7 +189290,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 45, + "Structural Space Indentations": 14, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192285,16 +189306,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 22, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 1, + "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 4, - "Orphaned Logic": 4, + "Duplicate Logic": 0, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -192328,23 +189349,22 @@ "fastapi.testclient" ] }, - "python/fastapi/tests/test_openapi_examples.py": { + "python/fastapi/tests/test_orjson_response_class.py": { "1. Artifact Identity": { - "Filename": "test_openapi_examples.py", - "Path": "python/fastapi/tests/test_openapi_examples.py", + "Filename": "test_orjson_response_class.py", + "Path": "python/fastapi/tests/test_orjson_response_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3711.94, - "Y": 54.01, - "Z": -630.32 + "X": 4973.94, + "Y": 206.41, + "Z": -592.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192353,23 +189373,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 423, - "Coding LOC": 399, + "Total LOC": 29, + "Coding LOC": 20, "Documentation LOC": 0, - "Structural Magnitude": 47.58, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 7.8, + "Control Flow Ratio": "16.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.25 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "5.96%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.72%", + "API Exposure": "8.15%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -192381,102 +189401,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 13.0, - "Lines of Code (LOC)": 281, - "Control Flow Branches": 0, + "Function Name": "test_orjson_non_str_keys", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 142, - "End Line": 422 - }, - { - "Function Name": "path_examples", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 53 - }, - { - "Function Name": "query_examples", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 76 - }, - { - "Function Name": "header_examples", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 99 - }, - { - "Function Name": "examples", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 31 - }, - { - "Function Name": "cookie_examples", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 119 + "Control Flow Ratio": "50.0%", + "Start Line": 23, + "End Line": 28 }, { - "Function Name": "test_call_api", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 15, + "Function Name": "get_orjson_non_str_keys", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 139 + "Start Line": 15, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 48, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 15, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 2, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -192501,7 +189471,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 375, + "Structural Space Indentations": 9, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192517,11 +189487,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 5, - "Core Var Decl": 26, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 4, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -192550,35 +189520,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "sqlalchemy.sql.elements", + "warnings" ] }, - "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py": { + "python/fastapi/tests/test_param_class.py": { "1. Artifact Identity": { - "Filename": "test_openapi_model_description_trim_on_formfeed.py", - "Path": "python/fastapi/tests/test_openapi_model_description_trim_on_formfeed.py", + "Filename": "test_param_class.py", + "Path": "python/fastapi/tests/test_param_class.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3667.21, - "Y": 93.27, - "Z": -2014.49 + "X": 3625.52, + "Y": 115.49, + "Z": 2203.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192587,23 +189558,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 32, + "Total LOC": 26, "Coding LOC": 16, - "Documentation LOC": 5, + "Documentation LOC": 0, "Structural Magnitude": 8.22, - "Control Flow Ratio": "7.7%", + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.188 + "Raw Cognitive Density": 0.125 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.38%", - "Error & Exception Exposure": "32.3%", + "Cognitive Load Exposure": "3.79%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.21%", + "API Exposure": "9.77%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -192615,42 +189586,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 31 - }, - { - "Function Name": "foo", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 9, + "End Line": 10 + }, + { + "Function Name": "test_default_param_query_none", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 19 + }, + { + "Function Name": "test_default_param_query", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 12, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 3, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -192701,16 +189682,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -192741,14 +189722,14 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.params", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_openapi_query_parameter_extension.py": { + "python/fastapi/tests/test_param_in_path_and_dependency.py": { "1. Artifact Identity": { - "Filename": "test_openapi_query_parameter_extension.py", - "Path": "python/fastapi/tests/test_openapi_query_parameter_extension.py", + "Filename": "test_param_in_path_and_dependency.py", + "Path": "python/fastapi/tests/test_param_in_path_and_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -192758,9 +189739,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1993.15, - "Y": -147.3, - "Z": -1988.06 + "X": 4445.24, + "Y": 205.67, + "Z": 736.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192769,10 +189750,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 132, - "Coding LOC": 122, + "Total LOC": 100, + "Coding LOC": 88, "Documentation LOC": 0, - "Structural Magnitude": 14.74, + "Structural Magnitude": 17.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -192782,11 +189763,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "43.02%", + "Error & Exception Exposure": "47.85%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.58%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.76%", + "Concurrency Exposure": "39.55%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -192797,53 +189778,63 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi", - "Structural Impact": 5.6, - "Lines of Code (LOC)": 92, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 75, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 131 + "Start Line": 25, + "End Line": 99 }, { - "Function Name": "route_with_extra_query_parameters", + "Function Name": "user_exists", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "test_get_route", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_users", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "test_read_users", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 37 + "Start Line": 20, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 26, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 4, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -192859,7 +189850,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -192877,7 +189868,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 112, + "Structural Space Indentations": 78, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -192894,10 +189885,10 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Core Var Decl": 5, "Design Camel Case": 0, "Design Snake Case": 5, - "Design Pascal Case": 1, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -192937,10 +189928,10 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_openapi_route_extensions.py": { + "python/fastapi/tests/test_param_include_in_schema.py": { "1. Artifact Identity": { - "Filename": "test_openapi_route_extensions.py", - "Path": "python/fastapi/tests/test_openapi_route_extensions.py", + "Filename": "test_param_include_in_schema.py", + "Path": "python/fastapi/tests/test_param_include_in_schema.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -192950,9 +189941,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4584.79, - "Y": 147.16, - "Z": -1473.3 + "X": 1732.06, + "Y": -210.06, + "Z": -481.46 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -192961,24 +189952,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 46, - "Coding LOC": 36, + "Total LOC": 247, + "Coding LOC": 227, "Documentation LOC": 0, - "Structural Magnitude": 9.22, + "Structural Magnitude": 44.04, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.056 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.93%", - "Error & Exception Exposure": "32.9%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.36%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.57%", + "Concurrency Exposure": "36.12%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -192990,61 +189981,121 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, + "Structural Impact": 7.8, + "Lines of Code (LOC)": 135, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 45 + "Start Line": 112, + "End Line": 246 }, { - "Function Name": "test_get_route", - "Structural Impact": 1.2, + "Function Name": "test_hidden_cookie", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 56 + }, + { + "Function Name": "test_hidden_header", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 80 + }, + { + "Function Name": "test_hidden_query", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 109 + }, + { + "Function Name": "hidden_cookie", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 10, + "End Line": 13 }, { - "Function Name": "route_with_extras", - "Structural Impact": 1.1, + "Function Name": "hidden_header", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 20 + }, + { + "Function Name": "hidden_query", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 32 + }, + { + "Function Name": "hidden_path", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 25 + }, + { + "Function Name": "test_hidden_path", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 83, + "End Line": 87 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 41, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 10, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 19, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 7, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -193069,7 +190120,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 27, + "Structural Space Indentations": 200, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193085,16 +190136,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 12, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193118,7 +190169,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -193126,13 +190177,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pytest" ] }, - "python/fastapi/tests/test_openapi_schema_type.py": { + "python/fastapi/tests/test_params_repr.py": { "1. Artifact Identity": { - "Filename": "test_openapi_schema_type.py", - "Path": "python/fastapi/tests/test_openapi_schema_type.py", + "Filename": "test_params_repr.py", + "Path": "python/fastapi/tests/test_params_repr.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -193142,9 +190194,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4925.73, - "Y": 258.75, - "Z": 764.52 + "X": 2543.09, + "Y": -90.36, + "Z": -937.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193153,23 +190205,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 25, - "Coding LOC": 18, - "Documentation LOC": 2, - "Structural Magnitude": 8.26, - "Control Flow Ratio": "25.0%", + "Total LOC": 115, + "Coding LOC": 58, + "Documentation LOC": 0, + "Structural Magnitude": 57.86, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.278 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.28%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.16%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.74%", + "API Exposure": "14.02%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -193181,49 +190233,299 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_type_value", - "Structural Impact": 4.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 3, + "Function Name": "get_user", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 + }, + { + "Function Name": "test_param_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 13 + }, + { + "Function Name": "test_param_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "test_param_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "test_param_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 24, + "End Line": 25 + }, + { + "Function Name": "test_param_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 + }, + { + "Function Name": "test_path_repr", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 34 + }, + { + "Function Name": "test_query_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 38 + }, + { + "Function Name": "test_query_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 + }, + { + "Function Name": "test_query_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 46 + }, + { + "Function Name": "test_query_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "test_query_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 53, + "End Line": 54 + }, + { + "Function Name": "test_header_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 57, + "End Line": 58 + }, + { + "Function Name": "test_header_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 62 + }, + { + "Function Name": "test_header_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 65, + "End Line": 66 + }, + { + "Function Name": "test_header_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 69, + "End Line": 70 + }, + { + "Function Name": "test_header_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 74 + }, + { + "Function Name": "test_cookie_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 78 + }, + { + "Function Name": "test_cookie_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 81, + "End Line": 82 + }, + { + "Function Name": "test_cookie_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 86 + }, + { + "Function Name": "test_cookie_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 89, + "End Line": 90 + }, + { + "Function Name": "test_cookie_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 94 + }, + { + "Function Name": "test_body_repr_str", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 97, + "End Line": 98 + }, + { + "Function Name": "test_body_repr_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 101, + "End Line": 102 + }, + { + "Function Name": "test_body_repr_ellipsis", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 106 + }, + { + "Function Name": "test_body_repr_number", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "60.0%", - "Start Line": 21, - "End Line": 24 + "Control Flow Ratio": "0.0%", + "Start Line": 109, + "End Line": 110 }, { - "Function Name": "test_allowed_schema_type", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, + "Function Name": "test_body_repr_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 18 + "Start Line": 113, + "End Line": 114 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 9, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 59, + "Function Parameters": 27, + "Function/Method Declarations": 27, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 27, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, + "Exposed API / Public Exports": 27, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 4, - "Unit Test Assertions": 6, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 53, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, - "Collection Iterators / Comprehensions": 1, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, "Module Dependencies (Imports)": 2, @@ -193251,7 +190553,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 11, + "Structural Space Indentations": 28, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193267,16 +190569,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 2, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 0, "Design Camel Case": 0, - "Design Snake Case": 2, + "Design Snake Case": 0, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 27, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193306,27 +190608,26 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.openapi.models", - "pytest" + "fastapi.params", + "typing" ] }, - "python/fastapi/tests/test_openapi_separate_input_output_schemas.py": { + "python/fastapi/tests/test_path.py": { "1. Artifact Identity": { - "Filename": "test_openapi_separate_input_output_schemas.py", - "Path": "python/fastapi/tests/test_openapi_separate_input_output_schemas.py", + "Filename": "test_path.py", + "Path": "python/fastapi/tests/test_path.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3473.07, - "Y": 10.01, - "Z": -673.8 + "X": 3327.66, + "Y": 13.33, + "Z": -208.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193335,23 +190636,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 677, - "Coding LOC": 648, + "Total LOC": 781, + "Coding LOC": 628, "Documentation LOC": 0, - "Structural Magnitude": 85.96, - "Control Flow Ratio": "4.2%", + "Structural Magnitude": 199.06, + "Control Flow Ratio": "2.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.025 + "Raw Cognitive Density": 0.019 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.61%", - "Error & Exception Exposure": "38.96%", + "Cognitive Load Exposure": "2.55%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.34%", + "API Exposure": "13.0%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -193363,355 +190664,782 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 16.0, - "Lines of Code (LOC)": 280, + "Function Name": "test_path_param_ge_2", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "2.3%", - "Start Line": 159, - "End Line": 438 + "Control Flow Ratio": "20.0%", + "Start Line": 362, + "End Line": 375 }, { - "Function Name": "test_openapi_schema_no_separate", - "Structural Impact": 13.8, - "Lines of Code (LOC)": 236, + "Function Name": "test_path_param_le_42", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "3.0%", - "Start Line": 441, - "End Line": 676 + "Control Flow Ratio": "20.0%", + "Start Line": 422, + "End Line": 435 }, { - "Function Name": "get_app_client", - "Structural Impact": 4.3, - "Lines of Code (LOC)": 30, + "Function Name": "test_path_param_le_ge_4", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "9.1%", - "Start Line": 30, - "End Line": 59 + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 505, + "End Line": 518 }, { - "Function Name": "test_with_computed_field", - "Structural Impact": 3.7, + "Function Name": "test_path_param_le_int_42", + "Structural Impact": 2.7, "Lines of Code (LOC)": 14, - "Control Flow Branches": 2, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 143, - "End Line": 156 + "Control Flow Ratio": "20.0%", + "Start Line": 595, + "End Line": 608 }, { - "Function Name": "test_create_item_list", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, + "Function Name": "test_path_param_ge_int_2", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 650, + "End Line": 663 + }, + { + "Function Name": "test_path_param_le_ge_int_4", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 752, + "End Line": 765 + }, + { + "Function Name": "test_path_param_minlength_fo", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 120 + "Start Line": 230, + "End Line": 243 }, { - "Function Name": "test_create_item_with_sub", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 19, + "Function Name": "test_path_param_maxlength_foobar", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 93 + "Start Line": 252, + "End Line": 265 }, { - "Function Name": "test_read_items", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, + "Function Name": "test_path_param_min_maxlength_foobar", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 123, - "End Line": 140 + "Start Line": 274, + "End Line": 287 }, { - "Function Name": "create_with_computed_field", + "Function Name": "test_path_param_min_maxlength_f", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 290, + "End Line": 303 + }, + { + "Function Name": "test_path_param_gt_2", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 312, + "End Line": 325 + }, + { + "Function Name": "test_path_param_gt0_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 334, + "End Line": 347 + }, + { + "Function Name": "test_path_param_lt_42", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 378, + "End Line": 391 + }, + { + "Function Name": "test_path_param_lt0_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 406, + "End Line": 419 + }, + { + "Function Name": "test_path_param_lt_gt_4", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 456, + "End Line": 469 + }, + { + "Function Name": "test_path_param_lt_gt_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 472, + "End Line": 485 + }, + { + "Function Name": "test_path_param_lt_int_42", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 527, + "End Line": 540 + }, + { + "Function Name": "test_path_param_gt_int_2", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 564, + "End Line": 577 + }, + { + "Function Name": "test_path_param_lt_gt_int_4", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 687, + "End Line": 700 + }, + { + "Function Name": "test_path_param_lt_gt_int_0", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 703, + "End Line": 716 + }, + { + "Function Name": "test_path_int_foobar", "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, + "Start Line": 44, "End Line": 56 }, { - "Function Name": "test_create_item", + "Function Name": "test_path_int_True", "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 72 + "Start Line": 59, + "End Line": 71 }, { - "Function Name": "computed_field", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_int_42_5", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 80, + "End Line": 92 + }, + { + "Function Name": "test_path_float_foobar", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 95, + "End Line": 107 + }, + { + "Function Name": "test_path_float_True", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 110, + "End Line": 122 + }, + { + "Function Name": "test_path_bool_foobar", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 137, + "End Line": 149 + }, + { + "Function Name": "test_path_bool_42", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 158, + "End Line": 170 + }, + { + "Function Name": "test_path_bool_42_5", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 173, + "End Line": 185 + }, + { + "Function Name": "test_path_param_lt_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 543, + "End Line": 555 + }, + { + "Function Name": "test_path_param_gt_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 580, + "End Line": 592 + }, + { + "Function Name": "test_path_param_le_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 623, + "End Line": 635 + }, + { + "Function Name": "test_path_param_ge_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 666, + "End Line": 678 + }, + { + "Function Name": "test_path_param_lt_gt_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 719, + "End Line": 731 + }, + { + "Function Name": "test_path_param_le_ge_int_2_7", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 768, + "End Line": 780 + }, + { + "Function Name": "test_text_get", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 11 + }, + { + "Function Name": "test_nonexistent", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 17 + }, + { + "Function Name": "test_path_foobar", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 23 + }, + { + "Function Name": "test_path_str_foobar", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 26, - "End Line": 27 + "End Line": 29 }, { - "Function Name": "create_item", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_str_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, + "Start Line": 32, "End Line": 35 }, { - "Function Name": "create_item_list", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_str_True", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 39 + "End Line": 41 }, { - "Function Name": "read_items", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "test_path_int_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 50 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 113, - "Function Parameters": 13, - "Function/Method Declarations": 13, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 22, - "Type/Safety Bypasses": 1, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 21, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 6, - "Generic Type Abstractions": 8, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 2, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 633, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 38, - "Design Camel Case": 0, - "Design Snake Case": 35, - "Design Pascal Case": 3, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 11, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 5, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" - ] - }, - "python/fastapi/tests/test_openapi_servers.py": { - "1. Artifact Identity": { - "Filename": "test_openapi_servers.py", - "Path": "python/fastapi/tests/test_openapi_servers.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4973.35, - "Y": 236.72, - "Z": 39.37 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 61, - "Coding LOC": 51, - "Documentation LOC": 0, - "Structural Magnitude": 9.72, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.8%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 74, + "End Line": 77 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 31, + "Function Name": "test_path_float_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 60 + "Start Line": 125, + "End Line": 128 }, { - "Function Name": "foo", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_path_float_42_5", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 131, + "End Line": 134 }, { - "Function Name": "test_app", + "Function Name": "test_path_bool_True", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 152, + "End Line": 155 + }, + { + "Function Name": "test_path_bool_1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 188, + "End Line": 191 + }, + { + "Function Name": "test_path_bool_0", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 194, + "End Line": 197 + }, + { + "Function Name": "test_path_bool_true", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 200, + "End Line": 203 + }, + { + "Function Name": "test_path_bool_False", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 206, + "End Line": 209 + }, + { + "Function Name": "test_path_bool_false", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 212, + "End Line": 215 + }, + { + "Function Name": "test_path_param_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 218, + "End Line": 221 + }, + { + "Function Name": "test_path_param_minlength_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 224, + "End Line": 227 + }, + { + "Function Name": "test_path_param_maxlength_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 246, + "End Line": 249 + }, + { + "Function Name": "test_path_param_min_maxlength_foo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 268, + "End Line": 271 + }, + { + "Function Name": "test_path_param_gt_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 306, + "End Line": 309 + }, + { + "Function Name": "test_path_param_gt0_0_05", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 328, + "End Line": 331 + }, + { + "Function Name": "test_path_param_ge_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 350, + "End Line": 353 + }, + { + "Function Name": "test_path_param_ge_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 356, + "End Line": 359 + }, + { + "Function Name": "test_path_param_lt_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 394, + "End Line": 397 + }, + { + "Function Name": "test_path_param_lt0__1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 400, + "End Line": 403 + }, + { + "Function Name": "test_path_param_le_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 438, + "End Line": 441 + }, + { + "Function Name": "test_path_param_le_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 444, + "End Line": 447 + }, + { + "Function Name": "test_path_param_lt_gt_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 450, + "End Line": 453 + }, + { + "Function Name": "test_path_param_le_ge_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 488, + "End Line": 491 + }, + { + "Function Name": "test_path_param_le_ge_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 499, + "End Line": 502 + }, + { + "Function Name": "test_path_param_lt_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 521, + "End Line": 524 + }, + { + "Function Name": "test_path_param_gt_int_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 558, + "End Line": 561 + }, + { + "Function Name": "test_path_param_le_int_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 611, + "End Line": 614 + }, + { + "Function Name": "test_path_param_le_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 617, + "End Line": 620 + }, + { + "Function Name": "test_path_param_ge_int_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 638, + "End Line": 641 + }, + { + "Function Name": "test_path_param_ge_int_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 644, + "End Line": 647 + }, + { + "Function Name": "test_path_param_lt_gt_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 681, + "End Line": 684 + }, + { + "Function Name": "test_path_param_le_ge_int_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 734, + "End Line": 737 + }, + { + "Function Name": "test_path_param_le_ge_int_1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 740, + "End Line": 743 + }, + { + "Function Name": "test_path_param_le_ge_int_3", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 746, + "End Line": 749 + }, + { + "Function Name": "test_path_param_le_ge_1", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 494, + "End Line": 496 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 13, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 273, + "Function Parameters": 75, + "Function/Method Declarations": 75, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, + "Defensive Programming Constructs": 149, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 75, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, + "Unit Test Assertions": 224, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -193736,7 +191464,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 41, + "Structural Space Indentations": 550, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193752,16 +191480,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 76, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 76, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 75, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193785,21 +191513,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot" + ".main", + "fastapi.testclient" ] }, - "python/fastapi/tests/test_operations_signatures.py": { + "python/fastapi/tests/test_put_no_body.py": { "1. Artifact Identity": { - "Filename": "test_operations_signatures.py", - "Path": "python/fastapi/tests/test_operations_signatures.py", + "Filename": "test_put_no_body.py", + "Path": "python/fastapi/tests/test_put_no_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -193809,9 +191536,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1329.4, - "Y": -249.72, - "Z": -1537.78 + "X": 2988.43, + "Y": 27.15, + "Z": 1979.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193820,23 +191547,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 23, - "Coding LOC": 18, + "Total LOC": 104, + "Coding LOC": 92, "Documentation LOC": 0, - "Structural Magnitude": 5.16, - "Control Flow Ratio": "20.0%", + "Structural Magnitude": 15.54, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 2.444 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "49.94%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "4.36%", + "API Exposure": "7.7%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -193848,42 +191575,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_signatures_consistency", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 76, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 8, - "End Line": 22 + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 103 + }, + { + "Function Name": "save_item_no_body", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 9, + "End Line": 10 + }, + { + "Function Name": "test_put_no_body", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 19 + }, + { + "Function Name": "test_put_no_body_with_body", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 8, - "Function Parameters": 1, - "Function/Method Declarations": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 29, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 0, "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 8, - "Module Dependencies (Imports)": 2, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -193908,7 +191665,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 14, + "Structural Space Indentations": 82, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -193924,16 +191681,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 5, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -193957,32 +191714,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "inspect" + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_optional_file_list.py": { + "python/fastapi/tests/test_pydantic_v1_error.py": { "1. Artifact Identity": { - "Filename": "test_optional_file_list.py", - "Path": "python/fastapi/tests/test_optional_file_list.py", + "Filename": "test_pydantic_v1_error.py", + "Path": "python/fastapi/tests/test_pydantic_v1_error.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3829.74, - "Y": 116.26, - "Z": 1804.76 + "X": 2813.11, + "Y": -75.98, + "Z": -1232.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -193991,24 +191750,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, - "Coding LOC": 21, + "Total LOC": 97, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 12.42, - "Control Flow Ratio": "13.3%", + "Structural Magnitude": 48.12, + "Control Flow Ratio": "18.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.333 + "Raw Cognitive Density": 0.164 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "7.94%", + "Cognitive Load Exposure": "4.38%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.46%", - "Concurrency Exposure": "47.48%", + "API Exposure": "14.04%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194019,62 +191778,152 @@ }, "5. Function Analysis": [ { - "Function Name": "upload_files", - "Structural Impact": 4.4, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 2, + "Function Name": "test_raises_pydantic_v1_model_in_additional_responses_model", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 58, + "End Line": 70 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_endpoint_param", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 19, + "End Line": 29 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_return_type", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 32, + "End Line": 42 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_response_model", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 45, + "End Line": 55 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_union", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 73, + "End Line": 83 + }, + { + "Function Name": "test_raises_pydantic_v1_model_in_sequence", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 86, + "End Line": 96 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 8, - "End Line": 11 + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "test_optional_bytes_list", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 82, + "End Line": 83 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 95, + "End Line": 96 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 21 + "Start Line": 41, + "End Line": 42 }, { - "Function Name": "test_optional_bytes_list_no_files", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 28 + "Start Line": 54, + "End Line": 55 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 69, + "End Line": 70 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 13, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Control Flow Branches": 8, + "Sequential Logic Declarations": 36, + "Function Parameters": 12, + "Function/Method Declarations": 12, + "Class/Entity Declarations": 6, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "I/O and Network Boundaries": 1, + "Exposed API / Public Exports": 24, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, - "Collection Iterators / Comprehensions": 1, + "Decorators and Annotations": 6, + "Generic Type Abstractions": 8, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -194099,7 +191948,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 14, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194115,16 +191964,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194148,20 +191997,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.exceptions", + "pydantic.v1", + "pytest", + "sys", + "tests.utils", + "warnings" ] }, - "python/fastapi/tests/test_orjson_response_class.py": { + "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py": { "1. Artifact Identity": { - "Filename": "test_orjson_response_class.py", - "Path": "python/fastapi/tests/test_orjson_response_class.py", + "Filename": "test_pydanticv2_dataclasses_uuid_stringified_annotations.py", + "Path": "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -194171,9 +192025,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4973.94, - "Y": 206.41, - "Z": -592.25 + "X": 769.12, + "Y": -263.82, + "Z": 424.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194182,24 +192036,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, - "Coding LOC": 20, + "Total LOC": 52, + "Coding LOC": 39, "Documentation LOC": 0, - "Structural Magnitude": 7.8, - "Control Flow Ratio": "16.7%", + "Structural Magnitude": 10.78, + "Control Flow Ratio": "9.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.25 + "Raw Cognitive Density": 0.179 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.96%", + "Cognitive Load Exposure": "4.63%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.15%", - "Concurrency Exposure": "0.0%", + "API Exposure": "6.49%", + "Concurrency Exposure": "35.66%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194210,52 +192064,52 @@ }, "5. Function Analysis": [ { - "Function Name": "test_orjson_non_str_keys", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 2, + "Function Name": "test_annotations", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 23, - "End Line": 28 + "Control Flow Ratio": "25.0%", + "Start Line": 39, + "End Line": 51 }, { - "Function Name": "get_orjson_non_str_keys", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Function Name": "read_item", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 17 + "Control Flow Ratio": "33.3%", + "Start Line": 26, + "End Line": 33 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 15, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 19, "Function Parameters": 2, "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 3, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -194276,11 +192130,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 9, + "Structural Space Indentations": 25, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194296,11 +192150,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, "Design Camel Case": 0, "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -194329,24 +192183,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "__future__", + "dataclasses", + "dirty_equals", "fastapi", - "fastapi.exceptions", - "fastapi.responses", "fastapi.testclient", - "sqlalchemy.sql.elements", - "warnings" + "inline_snapshot", + "uuid" ] }, - "python/fastapi/tests/test_param_class.py": { + "python/fastapi/tests/test_query.py": { "1. Artifact Identity": { - "Filename": "test_param_class.py", - "Path": "python/fastapi/tests/test_param_class.py", + "Filename": "test_query.py", + "Path": "python/fastapi/tests/test_query.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -194356,9 +192211,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3625.52, - "Y": 115.49, - "Z": 2203.26 + "X": 3714.5, + "Y": 55.92, + "Z": -58.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194367,23 +192222,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 26, - "Coding LOC": 16, + "Total LOC": 278, + "Coding LOC": 217, "Documentation LOC": 0, - "Structural Magnitude": 8.22, + "Structural Magnitude": 72.44, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.125 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.79%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "1.18%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.77%", + "API Exposure": "12.08%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -194395,62 +192250,322 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_query", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 8, + "End Line": 20 }, { - "Function Name": "test_default_param_query_none", + "Function Name": "test_query_not_declared_baz", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 41 + }, + { + "Function Name": "test_query_int", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 62, + "End Line": 74 + }, + { + "Function Name": "test_query_int_query_42_5", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 83, + "End Line": 95 + }, + { + "Function Name": "test_query_int_query_baz", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 98, + "End Line": 110 + }, + { + "Function Name": "test_query_int_not_declared_baz", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 113, + "End Line": 125 + }, + { + "Function Name": "test_query_int_optional_query_foo", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 140, + "End Line": 152 + }, + { + "Function Name": "test_query_int_default_query_foo", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 167, + "End Line": 179 + }, + { + "Function Name": "test_query_param_required", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 194, + "End Line": 206 + }, + { + "Function Name": "test_query_param_required_int", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 215, + "End Line": 227 + }, + { + "Function Name": "test_query_param_required_int_query_foo", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 236, + "End Line": 248 + }, + { + "Function Name": "test_query_query_baz", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "test_default_param_query", + "Function Name": "test_query_optional", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 44, + "End Line": 47 + }, + { + "Function Name": "test_query_optional_query_baz", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 53 + }, + { + "Function Name": "test_query_optional_not_declared_baz", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 59 + }, + { + "Function Name": "test_query_int_query_42", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 80 + }, + { + "Function Name": "test_query_int_optional", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 128, + "End Line": 131 + }, + { + "Function Name": "test_query_int_optional_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 134, + "End Line": 137 + }, + { + "Function Name": "test_query_int_default", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 155, + "End Line": 158 + }, + { + "Function Name": "test_query_int_default_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 161, + "End Line": 164 + }, + { + "Function Name": "test_query_param", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 182, + "End Line": 185 + }, + { + "Function Name": "test_query_param_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 188, + "End Line": 191 + }, + { + "Function Name": "test_query_param_required_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 209, + "End Line": 212 + }, + { + "Function Name": "test_query_param_required_int_query_50", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 230, + "End Line": 233 + }, + { + "Function Name": "test_query_frozenset_query_1_query_1_query_2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 251, + "End Line": 254 + }, + { + "Function Name": "test_query_list", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 257, + "End Line": 260 + }, + { + "Function Name": "test_query_list_default", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 268, + "End Line": 271 + }, + { + "Function Name": "test_query_list_default_empty", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 274, + "End Line": 277 + }, + { + "Function Name": "test_query_list_empty", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 263, + "End Line": 265 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Sequential Logic Declarations": 106, + "Function Parameters": 29, + "Function/Method Declarations": 29, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 63, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 29, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 86, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -194469,13 +192584,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, + "Immutable Data Declarations": 1, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 7, + "Structural Space Indentations": 185, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194491,16 +192606,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 30, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 1, + "Design Snake Case": 30, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 29, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194524,33 +192639,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.params", + ".main", "fastapi.testclient" ] }, - "python/fastapi/tests/test_param_in_path_and_dependency.py": { + "python/fastapi/tests/test_query_cookie_header_model_extra_params.py": { "1. Artifact Identity": { - "Filename": "test_param_in_path_and_dependency.py", - "Path": "python/fastapi/tests/test_param_in_path_and_dependency.py", + "Filename": "test_query_cookie_header_model_extra_params.py", + "Path": "python/fastapi/tests/test_query_cookie_header_model_extra_params.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4445.24, - "Y": 205.67, - "Z": 736.64 + "X": 4213.62, + "Y": 157.32, + "Z": -411.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194559,10 +192674,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 100, - "Coding LOC": 88, + "Total LOC": 106, + "Coding LOC": 83, "Documentation LOC": 0, - "Structural Magnitude": 17.66, + "Structural Magnitude": 29.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -194572,11 +192687,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "47.85%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.76%", - "Concurrency Exposure": "39.55%", + "API Exposure": "10.98%", + "Concurrency Exposure": "59.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194587,67 +192702,107 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 75, + "Function Name": "test_header_pass_extra_list", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 15, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 99 + "Start Line": 61, + "End Line": 75 }, { - "Function Name": "user_exists", + "Function Name": "test_query_pass_extra_list", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 42 + }, + { + "Function Name": "test_query_pass_extra_single", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 58 + }, + { + "Function Name": "test_header_pass_extra_single", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 91 + }, + { + "Function Name": "test_cookie_pass_extra_list", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 94, + "End Line": 105 + }, + { + "Function Name": "query_model_with_extra", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "read_users", + "Function Name": "header_model_with_extra", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "test_read_users", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "cookies_model_with_extra", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 22 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 1, + "Sequential Logic Declarations": 31, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 15, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 4, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, @@ -194659,7 +192814,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -194677,7 +192832,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 78, + "Structural Space Indentations": 67, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194693,16 +192848,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 22, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 19, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 8, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194734,25 +192889,26 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot" + "pydantic" ] }, - "python/fastapi/tests/test_param_include_in_schema.py": { + "python/fastapi/tests/test_read_with_orm_mode.py": { "1. Artifact Identity": { - "Filename": "test_param_include_in_schema.py", - "Path": "python/fastapi/tests/test_param_include_in_schema.py", + "Filename": "test_read_with_orm_mode.py", + "Path": "python/fastapi/tests/test_read_with_orm_mode.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, PersonBase", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1732.06, - "Y": -210.06, - "Z": -481.46 + "X": 3735.16, + "Y": 72.24, + "Z": -1664.43 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -194761,24 +192917,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 247, - "Coding LOC": 227, + "Total LOC": 44, + "Coding LOC": 31, "Documentation LOC": 0, - "Structural Magnitude": 44.04, + "Structural Magnitude": 14.52, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.226 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.47%", + "Error & Exception Exposure": "36.52%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", - "Concurrency Exposure": "36.12%", + "API Exposure": "11.54%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -194789,121 +192945,61 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.8, - "Lines of Code (LOC)": 135, + "Function Name": "test_read_with_orm_mode", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 36, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 246 - }, - { - "Function Name": "test_hidden_cookie", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 56 - }, - { - "Function Name": "test_hidden_header", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 4, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 80 - }, - { - "Function Name": "test_hidden_query", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 3, - "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 109 - }, - { - "Function Name": "hidden_cookie", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 13 - }, - { - "Function Name": "hidden_header", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 20 + "Start Line": 8, + "End Line": 43 }, { - "Function Name": "hidden_query", + "Function Name": "create_person", "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 31, + "End Line": 33 }, { - "Function Name": "hidden_path", + "Function Name": "full_name", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 - }, - { - "Function Name": "test_hidden_path", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 87 + "Start Line": 15, + "End Line": 16 } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 41, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, - "Type/Safety Bypasses": 0, + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 3, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 19, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, + "Metaprogramming & Reflection": 1, "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, @@ -194929,7 +193025,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 200, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -194945,16 +193041,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 15, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 3, + "Design Snake Case": 9, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -194986,14 +193082,14 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "pytest" + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_params_repr.py": { + "python/fastapi/tests/test_regex_deprecated_body.py": { "1. Artifact Identity": { - "Filename": "test_params_repr.py", - "Path": "python/fastapi/tests/test_params_repr.py", + "Filename": "test_regex_deprecated_body.py", + "Path": "python/fastapi/tests/test_regex_deprecated_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -195003,9 +193099,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2543.09, - "Y": -90.36, - "Z": -937.87 + "X": 4109.7, + "Y": 109.88, + "Z": 538.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -195014,24 +193110,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 58, + "Total LOC": 155, + "Coding LOC": 140, "Documentation LOC": 0, - "Structural Magnitude": 57.86, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 30.9, + "Control Flow Ratio": "8.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.064 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.16%", + "Cognitive Load Exposure": "3.02%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.02%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.24%", + "Concurrency Exposure": "20.5%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -195042,302 +193138,92 @@ }, "5. Function Analysis": [ { - "Function Name": "get_user", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.5, + "Lines of Code (LOC)": 91, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 64, + "End Line": 154 }, { - "Function Name": "test_param_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "get_client", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 3, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "37.5%", "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "test_param_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 - }, - { - "Function Name": "test_param_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "End Line": 26 }, { - "Function Name": "test_param_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Function Name": "read_items", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 17, + "End Line": 23 }, { - "Function Name": "test_param_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_query_nonregexquery", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Control Flow Ratio": "20.0%", + "Start Line": 46, + "End Line": 60 }, { - "Function Name": "test_path_repr", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_no_query", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, + "Start Line": 30, "End Line": 34 }, { - "Function Name": "test_query_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 - }, - { - "Function Name": "test_query_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_q_fixedquery", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, + "Start Line": 38, "End Line": 42 - }, - { - "Function Name": "test_query_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 - }, - { - "Function Name": "test_query_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "test_query_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 54 - }, - { - "Function Name": "test_header_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 58 - }, - { - "Function Name": "test_header_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 62 - }, - { - "Function Name": "test_header_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 66 - }, - { - "Function Name": "test_header_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 70 - }, - { - "Function Name": "test_header_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 - }, - { - "Function Name": "test_cookie_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 78 - }, - { - "Function Name": "test_cookie_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 82 - }, - { - "Function Name": "test_cookie_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 - }, - { - "Function Name": "test_cookie_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 90 - }, - { - "Function Name": "test_cookie_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 94 - }, - { - "Function Name": "test_body_repr_str", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 98 - }, - { - "Function Name": "test_body_repr_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 101, - "End Line": 102 - }, - { - "Function Name": "test_body_repr_ellipsis", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 106 - }, - { - "Function Name": "test_body_repr_number", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 109, - "End Line": 110 - }, - { - "Function Name": "test_body_repr_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 113, - "End Line": 114 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 59, - "Function Parameters": 27, - "Function/Method Declarations": 27, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 45, + "Function Parameters": 6, + "Function/Method Declarations": 6, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 27, - "Type/Safety Bypasses": 2, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 27, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 53, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 14, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -195354,7 +193240,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 4, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -195362,7 +193248,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 28, + "Structural Space Indentations": 124, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -195378,16 +193264,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 0, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 27, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -195411,20 +193297,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.params", + ".utils", + "fastapi", + "fastapi.exceptions", + "fastapi.testclient", + "inline_snapshot", + "pytest", "typing" ] }, - "python/fastapi/tests/test_path.py": { + "python/fastapi/tests/test_regex_deprecated_params.py": { "1. Artifact Identity": { - "Filename": "test_path.py", - "Path": "python/fastapi/tests/test_path.py", + "Filename": "test_regex_deprecated_params.py", + "Path": "python/fastapi/tests/test_regex_deprecated_params.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -195434,9 +193325,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3327.66, - "Y": 13.33, - "Z": -208.78 + "X": 3167.23, + "Y": 40.65, + "Z": 1522.81 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -195445,24 +193336,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 781, - "Coding LOC": 628, + "Total LOC": 147, + "Coding LOC": 132, "Documentation LOC": 0, - "Structural Magnitude": 199.06, - "Control Flow Ratio": "2.2%", + "Structural Magnitude": 30.44, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.019 + "Raw Cognitive Density": 0.068 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.55%", + "Cognitive Load Exposure": "3.07%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.0%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.32%", + "Concurrency Exposure": "20.91%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -195473,789 +193364,526 @@ }, "5. Function Analysis": [ { - "Function Name": "test_path_param_ge_2", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 362, - "End Line": 375 - }, - { - "Function Name": "test_path_param_le_42", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 422, - "End Line": 435 - }, - { - "Function Name": "test_path_param_le_ge_4", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 505, - "End Line": 518 - }, - { - "Function Name": "test_path_param_le_int_42", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 595, - "End Line": 608 - }, - { - "Function Name": "test_path_param_ge_int_2", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 650, - "End Line": 663 - }, - { - "Function Name": "test_path_param_le_ge_int_4", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 752, - "End Line": 765 - }, - { - "Function Name": "test_path_param_minlength_fo", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 230, - "End Line": 243 - }, - { - "Function Name": "test_path_param_maxlength_foobar", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 252, - "End Line": 265 - }, - { - "Function Name": "test_path_param_min_maxlength_foobar", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 274, - "End Line": 287 - }, - { - "Function Name": "test_path_param_min_maxlength_f", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 290, - "End Line": 303 - }, - { - "Function Name": "test_path_param_gt_2", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 312, - "End Line": 325 - }, - { - "Function Name": "test_path_param_gt0_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 334, - "End Line": 347 - }, - { - "Function Name": "test_path_param_lt_42", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 378, - "End Line": 391 - }, - { - "Function Name": "test_path_param_lt0_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 406, - "End Line": 419 - }, - { - "Function Name": "test_path_param_lt_gt_4", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 456, - "End Line": 469 - }, - { - "Function Name": "test_path_param_lt_gt_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 472, - "End Line": 485 - }, - { - "Function Name": "test_path_param_lt_int_42", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 527, - "End Line": 540 - }, - { - "Function Name": "test_path_param_gt_int_2", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 564, - "End Line": 577 - }, - { - "Function Name": "test_path_param_lt_gt_int_4", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 687, - "End Line": 700 - }, - { - "Function Name": "test_path_param_lt_gt_int_0", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 703, - "End Line": 716 - }, - { - "Function Name": "test_path_int_foobar", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 56 - }, - { - "Function Name": "test_path_int_True", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 71 - }, - { - "Function Name": "test_path_int_42_5", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 92 - }, - { - "Function Name": "test_path_float_foobar", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 107 - }, - { - "Function Name": "test_path_float_True", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 122 - }, - { - "Function Name": "test_path_bool_foobar", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 149 - }, - { - "Function Name": "test_path_bool_42", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 170 - }, - { - "Function Name": "test_path_bool_42_5", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 173, - "End Line": 185 - }, - { - "Function Name": "test_path_param_lt_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 543, - "End Line": 555 - }, - { - "Function Name": "test_path_param_gt_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 580, - "End Line": 592 - }, - { - "Function Name": "test_path_param_le_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 623, - "End Line": 635 - }, - { - "Function Name": "test_path_param_ge_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 666, - "End Line": 678 - }, - { - "Function Name": "test_path_param_lt_gt_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 719, - "End Line": 731 - }, - { - "Function Name": "test_path_param_le_ge_int_2_7", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 768, - "End Line": 780 - }, - { - "Function Name": "test_text_get", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 11 - }, - { - "Function Name": "test_nonexistent", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 17 - }, - { - "Function Name": "test_path_foobar", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 23 - }, - { - "Function Name": "test_path_str_foobar", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 29 - }, - { - "Function Name": "test_path_str_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 35 - }, - { - "Function Name": "test_path_str_True", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 41 - }, - { - "Function Name": "test_path_int_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 77 - }, - { - "Function Name": "test_path_float_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 128 - }, - { - "Function Name": "test_path_float_42_5", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 131, - "End Line": 134 - }, - { - "Function Name": "test_path_bool_True", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 152, - "End Line": 155 - }, - { - "Function Name": "test_path_bool_1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 188, - "End Line": 191 - }, - { - "Function Name": "test_path_bool_0", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 197 - }, - { - "Function Name": "test_path_bool_true", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 200, - "End Line": 203 - }, - { - "Function Name": "test_path_bool_False", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 206, - "End Line": 209 - }, - { - "Function Name": "test_path_bool_false", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 212, - "End Line": 215 - }, - { - "Function Name": "test_path_param_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 218, - "End Line": 221 - }, - { - "Function Name": "test_path_param_minlength_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 224, - "End Line": 227 - }, - { - "Function Name": "test_path_param_maxlength_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 246, - "End Line": 249 - }, - { - "Function Name": "test_path_param_min_maxlength_foo", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 268, - "End Line": 271 - }, - { - "Function Name": "test_path_param_gt_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 306, - "End Line": 309 - }, - { - "Function Name": "test_path_param_gt0_0_05", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 328, - "End Line": 331 - }, - { - "Function Name": "test_path_param_ge_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 350, - "End Line": 353 - }, - { - "Function Name": "test_path_param_ge_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 356, - "End Line": 359 - }, - { - "Function Name": "test_path_param_lt_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 394, - "End Line": 397 - }, - { - "Function Name": "test_path_param_lt0__1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 400, - "End Line": 403 - }, - { - "Function Name": "test_path_param_le_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 438, - "End Line": 441 - }, - { - "Function Name": "test_path_param_le_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 83, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 444, - "End Line": 447 + "Start Line": 64, + "End Line": 146 }, { - "Function Name": "test_path_param_lt_gt_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "get_client", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 3, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 450, - "End Line": 453 + "Control Flow Ratio": "37.5%", + "Start Line": 12, + "End Line": 26 }, { - "Function Name": "test_path_param_le_ge_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "read_items", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 17, + "End Line": 23 + }, + { + "Function Name": "test_query_params_str_validations_item_query_nonregexquery", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 488, - "End Line": 491 + "Control Flow Ratio": "20.0%", + "Start Line": 46, + "End Line": 60 }, { - "Function Name": "test_path_param_le_ge_3", + "Function Name": "test_query_params_str_validations_no_query", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 499, - "End Line": 502 + "Start Line": 30, + "End Line": 34 }, { - "Function Name": "test_path_param_lt_int_2", + "Function Name": "test_query_params_str_validations_q_fixedquery", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 521, - "End Line": 524 - }, + "Start Line": 38, + "End Line": 42 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 4, + "Sequential Logic Declarations": 44, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 14, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 7, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 4, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 116, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 10, + "Design Camel Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 5, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 7, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + ".utils", + "fastapi", + "fastapi.exceptions", + "fastapi.testclient", + "inline_snapshot", + "pytest", + "typing" + ] + }, + "python/fastapi/tests/test_repeated_cookie_headers.py": { + "1. Artifact Identity": { + "Filename": "test_repeated_cookie_headers.py", + "Path": "python/fastapi/tests/test_repeated_cookie_headers.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4568.48, + "Y": 190.55, + "Z": -1164.55 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 35, + "Coding LOC": 21, + "Documentation LOC": 0, + "Structural Magnitude": 14.82, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.095 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "3.4%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "11.61%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_path_param_gt_int_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "set_cookie", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 558, - "End Line": 561 + "Start Line": 7, + "End Line": 9 }, { - "Function Name": "test_path_param_le_int_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "set_indirect_cookie", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 611, - "End Line": 614 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_path_param_le_int_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_direct_cookie", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 617, - "End Line": 620 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_path_param_ge_int_42", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_indirect_cookie", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 638, - "End Line": 641 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_path_param_ge_int_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_cookie_is_set_once", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 644, - "End Line": 647 - }, + "Start Line": 29, + "End Line": 34 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 1, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 4, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 10, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, + "Design Camel Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 1, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient" + ] + }, + "python/fastapi/tests/test_repeated_dependency_schema.py": { + "1. Artifact Identity": { + "Filename": "test_repeated_dependency_schema.py", + "Path": "python/fastapi/tests/test_repeated_dependency_schema.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 4074.49, + "Y": 126.21, + "Z": -1264.0 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 110, + "Coding LOC": 96, + "Documentation LOC": 0, + "Structural Magnitude": 18.92, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.26%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_path_param_lt_gt_int_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 80, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 681, - "End Line": 684 + "Start Line": 30, + "End Line": 109 }, { - "Function Name": "test_path_param_le_ge_int_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_deps", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 734, - "End Line": 737 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_path_param_le_ge_int_1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_header", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 740, - "End Line": 743 + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "test_path_param_le_ge_int_3", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_something_else", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 746, - "End Line": 749 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_path_param_le_ge_1", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 494, - "End Line": 496 + "Start Line": 24, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 273, - "Function Parameters": 75, - "Function/Method Declarations": 75, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 31, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 149, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 75, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 224, + "Unit Test Assertions": 7, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 4, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -196273,7 +193901,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 550, + "Structural Space Indentations": 85, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196290,15 +193918,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 76, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 76, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 75, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196306,7 +193934,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 1, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -196322,20 +193950,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".main", - "fastapi.testclient" + "fastapi", + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_put_no_body.py": { + "python/fastapi/tests/test_repeated_parameter_alias.py": { "1. Artifact Identity": { - "Filename": "test_put_no_body.py", - "Path": "python/fastapi/tests/test_put_no_body.py", + "Filename": "test_repeated_parameter_alias.py", + "Path": "python/fastapi/tests/test_repeated_parameter_alias.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -196345,9 +193974,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2988.43, - "Y": 27.15, - "Z": 1979.11 + "X": 2582.71, + "Y": -51.37, + "Z": -2204.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -196356,10 +193985,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 104, - "Coding LOC": 92, + "Total LOC": 107, + "Coding LOC": 97, "Documentation LOC": 0, - "Structural Magnitude": 15.54, + "Structural Magnitude": 14.24, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -196372,7 +194001,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.7%", + "API Exposure": "6.87%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -196385,61 +194014,51 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 76, + "Structural Impact": 5.1, + "Lines of Code (LOC)": 82, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 103 + "Start Line": 25, + "End Line": 106 }, { - "Function Name": "save_item_no_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_parameters_with_repeated_aliases", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", "Start Line": 9, - "End Line": 10 - }, - { - "Function Name": "test_put_no_body", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "End Line": 13 }, { - "Function Name": "test_put_no_body_with_body", + "Function Name": "test_get_parameters", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 19, + "End Line": 22 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Sequential Logic Declarations": 27, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 6, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -196474,7 +194093,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 82, + "Structural Space Indentations": 87, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196491,15 +194110,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196534,23 +194153,22 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_pydantic_v1_error.py": { + "python/fastapi/tests/test_reponse_set_reponse_code_empty.py": { "1. Artifact Identity": { - "Filename": "test_pydantic_v1_error.py", - "Path": "python/fastapi/tests/test_pydantic_v1_error.py", + "Filename": "test_reponse_set_reponse_code_empty.py", + "Path": "python/fastapi/tests/test_reponse_set_reponse_code_empty.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2813.11, - "Y": -75.98, - "Z": -1232.8 + "X": 892.58, + "Y": -247.43, + "Z": 366.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -196559,24 +194177,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 97, - "Coding LOC": 61, + "Total LOC": 105, + "Coding LOC": 94, "Documentation LOC": 0, - "Structural Magnitude": 48.12, - "Control Flow Ratio": "18.2%", + "Structural Magnitude": 15.78, + "Control Flow Ratio": "3.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.164 + "Raw Cognitive Density": 0.064 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.38%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "3.02%", + "Error & Exception Exposure": "44.24%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "14.04%", - "Concurrency Exposure": "0.0%", + "API Exposure": "6.9%", + "Concurrency Exposure": "23.73%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -196587,152 +194205,510 @@ }, "5. Function Analysis": [ { - "Function Name": "test_raises_pydantic_v1_model_in_additional_responses_model", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 73, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 58, - "End Line": 70 + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 104 }, { - "Function Name": "test_raises_pydantic_v1_model_in_endpoint_param", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "test_dependency_set_status_code", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 19, + "Control Flow Ratio": "25.0%", + "Start Line": 26, "End Line": 29 }, { - "Function Name": "test_raises_pydantic_v1_model_in_return_type", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 32, - "End Line": 42 - }, + "Function Name": "delete_deployment", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 15, + "End Line": 20 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 1, + "Sequential Logic Declarations": 28, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 2, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 4, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 1, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 82, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "typing" + ] + }, + "python/fastapi/tests/test_request_body_parameters_media_type.py": { + "1. Artifact Identity": { + "Filename": "test_request_body_parameters_media_type.py", + "Path": "python/fastapi/tests/test_request_body_parameters_media_type.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 3776.01, + "Y": 72.33, + "Z": -1226.12 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 185, + "Coding LOC": 168, + "Documentation LOC": 2, + "Structural Magnitude": 24.26, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "48.96%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.96%", + "Concurrency Exposure": "26.68%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_raises_pydantic_v1_model_in_response_model", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 8.4, + "Lines of Code (LOC)": 147, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 45, - "End Line": 55 + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 184 }, { - "Function Name": "test_raises_pydantic_v1_model_in_union", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 73, - "End Line": 83 + "Function Name": "create_shop", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 32 }, { - "Function Name": "test_raises_pydantic_v1_model_in_sequence", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 86, - "End Line": 96 - }, + "Function Name": "create_product", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 24 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 36, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 3, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 153, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 4, + "Design Pascal Case": 2, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 3, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 4, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_request_param_model_by_alias.py": { + "1. Artifact Identity": { + "Filename": "test_request_param_model_by_alias.py", + "Path": "python/fastapi/tests/test_request_param_model_by_alias.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 2716.26, + "Y": -41.36, + "Z": -1469.66 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 73, + "Coding LOC": 51, + "Documentation LOC": 0, + "Structural Magnitude": 29.22, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "12.26%", + "Concurrency Exposure": "78.88%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "endpoint", + "Function Name": "query_model", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "endpoint", + "Function Name": "header_model", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 82, - "End Line": 83 + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "endpoint", + "Function Name": "cookie_model", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_cookie_model_with_alias_by_name", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 + "Start Line": 66, + "End Line": 72 }, { - "Function Name": "endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_cookie_model_with_alias", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, + "Start Line": 42, + "End Line": 47 + }, + { + "Function Name": "test_query_model_with_alias_by_name", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, "End Line": 55 }, { - "Function Name": "endpoint", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_header_model_with_alias_by_name", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 70 + "Start Line": 58, + "End Line": 63 + }, + { + "Function Name": "test_query_model_with_alias", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 28, + "End Line": 32 + }, + { + "Function Name": "test_header_model_with_alias", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 8, - "Sequential Logic Declarations": 36, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 6, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 33, + "Function Parameters": 9, + "Function/Method Declarations": 9, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 1, - "Exposed API / Public Exports": 24, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, - "Generic Type Abstractions": 8, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -196746,7 +194722,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 2, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -196757,7 +194733,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 33, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196773,16 +194749,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 20, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 17, + "Design Pascal Case": 3, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196806,25 +194782,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dirty_equals", "fastapi", - "fastapi.exceptions", - "pydantic.v1", - "pytest", - "sys", - "tests.utils", - "warnings" + "fastapi.testclient", + "pydantic" ] }, - "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py": { + "python/fastapi/tests/test_required_noneable.py": { "1. Artifact Identity": { - "Filename": "test_pydanticv2_dataclasses_uuid_stringified_annotations.py", - "Path": "python/fastapi/tests/test_pydanticv2_dataclasses_uuid_stringified_annotations.py", + "Filename": "test_required_noneable.py", + "Path": "python/fastapi/tests/test_required_noneable.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -196834,9 +194807,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 769.12, - "Y": -263.82, - "Z": 424.67 + "X": 3541.04, + "Y": 64.25, + "Z": 1260.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -196845,24 +194818,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 52, - "Coding LOC": 39, + "Total LOC": 61, + "Coding LOC": 37, "Documentation LOC": 0, - "Structural Magnitude": 10.78, - "Control Flow Ratio": "9.5%", + "Structural Magnitude": 26.24, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.179 + "Raw Cognitive Density": 0.054 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.63%", + "Cognitive Load Exposure": "2.91%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.49%", - "Concurrency Exposure": "35.66%", + "API Exposure": "12.79%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -196873,52 +194846,132 @@ }, "5. Function Analysis": [ { - "Function Name": "test_annotations", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 39, - "End Line": 51 + "Function Name": "read_query", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "read_item", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, + "Function Name": "read_explicit_query", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "send_body_embed", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "test_required_noneable_query_value", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 26, + "Control Flow Ratio": "0.0%", + "Start Line": 30, "End Line": 33 + }, + { + "Function Name": "test_required_nonable_explicit_query_value", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 44 + }, + { + "Function Name": "test_required_noneable_body_embed_value", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 57, + "End Line": 60 + }, + { + "Function Name": "test_required_nonable_query_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 27 + }, + { + "Function Name": "test_required_nonable_explicit_query_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 38 + }, + { + "Function Name": "test_required_nonable_body_embed_no_content", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 47, + "End Line": 49 + }, + { + "Function Name": "test_required_nonable_body_embed_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 54 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 19, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 27, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 17, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -196939,11 +194992,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 1, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 25, + "Structural Space Indentations": 20, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -196959,16 +195012,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 9, "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 10, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -196992,37 +195045,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "__future__", - "dataclasses", - "dirty_equals", "fastapi", - "fastapi.testclient", - "inline_snapshot", - "uuid" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_query.py": { + "python/fastapi/tests/test_response_by_alias.py": { "1. Artifact Identity": { - "Filename": "test_query.py", - "Path": "python/fastapi/tests/test_query.py", + "Filename": "test_response_by_alias.py", + "Path": "python/fastapi/tests/test_response_by_alias.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3714.5, - "Y": 55.92, - "Z": -58.82 + "X": 3706.92, + "Y": 46.07, + "Z": -364.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197031,23 +195080,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 278, - "Coding LOC": 217, + "Total LOC": 331, + "Coding LOC": 284, "Documentation LOC": 0, - "Structural Magnitude": 72.44, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 64.98, + "Control Flow Ratio": "3.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.021 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "1.18%", + "Cognitive Load Exposure": "2.57%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.08%", + "API Exposure": "11.83%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -197059,325 +195108,225 @@ }, "5. Function Analysis": [ { - "Function Name": "test_query", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 20 - }, - { - "Function Name": "test_query_not_declared_baz", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 41 - }, - { - "Function Name": "test_query_int", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 74 - }, - { - "Function Name": "test_query_int_query_42_5", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 95 - }, - { - "Function Name": "test_query_int_query_baz", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 98, - "End Line": 110 - }, - { - "Function Name": "test_query_int_not_declared_baz", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 113, - "End Line": 125 - }, - { - "Function Name": "test_query_int_optional_query_foo", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 140, - "End Line": 152 - }, - { - "Function Name": "test_query_int_default_query_foo", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 167, - "End Line": 179 - }, - { - "Function Name": "test_query_param_required", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 194, - "End Line": 206 - }, - { - "Function Name": "test_query_param_required_int", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 215, - "End Line": 227 - }, - { - "Function Name": "test_query_param_required_int_query_foo", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 0, + "Function Name": "test_openapi_schema", + "Structural Impact": 8.0, + "Lines of Code (LOC)": 194, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 236, - "End Line": 248 + "Control Flow Ratio": "9.1%", + "Start Line": 137, + "End Line": 330 }, { - "Function Name": "test_query_query_baz", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_read_list", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 86, + "End Line": 92 }, { - "Function Name": "test_query_optional", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_read_list_by_alias", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 47 + "Start Line": 107, + "End Line": 113 }, { - "Function Name": "test_query_optional_query_baz", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_read_list_no_alias", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 53 + "Start Line": 128, + "End Line": 134 }, { - "Function Name": "test_query_optional_not_declared_baz", + "Function Name": "test_read_dict", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 59 + "Start Line": 74, + "End Line": 77 }, { - "Function Name": "test_query_int_query_42", + "Function Name": "test_read_model", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 80 + "Start Line": 80, + "End Line": 83 }, { - "Function Name": "test_query_int_optional", + "Function Name": "test_read_dict_by_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 131 + "Start Line": 95, + "End Line": 98 }, { - "Function Name": "test_query_int_optional_query_50", + "Function Name": "test_read_model_by_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 134, - "End Line": 137 + "Start Line": 101, + "End Line": 104 }, { - "Function Name": "test_query_int_default", + "Function Name": "test_read_dict_no_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 155, - "End Line": 158 + "Start Line": 116, + "End Line": 119 }, { - "Function Name": "test_query_int_default_query_50", + "Function Name": "test_read_model_no_alias", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 161, - "End Line": 164 + "Start Line": 122, + "End Line": 125 }, { - "Function Name": "test_query_param", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 182, - "End Line": 185 + "Start Line": 27, + "End Line": 28 }, { - "Function Name": "test_query_param_query_50", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 188, - "End Line": 191 + "Start Line": 32, + "End Line": 33 }, { - "Function Name": "test_query_param_required_query_50", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 209, - "End Line": 212 + "Start Line": 37, + "End Line": 38 }, { - "Function Name": "test_query_param_required_int_query_50", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "by_alias_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 230, - "End Line": 233 + "Start Line": 42, + "End Line": 43 }, { - "Function Name": "test_query_frozenset_query_1_query_1_query_2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "by_alias_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 251, - "End Line": 254 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_query_list", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "by_alias_list", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 257, - "End Line": 260 + "Start Line": 52, + "End Line": 53 }, { - "Function Name": "test_query_list_default", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_alias_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 268, - "End Line": 271 + "Start Line": 57, + "End Line": 58 }, { - "Function Name": "test_query_list_default_empty", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_alias_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 274, - "End Line": 277 + "Start Line": 62, + "End Line": 63 }, { - "Function Name": "test_query_list_empty", + "Function Name": "no_alias_list", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 263, - "End Line": 265 + "Start Line": 67, + "End Line": 68 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 106, - "Function Parameters": 29, - "Function/Method Declarations": 29, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 63, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 65, + "Function Parameters": 19, + "Function/Method Declarations": 19, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 25, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 29, + "Exposed API / Public Exports": 30, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 86, + "Unit Test Assertions": 30, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 9, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 2, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, @@ -197393,13 +195342,13 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 1, + "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 185, + "Structural Space Indentations": 248, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -197415,16 +195364,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 30, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 24, "Design Camel Case": 0, - "Design Snake Case": 30, + "Design Snake Case": 24, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 29, + "Orphaned Logic": 19, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -197448,33 +195397,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".main", - "fastapi.testclient" + "fastapi", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_query_cookie_header_model_extra_params.py": { + "python/fastapi/tests/test_response_change_status_code.py": { "1. Artifact Identity": { - "Filename": "test_query_cookie_header_model_extra_params.py", - "Path": "python/fastapi/tests/test_query_cookie_header_model_extra_params.py", + "Filename": "test_response_change_status_code.py", + "Path": "python/fastapi/tests/test_response_change_status_code.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4213.62, - "Y": 157.32, - "Z": -411.69 + "X": 4306.6, + "Y": 150.24, + "Z": -1491.43 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197483,24 +195433,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 106, - "Coding LOC": 83, + "Total LOC": 27, + "Coding LOC": 15, "Documentation LOC": 0, - "Structural Magnitude": 29.66, + "Structural Magnitude": 13.6, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.733 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "24.17%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.98%", - "Concurrency Exposure": "59.44%", + "API Exposure": "10.75%", + "Concurrency Exposure": "98.46%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -197511,119 +195461,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_header_pass_extra_list", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 75 - }, - { - "Function Name": "test_query_pass_extra_list", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 42 - }, - { - "Function Name": "test_query_pass_extra_single", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 58 - }, - { - "Function Name": "test_header_pass_extra_single", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 91 - }, - { - "Function Name": "test_cookie_pass_extra_list", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 12, + "Function Name": "response_status_setter", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 94, - "End Line": 105 + "Start Line": 7, + "End Line": 8 }, { - "Function Name": "query_model_with_extra", + "Function Name": "parent_dep", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "header_model_with_extra", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_dependency_set_status_code", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "cookies_model_with_extra", - "Structural Impact": 1.5, + "Function Name": "get_main", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 16, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 8, - "Function/Method Declarations": 8, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 15, + "Sequential Logic Declarations": 12, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -197641,7 +195551,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 67, + "Structural Space Indentations": 6, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -197657,16 +195567,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 22, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 19, - "Design Pascal Case": 3, + "Design Snake Case": 4, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 8, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -197690,34 +195600,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_read_with_orm_mode.py": { + "python/fastapi/tests/test_response_class_no_mediatype.py": { "1. Artifact Identity": { - "Filename": "test_read_with_orm_mode.py", - "Path": "python/fastapi/tests/test_read_with_orm_mode.py", + "Filename": "test_response_class_no_mediatype.py", + "Path": "python/fastapi/tests/test_response_class_no_mediatype.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, PersonBase", + "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3735.16, - "Y": 72.24, - "Z": -1664.43 + "X": 988.23, + "Y": -283.51, + "Z": -222.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197726,24 +195635,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 44, - "Coding LOC": 31, + "Total LOC": 115, + "Coding LOC": 99, "Documentation LOC": 0, - "Structural Magnitude": 14.52, + "Structural Magnitude": 16.98, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.226 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.47%", - "Error & Exception Exposure": "36.52%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "45.54%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.54%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.19%", + "Concurrency Exposure": "36.59%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -197754,67 +195663,67 @@ }, "5. Function Analysis": [ { - "Function Name": "test_read_with_orm_mode", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 36, + "Function Name": "test_openapi_schema", + "Structural Impact": 4.8, + "Lines of Code (LOC)": 75, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 43 + "Start Line": 40, + "End Line": 114 }, { - "Function Name": "create_person", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 33 + "Start Line": 28, + "End Line": 29 }, { - "Function Name": "full_name", - "Structural Impact": 1.5, + "Function Name": "b", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 33, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, + "Sequential Logic Declarations": 25, "Function Parameters": 3, "Function/Method Declarations": 3, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 3, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 2, - "Generic Type Abstractions": 3, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -197834,7 +195743,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, + "Structural Space Indentations": 83, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -197850,16 +195759,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 9, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -197883,34 +195792,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.responses", "fastapi.testclient", - "pydantic", - "typing" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_regex_deprecated_body.py": { + "python/fastapi/tests/test_response_code_no_body.py": { "1. Artifact Identity": { - "Filename": "test_regex_deprecated_body.py", - "Path": "python/fastapi/tests/test_regex_deprecated_body.py", + "Filename": "test_response_code_no_body.py", + "Path": "python/fastapi/tests/test_response_code_no_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4109.7, - "Y": 109.88, - "Z": 538.89 + "X": 1703.08, + "Y": -152.35, + "Z": -1484.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -197919,24 +195830,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 155, - "Coding LOC": 140, + "Total LOC": 116, + "Coding LOC": 98, "Documentation LOC": 0, - "Structural Magnitude": 30.9, - "Control Flow Ratio": "8.2%", + "Structural Magnitude": 18.76, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.064 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.02%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "35.14%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.24%", - "Concurrency Exposure": "20.5%", + "API Exposure": "8.73%", + "Concurrency Exposure": "36.84%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -197948,96 +195859,76 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 5.5, - "Lines of Code (LOC)": 91, + "Structural Impact": 4.4, + "Lines of Code (LOC)": 68, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 154 - }, - { - "Function Name": "get_client", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "37.5%", - "Start Line": 12, - "End Line": 26 - }, - { - "Function Name": "read_items", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 17, - "End Line": 23 + "Start Line": 48, + "End Line": 115 }, { - "Function Name": "test_query_nonregexquery", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, + "Function Name": "test_get_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 46, - "End Line": 60 + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 45 }, { - "Function Name": "test_no_query", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "a", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 34 + "Start Line": 29, + "End Line": 30 }, { - "Function Name": "test_q_fixedquery", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "b", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 42 + "Start Line": 34, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 45, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 29, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 3, "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -198049,7 +195940,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 4, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -198057,7 +195948,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 124, + "Structural Space Indentations": 81, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -198073,16 +195964,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 9, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -198106,25 +195997,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", "fastapi", - "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", "inline_snapshot", - "pytest", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_regex_deprecated_params.py": { + "python/fastapi/tests/test_response_dependency.py": { "1. Artifact Identity": { - "Filename": "test_regex_deprecated_params.py", - "Path": "python/fastapi/tests/test_regex_deprecated_params.py", + "Filename": "test_response_dependency.py", + "Path": "python/fastapi/tests/test_response_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -198134,9 +196023,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3167.23, - "Y": 40.65, - "Z": 1522.81 + "X": 2121.58, + "Y": -149.18, + "Z": 559.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -198145,24 +196034,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 147, - "Coding LOC": 132, - "Documentation LOC": 0, - "Structural Magnitude": 30.44, - "Control Flow Ratio": "8.3%", + "Total LOC": 174, + "Coding LOC": 109, + "Documentation LOC": 17, + "Structural Magnitude": 69.88, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.068 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.07%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "7.61%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.32%", - "Concurrency Exposure": "20.91%", + "API Exposure": "13.17%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -198173,99 +196062,259 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 83, + "Function Name": "test_response_dependency_chain", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 24, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 146 + "Start Line": 71, + "End Line": 94 }, { - "Function Name": "get_client", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 3, + "Function Name": "test_response_dependency_returns_different_response_instance", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "37.5%", - "Start Line": 12, - "End Line": 26 + "Control Flow Ratio": "0.0%", + "Start Line": 97, + "End Line": 121 }, { - "Function Name": "read_items", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 17, - "End Line": 23 + "Function Name": "test_background_tasks_with_depends_annotated", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 173 }, { - "Function Name": "test_query_params_str_validations_item_query_nonregexquery", - "Structural Impact": 2.8, + "Function Name": "test_request_with_depends_annotated", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 125, + "End Line": 145 + }, + { + "Function Name": "test_response_with_depends_annotated", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 31 + }, + { + "Function Name": "test_response_with_depends_default", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 51 + }, + { + "Function Name": "test_response_without_depends", + "Structural Impact": 1.8, "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 46, - "End Line": 60 + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 68 }, { - "Function Name": "test_query_params_str_validations_no_query", - "Structural Impact": 1.2, + "Function Name": "second_modifier", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 34 + "Start Line": 79, + "End Line": 83 }, { - "Function Name": "test_query_params_str_validations_q_fixedquery", - "Structural Impact": 1.2, + "Function Name": "extract_request_info", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 129, + "End Line": 133 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 162, + "End Line": 166 + }, + { + "Function Name": "modify_response", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 20 + }, + { + "Function Name": "modify_response", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 42 + "End Line": 40 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 61 + }, + { + "Function Name": "first_modifier", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 77 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 112, + "End Line": 114 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 136, + "End Line": 139 + }, + { + "Function Name": "add_background_task", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 157, + "End Line": 159 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 24 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 44 + }, + { + "Function Name": "endpoint", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 86, + "End Line": 87 + }, + { + "Function Name": "background_task", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 154, + "End Line": 155 + }, + { + "Function Name": "default_response", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 106, + "End Line": 109 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 44, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 68, + "Function Parameters": 22, + "Function/Method Declarations": 22, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 20, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 29, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 16, + "Unit Test Assertions": 27, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 7, + "Generic Type Abstractions": 7, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 2, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 8, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -198275,7 +196324,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 4, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -198283,7 +196332,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 116, + "Structural Space Indentations": 98, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -198299,16 +196348,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 24, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 23, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Duplicate Logic": 2, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -198332,37 +196381,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", "fastapi", - "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pytest", "typing" ] }, - "python/fastapi/tests/test_repeated_cookie_headers.py": { + "python/fastapi/tests/test_response_model_as_return_annotation.py": { "1. Artifact Identity": { - "Filename": "test_repeated_cookie_headers.py", - "Path": "python/fastapi/tests/test_repeated_cookie_headers.py", + "Filename": "test_response_model_as_return_annotation.py", + "Path": "python/fastapi/tests/test_response_model_as_return_annotation.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, BaseUser, User", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4568.48, - "Y": 190.55, - "Z": -1164.55 + "X": 2895.39, + "Y": -8.01, + "Z": -255.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -198371,23 +196418,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 35, - "Coding LOC": 21, + "Total LOC": 1122, + "Coding LOC": 959, "Documentation LOC": 0, - "Structural Magnitude": 14.82, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 236.98, + "Control Flow Ratio": "3.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.095 + "Raw Cognitive Density": 0.014 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.4%", + "Cognitive Load Exposure": "2.5%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.61%", + "API Exposure": "13.56%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -198399,307 +196446,796 @@ }, "5. Function Analysis": [ { - "Function Name": "set_cookie", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 611, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 511, + "End Line": 1121 + }, + { + "Function Name": "test_invalid_response_model_field", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "12.5%", + "Start Line": 499, + "End Line": 508 + }, + { + "Function Name": "test_response_model_no_annotation_return_invalid_dict", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 278, + "End Line": 281 + }, + { + "Function Name": "test_response_model_no_annotation_return_invalid_model", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 284, + "End Line": 287 + }, + { + "Function Name": "test_no_response_model_annotation_return_invalid_dict", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 316, + "End Line": 319 + }, + { + "Function Name": "test_no_response_model_annotation_return_invalid_model", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 322, + "End Line": 325 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_invalid_dict", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 400, + "End Line": 403 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_invalid_model", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 406, + "End Line": 409 + }, + { + "Function Name": "test_response_model_none_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 376, + "End Line": 385 + }, + { + "Function Name": "test_response_model_none_annotation_return_dict_with_extra_data", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 366, + "End Line": 373 + }, + { + "Function Name": "test_response_model_list_of_model_no_annotation", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 436, + "End Line": 442 + }, + { + "Function Name": "test_no_response_model_annotation_list_of_model", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 445, + "End Line": 451 + }, + { + "Function Name": "test_no_response_model_annotation_forward_ref_list_of_model", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 454, + "End Line": 460 + }, + { + "Function Name": "test_response_model_no_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 296, + "End Line": 301 + }, + { + "Function Name": "test_no_response_model_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 334, + "End Line": 339 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_dict_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 412, + "End Line": 417 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_submodel_with_extra_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 420, + "End Line": 425 + }, + { + "Function Name": "test_response_model_filtering_model_annotation_submodel_return_submodel", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 428, + "End Line": 433 + }, + { + "Function Name": "response_model_list_of_model_no_annotation", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 192, + "End Line": 196 + }, + { + "Function Name": "no_response_model_annotation_list_of_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 200, + "End Line": 204 + }, + { + "Function Name": "no_response_model_annotation_forward_ref_list_of_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 208, + "End Line": 212 + }, + { + "Function Name": "test_no_response_model_no_annotation_return_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 257 + }, + { + "Function Name": "test_no_response_model_no_annotation_return_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 260, + "End Line": 263 + }, + { + "Function Name": "test_response_model_no_annotation_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 266, + "End Line": 269 + }, + { + "Function Name": "test_response_model_no_annotation_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 272, + "End Line": 275 + }, + { + "Function Name": "test_response_model_no_annotation_return_dict_with_extra_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 290, + "End Line": 293 + }, + { + "Function Name": "test_no_response_model_annotation_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 304, + "End Line": 307 + }, + { + "Function Name": "test_no_response_model_annotation_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 310, + "End Line": 313 + }, + { + "Function Name": "test_no_response_model_annotation_return_dict_with_extra_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 328, + "End Line": 331 + }, + { + "Function Name": "test_response_model_none_annotation_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 342, + "End Line": 345 + }, + { + "Function Name": "test_response_model_none_annotation_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 348, + "End Line": 351 + }, + { + "Function Name": "test_response_model_none_annotation_return_invalid_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 354, + "End Line": 357 + }, + { + "Function Name": "test_response_model_none_annotation_return_invalid_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 360, + "End Line": 363 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_same_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 388, + "End Line": 391 + }, + { + "Function Name": "test_response_model_model1_annotation_model2_return_exact_dict", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 394, + "End Line": 397 + }, + { + "Function Name": "test_response_model_union_no_annotation_return_model1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 463, + "End Line": 466 + }, + { + "Function Name": "test_response_model_union_no_annotation_return_model2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 469, + "End Line": 472 + }, + { + "Function Name": "test_no_response_model_annotation_union_return_model1", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 475, + "End Line": 478 + }, + { + "Function Name": "test_no_response_model_annotation_union_return_model2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 481, + "End Line": 484 + }, + { + "Function Name": "test_no_response_model_annotation_return_class", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 487, + "End Line": 490 + }, + { + "Function Name": "test_no_response_model_annotation_json_response_class", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 493, + "End Line": 496 + }, + { + "Function Name": "no_response_model_no_annotation_return_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 + }, + { + "Function Name": "no_response_model_no_annotation_return_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 + }, + { + "Function Name": "response_model_no_annotation_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 + }, + { + "Function Name": "response_model_no_annotation_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 46, + "End Line": 47 + }, + { + "Function Name": "response_model_no_annotation_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 52 + }, + { + "Function Name": "response_model_no_annotation_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 + }, + { + "Function Name": "response_model_no_annotation_return_dict_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 63, + "End Line": 64 + }, + { + "Function Name": "response_model_no_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 70, + "End Line": 71 + }, + { + "Function Name": "no_response_model_annotation_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 75, + "End Line": 76 + }, + { + "Function Name": "no_response_model_annotation_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 80, + "End Line": 81 + }, + { + "Function Name": "no_response_model_annotation_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 85, + "End Line": 86 + }, + { + "Function Name": "no_response_model_annotation_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 90, + "End Line": 91 + }, + { + "Function Name": "no_response_model_annotation_return_dict_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 95, + "End Line": 96 + }, + { + "Function Name": "no_response_model_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 100, + "End Line": 101 + }, + { + "Function Name": "response_model_none_annotation_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 105, + "End Line": 106 + }, + { + "Function Name": "response_model_none_annotation_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 110, + "End Line": 111 + }, + { + "Function Name": "response_model_none_annotation_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 115, + "End Line": 116 + }, + { + "Function Name": "response_model_none_annotation_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 120, + "End Line": 121 + }, + { + "Function Name": "response_model_none_annotation_return_dict_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 127, + "End Line": 128 + }, + { + "Function Name": "response_model_none_annotation_return_submodel_with_extra_data", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 136 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_same_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 142, + "End Line": 143 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_exact_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 150 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_invalid_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 156, + "End Line": 157 + }, + { + "Function Name": "response_model_model1_annotation_model2_return_invalid_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 9 + "Start Line": 163, + "End Line": 164 }, { - "Function Name": "set_indirect_cookie", - "Structural Impact": 1.5, + "Function Name": "response_model_model1_annotation_model2_return_dict_with_extra_data", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 171, + "End Line": 172 }, { - "Function Name": "get_direct_cookie", - "Structural Impact": 1.5, + "Function Name": "response_model_model1_annotation_model2_return_submodel_with_extra_data", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 179, + "End Line": 180 }, { - "Function Name": "get_indirect_cookie", - "Structural Impact": 1.5, + "Function Name": "response_model_filtering_model_annotation_submodel_return_submodel", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 187, + "End Line": 188 }, { - "Function Name": "test_cookie_is_set_once", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "response_model_union_no_annotation_return_model1", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 34 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient" - ] - }, - "python/fastapi/tests/test_repeated_dependency_schema.py": { - "1. Artifact Identity": { - "Filename": "test_repeated_dependency_schema.py", - "Path": "python/fastapi/tests/test_repeated_dependency_schema.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4074.49, - "Y": 126.21, - "Z": -1264.0 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 110, - "Coding LOC": 96, - "Documentation LOC": 0, - "Structural Magnitude": 18.92, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.26%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 219, + "End Line": 220 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 80, + "Function Name": "response_model_union_no_annotation_return_model2", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 109 + "Start Line": 227, + "End Line": 228 }, { - "Function Name": "get_deps", - "Structural Impact": 1.8, + "Function Name": "no_response_model_annotation_union_return_model1", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 232, + "End Line": 233 }, { - "Function Name": "get_header", - "Structural Impact": 1.5, + "Function Name": "no_response_model_annotation_union_return_model2", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 237, + "End Line": 238 }, { - "Function Name": "get_something_else", - "Structural Impact": 1.5, + "Function Name": "no_response_model_annotation_response_class", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 242, + "End Line": 243 }, { - "Function Name": "test_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_response_model_annotation_json_response_class", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 27 + "Start Line": 247, + "End Line": 248 + }, + { + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 504, + "End Line": 505 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Control Flow Branches": 7, + "Sequential Logic Declarations": 216, + "Function Parameters": 75, + "Function/Method Declarations": 75, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 73, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 116, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, + "Unit Test Assertions": 116, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 37, + "Generic Type Abstractions": 29, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, + "Server-Side Rendering Contexts": 3, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 6, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -198710,7 +197246,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 85, + "Structural Space Indentations": 823, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -198726,16 +197262,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 23, + "Core Var Decl": 57, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 57, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 75, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -198743,7 +197279,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -198759,33 +197295,38 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", + "fastapi.responses", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_repeated_parameter_alias.py": { + "python/fastapi/tests/test_response_model_data_filter.py": { "1. Artifact Identity": { - "Filename": "test_repeated_parameter_alias.py", - "Path": "python/fastapi/tests/test_repeated_parameter_alias.py", + "Filename": "test_response_model_data_filter.py", + "Path": "python/fastapi/tests/test_response_model_data_filter.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, UserBase", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2582.71, - "Y": -51.37, - "Z": -2204.65 + "X": 3229.46, + "Y": 25.5, + "Z": -1548.44 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -198794,10 +197335,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 107, - "Coding LOC": 97, + "Total LOC": 80, + "Coding LOC": 54, "Documentation LOC": 0, - "Structural Magnitude": 14.24, + "Structural Magnitude": 26.58, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -198810,8 +197351,8 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.87%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.32%", + "Concurrency Exposure": "76.82%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -198822,254 +197363,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.1, - "Lines of Code (LOC)": 82, + "Function Name": "read_pet", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 106 + "Start Line": 36, + "End Line": 42 }, { - "Function Name": "get_parameters_with_repeated_aliases", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "create_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 13 + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "test_get_parameters", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_pets", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 87, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot" - ] - }, - "python/fastapi/tests/test_reponse_set_reponse_code_empty.py": { - "1. Artifact Identity": { - "Filename": "test_reponse_set_reponse_code_empty.py", - "Path": "python/fastapi/tests/test_reponse_set_reponse_code_empty.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 892.58, - "Y": -247.43, - "Z": 366.88 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 105, - "Coding LOC": 94, - "Documentation LOC": 0, - "Structural Magnitude": 15.78, - "Control Flow Ratio": "3.4%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.064 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.02%", - "Error & Exception Exposure": "44.24%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "6.9%", - "Concurrency Exposure": "23.73%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 46, + "End Line": 53 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 73, + "Function Name": "test_filter_second_level_model", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 104 + "Start Line": 66, + "End Line": 71 }, { - "Function Name": "test_dependency_set_status_code", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "test_list_of_models", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 26, - "End Line": 29 + "Control Flow Ratio": "0.0%", + "Start Line": 74, + "End Line": 79 }, { - "Function Name": "delete_deployment", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "test_filter_top_level_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 20 + "Start Line": 59, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 28, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 23, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 1, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199094,7 +197473,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 82, + "Structural Space Indentations": 35, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199110,16 +197489,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 10, + "Core Var Decl": 18, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 18, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199143,7 +197522,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -199151,14 +197530,13 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_request_body_parameters_media_type.py": { + "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py": { "1. Artifact Identity": { - "Filename": "test_request_body_parameters_media_type.py", - "Path": "python/fastapi/tests/test_request_body_parameters_media_type.py", + "Filename": "test_response_model_data_filter_no_inheritance.py", + "Path": "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -199169,9 +197547,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3776.01, - "Y": 72.33, - "Z": -1226.12 + "X": 1558.5, + "Y": -159.22, + "Z": 892.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199180,10 +197558,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 185, - "Coding LOC": 168, - "Documentation LOC": 2, - "Structural Magnitude": 24.26, + "Total LOC": 82, + "Coding LOC": 56, + "Documentation LOC": 0, + "Structural Magnitude": 26.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -199193,11 +197571,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "48.96%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.96%", - "Concurrency Exposure": "26.68%", + "API Exposure": "12.26%", + "Concurrency Exposure": "75.45%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -199208,62 +197586,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 8.4, - "Lines of Code (LOC)": 147, + "Function Name": "read_pet", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 184 + "End Line": 44 }, { - "Function Name": "create_shop", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "create_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 32 + "Start Line": 33, + "End Line": 34 }, { - "Function Name": "create_product", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "read_pets", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 48, + "End Line": 55 + }, + { + "Function Name": "test_filter_second_level_model", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 68, + "End Line": 73 + }, + { + "Function Name": "test_list_of_models", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 81 + }, + { + "Function Name": "test_filter_top_level_model", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 61, + "End Line": 65 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 36, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 3, + "Sequential Logic Declarations": 23, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 5, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 3, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199288,7 +197696,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 153, + "Structural Space Indentations": 37, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199304,16 +197712,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 10, + "Core Var Decl": 18, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 2, + "Design Snake Case": 18, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199337,7 +197745,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -199345,14 +197753,13 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_request_param_model_by_alias.py": { + "python/fastapi/tests/test_response_model_default_factory.py": { "1. Artifact Identity": { - "Filename": "test_request_param_model_by_alias.py", - "Path": "python/fastapi/tests/test_request_param_model_by_alias.py", + "Filename": "test_response_model_default_factory.py", + "Path": "python/fastapi/tests/test_response_model_default_factory.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -199363,9 +197770,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2716.26, - "Y": -41.36, - "Z": -1469.66 + "X": 1010.56, + "Y": -292.13, + "Z": 682.66 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199374,24 +197781,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 73, - "Coding LOC": 51, + "Total LOC": 48, + "Coding LOC": 30, "Documentation LOC": 0, - "Structural Magnitude": 29.22, + "Structural Magnitude": 14.6, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.267 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "6.32%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.26%", - "Concurrency Exposure": "78.88%", + "API Exposure": "10.69%", + "Concurrency Exposure": "74.44%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -199402,122 +197809,72 @@ }, "5. Function Analysis": [ { - "Function Name": "query_model", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 - }, - { - "Function Name": "header_model", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "cookie_model", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 - }, - { - "Function Name": "test_cookie_model_with_alias_by_name", + "Function Name": "test_response_model_has_default_factory_return_dict", "Structural Impact": 1.4, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 72 + "Start Line": 32, + "End Line": 38 }, { - "Function Name": "test_cookie_model_with_alias", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_response_model_has_default_factory_return_model", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, + "Start Line": 41, "End Line": 47 }, { - "Function Name": "test_query_model_with_alias_by_name", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 55 - }, - { - "Function Name": "test_header_model_with_alias_by_name", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 63 - }, - { - "Function Name": "test_query_model_with_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "response_model_has_default_factory_return_dict", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 32 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_header_model_with_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "response_model_has_default_factory_return_model", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 33, - "Function Parameters": 9, - "Function/Method Declarations": 9, + "Sequential Logic Declarations": 19, + "Function Parameters": 5, + "Function/Method Declarations": 4, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 16, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, + "Closures and Anonymous Functions": 1, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199531,7 +197888,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 2, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -199542,7 +197899,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 33, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199559,15 +197916,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 20, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 17, - "Design Pascal Case": 3, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199591,34 +197948,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dirty_equals", "fastapi", "fastapi.testclient", "pydantic" ] }, - "python/fastapi/tests/test_required_noneable.py": { + "python/fastapi/tests/test_response_model_include_exclude.py": { "1. Artifact Identity": { - "Filename": "test_required_noneable.py", - "Path": "python/fastapi/tests/test_required_noneable.py", + "Filename": "test_response_model_include_exclude.py", + "Path": "python/fastapi/tests/test_response_model_include_exclude.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3541.04, - "Y": 64.25, - "Z": 1260.06 + "X": 2591.25, + "Y": -92.13, + "Z": -1215.61 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199627,23 +197984,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 61, - "Coding LOC": 37, + "Total LOC": 176, + "Coding LOC": 137, "Documentation LOC": 0, - "Structural Magnitude": 26.24, + "Structural Magnitude": 40.14, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.054 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.91%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.79%", + "API Exposure": "11.94%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -199655,132 +198012,152 @@ }, "5. Function Analysis": [ { - "Function Name": "read_query", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "simple_include_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 42, + "End Line": 49 }, { - "Function Name": "read_explicit_query", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "simple_exclude_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 69, + "End Line": 76 }, { - "Function Name": "send_body_embed", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "mixed", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 85, + "End Line": 93 }, { - "Function Name": "test_required_noneable_query_value", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "mixed_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 102, + "End Line": 110 }, { - "Function Name": "test_required_nonable_explicit_query_value", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_nested_include_simple", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 44 + "Start Line": 116, + "End Line": 124 }, { - "Function Name": "test_required_noneable_body_embed_value", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_nested_include_simple_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 60 + "Start Line": 127, + "End Line": 135 }, { - "Function Name": "test_required_nonable_query_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_nested_exclude_simple", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 138, + "End Line": 144 }, { - "Function Name": "test_required_nonable_explicit_query_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_nested_exclude_simple_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 147, + "End Line": 153 + }, + { + "Function Name": "test_nested_include_mixed", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 156, + "End Line": 164 + }, + { + "Function Name": "test_nested_include_mixed_dict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 167, + "End Line": 175 }, { - "Function Name": "test_required_nonable_body_embed_no_content", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "simple_include", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 49 + "Start Line": 30, + "End Line": 34 }, { - "Function Name": "test_required_nonable_body_embed_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "simple_exclude", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 54 + "Start Line": 57, + "End Line": 61 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 27, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Sequential Logic Declarations": 39, + "Function Parameters": 12, + "Function/Method Declarations": 12, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 21, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 17, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 6, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -199805,7 +198182,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 20, + "Structural Space Indentations": 105, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -199821,16 +198198,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 31, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 2, + "Design Snake Case": 31, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 10, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -199854,33 +198231,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "pydantic" ] }, - "python/fastapi/tests/test_response_by_alias.py": { + "python/fastapi/tests/test_response_model_invalid.py": { "1. Artifact Identity": { - "Filename": "test_response_by_alias.py", - "Path": "python/fastapi/tests/test_response_by_alias.py", + "Filename": "test_response_model_invalid.py", + "Path": "python/fastapi/tests/test_response_model_invalid.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3706.92, - "Y": 46.07, - "Z": -364.16 + "X": 1943.3, + "Y": -161.35, + "Z": -1206.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -199889,23 +198266,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 331, - "Coding LOC": 284, + "Total LOC": 44, + "Coding LOC": 29, "Documentation LOC": 0, - "Structural Magnitude": 64.98, - "Control Flow Ratio": "3.0%", + "Structural Magnitude": 27.58, + "Control Flow Ratio": "17.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.021 + "Raw Cognitive Density": 0.207 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.57%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.11%", + "Error & Exception Exposure": "80.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.83%", + "API Exposure": "13.87%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -199917,225 +198294,115 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 8.0, - "Lines of Code (LOC)": 194, + "Function Name": "test_invalid_response_model_raises", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "9.1%", - "Start Line": 137, - "End Line": 330 + "Control Flow Ratio": "25.0%", + "Start Line": 10, + "End Line": 16 }, { - "Function Name": "test_read_list", - "Structural Impact": 1.4, + "Function Name": "test_invalid_response_model_sub_type_raises", + "Structural Impact": 2.4, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 92 + "Control Flow Ratio": "25.0%", + "Start Line": 19, + "End Line": 25 }, { - "Function Name": "test_read_list_by_alias", - "Structural Impact": 1.4, + "Function Name": "test_invalid_response_model_in_responses_raises", + "Structural Impact": 2.4, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 107, - "End Line": 113 + "Control Flow Ratio": "25.0%", + "Start Line": 28, + "End Line": 34 }, { - "Function Name": "test_read_list_no_alias", - "Structural Impact": 1.4, + "Function Name": "test_invalid_response_model_sub_type_in_responses_raises", + "Structural Impact": 2.4, "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 134 - }, - { - "Function Name": "test_read_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 77 - }, - { - "Function Name": "test_read_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 83 - }, - { - "Function Name": "test_read_dict_by_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 98 - }, - { - "Function Name": "test_read_model_by_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 101, - "End Line": 104 - }, - { - "Function Name": "test_read_dict_no_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 119 - }, - { - "Function Name": "test_read_model_no_alias", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 122, - "End Line": 125 - }, - { - "Function Name": "read_dict", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 28 - }, - { - "Function Name": "read_model", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 - }, - { - "Function Name": "read_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "25.0%", "Start Line": 37, - "End Line": 38 - }, - { - "Function Name": "by_alias_dict", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, "End Line": 43 }, { - "Function Name": "by_alias_model", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 - }, - { - "Function Name": "by_alias_list", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 53 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "no_alias_dict", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 58 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "no_alias_model", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 63 + "Start Line": 33, + "End Line": 34 }, { - "Function Name": "no_alias_list", + "Function Name": "read_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 67, - "End Line": 68 + "Start Line": 42, + "End Line": 43 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 65, - "Function Parameters": 19, - "Function/Method Declarations": 19, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 25, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 4, + "Sequential Logic Declarations": 19, + "Function Parameters": 8, + "Function/Method Declarations": 8, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 5, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 30, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 30, + "Unit Test Assertions": 9, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 9, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 2, + "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, @@ -200157,7 +198424,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 248, + "Structural Space Indentations": 21, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200173,16 +198440,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 24, + "Design Snake Case": 8, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 19, + "Duplicate Logic": 4, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -200206,34 +198473,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "fastapi.exceptions", + "pytest" ] }, - "python/fastapi/tests/test_response_change_status_code.py": { + "python/fastapi/tests/test_response_model_sub_types.py": { "1. Artifact Identity": { - "Filename": "test_response_change_status_code.py", - "Path": "python/fastapi/tests/test_response_change_status_code.py", + "Filename": "test_response_model_sub_types.py", + "Path": "python/fastapi/tests/test_response_model_sub_types.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4306.6, - "Y": 150.24, - "Z": -1491.43 + "X": 2157.87, + "Y": -110.58, + "Z": 1308.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200242,24 +198509,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 27, - "Coding LOC": 15, + "Total LOC": 162, + "Coding LOC": 143, "Documentation LOC": 0, - "Structural Magnitude": 13.6, + "Structural Magnitude": 25.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.733 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "24.17%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "42.33%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.75%", - "Concurrency Exposure": "98.46%", + "API Exposure": "9.76%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -200270,79 +198537,99 @@ }, "5. Function Analysis": [ { - "Function Name": "response_status_setter", - "Structural Impact": 1.5, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 114, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 161 + }, + { + "Function Name": "test_path_operations", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 45 + }, + { + "Function Name": "valid1", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 8 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "parent_dep", - "Structural Impact": 1.5, + "Function Name": "valid2", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "test_dependency_set_status_code", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "valid3", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, + "Start Line": 25, "End Line": 26 }, { - "Function Name": "get_main", + "Function Name": "valid4", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 30, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 12, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 4, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -200360,7 +198647,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 6, + "Structural Space Indentations": 126, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200376,10 +198663,10 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 4, + "Design Snake Case": 11, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, @@ -200409,33 +198696,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_response_class_no_mediatype.py": { + "python/fastapi/tests/test_return_none_stringified_annotations.py": { "1. Artifact Identity": { - "Filename": "test_response_class_no_mediatype.py", - "Path": "python/fastapi/tests/test_response_class_no_mediatype.py", + "Filename": "test_return_none_stringified_annotations.py", + "Path": "python/fastapi/tests/test_return_none_stringified_annotations.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 988.23, - "Y": -283.51, - "Z": -222.92 + "X": 4349.96, + "Y": 123.27, + "Z": -1835.22 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200444,27 +198732,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 115, - "Coding LOC": 99, + "Total LOC": 18, + "Coding LOC": 12, "Documentation LOC": 0, - "Structural Magnitude": 16.98, + "Structural Magnitude": 5.94, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.167 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "45.54%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.19%", - "Concurrency Exposure": "36.59%", + "API Exposure": "9.42%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "80.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -200472,67 +198760,57 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.8, - "Lines of Code (LOC)": 75, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 114 - }, - { - "Function Name": "a", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_no_content", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 7, + "End Line": 17 }, { - "Function Name": "b", + "Function Name": "return_no_content", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 11, + "End Line": 12 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 10, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 2, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -200552,7 +198830,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 83, + "Structural Space Indentations": 8, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200568,16 +198846,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -200601,36 +198879,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, + "Total Upstream (Absolute Fragility)": 3, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "http" ] }, - "python/fastapi/tests/test_response_code_no_body.py": { + "python/fastapi/tests/test_route_scope.py": { "1. Artifact Identity": { - "Filename": "test_response_code_no_body.py", - "Path": "python/fastapi/tests/test_response_code_no_body.py", + "Filename": "test_route_scope.py", + "Path": "python/fastapi/tests/test_route_scope.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "JSONResponse, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1703.08, - "Y": -152.35, - "Z": -1484.13 + "X": 2371.14, + "Y": -67.58, + "Z": -1313.2 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200639,24 +198914,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 116, - "Coding LOC": 98, + "Total LOC": 51, + "Coding LOC": 33, "Documentation LOC": 0, - "Structural Magnitude": 18.76, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 25.26, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.711 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "35.14%", + "Cognitive Load Exposure": "23.07%", + "Error & Exception Exposure": "17.91%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.73%", - "Concurrency Exposure": "36.84%", + "API Exposure": "11.12%", + "Concurrency Exposure": "97.53%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -200667,77 +198942,107 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 4.4, - "Lines of Code (LOC)": 68, - "Control Flow Branches": 0, + "Function Name": "test_websocket_invalid_path_doesnt_match", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 47, + "End Line": 50 + }, + { + "Function Name": "test_websocket", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 41, + "End Line": 44 + }, + { + "Function Name": "get_user", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 115 + "Start Line": 10, + "End Line": 12 }, { - "Function Name": "test_get_response", + "Function Name": "websocket_item", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 19 + }, + { + "Function Name": "test_get", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 45 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "a", + "Function Name": "test_invalid_method_doesnt_match", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 + "Start Line": 31, + "End Line": 33 }, { - "Function Name": "b", + "Function Name": "test_invalid_path_doesnt_match", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 36, + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 2, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 24, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -200757,7 +199062,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 81, + "Structural Space Indentations": 18, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -200773,23 +199078,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 7, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 1, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -200806,23 +199111,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", + "fastapi.routing", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pytest" ] }, - "python/fastapi/tests/test_response_dependency.py": { + "python/fastapi/tests/test_router_circular_import.py": { "1. Artifact Identity": { - "Filename": "test_response_dependency.py", - "Path": "python/fastapi/tests/test_response_dependency.py", + "Filename": "test_router_circular_import.py", + "Path": "python/fastapi/tests/test_router_circular_import.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -200832,9 +199136,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2121.58, - "Y": -149.18, - "Z": 559.92 + "X": 3173.02, + "Y": 34.71, + "Z": -2197.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -200843,27 +199147,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 174, - "Coding LOC": 109, - "Documentation LOC": 17, - "Structural Magnitude": 69.88, - "Control Flow Ratio": "0.0%", + "Total LOC": 13, + "Coding LOC": 9, + "Documentation LOC": 0, + "Structural Magnitude": 4.58, + "Control Flow Ratio": "33.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.444 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "7.61%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.17%", + "API Exposure": "5.25%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "60.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -200871,259 +199175,49 @@ }, "5. Function Analysis": [ { - "Function Name": "test_response_dependency_chain", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 94 - }, - { - "Function Name": "test_response_dependency_returns_different_response_instance", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 97, - "End Line": 121 - }, - { - "Function Name": "test_background_tasks_with_depends_annotated", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 173 - }, - { - "Function Name": "test_request_with_depends_annotated", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 125, - "End Line": 145 - }, - { - "Function Name": "test_response_with_depends_annotated", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 31 - }, - { - "Function Name": "test_response_with_depends_default", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 51 - }, - { - "Function Name": "test_response_without_depends", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 68 - }, - { - "Function Name": "second_modifier", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 83 - }, - { - "Function Name": "extract_request_info", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 133 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 162, - "End Line": 166 - }, - { - "Function Name": "modify_response", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 20 - }, - { - "Function Name": "modify_response", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 40 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 61 - }, - { - "Function Name": "first_modifier", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 77 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 112, - "End Line": 114 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 136, - "End Line": 139 - }, - { - "Function Name": "add_background_task", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 157, - "End Line": 159 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 44 - }, - { - "Function Name": "endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 87 - }, - { - "Function Name": "background_task", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 154, - "End Line": 155 - }, - { - "Function Name": "default_response", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "test_router_circular_import", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 109 + "Control Flow Ratio": "66.7%", + "Start Line": 5, + "End Line": 12 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 68, - "Function Parameters": 22, - "Function/Method Declarations": 22, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 4, + "Function Parameters": 1, + "Function/Method Declarations": 1, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 20, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 29, - "State Mutations / Variable Reassignments": 1, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 16, - "Unit Test Assertions": 27, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 7, - "Generic Type Abstractions": 7, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 2, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 8, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -201141,7 +199235,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 98, + "Structural Space Indentations": 6, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -201157,16 +199251,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 2, "Design Camel Case": 0, - "Design Snake Case": 23, - "Design Pascal Case": 1, + "Design Snake Case": 2, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 7, + "Duplicate Logic": 0, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -201190,35 +199284,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.responses", - "fastapi.testclient", - "typing" + "pytest" ] }, - "python/fastapi/tests/test_response_model_as_return_annotation.py": { + "python/fastapi/tests/test_router_events.py": { "1. Artifact Identity": { - "Filename": "test_response_model_as_return_annotation.py", - "Path": "python/fastapi/tests/test_response_model_as_return_annotation.py", + "Filename": "test_router_events.py", + "Path": "python/fastapi/tests/test_router_events.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, BaseUser, User", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2895.39, - "Y": -8.01, - "Z": -255.95 + "X": 3402.36, + "Y": 7.28, + "Z": 226.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -201227,24 +199319,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 1122, - "Coding LOC": 959, - "Documentation LOC": 0, - "Structural Magnitude": 236.98, - "Control Flow Ratio": "3.1%", + "Total LOC": 379, + "Coding LOC": 293, + "Documentation LOC": 4, + "Structural Magnitude": 157.56, + "Control Flow Ratio": "5.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.014 + "Raw Cognitive Density": 0.241 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.5%", + "Cognitive Load Exposure": "4.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.56%", - "Concurrency Exposure": "0.0%", + "API Exposure": "13.37%", + "Concurrency Exposure": "80.7%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -201255,787 +199347,1065 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.5, - "Lines of Code (LOC)": 611, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 511, - "End Line": 1121 - }, - { - "Function Name": "test_invalid_response_model_field", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 10, + "Function Name": "test_router_events", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 60, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "12.5%", - "Start Line": 499, - "End Line": 508 + "Input Parameters": 1, + "Control Flow Ratio": "3.2%", + "Start Line": 27, + "End Line": 86 }, { - "Function Name": "test_response_model_no_annotation_return_invalid_dict", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_nested_lifespan_state", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 58, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 278, - "End Line": 281 + "Input Parameters": 1, + "Control Flow Ratio": "3.2%", + "Start Line": 114, + "End Line": 171 }, { - "Function Name": "test_response_model_no_annotation_return_invalid_model", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_startup_shutdown_handlers_as_parameters", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 58, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 284, - "End Line": 287 + "Input Parameters": 1, + "Control Flow Ratio": "3.2%", + "Start Line": 321, + "End Line": 378 }, { - "Function Name": "test_no_response_model_annotation_return_invalid_dict", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_sync_generator_lifespan", + "Structural Impact": 4.1, + "Lines of Code (LOC)": 25, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 316, - "End Line": 319 + "Input Parameters": 1, + "Control Flow Ratio": "6.2%", + "Start Line": 268, + "End Line": 292 }, { - "Function Name": "test_no_response_model_annotation_return_invalid_model", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_app_lifespan_state", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 23, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 322, - "End Line": 325 + "Input Parameters": 1, + "Control Flow Ratio": "7.1%", + "Start Line": 89, + "End Line": 111 }, { - "Function Name": "test_response_model_model1_annotation_model2_return_invalid_dict", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_async_generator_lifespan", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 24, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 400, - "End Line": 403 + "Input Parameters": 1, + "Control Flow Ratio": "7.1%", + "Start Line": 295, + "End Line": 318 }, { - "Function Name": "test_response_model_model1_annotation_model2_return_invalid_model", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_router_async_shutdown_handler", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 18, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 406, - "End Line": 409 + "Input Parameters": 1, + "Control Flow Ratio": "10.0%", + "Start Line": 248, + "End Line": 265 }, { - "Function Name": "test_response_model_none_annotation_return_submodel_with_extra_data", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, + "Function Name": "test_router_nested_lifespan_state_overriding_by_parent", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 376, - "End Line": 385 + "Control Flow Ratio": "16.7%", + "Start Line": 174, + "End Line": 202 }, { - "Function Name": "test_response_model_none_annotation_return_dict_with_extra_data", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, + "Function Name": "test_merged_mixed_state_lifespans", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 366, - "End Line": 373 + "Control Flow Ratio": "14.3%", + "Start Line": 222, + "End Line": 242 }, { - "Function Name": "test_response_model_list_of_model_no_annotation", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Function Name": "test_merged_no_return_lifespans_return_none", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 436, - "End Line": 442 + "Control Flow Ratio": "16.7%", + "Start Line": 205, + "End Line": 219 }, { - "Function Name": "test_no_response_model_annotation_list_of_model", - "Structural Impact": 1.4, + "Function Name": "lifespan", + "Structural Impact": 1.8, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 445, - "End Line": 451 + "Start Line": 176, + "End Line": 182 }, { - "Function Name": "test_no_response_model_annotation_forward_ref_list_of_model", - "Structural Impact": 1.4, + "Function Name": "router_lifespan", + "Structural Impact": 1.8, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 454, - "End Line": 460 - }, - { - "Function Name": "test_response_model_no_annotation_return_submodel_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 296, - "End Line": 301 - }, - { - "Function Name": "test_no_response_model_annotation_return_submodel_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 334, - "End Line": 339 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_dict_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 412, - "End Line": 417 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_submodel_with_extra_data", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 420, - "End Line": 425 - }, - { - "Function Name": "test_response_model_filtering_model_annotation_submodel_return_submodel", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 428, - "End Line": 433 - }, - { - "Function Name": "response_model_list_of_model_no_annotation", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 192, - "End Line": 196 + "Start Line": 185, + "End Line": 191 }, { - "Function Name": "no_response_model_annotation_list_of_model", - "Structural Impact": 1.2, + "Function Name": "main", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 200, - "End Line": 204 + "Start Line": 142, + "End Line": 146 }, { - "Function Name": "no_response_model_annotation_forward_ref_list_of_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "lifespan", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 208, - "End Line": 212 + "Start Line": 91, + "End Line": 94 }, { - "Function Name": "test_no_response_model_no_annotation_return_model", - "Structural Impact": 1.2, + "Function Name": "lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 254, - "End Line": 257 + "Start Line": 116, + "End Line": 119 }, { - "Function Name": "test_no_response_model_no_annotation_return_dict", - "Structural Impact": 1.2, + "Function Name": "router_lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 260, - "End Line": 263 + "Start Line": 122, + "End Line": 125 }, { - "Function Name": "test_response_model_no_annotation_return_same_model", - "Structural Impact": 1.2, + "Function Name": "subrouter_lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 266, - "End Line": 269 + "Start Line": 128, + "End Line": 131 }, { - "Function Name": "test_response_model_no_annotation_return_exact_dict", - "Structural Impact": 1.2, + "Function Name": "lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 272, "End Line": 275 }, { - "Function Name": "test_response_model_no_annotation_return_dict_with_extra_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 290, - "End Line": 293 - }, - { - "Function Name": "test_no_response_model_annotation_return_same_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 304, - "End Line": 307 - }, - { - "Function Name": "test_no_response_model_annotation_return_exact_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 310, - "End Line": 313 - }, - { - "Function Name": "test_no_response_model_annotation_return_dict_with_extra_data", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 328, - "End Line": 331 - }, - { - "Function Name": "test_response_model_none_annotation_return_same_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 342, - "End Line": 345 - }, - { - "Function Name": "test_response_model_none_annotation_return_exact_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 348, - "End Line": 351 - }, - { - "Function Name": "test_response_model_none_annotation_return_invalid_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 354, - "End Line": 357 - }, - { - "Function Name": "test_response_model_none_annotation_return_invalid_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 360, - "End Line": 363 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_same_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 388, - "End Line": 391 - }, - { - "Function Name": "test_response_model_model1_annotation_model2_return_exact_dict", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 394, - "End Line": 397 - }, - { - "Function Name": "test_response_model_union_no_annotation_return_model1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 463, - "End Line": 466 - }, - { - "Function Name": "test_response_model_union_no_annotation_return_model2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 469, - "End Line": 472 - }, - { - "Function Name": "test_no_response_model_annotation_union_return_model1", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 475, - "End Line": 478 - }, - { - "Function Name": "test_no_response_model_annotation_union_return_model2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 481, - "End Line": 484 - }, - { - "Function Name": "test_no_response_model_annotation_return_class", - "Structural Impact": 1.2, + "Function Name": "lifespan", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 487, - "End Line": 490 + "Start Line": 298, + "End Line": 301 }, { - "Function Name": "test_no_response_model_annotation_json_response_class", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "lifespan", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 493, - "End Line": 496 + "Start Line": 207, + "End Line": 208 }, { - "Function Name": "no_response_model_no_annotation_return_model", - "Structural Impact": 1.1, + "Function Name": "router_lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 211, + "End Line": 212 }, { - "Function Name": "no_response_model_no_annotation_return_dict", - "Structural Impact": 1.1, + "Function Name": "lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 + "Start Line": 224, + "End Line": 225 }, { - "Function Name": "response_model_no_annotation_return_same_model", - "Structural Impact": 1.1, + "Function Name": "router_lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 + "Start Line": 228, + "End Line": 229 }, { - "Function Name": "response_model_no_annotation_return_exact_dict", - "Structural Impact": 1.1, + "Function Name": "sub_router_lifespan", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 47 + "Start Line": 232, + "End Line": 233 }, { - "Function Name": "response_model_no_annotation_return_invalid_dict", + "Function Name": "state", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 52 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "response_model_no_annotation_return_invalid_model", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 57 + "Start Line": 31, + "End Line": 32 }, { - "Function Name": "response_model_no_annotation_return_dict_with_extra_data", + "Function Name": "app_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 64 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "response_model_no_annotation_return_submodel_with_extra_data", + "Function Name": "app_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 71 + "Start Line": 39, + "End Line": 40 }, { - "Function Name": "no_response_model_annotation_return_same_model", + "Function Name": "router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 75, - "End Line": 76 + "Start Line": 45, + "End Line": 46 }, { - "Function Name": "no_response_model_annotation_return_exact_dict", + "Function Name": "router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 80, - "End Line": 81 + "Start Line": 49, + "End Line": 50 }, { - "Function Name": "no_response_model_annotation_return_invalid_dict", + "Function Name": "sub_router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 86 + "Start Line": 55, + "End Line": 56 }, { - "Function Name": "no_response_model_annotation_return_invalid_model", + "Function Name": "sub_router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 90, - "End Line": 91 + "Start Line": 59, + "End Line": 60 }, { - "Function Name": "no_response_model_annotation_return_dict_with_extra_data", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 95, - "End Line": 96 + "Start Line": 99, + "End Line": 100 }, { - "Function Name": "no_response_model_annotation_return_submodel_with_extra_data", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 100, - "End Line": 101 + "Start Line": 253, + "End Line": 254 }, { - "Function Name": "response_model_none_annotation_return_same_model", + "Function Name": "app_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 105, - "End Line": 106 + "Start Line": 257, + "End Line": 258 }, { - "Function Name": "response_model_none_annotation_return_exact_dict", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 111 + "Start Line": 280, + "End Line": 281 }, { - "Function Name": "response_model_none_annotation_return_invalid_dict", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 115, - "End Line": 116 + "Start Line": 306, + "End Line": 307 }, { - "Function Name": "response_model_none_annotation_return_invalid_model", + "Function Name": "app_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 120, - "End Line": 121 + "Start Line": 324, + "End Line": 325 }, { - "Function Name": "response_model_none_annotation_return_dict_with_extra_data", + "Function Name": "app_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 127, - "End Line": 128 + "Start Line": 327, + "End Line": 328 }, { - "Function Name": "response_model_none_annotation_return_submodel_with_extra_data", + "Function Name": "main", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 136 + "Start Line": 333, + "End Line": 334 }, { - "Function Name": "response_model_model1_annotation_model2_return_same_model", + "Function Name": "router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 142, - "End Line": 143 + "Start Line": 336, + "End Line": 337 }, { - "Function Name": "response_model_model1_annotation_model2_return_exact_dict", + "Function Name": "router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 150 + "Start Line": 339, + "End Line": 340 }, { - "Function Name": "response_model_model1_annotation_model2_return_invalid_dict", + "Function Name": "sub_router_startup", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 156, - "End Line": 157 + "Start Line": 344, + "End Line": 345 }, { - "Function Name": "response_model_model1_annotation_model2_return_invalid_model", + "Function Name": "sub_router_shutdown", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 163, - "End Line": 164 - }, + "Start Line": 347, + "End Line": 348 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 10, + "Sequential Logic Declarations": 170, + "Function Parameters": 44, + "Function/Method Declarations": 44, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 96, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 52, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 8, + "Unit Test Assertions": 109, + "Asynchronous/Concurrent Execution": 13, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 28, + "Generic Type Abstractions": 57, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 7, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 9, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 270, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 28, + "Vectorized Math & Tensor Operations": 18, + "Core Var Decl": 34, + "Design Camel Case": 0, + "Design Snake Case": 34, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 22, + "Orphaned Logic": 10, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 6, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "collections.abc", + "contextlib", + "fastapi", + "fastapi.testclient", + "pydantic", + "pytest" + ] + }, + "python/fastapi/tests/test_router_prefix_with_template.py": { + "1. Artifact Identity": { + "Filename": "test_router_prefix_with_template.py", + "Path": "python/fastapi/tests/test_router_prefix_with_template.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 619.45, + "Y": -312.55, + "Z": 264.5 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 24, + "Coding LOC": 13, + "Documentation LOC": 0, + "Structural Magnitude": 6.26, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.154 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "8.61%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "86.67%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "response_model_model1_annotation_model2_return_dict_with_extra_data", - "Structural Impact": 1.1, + "Function Name": "read_user", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 171, - "End Line": 172 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "response_model_model1_annotation_model2_return_submodel_with_extra_data", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 179, - "End Line": 180 - }, + "Start Line": 20, + "End Line": 23 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 9, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 3, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 4, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, + "Design Camel Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient" + ] + }, + "python/fastapi/tests/test_router_redirect_slashes.py": { + "1. Artifact Identity": { + "Filename": "test_router_redirect_slashes.py", + "Path": "python/fastapi/tests/test_router_redirect_slashes.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 3395.23, + "Y": -31.8, + "Z": -2203.64 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 41, + "Coding LOC": 26, + "Documentation LOC": 0, + "Structural Magnitude": 12.52, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.077 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "3.17%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "10.41%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "response_model_filtering_model_annotation_submodel_return_submodel", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_redirect_slashes_enabled", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 187, - "End Line": 188 + "Start Line": 5, + "End Line": 21 }, { - "Function Name": "response_model_union_no_annotation_return_model1", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_redirect_slashes_disabled", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 219, - "End Line": 220 + "Start Line": 24, + "End Line": 40 }, { - "Function Name": "response_model_union_no_annotation_return_model2", + "Function Name": "hello_page", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 227, - "End Line": 228 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "no_response_model_annotation_union_return_model1", + "Function Name": "hello_page", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 232, - "End Line": 233 - }, + "Start Line": 29, + "End Line": 30 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 14, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 6, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 2, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 0, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 22, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 10, + "Design Camel Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 2, + "Orphaned Logic": 2, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 2, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.testclient" + ] + }, + "python/fastapi/tests/test_schema_compat_pydantic_v2.py": { + "1. Artifact Identity": { + "Filename": "test_schema_compat_pydantic_v2.py", + "Path": "python/fastapi/tests/test_schema_compat_pydantic_v2.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "str, Enum, BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 2048.25, + "Y": -176.92, + "Z": -1440.17 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 122, + "Coding LOC": 106, + "Documentation LOC": 2, + "Structural Magnitude": 21.22, + "Control Flow Ratio": "0.0%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.0 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.13%", + "Concurrency Exposure": "22.63%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "no_response_model_annotation_union_return_model2", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.4, + "Lines of Code (LOC)": 80, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 237, - "End Line": 238 + "Start Line": 42, + "End Line": 121 }, { - "Function Name": "no_response_model_annotation_response_class", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_client", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 242, - "End Line": 243 + "Start Line": 12, + "End Line": 32 }, { - "Function Name": "no_response_model_annotation_json_response_class", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 247, - "End Line": 248 + "Start Line": 36, + "End Line": 38 }, { - "Function Name": "read_root", + "Function Name": "get_user", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 504, - "End Line": 505 + "Start Line": 28, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 7, - "Sequential Logic Declarations": 216, - "Function Parameters": 75, - "Function/Method Declarations": 75, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 73, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 32, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 3, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 116, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 116, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 37, - "Generic Type Abstractions": 29, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 8, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 3, + "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, @@ -202044,7 +200414,7 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 6, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, @@ -202055,7 +200425,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 823, + "Structural Space Indentations": 93, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202071,16 +200441,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 23, - "Core Var Decl": 57, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 57, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 75, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202104,38 +200474,39 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 8, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dirty_equals", + "enum", "fastapi", - "fastapi.exceptions", - "fastapi.responses", "fastapi.testclient", "inline_snapshot", "pydantic", - "pytest" + "pytest", + "tests.utils" ] }, - "python/fastapi/tests/test_response_model_data_filter.py": { + "python/fastapi/tests/test_schema_extra_examples.py": { "1. Artifact Identity": { - "Filename": "test_response_model_data_filter.py", - "Path": "python/fastapi/tests/test_response_model_data_filter.py", + "Filename": "test_schema_extra_examples.py", + "Path": "python/fastapi/tests/test_schema_extra_examples.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, UserBase", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3229.46, - "Y": 25.5, - "Z": -1548.44 + "X": 3034.94, + "Y": -40.77, + "Z": 835.32 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202144,26 +200515,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 54, - "Documentation LOC": 0, - "Structural Magnitude": 26.58, - "Control Flow Ratio": "0.0%", + "Total LOC": 858, + "Coding LOC": 784, + "Documentation LOC": 34, + "Structural Magnitude": 123.98, + "Control Flow Ratio": "9.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.023 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.53%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.32%", - "Concurrency Exposure": "76.82%", + "API Exposure": "10.69%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Commented Logic Exposure": "8.54%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -202172,94 +200543,224 @@ }, "5. Function Analysis": [ { - "Function Name": "read_pet", + "Function Name": "create_app", + "Structural Impact": 21.2, + "Lines of Code (LOC)": 205, + "Control Flow Branches": 10, + "Input Parameters": 0, + "Control Flow Ratio": "22.2%", + "Start Line": 9, + "End Line": 213 + }, + { + "Function Name": "test_openapi_schema", + "Structural Impact": 20.0, + "Lines of Code (LOC)": 605, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 253, + "End Line": 857 + }, + { + "Function Name": "test_call_api", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 35, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 216, + "End Line": 250 + }, + { + "Function Name": "examples", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 38 + }, + { + "Function Name": "example_examples", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 43, + "End Line": 52 + }, + { + "Function Name": "header_examples", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 158, + "End Line": 167 + }, + { + "Function Name": "path_example_examples", "Structural Impact": 1.8, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 42 + "Start Line": 106, + "End Line": 112 }, { - "Function Name": "create_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "query_example", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 117, + "End Line": 123 }, { - "Function Name": "read_pets", - "Structural Impact": 1.4, + "Function Name": "query_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 126, + "End Line": 132 + }, + { + "Function Name": "query_example_examples", + "Structural Impact": 1.8, "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 53 + "Start Line": 137, + "End Line": 144 }, { - "Function Name": "test_filter_second_level_model", - "Structural Impact": 1.3, + "Function Name": "header_example", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 155 + }, + { + "Function Name": "header_example_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 172, + "End Line": 179 + }, + { + "Function Name": "cookie_example", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 184, + "End Line": 190 + }, + { + "Function Name": "cookie_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 193, + "End Line": 199 + }, + { + "Function Name": "cookie_example_examples", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 204, + "End Line": 211 + }, + { + "Function Name": "path_example", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 71 + "Start Line": 88, + "End Line": 93 }, { - "Function Name": "test_list_of_models", - "Structural Impact": 1.3, + "Function Name": "path_examples", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 74, - "End Line": 79 + "Start Line": 96, + "End Line": 101 }, { - "Function Name": "test_filter_top_level_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "schema_extra", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 63 + "Start Line": 20, + "End Line": 21 + }, + { + "Function Name": "example", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 26, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 10, + "Sequential Logic Declarations": 100, + "Function Parameters": 19, + "Function/Method Declarations": 19, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 20, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 36, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 3, + "Commented-out Code (Dead Logic)": 6, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 31, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 16, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Planned Work (TODOs)": 2, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, @@ -202282,7 +200783,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 35, + "Structural Space Indentations": 775, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202298,16 +200799,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 10, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 67, "Design Camel Case": 0, - "Design Snake Case": 18, - "Design Pascal Case": 0, + "Design Snake Case": 55, + "Design Pascal Case": 12, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202331,21 +200832,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "pydantic" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py": { + "python/fastapi/tests/test_schema_ref_pydantic_v2.py": { "1. Artifact Identity": { - "Filename": "test_response_model_data_filter_no_inheritance.py", - "Path": "python/fastapi/tests/test_response_model_data_filter_no_inheritance.py", + "Filename": "test_schema_ref_pydantic_v2.py", + "Path": "python/fastapi/tests/test_schema_ref_pydantic_v2.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -202356,9 +200860,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1558.5, - "Y": -159.22, - "Z": 892.06 + "X": 4109.14, + "Y": 92.33, + "Z": -1657.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202367,10 +200871,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 82, - "Coding LOC": 56, + "Total LOC": 69, + "Coding LOC": 58, "Documentation LOC": 0, - "Structural Magnitude": 26.62, + "Structural Magnitude": 15.76, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -202380,11 +200884,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "33.95%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.26%", - "Concurrency Exposure": "75.45%", + "API Exposure": "9.16%", + "Concurrency Exposure": "29.4%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -202395,92 +200899,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_pet", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 44 - }, - { - "Function Name": "create_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 38, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 - }, - { - "Function Name": "read_pets", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 55 + "Start Line": 31, + "End Line": 68 }, { - "Function Name": "test_filter_second_level_model", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "get_client", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 68, - "End Line": 73 + "Start Line": 11, + "End Line": 23 }, { - "Function Name": "test_list_of_models", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 81 + "Start Line": 26, + "End Line": 28 }, { - "Function Name": "test_filter_top_level_model", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "read_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 65 + "Start Line": 19, + "End Line": 20 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 5, - "Defensive Programming Constructs": 9, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 22, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -202505,7 +200989,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 37, + "Structural Space Indentations": 48, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202521,16 +201005,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 10, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 18, + "Design Snake Case": 7, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202554,7 +201038,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -202562,13 +201046,16 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "pydantic" + "inline_snapshot", + "pydantic", + "pytest", + "typing" ] }, - "python/fastapi/tests/test_response_model_default_factory.py": { + "python/fastapi/tests/test_security_api_key_cookie.py": { "1. Artifact Identity": { - "Filename": "test_response_model_default_factory.py", - "Path": "python/fastapi/tests/test_response_model_default_factory.py", + "Filename": "test_security_api_key_cookie.py", + "Path": "python/fastapi/tests/test_security_api_key_cookie.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -202579,9 +201066,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1010.56, - "Y": -292.13, - "Z": 682.66 + "X": 1109.08, + "Y": -263.54, + "Z": -779.7 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202590,24 +201077,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 48, - "Coding LOC": 30, + "Total LOC": 71, + "Coding LOC": 56, "Documentation LOC": 0, - "Structural Magnitude": 14.6, + "Structural Magnitude": 16.22, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.267 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.32%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.69%", - "Concurrency Exposure": "74.44%", + "API Exposure": "9.72%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -202618,54 +201105,64 @@ }, "5. Function Analysis": [ { - "Function Name": "test_response_model_has_default_factory_return_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 30, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 38 + "Start Line": 41, + "End Line": 70 }, { - "Function Name": "test_response_model_has_default_factory_return_model", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 47 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "response_model_has_default_factory_return_dict", - "Structural Impact": 1.1, + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 33, + "End Line": 38 }, { - "Function Name": "response_model_has_default_factory_return_model", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 26, + "End Line": 30 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, + "Sequential Logic Declarations": 26, "Function Parameters": 5, - "Function/Method Declarations": 4, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 10, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -202673,24 +201170,24 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 1, + "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -202708,7 +201205,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, + "Structural Space Indentations": 42, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -202725,15 +201222,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -202757,21 +201254,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", + "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_response_model_include_exclude.py": { + "python/fastapi/tests/test_security_api_key_cookie_description.py": { "1. Artifact Identity": { - "Filename": "test_response_model_include_exclude.py", - "Path": "python/fastapi/tests/test_response_model_include_exclude.py", + "Filename": "test_security_api_key_cookie_description.py", + "Path": "python/fastapi/tests/test_security_api_key_cookie_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -202782,9 +201281,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2591.25, - "Y": -92.13, - "Z": -1215.61 + "X": 2613.73, + "Y": -28.07, + "Z": 1940.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -202793,10 +201292,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 176, - "Coding LOC": 137, + "Total LOC": 76, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 40.14, + "Structural Magnitude": 16.62, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -202809,7 +201308,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.94%", + "API Exposure": "9.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -202821,159 +201320,89 @@ }, "5. Function Analysis": [ { - "Function Name": "simple_include_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 49 - }, - { - "Function Name": "simple_exclude_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 69, - "End Line": 76 - }, - { - "Function Name": "mixed", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 93 - }, - { - "Function Name": "mixed_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 102, - "End Line": 110 - }, - { - "Function Name": "test_nested_include_simple", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 124 - }, - { - "Function Name": "test_nested_include_simple_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 127, - "End Line": 135 - }, - { - "Function Name": "test_nested_exclude_simple", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 138, - "End Line": 144 - }, - { - "Function Name": "test_nested_exclude_simple_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 35, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 147, - "End Line": 153 + "Start Line": 41, + "End Line": 75 }, { - "Function Name": "test_nested_include_mixed", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 156, - "End Line": 164 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "test_nested_include_mixed_dict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 167, - "End Line": 175 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "simple_include", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 34 + "Start Line": 33, + "End Line": 38 }, { - "Function Name": "simple_exclude", + "Function Name": "test_security_api_key", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 61 + "Start Line": 26, + "End Line": 30 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 16, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 21, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 6, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -202991,7 +201420,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 105, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203007,16 +201436,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 31, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 31, - "Design Pascal Case": 0, + "Design Snake Case": 10, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -203040,33 +201469,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", + "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_response_model_invalid.py": { + "python/fastapi/tests/test_security_api_key_cookie_optional.py": { "1. Artifact Identity": { - "Filename": "test_response_model_invalid.py", - "Path": "python/fastapi/tests/test_response_model_invalid.py", + "Filename": "test_security_api_key_cookie_optional.py", + "Path": "python/fastapi/tests/test_security_api_key_cookie_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1943.3, - "Y": -161.35, - "Z": -1206.3 + "X": 1356.23, + "Y": -265.29, + "Z": 719.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203075,23 +201507,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 44, - "Coding LOC": 29, + "Total LOC": 75, + "Coding LOC": 60, "Documentation LOC": 0, - "Structural Magnitude": 27.58, - "Control Flow Ratio": "17.4%", + "Structural Magnitude": 20.7, + "Control Flow Ratio": "10.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.207 + "Raw Cognitive Density": 0.083 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.11%", - "Error & Exception Exposure": "80.0%", + "Cognitive Load Exposure": "3.25%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.87%", + "API Exposure": "9.6%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -203103,98 +201535,68 @@ }, "5. Function Analysis": [ { - "Function Name": "test_invalid_response_model_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 10, - "End Line": 16 - }, - { - "Function Name": "test_invalid_response_model_sub_type_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 19, - "End Line": 25 - }, - { - "Function Name": "test_invalid_response_model_in_responses_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 28, - "End Line": 34 + "Function Name": "read_current_user", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 24, + "End Line": 28 }, { - "Function Name": "test_invalid_response_model_sub_type_in_responses_raises", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 7, + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, "Control Flow Branches": 1, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "25.0%", - "Start Line": 37, - "End Line": 43 - }, - { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 16, + "End Line": 20 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 30, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 45, + "End Line": 74 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 31, + "End Line": 35 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 43 + "Start Line": 38, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 4, - "Sequential Logic Declarations": 19, - "Function Parameters": 8, - "Function/Method Declarations": 8, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 27, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 5, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, @@ -203203,19 +201605,19 @@ "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203233,7 +201635,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 21, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203249,15 +201651,15 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 9, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 4, + "Duplicate Logic": 0, "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, @@ -203282,21 +201684,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.exceptions", - "pytest" + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_response_model_sub_types.py": { + "python/fastapi/tests/test_security_api_key_header.py": { "1. Artifact Identity": { - "Filename": "test_response_model_sub_types.py", - "Path": "python/fastapi/tests/test_response_model_sub_types.py", + "Filename": "test_security_api_key_header.py", + "Path": "python/fastapi/tests/test_security_api_key_header.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -203307,9 +201711,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2157.87, - "Y": -110.58, - "Z": 1308.85 + "X": 1912.98, + "Y": -170.49, + "Z": 1613.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203318,10 +201722,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 162, - "Coding LOC": 143, + "Total LOC": 71, + "Coding LOC": 54, "Documentation LOC": 0, - "Structural Magnitude": 25.66, + "Structural Magnitude": 16.08, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -203331,10 +201735,10 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "42.33%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.76%", + "API Exposure": "9.72%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -203347,98 +201751,88 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 6.0, - "Lines of Code (LOC)": 114, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 161 - }, - { - "Function Name": "test_path_operations", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 45 + "Start Line": 42, + "End Line": 70 }, { - "Function Name": "valid1", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "valid2", - "Structural Impact": 1.1, + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "valid3", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "valid4", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 31 + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 4, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203456,7 +201850,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 126, + "Structural Space Indentations": 39, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203472,16 +201866,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -203505,34 +201899,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", "inline_snapshot", "pydantic" ] }, - "python/fastapi/tests/test_return_none_stringified_annotations.py": { + "python/fastapi/tests/test_security_api_key_header_description.py": { "1. Artifact Identity": { - "Filename": "test_return_none_stringified_annotations.py", - "Path": "python/fastapi/tests/test_return_none_stringified_annotations.py", + "Filename": "test_security_api_key_header_description.py", + "Path": "python/fastapi/tests/test_security_api_key_header_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4349.96, - "Y": 123.27, - "Z": -1835.22 + "X": 4660.04, + "Y": 165.39, + "Z": 501.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203541,27 +201937,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 18, - "Coding LOC": 12, + "Total LOC": 76, + "Coding LOC": 59, "Documentation LOC": 0, - "Structural Magnitude": 5.94, + "Structural Magnitude": 16.38, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.167 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.42%", + "API Exposure": "9.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "80.0%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -203569,59 +201965,89 @@ }, "5. Function Analysis": [ { - "Function Name": "test_no_content", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 34, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 7, - "End Line": 17 + "Start Line": 42, + "End Line": 75 }, { - "Function Name": "return_no_content", - "Structural Impact": 1.1, + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 18 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 29, + "End Line": 32 + }, + { + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 10, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203639,7 +202065,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 8, + "Structural Space Indentations": 44, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203656,15 +202082,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -203688,33 +202114,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 3, + "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", + "fastapi.security", "fastapi.testclient", - "http" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_route_scope.py": { + "python/fastapi/tests/test_security_api_key_header_optional.py": { "1. Artifact Identity": { - "Filename": "test_route_scope.py", - "Path": "python/fastapi/tests/test_route_scope.py", + "Filename": "test_security_api_key_header_optional.py", + "Path": "python/fastapi/tests/test_security_api_key_header_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2371.14, - "Y": -67.58, - "Z": -1313.2 + "X": 4172.44, + "Y": 109.84, + "Z": 981.35 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203723,24 +202152,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 51, - "Coding LOC": 33, + "Total LOC": 74, + "Coding LOC": 57, "Documentation LOC": 0, - "Structural Magnitude": 25.26, - "Control Flow Ratio": "11.1%", + "Structural Magnitude": 19.14, + "Control Flow Ratio": "6.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.711 + "Raw Cognitive Density": 0.07 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "23.07%", - "Error & Exception Exposure": "17.91%", + "Cognitive Load Exposure": "3.09%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.12%", - "Concurrency Exposure": "97.53%", + "API Exposure": "9.63%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -203751,109 +202180,89 @@ }, "5. Function Analysis": [ { - "Function Name": "test_websocket_invalid_path_doesnt_match", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 47, - "End Line": 50 + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 20 }, { - "Function Name": "test_websocket", - "Structural Impact": 2.2, + "Function Name": "read_current_user", + "Structural Impact": 3.0, "Lines of Code (LOC)": 4, "Control Flow Branches": 1, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "25.0%", - "Start Line": 41, - "End Line": 44 - }, - { - "Function Name": "get_user", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 12 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "websocket_item", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 19 + "Start Line": 45, + "End Line": 73 }, { - "Function Name": "test_get", + "Function Name": "test_security_api_key", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 - }, - { - "Function Name": "test_invalid_method_doesnt_match", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 33 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "test_invalid_path_doesnt_match", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 39, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 24, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 27, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 8, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -203871,7 +202280,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 18, + "Structural Space Indentations": 42, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -203888,22 +202297,22 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 7, "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 7, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 1, + "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -203920,34 +202329,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.routing", + "fastapi.security", "fastapi.testclient", - "pytest" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_router_circular_import.py": { + "python/fastapi/tests/test_security_api_key_query.py": { "1. Artifact Identity": { - "Filename": "test_router_circular_import.py", - "Path": "python/fastapi/tests/test_router_circular_import.py", + "Filename": "test_security_api_key_query.py", + "Path": "python/fastapi/tests/test_security_api_key_query.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3173.02, - "Y": 34.71, - "Z": -2197.96 + "X": 2354.3, + "Y": -126.75, + "Z": -1848.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -203956,27 +202367,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 13, - "Coding LOC": 9, + "Total LOC": 71, + "Coding LOC": 54, "Documentation LOC": 0, - "Structural Magnitude": 4.58, - "Control Flow Ratio": "33.3%", + "Structural Magnitude": 16.08, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.444 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "5.25%", + "API Exposure": "9.72%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "60.0%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -203984,49 +202395,89 @@ }, "5. Function Analysis": [ { - "Function Name": "test_router_circular_import", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 5, - "End Line": 12 + "Control Flow Ratio": "0.0%", + "Start Line": 42, + "End Line": 70 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 18 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 22, + "End Line": 23 + }, + { + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 29, + "End Line": 32 + }, + { + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 35, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 4, - "Function Parameters": 1, - "Function/Method Declarations": 1, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 1, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -204044,7 +202495,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 6, + "Structural Space Indentations": 39, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -204060,16 +202511,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 2, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 2, - "Design Pascal Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -204093,20 +202544,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "pytest" + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_router_events.py": { + "python/fastapi/tests/test_security_api_key_query_description.py": { "1. Artifact Identity": { - "Filename": "test_router_events.py", - "Path": "python/fastapi/tests/test_router_events.py", + "Filename": "test_security_api_key_query_description.py", + "Path": "python/fastapi/tests/test_security_api_key_query_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -204117,9 +202571,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3402.36, - "Y": 7.28, - "Z": 226.23 + "X": 1179.69, + "Y": -246.01, + "Z": 934.61 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -204128,24 +202582,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 379, - "Coding LOC": 293, - "Documentation LOC": 4, - "Structural Magnitude": 157.56, - "Control Flow Ratio": "5.6%", + "Total LOC": 76, + "Coding LOC": 59, + "Documentation LOC": 0, + "Structural Magnitude": 16.38, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.241 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.44%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "13.37%", - "Concurrency Exposure": "80.7%", + "API Exposure": "9.57%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -204156,479 +202610,304 @@ }, "5. Function Analysis": [ { - "Function Name": "test_router_events", - "Structural Impact": 5.8, - "Lines of Code (LOC)": 60, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "3.2%", - "Start Line": 27, - "End Line": 86 - }, - { - "Function Name": "test_router_nested_lifespan_state", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 58, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "3.2%", - "Start Line": 114, - "End Line": 171 - }, - { - "Function Name": "test_startup_shutdown_handlers_as_parameters", - "Structural Impact": 5.7, - "Lines of Code (LOC)": 58, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "3.2%", - "Start Line": 321, - "End Line": 378 - }, - { - "Function Name": "test_router_sync_generator_lifespan", - "Structural Impact": 4.1, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "6.2%", - "Start Line": 268, - "End Line": 292 - }, - { - "Function Name": "test_app_lifespan_state", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "7.1%", - "Start Line": 89, - "End Line": 111 - }, - { - "Function Name": "test_router_async_generator_lifespan", - "Structural Impact": 4.0, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "7.1%", - "Start Line": 295, - "End Line": 318 - }, - { - "Function Name": "test_router_async_shutdown_handler", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 18, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "10.0%", - "Start Line": 248, - "End Line": 265 - }, - { - "Function Name": "test_router_nested_lifespan_state_overriding_by_parent", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 174, - "End Line": 202 - }, - { - "Function Name": "test_merged_mixed_state_lifespans", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 21, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "14.3%", - "Start Line": 222, - "End Line": 242 - }, - { - "Function Name": "test_merged_no_return_lifespans_return_none", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 205, - "End Line": 219 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 176, - "End Line": 182 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 185, - "End Line": 191 - }, - { - "Function Name": "main", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 142, - "End Line": 146 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 94 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 116, - "End Line": 119 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 122, - "End Line": 125 - }, - { - "Function Name": "subrouter_lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 128, - "End Line": 131 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 34, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 272, - "End Line": 275 + "Start Line": 42, + "End Line": 75 }, { - "Function Name": "lifespan", + "Function Name": "get_current_user", "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 298, - "End Line": 301 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 207, - "End Line": 208 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 211, - "End Line": 212 - }, - { - "Function Name": "lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 224, - "End Line": 225 - }, - { - "Function Name": "router_lifespan", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 228, - "End Line": 229 + "Start Line": 16, + "End Line": 18 }, { - "Function Name": "sub_router_lifespan", + "Function Name": "read_current_user", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 232, - "End Line": 233 - }, - { - "Function Name": "state", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, + "Start Line": 29, "End Line": 32 }, { - "Function Name": "app_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 35, - "End Line": 36 - }, - { - "Function Name": "app_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 40 - }, - { - "Function Name": "router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 - }, - { - "Function Name": "router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 - }, - { - "Function Name": "sub_router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 56 - }, - { - "Function Name": "sub_router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 60 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 100 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 253, - "End Line": 254 - }, - { - "Function Name": "app_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 257, - "End Line": 258 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 280, - "End Line": 281 - }, - { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 306, - "End Line": 307 - }, - { - "Function Name": "app_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 324, - "End Line": 325 - }, - { - "Function Name": "app_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 327, - "End Line": 328 - }, + "End Line": 39 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 0, + "Sequential Logic Declarations": 26, + "Function Parameters": 5, + "Function/Method Declarations": 5, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 0, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 7, + "State Mutations / Variable Reassignments": 0, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 0, + "Global State Dependencies": 0, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 0, + "Dependency Injection Constructs": 2, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 0, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 44, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, + "Design Camel Case": 0, + "Design Snake Case": 8, + "Design Pascal Case": 1, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 4, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 0, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 5, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic" + ] + }, + "python/fastapi/tests/test_security_api_key_query_optional.py": { + "1. Artifact Identity": { + "Filename": "test_security_api_key_query_optional.py", + "Path": "python/fastapi/tests/test_security_api_key_query_optional.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 2, + "Identity Proof": "Single Indicator (Shebang)" + }, + "2. Topological Coordinates": { + "X": 1132.28, + "Y": -238.25, + "Z": 139.75 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 74, + "Coding LOC": 57, + "Documentation LOC": 0, + "Structural Magnitude": 19.14, + "Control Flow Ratio": "6.9%", + "Popularity Rank": 0, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.07 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "3.09%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.63%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "main", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 333, - "End Line": 334 + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 20 }, { - "Function Name": "router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 336, - "End Line": 337 + "Function Name": "read_current_user", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 29, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 339, - "End Line": 340 + "Start Line": 45, + "End Line": 73 }, { - "Function Name": "sub_router_startup", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 344, - "End Line": 345 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "sub_router_shutdown", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_api_key_no_key", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 347, - "End Line": 348 + "Start Line": 39, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 10, - "Sequential Logic Declarations": 170, - "Function Parameters": 44, - "Function/Method Declarations": 44, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 27, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 96, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 52, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 8, - "Unit Test Assertions": 109, - "Asynchronous/Concurrent Execution": 13, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 28, - "Generic Type Abstractions": 57, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -204643,10 +202922,10 @@ "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 9, + "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 270, + "Structural Space Indentations": 42, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -204661,17 +202940,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 28, - "Vectorized Math & Tensor Operations": 18, - "Core Var Decl": 34, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 34, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, - "Duplicate Logic": 22, - "Orphaned Logic": 10, + "Duplicate Logic": 0, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -204695,24 +202974,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", - "contextlib", "fastapi", + "fastapi.security", "fastapi.testclient", - "pydantic", - "pytest" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_router_prefix_with_template.py": { + "python/fastapi/tests/test_security_http_base.py": { "1. Artifact Identity": { - "Filename": "test_router_prefix_with_template.py", - "Path": "python/fastapi/tests/test_router_prefix_with_template.py", + "Filename": "test_security_http_base.py", + "Path": "python/fastapi/tests/test_security_http_base.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -204722,9 +203000,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 619.45, - "Y": -312.55, - "Z": 264.5 + "X": 1069.81, + "Y": -288.47, + "Z": -949.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -204733,27 +203011,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 24, - "Coding LOC": 13, + "Total LOC": 65, + "Coding LOC": 50, "Documentation LOC": 0, - "Structural Magnitude": 6.26, + "Structural Magnitude": 14.5, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.154 + "Raw Cognitive Density": 0.04 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", + "Cognitive Load Exposure": "2.76%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.61%", + "API Exposure": "9.29%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "86.67%", + "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -204761,42 +203039,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_user", - "Structural Impact": 1.8, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 64 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_get", + "Function Name": "test_security_http_base", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 23 + "Start Line": 19, + "End Line": 22 + }, + { + "Function Name": "test_security_http_base_with_whitespaces", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 28 + }, + { + "Function Name": "test_security_http_base_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 35 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 9, - "Function Parameters": 2, - "Function/Method Declarations": 2, + "Sequential Logic Declarations": 24, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -204806,7 +203114,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -204831,7 +203139,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, + "Structural Space Indentations": 37, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -204848,15 +203156,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -204880,20 +203188,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.security.http", + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_router_redirect_slashes.py": { + "python/fastapi/tests/test_security_http_base_description.py": { "1. Artifact Identity": { - "Filename": "test_router_redirect_slashes.py", - "Path": "python/fastapi/tests/test_router_redirect_slashes.py", + "Filename": "test_security_http_base_description.py", + "Path": "python/fastapi/tests/test_security_http_base_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -204903,9 +203213,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3395.23, - "Y": -31.8, - "Z": -2203.64 + "X": 1124.99, + "Y": -276.12, + "Z": 1182.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -204914,23 +203224,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 41, - "Coding LOC": 26, + "Total LOC": 65, + "Coding LOC": 52, "Documentation LOC": 0, - "Structural Magnitude": 12.52, + "Structural Magnitude": 12.64, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.077 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.17%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.41%", + "API Exposure": "8.55%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -204942,72 +203252,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_redirect_slashes_enabled", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 5, - "End Line": 21 + "Start Line": 32, + "End Line": 64 }, { - "Function Name": "test_redirect_slashes_disabled", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 40 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "hello_page", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_base", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "hello_page", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_base_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 + "Start Line": 25, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 14, + "Sequential Logic Declarations": 21, "Function Parameters": 4, "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -205032,7 +203342,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 22, + "Structural Space Indentations": 40, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205048,16 +203358,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 2, - "Orphaned Logic": 2, + "Design Long Vars": 1, + "Duplicate Logic": 0, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -205081,33 +203391,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.security.http", + "fastapi.testclient", + "inline_snapshot" ] }, - "python/fastapi/tests/test_schema_compat_pydantic_v2.py": { + "python/fastapi/tests/test_security_http_base_optional.py": { "1. Artifact Identity": { - "Filename": "test_schema_compat_pydantic_v2.py", - "Path": "python/fastapi/tests/test_schema_compat_pydantic_v2.py", + "Filename": "test_security_http_base_optional.py", + "Path": "python/fastapi/tests/test_security_http_base_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "str, Enum, BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2048.25, - "Y": -176.92, - "Z": -1440.17 + "X": 801.09, + "Y": -323.28, + "Z": 21.98 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205116,24 +203427,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 122, - "Coding LOC": 106, - "Documentation LOC": 2, - "Structural Magnitude": 21.22, - "Control Flow Ratio": "0.0%", + "Total LOC": 62, + "Coding LOC": 49, + "Documentation LOC": 0, + "Structural Magnitude": 13.88, + "Control Flow Ratio": "4.5%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.084 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.26%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.13%", - "Concurrency Exposure": "22.63%", + "API Exposure": "8.65%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -205144,72 +203455,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.4, - "Lines of Code (LOC)": 80, - "Control Flow Branches": 0, + "Function Name": "read_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 121 + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 17 }, { - "Function Name": "get_client", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 21, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 32 + "Start Line": 35, + "End Line": 61 }, { - "Function Name": "test_get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_security_http_base", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 38 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "get_user", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_base_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 32, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 21, "Function Parameters": 4, "Function/Method Declarations": 4, - "Class/Entity Declarations": 3, - "Defensive Programming Constructs": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 8, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -205234,7 +203545,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 93, + "Structural Space Indentations": 36, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205250,11 +203561,11 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -205283,39 +203594,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 8, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dirty_equals", - "enum", "fastapi", + "fastapi.security.http", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "tests.utils" + "inline_snapshot" ] }, - "python/fastapi/tests/test_schema_extra_examples.py": { + "python/fastapi/tests/test_security_http_basic_optional.py": { "1. Artifact Identity": { - "Filename": "test_schema_extra_examples.py", - "Path": "python/fastapi/tests/test_schema_extra_examples.py", + "Filename": "test_security_http_basic_optional.py", + "Path": "python/fastapi/tests/test_security_http_basic_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3034.94, - "Y": -40.77, - "Z": 835.32 + "X": 2821.36, + "Y": -15.81, + "Z": 1573.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205324,26 +203630,26 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 858, - "Coding LOC": 784, - "Documentation LOC": 34, - "Structural Magnitude": 123.98, - "Control Flow Ratio": "9.1%", + "Total LOC": 80, + "Coding LOC": 62, + "Documentation LOC": 0, + "Structural Magnitude": 18.84, + "Control Flow Ratio": "3.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.023 + "Raw Cognitive Density": 0.069 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.53%", + "Cognitive Load Exposure": "3.07%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.69%", + "API Exposure": "9.46%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "8.54%", + "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", @@ -205352,224 +203658,94 @@ }, "5. Function Analysis": [ { - "Function Name": "create_app", - "Structural Impact": 21.2, - "Lines of Code (LOC)": 205, - "Control Flow Branches": 10, - "Input Parameters": 0, - "Control Flow Ratio": "22.2%", - "Start Line": 9, - "End Line": 213 + "Function Name": "read_current_user", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 14, + "End Line": 17 }, { "Function Name": "test_openapi_schema", - "Structural Impact": 20.0, - "Lines of Code (LOC)": 605, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 253, - "End Line": 857 - }, - { - "Function Name": "test_call_api", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 35, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 216, - "End Line": 250 - }, - { - "Function Name": "examples", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 38 - }, - { - "Function Name": "example_examples", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 52 - }, - { - "Function Name": "header_examples", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 158, - "End Line": 167 - }, - { - "Function Name": "path_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 106, - "End Line": 112 - }, - { - "Function Name": "query_example", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 117, - "End Line": 123 - }, - { - "Function Name": "query_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 126, - "End Line": 132 - }, - { - "Function Name": "query_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 137, - "End Line": 144 - }, - { - "Function Name": "header_example", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 155 - }, - { - "Function Name": "header_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 172, - "End Line": 179 + "Start Line": 53, + "End Line": 79 }, { - "Function Name": "cookie_example", - "Structural Impact": 1.8, + "Function Name": "test_security_http_basic_invalid_credentials", + "Structural Impact": 1.4, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 184, - "End Line": 190 + "Start Line": 35, + "End Line": 41 }, { - "Function Name": "cookie_examples", - "Structural Impact": 1.8, + "Function Name": "test_security_http_basic_non_basic_credentials", + "Structural Impact": 1.4, "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 193, - "End Line": 199 - }, - { - "Function Name": "cookie_example_examples", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 204, - "End Line": 211 - }, - { - "Function Name": "path_example", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 93 - }, - { - "Function Name": "path_examples", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 96, - "End Line": 101 + "Start Line": 44, + "End Line": 50 }, { - "Function Name": "schema_extra", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "example", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 10, - "Sequential Logic Declarations": 100, - "Function Parameters": 19, - "Function/Method Declarations": 19, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 20, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 36, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 6, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 31, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 17, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 16, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, - "Planned Work (TODOs)": 2, + "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, @@ -205592,7 +203768,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 775, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205608,16 +203784,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 67, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 55, - "Design Pascal Case": 12, + "Design Snake Case": 11, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -205641,37 +203817,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "base64", "fastapi", - "fastapi.exceptions", + "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest" + "inline_snapshot" ] }, - "python/fastapi/tests/test_schema_ref_pydantic_v2.py": { + "python/fastapi/tests/test_security_http_basic_realm.py": { "1. Artifact Identity": { - "Filename": "test_schema_ref_pydantic_v2.py", - "Path": "python/fastapi/tests/test_schema_ref_pydantic_v2.py", + "Filename": "test_security_http_basic_realm.py", + "Path": "python/fastapi/tests/test_security_http_basic_realm.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4109.14, - "Y": 92.33, - "Z": -1657.25 + "X": 1398.74, + "Y": -245.26, + "Z": -1122.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205680,10 +203854,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 69, - "Coding LOC": 58, + "Total LOC": 79, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 15.76, + "Structural Magnitude": 17.32, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -205693,11 +203867,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "33.95%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.16%", - "Concurrency Exposure": "29.4%", + "API Exposure": "9.49%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -205709,71 +203883,91 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 3.3, - "Lines of Code (LOC)": 38, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 52, + "End Line": 78 + }, + { + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 68 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "get_client", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_security_http_basic_invalid_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 23 + "Start Line": 34, + "End Line": 40 }, { - "Function Name": "test_get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_security_http_basic_non_basic_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 28 + "Start Line": 43, + "End Line": 49 }, { - "Function Name": "read_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 21, + "End Line": 24 + }, + { + "Function Name": "test_security_http_basic_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 27, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 13, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -205798,7 +203992,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 48, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -205814,16 +204008,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 11, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -205847,37 +204041,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "base64", "fastapi", + "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "typing" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_cookie.py": { + "python/fastapi/tests/test_security_http_basic_realm_description.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_cookie.py", - "Path": "python/fastapi/tests/test_security_api_key_cookie.py", + "Filename": "test_security_http_basic_realm_description.py", + "Path": "python/fastapi/tests/test_security_http_basic_realm_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1109.08, - "Y": -263.54, - "Z": -779.7 + "X": 2221.67, + "Y": -161.29, + "Z": -1847.6 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -205886,10 +204078,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 56, + "Total LOC": 85, + "Coding LOC": 67, "Documentation LOC": 0, - "Structural Magnitude": 16.22, + "Structural Magnitude": 17.74, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -205902,7 +204094,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.72%", + "API Exposure": "9.34%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -205915,63 +204107,73 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 30, + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 70 + "Start Line": 52, + "End Line": 84 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_basic_invalid_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 34, + "End Line": 40 }, { - "Function Name": "test_security_api_key_no_key", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_security_http_basic_non_basic_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 38 + "Start Line": 43, + "End Line": 49 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_basic", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 21, + "End Line": 24 + }, + { + "Function Name": "test_security_http_basic_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 30 + "Start Line": 27, + "End Line": 31 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Sequential Logic Declarations": 31, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 13, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -205979,7 +204181,7 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 18, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -205996,7 +204198,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206014,7 +204216,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 42, + "Structural Space Indentations": 52, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206031,15 +204233,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 12, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 11, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206069,30 +204271,29 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "base64", "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_cookie_description.py": { + "python/fastapi/tests/test_security_http_bearer.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_cookie_description.py", - "Path": "python/fastapi/tests/test_security_api_key_cookie_description.py", + "Filename": "test_security_http_bearer.py", + "Path": "python/fastapi/tests/test_security_http_bearer.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2613.73, - "Y": -28.07, - "Z": 1940.85 + "X": 3411.6, + "Y": 7.35, + "Z": 1930.46 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206101,10 +204302,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 61, + "Total LOC": 66, + "Coding LOC": 51, "Documentation LOC": 0, - "Structural Magnitude": 16.62, + "Structural Magnitude": 14.52, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -206117,7 +204318,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "9.26%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206130,71 +204331,71 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.8, - "Lines of Code (LOC)": 35, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 75 + "Start Line": 39, + "End Line": 65 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_bearer", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key_no_key", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_security_http_bearer_no_credentials", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 38 + "Start Line": 25, + "End Line": 29 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 30 + "Start Line": 32, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206204,14 +204405,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206229,7 +204430,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 38, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206246,15 +204447,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 10, + "Design Snake Case": 7, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206278,7 +204479,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206287,27 +204488,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_cookie_optional.py": { + "python/fastapi/tests/test_security_http_bearer_description.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_cookie_optional.py", - "Path": "python/fastapi/tests/test_security_api_key_cookie_optional.py", + "Filename": "test_security_http_bearer_description.py", + "Path": "python/fastapi/tests/test_security_http_bearer_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1356.23, - "Y": -265.29, - "Z": 719.51 + "X": 3060.27, + "Y": -30.31, + "Z": -1963.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206316,23 +204515,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 75, - "Coding LOC": 60, + "Total LOC": 72, + "Coding LOC": 57, "Documentation LOC": 0, - "Structural Magnitude": 20.7, - "Control Flow Ratio": "10.0%", + "Structural Magnitude": 14.94, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.083 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.25%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.6%", + "API Exposure": "9.07%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206344,72 +204543,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 24, - "End Line": 28 + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 71 }, { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 30, + "Function Name": "test_security_http_bearer", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 74 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_bearer_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 35 + "Start Line": 25, + "End Line": 29 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 42 + "Start Line": 32, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 27, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206419,14 +204618,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206444,7 +204643,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 44, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206461,15 +204660,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206493,7 +204692,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206502,27 +204701,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_header.py": { + "python/fastapi/tests/test_security_http_bearer_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_header.py", - "Path": "python/fastapi/tests/test_security_api_key_header.py", + "Filename": "test_security_http_bearer_optional.py", + "Path": "python/fastapi/tests/test_security_http_bearer_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1912.98, - "Y": -170.49, - "Z": 1613.88 + "X": 4648.4, + "Y": 168.65, + "Z": -468.02 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206531,23 +204728,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 54, + "Total LOC": 68, + "Coding LOC": 53, "Documentation LOC": 0, - "Structural Magnitude": 16.08, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 16.16, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.079 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.2%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.72%", + "API Exposure": "9.19%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206559,37 +204756,37 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 70 + "Function Name": "read_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 17 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 41, + "End Line": 67 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_bearer", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_bearer_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -206599,32 +204796,32 @@ "End Line": 32 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 35, - "End Line": 39 + "End Line": 38 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206634,14 +204831,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206676,15 +204873,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 7, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206708,7 +204905,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206717,27 +204914,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_header_description.py": { + "python/fastapi/tests/test_security_http_digest.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_header_description.py", - "Path": "python/fastapi/tests/test_security_api_key_header_description.py", + "Filename": "test_security_http_digest.py", + "Path": "python/fastapi/tests/test_security_http_digest.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4660.04, - "Y": 165.39, - "Z": 501.49 + "X": 2255.96, + "Y": -132.11, + "Z": 1996.46 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206746,10 +204941,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 59, + "Total LOC": 68, + "Coding LOC": 53, "Documentation LOC": 0, - "Structural Magnitude": 16.38, + "Structural Magnitude": 14.76, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -206762,7 +204957,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "9.19%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206775,71 +204970,71 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 34, + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 75 + "Start Line": 41, + "End Line": 67 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_digest_incorrect_scheme_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 32, + "End Line": 38 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_digest", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_digest_no_credentials", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 25, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -206849,14 +205044,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -206874,7 +205069,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 40, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -206897,9 +205092,9 @@ "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -206923,7 +205118,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -206932,27 +205127,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_header_optional.py": { + "python/fastapi/tests/test_security_http_digest_description.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_header_optional.py", - "Path": "python/fastapi/tests/test_security_api_key_header_optional.py", + "Filename": "test_security_http_digest_description.py", + "Path": "python/fastapi/tests/test_security_http_digest_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4172.44, - "Y": 109.84, - "Z": 981.35 + "X": 1453.83, + "Y": -185.8, + "Z": -1213.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -206962,22 +205155,22 @@ "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, "Total LOC": 74, - "Coding LOC": 57, + "Coding LOC": 59, "Documentation LOC": 0, - "Structural Magnitude": 19.14, - "Control Flow Ratio": "6.9%", + "Structural Magnitude": 15.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.07 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.09%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.63%", + "API Exposure": "9.01%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -206989,72 +205182,72 @@ }, "5. Function Analysis": [ { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 73 }, { "Function Name": "read_current_user", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 27 + "Control Flow Ratio": "0.0%", + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, + "Function Name": "test_security_http_digest_incorrect_scheme_credentials", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 73 + "Start Line": 32, + "End Line": 38 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_digest", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 19, + "End Line": 22 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_digest_no_credentials", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 25, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 27, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 25, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -207064,14 +205257,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207089,7 +205282,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 42, + "Structural Space Indentations": 46, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207108,13 +205301,13 @@ "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207138,7 +205331,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207147,27 +205340,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_query.py": { + "python/fastapi/tests/test_security_http_digest_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_query.py", - "Path": "python/fastapi/tests/test_security_api_key_query.py", + "Filename": "test_security_http_digest_optional.py", + "Path": "python/fastapi/tests/test_security_http_digest_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2354.3, - "Y": -126.75, - "Z": -1848.26 + "X": 3467.84, + "Y": 17.22, + "Z": -1806.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207176,23 +205367,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 54, + "Total LOC": 70, + "Coding LOC": 55, "Documentation LOC": 0, - "Structural Magnitude": 16.08, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 16.3, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.076 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.16%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.72%", + "API Exposure": "9.13%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -207204,72 +205395,72 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 70 + "Function Name": "read_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 12, + "End Line": 17 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 43, + "End Line": 69 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_security_http_digest_incorrect_scheme_credentials", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 35, + "End Line": 40 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_http_digest", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_http_digest_no_credentials", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, "Function Parameters": 5, "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -207279,14 +205470,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207304,7 +205495,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 39, + "Structural Space Indentations": 41, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207329,7 +205520,7 @@ "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207353,7 +205544,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207362,14 +205553,13 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_api_key_query_description.py": { + "python/fastapi/tests/test_security_oauth2.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_query_description.py", - "Path": "python/fastapi/tests/test_security_api_key_query_description.py", + "Filename": "test_security_oauth2.py", + "Path": "python/fastapi/tests/test_security_oauth2.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -207380,9 +205570,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1179.69, - "Y": -246.01, - "Z": 934.61 + "X": 4008.77, + "Y": 84.04, + "Z": -302.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207391,23 +205581,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 59, - "Documentation LOC": 0, - "Structural Magnitude": 16.38, - "Control Flow Ratio": "0.0%", + "Total LOC": 281, + "Coding LOC": 249, + "Documentation LOC": 3, + "Structural Magnitude": 43.98, + "Control Flow Ratio": "4.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.029 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.65%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.57%", + "API Exposure": "9.6%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -207419,14 +205609,44 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 34, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 132, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 149, + "End Line": 280 + }, + { + "Function Name": "test_strict_login_incorrect_grant_type", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 114, + "End Line": 130 + }, + { + "Function Name": "test_strict_login_no_data", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 64, + "End Line": 88 + }, + { + "Function Name": "test_strict_login_correct_grant_type", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 75 + "Start Line": 133, + "End Line": 146 }, { "Function Name": "get_current_user", @@ -207435,8 +205655,28 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Start Line": 25, + "End Line": 27 + }, + { + "Function Name": "test_strict_login_no_grant_type", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 91, + "End Line": 103 + }, + { + "Function Name": "login", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 32, + "End Line": 33 }, { "Function Name": "read_current_user", @@ -207445,63 +205685,73 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 38, + "End Line": 39 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_security_oauth2", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 45, + "End Line": 48 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_security_oauth2_password_other_header", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 54 + }, + { + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 39 + "Start Line": 57, + "End Line": 61 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 69, + "Function Parameters": 11, + "Function/Method Declarations": 11, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Defensive Programming Constructs": 23, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Unit Test Assertions": 30, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207511,7 +205761,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 3, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -207519,7 +205769,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 223, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207535,16 +205785,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 20, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 20, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 3, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207568,7 +205818,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207578,26 +205828,26 @@ "fastapi.security", "fastapi.testclient", "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_api_key_query_optional.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py": { "1. Artifact Identity": { - "Filename": "test_security_api_key_query_optional.py", - "Path": "python/fastapi/tests/test_security_api_key_query_optional.py", + "Filename": "test_security_oauth2_authorization_code_bearer.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1132.28, - "Y": -238.25, - "Z": 139.75 + "X": 3221.73, + "Y": 16.75, + "Z": -1790.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207606,24 +205856,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 74, - "Coding LOC": 57, + "Total LOC": 83, + "Coding LOC": 66, "Documentation LOC": 0, - "Structural Magnitude": 19.14, - "Control Flow Ratio": "6.9%", + "Structural Magnitude": 18.52, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.07 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.09%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.63%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.39%", + "Concurrency Exposure": "27.67%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -207634,37 +205884,47 @@ }, "5. Function Analysis": [ { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 38, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 82 + }, + { + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "read_current_user", - "Structural Impact": 3.0, + "Function Name": "test_no_token", + "Structural Impact": 1.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 27 + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 29, + "Function Name": "test_incorrect_token", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 73 + "Start Line": 27, + "End Line": 30 }, { - "Function Name": "test_security_api_key", + "Function Name": "test_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -207674,7 +205934,7 @@ "End Line": 36 }, { - "Function Name": "test_security_api_key_no_key", + "Function Name": "test_token_with_whitespaces", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -207686,12 +205946,12 @@ ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 27, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 26, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -207699,8 +205959,8 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -207709,14 +205969,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -207734,7 +205994,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 42, + "Structural Space Indentations": 51, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207751,15 +206011,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, - "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, + "Core Var Decl": 10, + "Design Camel Case": 1, + "Design Snake Case": 8, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -207783,7 +206043,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -207792,14 +206052,13 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_base.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_base.py", - "Path": "python/fastapi/tests/test_security_http_base.py", + "Filename": "test_security_oauth2_authorization_code_bearer_description.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -207809,9 +206068,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1069.81, - "Y": -288.47, - "Z": -949.05 + "X": 1804.4, + "Y": -175.77, + "Z": -1573.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -207820,24 +206079,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 65, - "Coding LOC": 50, + "Total LOC": 81, + "Coding LOC": 66, "Documentation LOC": 0, - "Structural Magnitude": 14.5, + "Structural Magnitude": 16.42, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.04 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.76%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.29%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.83%", + "Concurrency Exposure": "27.67%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -207849,63 +206108,63 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Structural Impact": 3.0, + "Lines of Code (LOC)": 39, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 64 + "Start Line": 42, + "End Line": 80 }, { - "Function Name": "read_current_user", + "Function Name": "read_items", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_security_http_base", + "Function Name": "test_no_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "test_security_http_base_with_whitespaces", + "Function Name": "test_incorrect_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 30, + "End Line": 33 }, { - "Function Name": "test_security_http_base_no_credentials", + "Function Name": "test_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 35 + "Start Line": 36, + "End Line": 39 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 24, + "Sequential Logic Declarations": 23, "Function Parameters": 5, "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 9, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -207913,8 +206172,8 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -207948,7 +206207,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 37, + "Structural Space Indentations": 52, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -207965,13 +206224,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, - "Design Camel Case": 0, - "Design Snake Case": 7, + "Core Var Decl": 12, + "Design Camel Case": 2, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -208004,15 +206263,15 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.http", + "fastapi.security", "fastapi.testclient", "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_base_description.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py": { "1. Artifact Identity": { - "Filename": "test_security_http_base_description.py", - "Path": "python/fastapi/tests/test_security_http_base_description.py", + "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -208022,9 +206281,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1124.99, - "Y": -276.12, - "Z": 1182.36 + "X": 2092.61, + "Y": -166.64, + "Z": 907.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208033,24 +206292,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 65, - "Coding LOC": 52, - "Documentation LOC": 0, - "Structural Magnitude": 12.64, - "Control Flow Ratio": "0.0%", + "Total LOC": 198, + "Coding LOC": 162, + "Documentation LOC": 1, + "Structural Magnitude": 48.84, + "Control Flow Ratio": "12.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.224 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "5.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.55%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.92%", + "Concurrency Exposure": "67.41%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -208062,78 +206321,158 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, + "Structural Impact": 6.5, + "Lines of Code (LOC)": 99, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 99, + "End Line": 197 + }, + { + "Function Name": "test_read_with_oauth2_scheme", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 71, + "End Line": 76 + }, + { + "Function Name": "test_read_with_get_token", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 79, + "End Line": 84 + }, + { + "Function Name": "create_item", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 64 + "Start Line": 54, + "End Line": 57 }, { - "Function Name": "read_current_user", + "Function Name": "get_token", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "test_security_http_base", + "Function Name": "read_items", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 50 + }, + { + "Function Name": "test_root", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 65, + "End Line": 68 }, { - "Function Name": "test_security_http_base_no_credentials", + "Function Name": "test_read_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 87, + "End Line": 90 + }, + { + "Function Name": "test_create_token", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 96 + }, + { + "Function Name": "root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 26, + "End Line": 27 + }, + { + "Function Name": "read_with_oauth2_scheme", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 35 + }, + { + "Function Name": "read_with_get_token", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 41, + "Function Parameters": 12, + "Function/Method Declarations": 12, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, + "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 4, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208151,7 +206490,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 40, + "Structural Space Indentations": 131, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208167,16 +206506,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 20, + "Design Camel Case": 2, + "Design Snake Case": 16, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208200,22 +206539,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.http", + "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "typing" ] }, - "python/fastapi/tests/test_security_http_base_optional.py": { + "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py": { "1. Artifact Identity": { - "Filename": "test_security_http_base_optional.py", - "Path": "python/fastapi/tests/test_security_http_base_optional.py", + "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", + "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -208225,9 +206565,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 801.09, - "Y": -323.28, - "Z": 21.98 + "X": 4840.95, + "Y": 232.11, + "Z": 126.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208236,24 +206576,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 62, - "Coding LOC": 49, - "Documentation LOC": 0, - "Structural Magnitude": 13.88, - "Control Flow Ratio": "4.5%", + "Total LOC": 81, + "Coding LOC": 64, + "Documentation LOC": 1, + "Structural Magnitude": 15.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.084 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.26%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.65%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.13%", + "Concurrency Exposure": "48.94%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -208264,54 +206604,54 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", + "Function Name": "test_openapi_schema", "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 17 + "Lines of Code (LOC)": 43, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 80 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "get_token", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 61 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_security_http_base", + "Function Name": "test_read_admin", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 32, + "End Line": 35 }, { - "Function Name": "test_security_http_base_no_credentials", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "read_admin", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 25, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Sequential Logic Declarations": 21, "Function Parameters": 4, "Function/Method Declarations": 4, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 4, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -208319,24 +206659,24 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Generic Type Abstractions": 1, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208354,7 +206694,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 36, + "Structural Space Indentations": 50, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208371,15 +206711,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 1, + "Core Var Decl": 9, + "Design Camel Case": 2, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208403,34 +206743,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.http", + "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "typing" ] }, - "python/fastapi/tests/test_security_http_basic_optional.py": { + "python/fastapi/tests/test_security_oauth2_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_http_basic_optional.py", - "Path": "python/fastapi/tests/test_security_http_basic_optional.py", + "Filename": "test_security_oauth2_optional.py", + "Path": "python/fastapi/tests/test_security_oauth2_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2821.36, - "Y": -15.81, - "Z": 1573.11 + "X": 3941.76, + "Y": 144.57, + "Z": 205.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208439,23 +206781,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 62, + "Total LOC": 282, + "Coding LOC": 253, "Documentation LOC": 0, - "Structural Magnitude": 18.84, - "Control Flow Ratio": "3.1%", + "Structural Magnitude": 47.06, + "Control Flow Ratio": "6.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.069 + "Raw Cognitive Density": 0.038 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.07%", + "Cognitive Load Exposure": "2.74%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.46%", + "API Exposure": "9.59%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -208467,99 +206809,149 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", + "Function Name": "test_openapi_schema", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 132, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 150, + "End Line": 281 + }, + { + "Function Name": "test_strict_login_incorrect_grant_type", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 115, + "End Line": 131 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 25, + "End Line": 29 + }, + { + "Function Name": "read_users_me", "Structural Impact": 3.0, "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 1, "Control Flow Ratio": "25.0%", - "Start Line": 14, - "End Line": 17 + "Start Line": 38, + "End Line": 41 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "test_strict_login_no_data", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 79 + "Start Line": 65, + "End Line": 89 }, { - "Function Name": "test_security_http_basic_invalid_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_login_correct_data", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 41 + "Start Line": 134, + "End Line": 147 }, { - "Function Name": "test_security_http_basic_non_basic_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_login_no_grant_type", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, + "Start Line": 92, + "End Line": 104 + }, + { + "Function Name": "login", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 34 + }, + { + "Function Name": "test_security_oauth2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 47, "End Line": 50 }, { - "Function Name": "test_security_http_basic", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 53, + "End Line": 56 }, { - "Function Name": "test_security_http_basic_no_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 59, + "End Line": 62 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 12, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 70, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 22, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 17, + "Unit Test Assertions": 29, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208569,7 +206961,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 3, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -208577,7 +206969,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 227, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208593,16 +206985,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 24, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 1, + "Design Snake Case": 21, + "Design Pascal Case": 3, "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Short Vars": 3, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208626,35 +207018,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "base64", "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_http_basic_realm.py": { + "python/fastapi/tests/test_security_oauth2_optional_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_basic_realm.py", - "Path": "python/fastapi/tests/test_security_http_basic_realm.py", + "Filename": "test_security_oauth2_optional_description.py", + "Path": "python/fastapi/tests/test_security_oauth2_optional_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1398.74, - "Y": -245.26, - "Z": -1122.84 + "X": 2270.84, + "Y": -91.02, + "Z": -1152.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208663,23 +207057,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 79, - "Coding LOC": 61, + "Total LOC": 284, + "Coding LOC": 255, "Documentation LOC": 0, - "Structural Magnitude": 17.32, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 47.2, + "Control Flow Ratio": "6.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.037 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.73%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.49%", + "API Exposure": "9.58%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -208692,98 +207086,148 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Structural Impact": 7.7, + "Lines of Code (LOC)": 133, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 78 + "Start Line": 151, + "End Line": 283 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "test_strict_login_incorrect_grant_type", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 116, + "End Line": 132 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 26, + "End Line": 30 + }, + { + "Function Name": "read_users_me", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 39, + "End Line": 42 + }, + { + "Function Name": "test_strict_login_None", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 0, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 66, + "End Line": 90 }, { - "Function Name": "test_security_http_basic_invalid_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_login_correct_correct_grant_type", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 148 + }, + { + "Function Name": "test_strict_login_no_grant_type", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 105 + }, + { + "Function Name": "login", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", "Start Line": 34, - "End Line": 40 + "End Line": 35 }, { - "Function Name": "test_security_http_basic_non_basic_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_security_oauth2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 49 + "Start Line": 48, + "End Line": 51 }, { - "Function Name": "test_security_http_basic", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 54, + "End Line": 57 }, { - "Function Name": "test_security_http_basic_no_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 31 + "Start Line": 60, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 13, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 70, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 22, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 14, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, + "Unit Test Assertions": 29, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 3, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -208793,7 +207237,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 3, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -208801,7 +207245,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 229, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -208817,16 +207261,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 25, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 1, + "Design Snake Case": 22, + "Design Pascal Case": 3, "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Short Vars": 3, + "Design Long Vars": 1, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -208850,23 +207294,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "base64", "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_http_basic_realm_description.py": { + "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_http_basic_realm_description.py", - "Path": "python/fastapi/tests/test_security_http_basic_realm_description.py", + "Filename": "test_security_oauth2_password_bearer_optional.py", + "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -208876,9 +207321,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2221.67, - "Y": -161.29, - "Z": -1847.6 + "X": 4671.62, + "Y": 155.68, + "Z": -201.27 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -208887,24 +207332,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 85, - "Coding LOC": 67, + "Total LOC": 71, + "Coding LOC": 56, "Documentation LOC": 0, - "Structural Magnitude": 17.74, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 17.32, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.15 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "4.16%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.34%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.1%", + "Concurrency Exposure": "29.89%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -208915,83 +207360,73 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 52, - "End Line": 84 - }, - { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "read_items", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 14, + "Control Flow Ratio": "25.0%", + "Start Line": 12, "End Line": 15 }, { - "Function Name": "test_security_http_basic_invalid_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 32, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 40 + "Start Line": 39, + "End Line": 70 }, { - "Function Name": "test_security_http_basic_non_basic_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_no_token", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 49 + "Start Line": 21, + "End Line": 24 }, { - "Function Name": "test_security_http_basic", + "Function Name": "test_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 27, + "End Line": 30 }, { - "Function Name": "test_security_http_basic_no_credentials", + "Function Name": "test_incorrect_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 31 + "Control Flow Ratio": "0.0%", + "Start Line": 33, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 31, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, + "Function Parameters": 5, + "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 13, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -209000,7 +207435,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -209025,7 +207460,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 52, + "Structural Space Indentations": 43, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209042,15 +207477,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 11, + "Design Snake Case": 7, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -209074,23 +207509,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "base64", "fastapi", "fastapi.security", "fastapi.testclient", "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_bearer.py": { + "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_bearer.py", - "Path": "python/fastapi/tests/test_security_http_bearer.py", + "Filename": "test_security_oauth2_password_bearer_optional_description.py", + "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -209100,9 +207534,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3411.6, - "Y": 7.35, - "Z": 1930.46 + "X": 3747.49, + "Y": 77.86, + "Z": -1436.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209111,24 +207545,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 66, - "Coding LOC": 51, + "Total LOC": 76, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 14.52, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 17.52, + "Control Flow Ratio": "4.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.138 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.97%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.26%", - "Concurrency Exposure": "0.0%", + "API Exposure": "8.96%", + "Concurrency Exposure": "28.7%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -209139,64 +207573,64 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 65 + "Function Name": "read_items", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 19 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 43, + "End Line": 75 }, { - "Function Name": "test_security_http_bearer", + "Function Name": "test_no_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "test_security_http_bearer_no_credentials", + "Function Name": "test_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 31, + "End Line": 34 }, { - "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", + "Function Name": "test_incorrect_token", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 36 + "Start Line": 37, + "End Line": 40 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 24, "Function Parameters": 5, "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -209204,8 +207638,8 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 12, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -209239,7 +207673,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 38, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209256,13 +207690,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, - "Design Camel Case": 0, - "Design Snake Case": 7, + "Core Var Decl": 11, + "Design Camel Case": 1, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -209300,22 +207734,23 @@ "inline_snapshot" ] }, - "python/fastapi/tests/test_security_http_bearer_description.py": { + "python/fastapi/tests/test_security_openid_connect.py": { "1. Artifact Identity": { - "Filename": "test_security_http_bearer_description.py", - "Path": "python/fastapi/tests/test_security_http_bearer_description.py", + "Filename": "test_security_openid_connect.py", + "Path": "python/fastapi/tests/test_security_openid_connect.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3060.27, - "Y": -30.31, - "Z": -1963.96 + "X": 3737.29, + "Y": 54.03, + "Z": 1597.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209324,10 +207759,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 72, - "Coding LOC": 57, + "Total LOC": 80, + "Coding LOC": 61, "Documentation LOC": 0, - "Structural Magnitude": 14.94, + "Structural Magnitude": 18.52, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -209340,7 +207775,7 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.07%", + "API Exposure": "10.0%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209353,13 +207788,23 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, + "Structural Impact": 2.6, + "Lines of Code (LOC)": 32, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 71 + "Start Line": 48, + "End Line": 79 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 18 }, { "Function Name": "read_current_user", @@ -209368,56 +207813,56 @@ "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_security_http_bearer", + "Function Name": "test_security_oauth2", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "test_security_http_bearer_no_credentials", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 35, + "End Line": 38 }, { - "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 36 + "Start Line": 41, + "End Line": 45 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Sequential Logic Declarations": 29, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -209427,14 +207872,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -209452,7 +207897,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 44, + "Structural Space Indentations": 45, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209469,13 +207914,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 7, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -209501,34 +207946,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", + "fastapi.security.open_id_connect_url", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_security_http_bearer_optional.py": { + "python/fastapi/tests/test_security_openid_connect_description.py": { "1. Artifact Identity": { - "Filename": "test_security_http_bearer_optional.py", - "Path": "python/fastapi/tests/test_security_http_bearer_optional.py", + "Filename": "test_security_openid_connect_description.py", + "Path": "python/fastapi/tests/test_security_openid_connect_description.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4648.4, - "Y": 168.65, - "Z": -468.02 + "X": 4625.41, + "Y": 165.24, + "Z": 331.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209537,23 +207984,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 68, - "Coding LOC": 53, + "Total LOC": 83, + "Coding LOC": 64, "Documentation LOC": 0, - "Structural Magnitude": 16.16, - "Control Flow Ratio": "4.0%", + "Structural Magnitude": 18.68, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.079 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.2%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.19%", + "API Exposure": "9.92%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209565,72 +208012,82 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 82 + }, + { + "Function Name": "get_current_user", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 17 + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 20 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "read_current_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 67 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "test_security_http_bearer", + "Function Name": "test_security_oauth2", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 31, + "End Line": 34 }, { - "Function Name": "test_security_http_bearer_no_credentials", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 37, + "End Line": 40 }, { - "Function Name": "test_security_http_bearer_incorrect_scheme_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 43, + "End Line": 47 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 29, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -209640,14 +208097,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -209665,7 +208122,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 39, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209682,9 +208139,9 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, - "Design Camel Case": 0, - "Design Snake Case": 7, + "Core Var Decl": 11, + "Design Camel Case": 1, + "Design Snake Case": 9, "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, @@ -209714,34 +208171,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", + "fastapi.security.open_id_connect_url", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_security_http_digest.py": { + "python/fastapi/tests/test_security_openid_connect_optional.py": { "1. Artifact Identity": { - "Filename": "test_security_http_digest.py", - "Path": "python/fastapi/tests/test_security_http_digest.py", + "Filename": "test_security_openid_connect_optional.py", + "Path": "python/fastapi/tests/test_security_openid_connect_optional.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2255.96, - "Y": -132.11, - "Z": 1996.46 + "X": 1205.04, + "Y": -230.44, + "Z": -148.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209750,23 +208209,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 68, - "Coding LOC": 53, + "Total LOC": 83, + "Coding LOC": 64, "Documentation LOC": 0, - "Structural Magnitude": 14.76, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 21.58, + "Control Flow Ratio": "6.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.062 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.19%", + "API Exposure": "9.92%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209778,72 +208237,82 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 67 + "Function Name": "get_current_user", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 16, + "End Line": 20 }, { "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 24, + "End Line": 27 + }, + { + "Function Name": "test_openapi_schema", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 32, + "Control Flow Branches": 0, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 51, + "End Line": 82 }, { - "Function Name": "test_security_http_digest_incorrect_scheme_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_security_oauth2", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 38 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "test_security_http_digest", + "Function Name": "test_security_oauth2_password_other_header", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 39, + "End Line": 42 }, { - "Function Name": "test_security_http_digest_no_credentials", + "Function Name": "test_security_oauth2_password_bearer_no_header", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 45, + "End Line": 48 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 30, + "Function Parameters": 6, + "Function/Method Declarations": 6, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 12, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, @@ -209853,14 +208322,14 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -209878,7 +208347,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 40, + "Structural Space Indentations": 48, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -209895,13 +208364,13 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Core Var Decl": 10, "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -209927,22 +208396,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", + "fastapi.security.open_id_connect_url", "fastapi.testclient", - "inline_snapshot" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_security_http_digest_description.py": { + "python/fastapi/tests/test_security_scopes.py": { "1. Artifact Identity": { - "Filename": "test_security_http_digest_description.py", - "Path": "python/fastapi/tests/test_security_http_digest_description.py", + "Filename": "test_security_scopes.py", + "Path": "python/fastapi/tests/test_security_scopes.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -209952,9 +208422,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1453.83, - "Y": -185.8, - "Z": -1213.86 + "X": 1327.08, + "Y": -258.7, + "Z": -900.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -209963,23 +208433,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 74, - "Coding LOC": 59, + "Total LOC": 46, + "Coding LOC": 31, "Documentation LOC": 0, - "Structural Magnitude": 15.18, + "Structural Magnitude": 20.22, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.065 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.03%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.01%", + "API Exposure": "11.41%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -209991,78 +208461,98 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, + "Function Name": "app_fixture", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 73 + "Start Line": 14, + "End Line": 31 }, { - "Function Name": "read_current_user", + "Function Name": "test_security_scopes_dependency_called_once", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 39, + "End Line": 45 + }, + { + "Function Name": "endpoint", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 25, + "End Line": 29 + }, + { + "Function Name": "get_user", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "test_security_http_digest_incorrect_scheme_credentials", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "client_fixture", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 38 + "Start Line": 35, + "End Line": 36 }, { - "Function Name": "test_security_http_digest", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "call_counter_fixture", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 22 + "Start Line": 9, + "End Line": 10 }, { - "Function Name": "test_security_http_digest_no_credentials", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_db", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 15, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 25, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Sequential Logic Declarations": 22, + "Function Parameters": 7, + "Function/Method Declarations": 7, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 8, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -210073,7 +208563,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -210091,7 +208581,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 46, + "Structural Space Indentations": 19, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210107,14 +208597,14 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 3, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 3, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 1, + "Design Long Vars": 0, "Duplicate Logic": 0, "Orphaned Logic": 5, "Instructional Code Examples": 0, @@ -210147,15 +208637,15 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_security_http_digest_optional.py": { + "python/fastapi/tests/test_security_scopes_dont_propagate.py": { "1. Artifact Identity": { - "Filename": "test_security_http_digest_optional.py", - "Path": "python/fastapi/tests/test_security_http_digest_optional.py", + "Filename": "test_security_scopes_dont_propagate.py", + "Path": "python/fastapi/tests/test_security_scopes_dont_propagate.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -210165,9 +208655,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3467.84, - "Y": 17.22, - "Z": -1806.78 + "X": 1092.62, + "Y": -293.19, + "Z": 370.19 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210176,24 +208666,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 70, - "Coding LOC": 55, - "Documentation LOC": 0, - "Structural Magnitude": 16.3, - "Control Flow Ratio": "4.0%", + "Total LOC": 45, + "Coding LOC": 27, + "Documentation LOC": 1, + "Structural Magnitude": 17.54, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.076 + "Raw Cognitive Density": 0.407 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.16%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "10.13%", + "Error & Exception Exposure": "67.04%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.13%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.16%", + "Concurrency Exposure": "94.13%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -210204,78 +208694,78 @@ }, "5. Function Analysis": [ { - "Function Name": "read_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 17 + "Function Name": "dep3", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 22 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, + "Function Name": "get_scopes", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 69 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "test_security_http_digest_incorrect_scheme_credentials", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "security1", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 40 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "test_security_http_digest", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "security2", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 14, + "End Line": 15 }, { - "Function Name": "test_security_http_digest_no_credentials", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_security_scopes_dont_propagate", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 38, + "End Line": 44 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 19, "Function Parameters": 5, "Function/Method Declarations": 5, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -210304,7 +208794,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 41, + "Structural Space Indentations": 13, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210321,15 +208811,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Snake Case": 6, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -210362,26 +208852,25 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "typing" ] }, - "python/fastapi/tests/test_security_oauth2.py": { + "python/fastapi/tests/test_security_scopes_sub_dependency.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2.py", - "Path": "python/fastapi/tests/test_security_oauth2.py", + "Filename": "test_security_scopes_sub_dependency.py", + "Path": "python/fastapi/tests/test_security_scopes_sub_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4008.77, - "Y": 84.04, - "Z": -302.56 + "X": 1589.61, + "Y": -151.34, + "Z": 455.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210390,23 +208879,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 281, - "Coding LOC": 249, - "Documentation LOC": 3, - "Structural Magnitude": 43.98, - "Control Flow Ratio": "4.2%", + "Total LOC": 108, + "Coding LOC": 88, + "Documentation LOC": 1, + "Structural Magnitude": 30.76, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.029 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.65%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.6%", + "API Exposure": "10.22%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -210418,149 +208907,129 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.6, - "Lines of Code (LOC)": 132, + "Function Name": "app_fixture", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 47, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 149, - "End Line": 280 - }, - { - "Function Name": "test_strict_login_incorrect_grant_type", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 114, - "End Line": 130 - }, - { - "Function Name": "test_strict_login_no_data", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, - "Control Flow Branches": 0, - "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 88 + "Start Line": 23, + "End Line": 69 }, { - "Function Name": "test_strict_login_correct_grant_type", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Function Name": "test_security_scopes_sub_dependency_caching", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 31, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 133, - "End Line": 146 + "Start Line": 77, + "End Line": 107 }, { "Function Name": "get_current_user", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Structural Impact": 2.2, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 28, + "End Line": 37 }, { - "Function Name": "test_strict_login_no_grant_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "path_operation", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 103 + "Start Line": 60, + "End Line": 67 }, { - "Function Name": "login", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_user_me", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 33 + "Start Line": 39, + "End Line": 46 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_user_items", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 + "Start Line": 48, + "End Line": 55 }, { - "Function Name": "test_security_oauth2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "client_fixture", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 48 + "Start Line": 73, + "End Line": 74 }, { - "Function Name": "test_security_oauth2_password_other_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "call_counts_fixture", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 54 + "Start Line": 13, + "End Line": 19 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "get_db_session", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 61 + "Start Line": 24, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 69, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 23, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 32, + "Function Parameters": 9, + "Function/Method Declarations": 9, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 30, + "Unit Test Assertions": 14, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 4, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -210570,7 +209039,7 @@ "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 3, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -210578,7 +209047,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 223, + "Structural Space Indentations": 75, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210594,16 +209063,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 20, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 20, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 3, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 5, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -210627,7 +209096,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -210636,27 +209105,27 @@ "fastapi", "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py": { + "python/fastapi/tests/test_serialize_response.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer.py", + "Filename": "test_serialize_response.py", + "Path": "python/fastapi/tests/test_serialize_response.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3221.73, - "Y": 16.75, - "Z": -1790.39 + "X": 4453.78, + "Y": 144.19, + "Z": -822.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210665,24 +209134,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 66, + "Total LOC": 56, + "Coding LOC": 38, "Documentation LOC": 0, - "Structural Magnitude": 18.52, + "Structural Magnitude": 18.06, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.053 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "2.89%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.39%", - "Concurrency Exposure": "27.67%", + "API Exposure": "11.86%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -210693,92 +209162,92 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 38, + "Function Name": "test_validlist", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 82 + "Start Line": 48, + "End Line": 55 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_validlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 25, + "End Line": 30 }, { - "Function Name": "test_no_token", + "Function Name": "test_valid", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 36, + "End Line": 39 }, { - "Function Name": "test_incorrect_token", + "Function Name": "test_coerce", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 30 + "Start Line": 42, + "End Line": 45 }, { - "Function Name": "test_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_valid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "test_token_with_whitespaces", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_coerce", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 20, + "End Line": 21 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 26, + "Sequential Logic Declarations": 19, "Function Parameters": 6, "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 5, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -210803,7 +209272,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 51, + "Structural Space Indentations": 23, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -210821,9 +209290,9 @@ "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 10, - "Design Camel Case": 1, + "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 1, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -210852,22 +209321,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "pydantic" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py": { + "python/fastapi/tests/test_serialize_response_dataclass.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer_description.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_description.py", + "Filename": "test_serialize_response_dataclass.py", + "Path": "python/fastapi/tests/test_serialize_response_dataclass.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -210877,9 +209345,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1804.4, - "Y": -175.77, - "Z": -1573.56 + "X": 3306.83, + "Y": -6.31, + "Z": 1246.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -210888,10 +209356,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 81, - "Coding LOC": 66, + "Total LOC": 194, + "Coding LOC": 159, "Documentation LOC": 0, - "Structural Magnitude": 16.42, + "Structural Magnitude": 46.18, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -210904,8 +209372,8 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.83%", - "Concurrency Exposure": "27.67%", + "API Exposure": "11.89%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -210916,27 +209384,107 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 39, + "Function Name": "test_validlist", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 80 + "Start Line": 110, + "End Line": 132 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_objectlist", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 135, + "End Line": 157 }, { - "Function Name": "test_no_token", + "Function Name": "test_no_response_model_objectlist", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 171, + "End Line": 193 + }, + { + "Function Name": "get_validlist", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 46 + }, + { + "Function Name": "test_valid", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 77, + "End Line": 85 + }, + { + "Function Name": "test_object", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 88, + "End Line": 96 + }, + { + "Function Name": "test_coerce", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 99, + "End Line": 107 + }, + { + "Function Name": "test_no_response_model_object", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 160, + "End Line": 168 + }, + { + "Function Name": "get_objectlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 50, + "End Line": 55 + }, + { + "Function Name": "get_no_response_model_objectlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 71 + }, + { + "Function Name": "get_object", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -210946,48 +209494,58 @@ "End Line": 27 }, { - "Function Name": "test_incorrect_token", + "Function Name": "get_no_response_model_object", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 59, + "End Line": 62 }, { - "Function Name": "test_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_valid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 39 + "Start Line": 19, + "End Line": 20 + }, + { + "Function Name": "get_coerce", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Sequential Logic Declarations": 37, + "Function Parameters": 14, + "Function/Method Declarations": 14, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 22, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 14, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -211016,7 +209574,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 52, + "Structural Space Indentations": 130, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211032,16 +209590,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 12, - "Design Camel Case": 2, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Vectorized Math & Tensor Operations": 6, + "Core Var Decl": 18, + "Design Camel Case": 0, + "Design Snake Case": 16, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 14, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211071,28 +209629,29 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "dataclasses", + "datetime", "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py": { + "python/fastapi/tests/test_serialize_response_model.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py", + "Filename": "test_serialize_response_model.py", + "Path": "python/fastapi/tests/test_serialize_response_model.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2092.61, - "Y": -166.64, - "Z": 907.1 + "X": 2627.65, + "Y": -31.07, + "Z": 1158.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211101,24 +209660,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 198, - "Coding LOC": 162, - "Documentation LOC": 1, - "Structural Magnitude": 48.84, - "Control Flow Ratio": "12.8%", + "Total LOC": 153, + "Coding LOC": 115, + "Documentation LOC": 0, + "Structural Magnitude": 47.5, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.224 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.44%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.92%", - "Concurrency Exposure": "67.41%", + "API Exposure": "12.94%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211129,77 +209688,97 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.5, - "Lines of Code (LOC)": 99, - "Control Flow Branches": 2, + "Function Name": "test_coerce", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 99, - "End Line": 197 + "Control Flow Ratio": "0.0%", + "Start Line": 93, + "End Line": 100 }, { - "Function Name": "test_read_with_oauth2_scheme", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_validlist", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 71, - "End Line": 76 + "Control Flow Ratio": "0.0%", + "Start Line": 103, + "End Line": 110 }, { - "Function Name": "test_read_with_get_token", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_validdict", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 79, - "End Line": 84 + "Control Flow Ratio": "0.0%", + "Start Line": 113, + "End Line": 120 }, { - "Function Name": "create_item", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_validlist_exclude_unset", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 135, + "End Line": 142 }, { - "Function Name": "get_token", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_validdict_exclude_unset", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 145, + "End Line": 152 }, { - "Function Name": "read_items", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_validlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 50 + "Start Line": 25, + "End Line": 30 }, { - "Function Name": "test_root", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_validdict", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 65, + "Start Line": 34, + "End Line": 39 + }, + { + "Function Name": "get_validlist_exclude_unset", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 63, "End Line": 68 }, { - "Function Name": "test_read_token", + "Function Name": "get_validdict_exclude_unset", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 81 + }, + { + "Function Name": "test_valid", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, @@ -211209,79 +209788,99 @@ "End Line": 90 }, { - "Function Name": "test_create_token", + "Function Name": "test_valid_exclude_unset", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 96 + "Start Line": 123, + "End Line": 126 }, { - "Function Name": "root", + "Function Name": "test_coerce_exclude_unset", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 129, + "End Line": 132 + }, + { + "Function Name": "get_valid", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 27 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "read_with_oauth2_scheme", + "Function Name": "get_coerce", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 20, + "End Line": 21 }, { - "Function Name": "read_with_get_token", + "Function Name": "get_valid_exclude_unset", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 + "Start Line": 45, + "End Line": 46 + }, + { + "Function Name": "get_coerce_exclude_unset", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 55 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 41, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 0, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 39, + "Function Parameters": 16, + "Function/Method Declarations": 16, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 12, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, + "Exposed API / Public Exports": 25, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 16, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 8, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -211299,7 +209898,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, + "Structural Space Indentations": 81, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211315,16 +209914,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 20, - "Design Camel Case": 2, - "Design Snake Case": 16, + "Vectorized Math & Tensor Operations": 7, + "Core Var Decl": 24, + "Design Camel Case": 0, + "Design Snake Case": 22, "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 3, "Duplicate Logic": 0, - "Orphaned Logic": 11, + "Orphaned Logic": 16, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211348,35 +209947,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic", + "starlette.testclient" ] }, - "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py": { + "python/fastapi/tests/test_skip_defaults.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", - "Path": "python/fastapi/tests/test_security_oauth2_authorization_code_bearer_scopes_openapi_simple.py", + "Filename": "test_skip_defaults.py", + "Path": "python/fastapi/tests/test_skip_defaults.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, Model", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4840.95, - "Y": 232.11, - "Z": 126.13 + "X": 2318.46, + "Y": -82.62, + "Z": -1385.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211385,10 +209983,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 81, - "Coding LOC": 64, - "Documentation LOC": 1, - "Structural Magnitude": 15.18, + "Total LOC": 94, + "Coding LOC": 62, + "Documentation LOC": 0, + "Structural Magnitude": 31.24, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -211398,11 +209996,11 @@ }, "4. Vulnerability & Risk Exposures": { "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Error & Exception Exposure": "23.28%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.13%", - "Concurrency Exposure": "48.94%", + "API Exposure": "13.16%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211413,79 +210011,139 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 43, + "Function Name": "get_root", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 31, + "End Line": 32 + }, + { + "Function Name": "get_exclude_unset", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 38, - "End Line": 80 + "End Line": 39 }, { - "Function Name": "get_token", - "Structural Impact": 1.5, + "Function Name": "get_exclude_defaults", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 47, + "End Line": 48 }, { - "Function Name": "test_read_admin", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_exclude_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 35 + "Start Line": 54, + "End Line": 55 }, { - "Function Name": "read_admin", + "Function Name": "get_exclude_unset_none", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 26 + "Start Line": 64, + "End Line": 65 + }, + { + "Function Name": "test_return_defaults", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 73 + }, + { + "Function Name": "test_return_exclude_unset", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 76, + "End Line": 78 + }, + { + "Function Name": "test_return_exclude_defaults", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 81, + "End Line": 83 + }, + { + "Function Name": "test_return_exclude_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 86, + "End Line": 88 + }, + { + "Function Name": "test_return_exclude_unset_none", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 91, + "End Line": 93 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 21, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 0, + "Sequential Logic Declarations": 30, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 4, + "Defensive Programming Constructs": 9, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, + "Exposed API / Public Exports": 19, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 10, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 1, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -211503,7 +210161,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 50, + "Structural Space Indentations": 34, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211519,16 +210177,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 9, - "Design Camel Case": 2, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 23, + "Design Camel Case": 0, + "Design Snake Case": 18, + "Design Pascal Case": 5, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Long Vars": 3, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 10, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211552,23 +210210,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_security_oauth2_optional.py": { + "python/fastapi/tests/test_sse.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_optional.py", - "Path": "python/fastapi/tests/test_security_oauth2_optional.py", + "Filename": "test_sse.py", + "Path": "python/fastapi/tests/test_sse.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -211579,9 +210235,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3941.76, - "Y": 144.57, - "Z": 205.41 + "X": 2291.84, + "Y": -92.97, + "Z": 105.58 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211590,24 +210246,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 282, - "Coding LOC": 253, - "Documentation LOC": 0, - "Structural Magnitude": 47.06, - "Control Flow Ratio": "6.7%", + "Total LOC": 319, + "Coding LOC": 215, + "Documentation LOC": 12, + "Structural Magnitude": 154.2, + "Control Flow Ratio": "22.4%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.038 + "Raw Cognitive Density": 0.423 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.74%", + "Cognitive Load Exposure": "6.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.59%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.62%", + "Concurrency Exposure": "95.93%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211618,149 +210274,359 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.6, - "Lines of Code (LOC)": 132, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 150, - "End Line": 281 + "Function Name": "test_async_generator_with_model", + "Structural Impact": 9.4, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 108, + "End Line": 126 }, { - "Function Name": "test_strict_login_incorrect_grant_type", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 1, + "Function Name": "test_keepalive_ping_async", + "Structural Impact": 6.2, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 3, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 115, - "End Line": 131 + "Control Flow Ratio": "37.5%", + "Start Line": 290, + "End Line": 299 }, { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "test_keepalive_ping_sync", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 3, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 25, - "End Line": 29 + "Control Flow Ratio": "37.5%", + "Start Line": 302, + "End Line": 310 }, { - "Function Name": "read_users_me", - "Structural Impact": 3.0, + "Function Name": "test_sync_generator_with_model", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 129, + "End Line": 137 + }, + { + "Function Name": "test_async_generator_no_annotation", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 140, + "End Line": 148 + }, + { + "Function Name": "test_sync_generator_no_annotation", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 151, + "End Line": 159 + }, + { + "Function Name": "test_post_method_sse", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 172, + "End Line": 180 + }, + { + "Function Name": "test_dict_items", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 162, + "End Line": 169 + }, + { + "Function Name": "test_sse_on_router_included_in_app", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "28.6%", + "Start Line": 258, + "End Line": 265 + }, + { + "Function Name": "test_data_and_raw_data_mutually_exclusive", + "Structural Impact": 3.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 252, + "End Line": 255 + }, + { + "Function Name": "test_server_sent_event_null_id_rejected", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 219, + "End Line": 221 + }, + { + "Function Name": "test_sse_events_with_fields", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 38, - "End Line": 41 + "Control Flow Ratio": "0.0%", + "Start Line": 183, + "End Line": 199 }, { - "Function Name": "test_strict_login_no_data", + "Function Name": "test_raw_data_sent_without_json_encoding", "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 234, + "End Line": 249 + }, + { + "Function Name": "sse_items", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 30, + "End Line": 32 + }, + { + "Function Name": "sse_items_no_annotation", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 41, + "End Line": 43 + }, + { + "Function Name": "sse_items_dict", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 52, + "End Line": 54 + }, + { + "Function Name": "sse_items_post", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 78, + "End Line": 80 + }, + { + "Function Name": "client_fixture", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 103, + "End Line": 105 + }, + { + "Function Name": "test_server_sent_event_negative_retry_rejected", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 224, + "End Line": 226 + }, + { + "Function Name": "test_server_sent_event_float_retry_rejected", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 229, + "End Line": 231 + }, + { + "Function Name": "test_mixed_plain_and_sse_events", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 65, - "End Line": 89 + "Start Line": 202, + "End Line": 209 }, { - "Function Name": "test_strict_login_correct_data", + "Function Name": "test_string_data_json_encoded", "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 134, - "End Line": 147 + "Start Line": 212, + "End Line": 216 }, { - "Function Name": "test_strict_login_no_grant_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_no_keepalive_when_fast", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 313, + "End Line": 318 + }, + { + "Function Name": "slow_async_stream", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 104 + "Start Line": 275, + "End Line": 280 }, { - "Function Name": "login", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "sse_items_event", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 34 + "Start Line": 58, + "End Line": 62 }, { - "Function Name": "test_security_oauth2", + "Function Name": "sse_items_mixed", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 50 + "Start Line": 66, + "End Line": 69 }, { - "Function Name": "test_security_oauth2_password_other_header", + "Function Name": "sse_items_raw", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 56 + "Start Line": 84, + "End Line": 87 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", + "Function Name": "slow_sync_stream", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 + "Start Line": 284, + "End Line": 287 + }, + { + "Function Name": "sse_items_sync", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 36, + "End Line": 37 + }, + { + "Function Name": "sse_items_sync_no_annotation", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 47, + "End Line": 48 + }, + { + "Function Name": "sse_items_string", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 74 + }, + { + "Function Name": "stream_events", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 94, + "End Line": 96 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 70, - "Function Parameters": 11, - "Function/Method Declarations": 11, + "Control Flow Branches": 34, + "Sequential Logic Declarations": 118, + "Function Parameters": 32, + "Function/Method Declarations": 32, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 22, + "Defensive Programming Constructs": 59, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 44, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 29, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 10, + "Unit Test Assertions": 84, + "Asynchronous/Concurrent Execution": 15, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Decorators and Annotations": 14, + "Generic Type Abstractions": 4, + "Collection Iterators / Comprehensions": 9, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Metaprogramming & Reflection": 2, + "Module Dependencies (Imports)": 10, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -211769,16 +210635,16 @@ "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 3, + "Thread Sleeps & Blocking Waits": 2, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 227, + "Structural Space Indentations": 152, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -211786,24 +210652,24 @@ "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 0, + "Time Date Logic": 1, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 24, + "Lazy Evaluation & Generators (O(1) Memory)": 24, + "Vectorized Math & Tensor Operations": 12, + "Core Var Decl": 50, "Design Camel Case": 0, - "Design Snake Case": 21, - "Design Pascal Case": 3, + "Design Snake Case": 49, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 3, - "Design Long Vars": 1, + "Design Short Vars": 0, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 32, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -211811,7 +210677,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 2, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -211827,37 +210693,40 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 10, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "asyncio", + "collections.abc", "fastapi", - "fastapi.security", + "fastapi.responses", + "fastapi.routing", + "fastapi.sse", "fastapi.testclient", - "inline_snapshot", "pydantic", - "pytest" + "pytest", + "time" ] }, - "python/fastapi/tests/test_security_oauth2_optional_description.py": { + "python/fastapi/tests/test_starlette_exception.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_optional_description.py", - "Path": "python/fastapi/tests/test_security_oauth2_optional_description.py", + "Filename": "test_starlette_exception.py", + "Path": "python/fastapi/tests/test_starlette_exception.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2270.84, - "Y": -91.02, - "Z": -1152.96 + "X": 1773.64, + "Y": -138.55, + "Z": -12.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -211866,24 +210735,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 284, - "Coding LOC": 255, + "Total LOC": 210, + "Coding LOC": 183, "Documentation LOC": 0, - "Structural Magnitude": 47.2, - "Control Flow Ratio": "6.7%", + "Structural Magnitude": 47.76, + "Control Flow Ratio": "8.9%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.037 + "Raw Cognitive Density": 0.104 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.73%", + "Cognitive Load Exposure": "3.51%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.58%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.36%", + "Concurrency Exposure": "42.52%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -211895,148 +210764,148 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 7.7, - "Lines of Code (LOC)": 133, - "Control Flow Branches": 0, + "Structural Impact": 8.5, + "Lines of Code (LOC)": 130, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 151, - "End Line": 283 + "Control Flow Ratio": "5.9%", + "Start Line": 80, + "End Line": 209 }, { - "Function Name": "test_strict_login_incorrect_grant_type", - "Structural Impact": 3.7, - "Lines of Code (LOC)": 17, + "Function Name": "read_item", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 8, "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 116, - "End Line": 132 + "Control Flow Ratio": "33.3%", + "Start Line": 12, + "End Line": 19 }, { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, + "Function Name": "read_starlette_item", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 26, - "End Line": 30 + "Control Flow Ratio": "33.3%", + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "read_users_me", - "Structural Impact": 3.0, + "Function Name": "test_no_body_status_code_with_detail_exception_handlers", + "Structural Impact": 2.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 1, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 74, + "End Line": 77 }, { - "Function Name": "test_strict_login_None", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 25, + "Function Name": "test_get_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 90 + "Start Line": 42, + "End Line": 45 }, { - "Function Name": "test_strict_login_correct_correct_grant_type", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 14, + "Function Name": "test_get_item_not_found", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 148 + "Start Line": 48, + "End Line": 52 }, { - "Function Name": "test_strict_login_no_grant_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 13, + "Function Name": "test_get_starlette_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 105 + "Start Line": 55, + "End Line": 58 }, { - "Function Name": "login", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_get_starlette_item_not_found", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 35 + "Start Line": 61, + "End Line": 65 }, { - "Function Name": "test_security_oauth2", + "Function Name": "test_no_body_status_code_exception_handlers", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 + "Start Line": 68, + "End Line": 71 }, { - "Function Name": "test_security_oauth2_password_other_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_body_status_code_exception", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 23, + "End Line": 24 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "no_body_status_code_with_detail_exception", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 63 + "Start Line": 28, + "End Line": 29 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 5, - "Sequential Logic Declarations": 70, + "Sequential Logic Declarations": 51, "Function Parameters": 11, "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 22, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 16, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 14, + "Exposed API / Public Exports": 15, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 29, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 23, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -212044,9 +210913,9 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 4, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 3, + "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, @@ -212054,7 +210923,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 229, + "Structural Space Indentations": 161, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212071,15 +210940,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 25, + "Core Var Decl": 13, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 3, + "Design Snake Case": 13, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 3, - "Design Long Vars": 1, + "Design Short Vars": 0, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212103,24 +210972,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", "inline_snapshot", - "pydantic", - "pytest" + "starlette.exceptions" ] }, - "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py": { + "python/fastapi/tests/test_starlette_urlconvertors.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_password_bearer_optional.py", - "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional.py", + "Filename": "test_starlette_urlconvertors.py", + "Path": "python/fastapi/tests/test_starlette_urlconvertors.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -212130,9 +210997,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4671.62, - "Y": 155.68, - "Z": -201.27 + "X": 4231.44, + "Y": 126.72, + "Z": -601.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212141,24 +211008,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 71, - "Coding LOC": 56, - "Documentation LOC": 0, - "Structural Magnitude": 17.32, - "Control Flow Ratio": "4.0%", + "Total LOC": 64, + "Coding LOC": 38, + "Documentation LOC": 4, + "Structural Magnitude": 25.96, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.15 + "Raw Cognitive Density": 0.053 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.16%", + "Cognitive Load Exposure": "2.89%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.1%", - "Concurrency Exposure": "29.89%", + "API Exposure": "12.64%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212169,82 +211036,122 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "int_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 12, - "End Line": 15 + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 32, + "Function Name": "float_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 13, + "End Line": 14 + }, + { + "Function Name": "path_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "query_convertor", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 23, + "End Line": 24 + }, + { + "Function Name": "test_route_converters_int", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 70 + "Start Line": 30, + "End Line": 35 }, { - "Function Name": "test_no_token", + "Function Name": "test_route_converters_float", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 38, + "End Line": 43 + }, + { + "Function Name": "test_route_converters_path", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 21, - "End Line": 24 + "Start Line": 46, + "End Line": 50 }, { - "Function Name": "test_token", + "Function Name": "test_route_converters_query", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 27, - "End Line": 30 + "Start Line": 53, + "End Line": 57 }, { - "Function Name": "test_incorrect_token", + "Function Name": "test_url_path_for_path_convertor", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 60, + "End Line": 63 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 28, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 8, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 13, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 16, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 4, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -212269,7 +211176,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 43, + "Structural Space Indentations": 21, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212286,15 +211193,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 8, + "Core Var Decl": 13, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 1, + "Design Snake Case": 13, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212302,7 +211209,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, + "Dynamic Code Execution (Eval/Exec)": 1, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -212318,34 +211225,33 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py": { + "python/fastapi/tests/test_stream_bare_type.py": { "1. Artifact Identity": { - "Filename": "test_security_oauth2_password_bearer_optional_description.py", - "Path": "python/fastapi/tests/test_security_oauth2_password_bearer_optional_description.py", + "Filename": "test_stream_bare_type.py", + "Path": "python/fastapi/tests/test_stream_bare_type.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3747.49, - "Y": 77.86, - "Z": -1436.4 + "X": 3177.1, + "Y": -13.47, + "Z": 1664.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212354,24 +211260,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 76, - "Coding LOC": 61, + "Total LOC": 43, + "Coding LOC": 27, "Documentation LOC": 0, - "Structural Magnitude": 17.52, - "Control Flow Ratio": "4.0%", + "Structural Magnitude": 17.34, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.138 + "Raw Cognitive Density": 0.481 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.97%", + "Cognitive Load Exposure": "12.73%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.96%", - "Concurrency Exposure": "28.7%", + "API Exposure": "10.99%", + "Concurrency Exposure": "94.13%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212382,82 +211288,72 @@ }, "5. Function Analysis": [ { - "Function Name": "read_items", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, + "Function Name": "test_stream_bare_async_iterable", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 19 - }, - { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 75 + "Control Flow Ratio": "16.7%", + "Start Line": 29, + "End Line": 34 }, { - "Function Name": "test_no_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Function Name": "test_stream_bare_sync_iterable", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Control Flow Ratio": "16.7%", + "Start Line": 37, + "End Line": 42 }, { - "Function Name": "test_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_bare_async", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_incorrect_token", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_bare_sync", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 40 + "Start Line": 22, + "End Line": 23 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 24, - "Function Parameters": 5, - "Function/Method Declarations": 5, - "Class/Entity Declarations": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 22, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 1, "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, + "Collection Iterators / Comprehensions": 2, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -212482,7 +211378,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 13, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212497,17 +211393,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 2, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, - "Design Camel Case": 1, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Core Var Decl": 6, + "Design Camel Case": 0, + "Design Snake Case": 6, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212531,35 +211427,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "json", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_security_openid_connect.py": { + "python/fastapi/tests/test_stream_cancellation.py": { "1. Artifact Identity": { - "Filename": "test_security_openid_connect.py", - "Path": "python/fastapi/tests/test_security_openid_connect.py", + "Filename": "test_stream_cancellation.py", + "Path": "python/fastapi/tests/test_stream_cancellation.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3737.29, - "Y": 54.03, - "Z": 1597.87 + "X": 3903.53, + "Y": 63.01, + "Z": 41.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212568,24 +211464,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 61, - "Documentation LOC": 0, - "Structural Magnitude": 18.52, - "Control Flow Ratio": "0.0%", + "Total LOC": 89, + "Coding LOC": 50, + "Documentation LOC": 16, + "Structural Magnitude": 49.0, + "Control Flow Ratio": "15.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.22 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "21.69%", + "Error & Exception Exposure": "39.98%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.0%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.1%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212596,88 +211492,98 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 32, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 79 + "Function Name": "_run_asgi_and_cancel", + "Structural Impact": 9.7, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "21.4%", + "Start Line": 41, + "End Line": 74 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, + "Function Name": "send", + "Structural Impact": 3.0, "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 18 + "Control Flow Ratio": "33.3%", + "Start Line": 53, + "End Line": 55 }, { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Function Name": "stream_raw", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 24, + "End Line": 29 }, { - "Function Name": "test_security_oauth2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_jsonl", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 33, + "End Line": 38 + }, + { + "Function Name": "test_raw_stream_cancellation", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 77, + "End Line": 82 }, { - "Function Name": "test_security_oauth2_password_other_header", + "Function Name": "receive", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 48, + "End Line": 51 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", + "Function Name": "test_jsonl_stream_cancellation", "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 45 + "Start Line": 85, + "End Line": 88 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 11, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 5, + "Sequential Logic Declarations": 27, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 0, + "State Mutations / Variable Reassignments": 3, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Structured Documentation Blocks": 12, + "Unit Test Assertions": 8, + "Asynchronous/Concurrent Execution": 16, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 7, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -212687,26 +211593,26 @@ "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Event Publishers / Emitters": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, + "Explicit Type Casts": 1, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 3, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 45, + "Structural Space Indentations": 35, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212721,17 +211627,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Lazy Evaluation & Generators (O(1) Memory)": 2, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 8, "Design Camel Case": 0, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Design Snake Case": 8, + "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 2, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212761,17 +211667,17 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "anyio", + "collections.abc", "fastapi", - "fastapi.security.open_id_connect_url", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "fastapi.responses", + "pytest" ] }, - "python/fastapi/tests/test_security_openid_connect_description.py": { + "python/fastapi/tests/test_stream_json_validation_error.py": { "1. Artifact Identity": { - "Filename": "test_security_openid_connect_description.py", - "Path": "python/fastapi/tests/test_security_openid_connect_description.py", + "Filename": "test_stream_json_validation_error.py", + "Path": "python/fastapi/tests/test_stream_json_validation_error.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -212782,9 +211688,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4625.41, - "Y": 165.24, - "Z": 331.93 + "X": 4002.73, + "Y": 155.32, + "Z": 1767.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -212793,24 +211699,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 64, + "Total LOC": 41, + "Coding LOC": 25, "Documentation LOC": 0, - "Structural Magnitude": 18.68, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 14.9, + "Control Flow Ratio": "11.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.28 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "6.62%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.92%", - "Concurrency Exposure": "0.0%", + "API Exposure": "11.13%", + "Concurrency Exposure": "44.03%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -212821,99 +211727,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, - "Control Flow Branches": 0, + "Function Name": "test_stream_json_validation_error_async", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 82 + "Control Flow Ratio": "50.0%", + "Start Line": 33, + "End Line": 35 }, { - "Function Name": "get_current_user", - "Structural Impact": 1.6, + "Function Name": "test_stream_json_validation_error_sync", + "Structural Impact": 2.1, "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 20 - }, - { - "Function Name": "read_current_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 - }, - { - "Function Name": "test_security_oauth2", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Control Flow Ratio": "50.0%", + "Start Line": 38, + "End Line": 40 }, { - "Function Name": "test_security_oauth2_password_other_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "stream_items_invalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 40 + "Start Line": 19, + "End Line": 21 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "stream_items_invalid_sync", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 43, - "End Line": 47 + "Start Line": 25, + "End Line": 27 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 29, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 16, + "Function Parameters": 4, + "Function/Method Declarations": 4, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 11, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 5, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 6, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -212931,7 +211817,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 10, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -212946,17 +211832,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 4, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 11, - "Design Camel Case": 1, - "Design Snake Case": 9, - "Design Pascal Case": 1, + "Core Var Decl": 2, + "Design Camel Case": 0, + "Design Snake Case": 2, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -212980,36 +211866,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "collections.abc", "fastapi", - "fastapi.security.open_id_connect_url", + "fastapi.exceptions", "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_security_openid_connect_optional.py": { + "python/fastapi/tests/test_strict_content_type_app_level.py": { "1. Artifact Identity": { - "Filename": "test_security_openid_connect_optional.py", - "Path": "python/fastapi/tests/test_security_openid_connect_optional.py", + "Filename": "test_strict_content_type_app_level.py", + "Path": "python/fastapi/tests/test_strict_content_type_app_level.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1205.04, - "Y": -230.44, - "Z": -148.83 + "X": 3602.72, + "Y": 96.75, + "Z": 1746.2 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213018,24 +211904,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 64, + "Total LOC": 45, + "Coding LOC": 27, "Documentation LOC": 0, - "Structural Magnitude": 21.58, - "Control Flow Ratio": "6.2%", + "Structural Magnitude": 16.24, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.062 + "Raw Cognitive Density": 0.296 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.0%", + "Cognitive Load Exposure": "7.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.92%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.16%", + "Concurrency Exposure": "77.5%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213046,99 +211932,99 @@ }, "5. Function Analysis": [ { - "Function Name": "get_current_user", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Function Name": "app_default_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 16, - "End Line": 20 + "Control Flow Ratio": "0.0%", + "Start Line": 8, + "End Line": 9 }, { - "Function Name": "read_current_user", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "app_lax_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "25.0%", - "Start Line": 24, - "End Line": 27 + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.6, - "Lines of Code (LOC)": 32, + "Function Name": "test_default_strict_accepts_json_content_type", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 82 + "Start Line": 29, + "End Line": 32 }, { - "Function Name": "test_security_oauth2", + "Function Name": "test_lax_accepts_no_content_type", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 35, + "End Line": 38 }, { - "Function Name": "test_security_oauth2_password_other_header", + "Function Name": "test_lax_accepts_json_content_type", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 42 + "Start Line": 41, + "End Line": 44 }, { - "Function Name": "test_security_oauth2_password_bearer_no_header", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_default_strict_rejects_no_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 48 + "Start Line": 24, + "End Line": 26 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 30, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 19, "Function Parameters": 6, "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 10, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 6, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 12, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 11, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 2, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -213156,7 +212042,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 48, + "Structural Space Indentations": 13, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213172,16 +212058,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 8, "Design Camel Case": 0, "Design Snake Case": 8, - "Design Pascal Case": 2, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213205,23 +212091,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security.open_id_connect_url", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_scopes.py": { + "python/fastapi/tests/test_strict_content_type_nested.py": { "1. Artifact Identity": { - "Filename": "test_security_scopes.py", - "Path": "python/fastapi/tests/test_security_scopes.py", + "Filename": "test_strict_content_type_nested.py", + "Path": "python/fastapi/tests/test_strict_content_type_nested.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -213231,9 +212114,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1327.08, - "Y": -258.7, - "Z": -900.88 + "X": 2397.73, + "Y": -64.45, + "Z": 1429.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213242,24 +212125,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 46, - "Coding LOC": 31, - "Documentation LOC": 0, - "Structural Magnitude": 20.22, + "Total LOC": 92, + "Coding LOC": 54, + "Documentation LOC": 2, + "Structural Magnitude": 32.08, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.065 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.03%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.41%", - "Concurrency Exposure": "0.0%", + "API Exposure": "11.32%", + "Concurrency Exposure": "90.12%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213270,109 +212153,159 @@ }, "5. Function Analysis": [ { - "Function Name": "app_fixture", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 18, + "Function Name": "inner_strict_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 31 + "Start Line": 13, + "End Line": 14 }, { - "Function Name": "test_security_scopes_dependency_called_once", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 7, + "Function Name": "inner_default_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 45 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "endpoint", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "mixed_outer_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 29 + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "get_user", + "Function Name": "mixed_inner_post", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 63, + "End Line": 64 }, { - "Function Name": "client_fixture", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_default_inner_inherits_lax_from_app", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 34, + "End Line": 37 }, { - "Function Name": "call_counter_fixture", + "Function Name": "test_lax_outer_on_strict_app_accepts_no_content_type", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 73, + "End Line": 76 + }, + { + "Function Name": "test_strict_inner_on_lax_app_rejects_no_content_type", "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 10 + "Start Line": 29, + "End Line": 31 }, { - "Function Name": "get_db", + "Function Name": "test_strict_inner_accepts_json_content_type", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 17 + "Start Line": 40, + "End Line": 42 + }, + { + "Function Name": "test_default_inner_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 45, + "End Line": 47 + }, + { + "Function Name": "test_strict_inner_on_lax_outer_rejects_no_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 79, + "End Line": 81 + }, + { + "Function Name": "test_lax_outer_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 86 + }, + { + "Function Name": "test_strict_inner_on_lax_outer_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 89, + "End Line": 91 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 22, - "Function Parameters": 7, - "Function/Method Declarations": 7, + "Sequential Logic Declarations": 30, + "Function Parameters": 12, + "Function/Method Declarations": 12, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Defensive Programming Constructs": 10, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, + "Exposed API / Public Exports": 12, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 18, + "Asynchronous/Concurrent Execution": 4, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -213390,7 +212323,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 19, + "Structural Space Indentations": 22, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213406,16 +212339,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 3, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 17, "Design Camel Case": 0, - "Design Snake Case": 3, + "Design Snake Case": 17, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 12, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213439,22 +212372,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pytest", - "typing" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_scopes_dont_propagate.py": { + "python/fastapi/tests/test_strict_content_type_router_level.py": { "1. Artifact Identity": { - "Filename": "test_security_scopes_dont_propagate.py", - "Path": "python/fastapi/tests/test_security_scopes_dont_propagate.py", + "Filename": "test_strict_content_type_router_level.py", + "Path": "python/fastapi/tests/test_strict_content_type_router_level.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -213464,9 +212395,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1092.62, - "Y": -293.19, - "Z": 370.19 + "X": 1607.42, + "Y": -232.62, + "Z": -1152.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213475,24 +212406,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 45, - "Coding LOC": 27, - "Documentation LOC": 1, - "Structural Magnitude": 17.54, + "Total LOC": 62, + "Coding LOC": 38, + "Documentation LOC": 0, + "Structural Magnitude": 23.96, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.407 + "Raw Cognitive Density": 0.289 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "10.13%", - "Error & Exception Exposure": "67.04%", + "Cognitive Load Exposure": "6.84%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.16%", - "Concurrency Exposure": "94.13%", + "API Exposure": "11.12%", + "Concurrency Exposure": "87.76%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213503,82 +212434,122 @@ }, "5. Function Analysis": [ { - "Function Name": "dep3", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "router_lax_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 22 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "get_scopes", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "router_strict_post", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "security1", + "Function Name": "router_default_post", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "security2", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_lax_router_on_strict_app_accepts_no_content_type", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 15 + "Start Line": 33, + "End Line": 36 }, { - "Function Name": "test_security_scopes_dont_propagate", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "test_strict_router_on_strict_app_rejects_no_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 44 + "Start Line": 39, + "End Line": 41 + }, + { + "Function Name": "test_default_router_inherits_strict_from_app", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 46 + }, + { + "Function Name": "test_lax_router_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 49, + "End Line": 51 + }, + { + "Function Name": "test_strict_router_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 56 + }, + { + "Function Name": "test_default_router_accepts_json_content_type", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 59, + "End Line": 61 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 5, - "Function/Method Declarations": 5, + "Sequential Logic Declarations": 23, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 2, + "Defensive Programming Constructs": 7, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Unit Test Assertions": 13, "Asynchronous/Concurrent Execution": 3, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -213603,7 +212574,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 13, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213619,16 +212590,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 11, "Design Camel Case": 0, - "Design Snake Case": 6, + "Design Snake Case": 11, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 9, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213652,22 +212623,20 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", - "fastapi.testclient", - "typing" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_security_scopes_sub_dependency.py": { + "python/fastapi/tests/test_stringified_annotation_dependency.py": { "1. Artifact Identity": { - "Filename": "test_security_scopes_sub_dependency.py", - "Path": "python/fastapi/tests/test_security_scopes_sub_dependency.py", + "Filename": "test_stringified_annotation_dependency.py", + "Path": "python/fastapi/tests/test_stringified_annotation_dependency.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -213677,9 +212646,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1589.61, - "Y": -151.34, - "Z": 455.48 + "X": 2703.35, + "Y": -3.31, + "Z": 1501.72 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213688,24 +212657,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 108, - "Coding LOC": 88, - "Documentation LOC": 1, - "Structural Magnitude": 30.76, - "Control Flow Ratio": "0.0%", + "Total LOC": 80, + "Coding LOC": 61, + "Documentation LOC": 0, + "Structural Magnitude": 27.92, + "Control Flow Ratio": "3.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.344 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "8.24%", + "Error & Exception Exposure": "33.59%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.22%", - "Concurrency Exposure": "0.0%", + "API Exposure": "9.43%", + "Concurrency Exposure": "97.68%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213716,129 +212685,109 @@ }, "5. Function Analysis": [ { - "Function Name": "app_fixture", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 47, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 69 - }, - { - "Function Name": "test_security_scopes_sub_dependency_caching", - "Structural Impact": 3.3, + "Function Name": "test_openapi_schema", + "Structural Impact": 3.0, "Lines of Code (LOC)": 31, "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 107 - }, - { - "Function Name": "get_current_user", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 37 + "Start Line": 49, + "End Line": 79 }, { - "Function Name": "path_operation", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 8, + "Function Name": "test_get", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 67 + "Start Line": 43, + "End Line": 46 }, { - "Function Name": "get_user_me", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, + "Function Name": "get_people", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 46 + "Start Line": 15, + "End Line": 16 }, { - "Function Name": "get_user_items", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, + "Function Name": "close", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 55 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "client_fixture", + "Function Name": "get_people", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 + "Start Line": 36, + "End Line": 37 }, { - "Function Name": "call_counts_fixture", + "Function Name": "client_fixture", "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 19 + "Start Line": 32, + "End Line": 40 }, { - "Function Name": "get_db_session", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "get_client", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 + "Start Line": 22, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Sequential Logic Declarations": 32, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 6, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 5, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 4, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -213851,12 +212800,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Resource Deallocation & Cleanup": 2, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 75, + "Structural Space Indentations": 47, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -213871,17 +212820,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 4, + "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 5, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -213905,36 +212854,37 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + "__future__", + "collections.abc", "fastapi", - "fastapi.security", "fastapi.testclient", + "inline_snapshot", "pytest", "typing" ] }, - "python/fastapi/tests/test_serialize_response.py": { + "python/fastapi/tests/test_stringified_annotation_dependency_py314.py": { "1. Artifact Identity": { - "Filename": "test_serialize_response.py", - "Path": "python/fastapi/tests/test_serialize_response.py", + "Filename": "test_stringified_annotation_dependency_py314.py", + "Path": "python/fastapi/tests/test_stringified_annotation_dependency_py314.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4453.78, - "Y": 144.19, - "Z": -822.31 + "X": 843.17, + "Y": -294.47, + "Z": -608.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -213943,24 +212893,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 56, - "Coding LOC": 38, - "Documentation LOC": 0, - "Structural Magnitude": 18.06, - "Control Flow Ratio": "0.0%", + "Total LOC": 31, + "Coding LOC": 19, + "Documentation LOC": 1, + "Structural Magnitude": 11.98, + "Control Flow Ratio": "6.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.053 + "Raw Cognitive Density": 0.474 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.89%", + "Cognitive Load Exposure": "12.44%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.86%", - "Concurrency Exposure": "0.0%", + "API Exposure": "10.34%", + "Concurrency Exposure": "85.77%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -213971,99 +212921,69 @@ }, "5. Function Analysis": [ { - "Function Name": "test_validlist", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 55 - }, - { - "Function Name": "get_validlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "test_stringified_annotation", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 17, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, + "Start Line": 14, "End Line": 30 }, { - "Function Name": "test_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 39 - }, - { - "Function Name": "test_coerce", - "Structural Impact": 1.2, + "Function Name": "get", + "Structural Impact": 1.6, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 45 - }, - { - "Function Name": "get_valid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 24, + "End Line": 27 }, { - "Function Name": "get_coerce", + "Function Name": "get_current_user", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 + "Start Line": 16, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, - "Function Parameters": 6, - "Function/Method Declarations": 6, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 15, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, + "Decorators and Annotations": 2, "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -214081,7 +213001,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 23, + "Structural Space Indentations": 12, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214098,15 +213018,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 10, + "Core Var Decl": 3, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 2, + "Design Snake Case": 3, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -214130,21 +213050,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + ".utils", + "__future__", "fastapi", "fastapi.testclient", - "pydantic" + "typing" ] }, - "python/fastapi/tests/test_serialize_response_dataclass.py": { + "python/fastapi/tests/test_stringified_annotations_simple.py": { "1. Artifact Identity": { - "Filename": "test_serialize_response_dataclass.py", - "Path": "python/fastapi/tests/test_serialize_response_dataclass.py", + "Filename": "test_stringified_annotations_simple.py", + "Path": "python/fastapi/tests/test_stringified_annotations_simple.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -214154,9 +213076,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3306.83, - "Y": -6.31, - "Z": 1246.89 + "X": 639.46, + "Y": -297.73, + "Z": -311.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -214165,23 +213087,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 194, - "Coding LOC": 159, + "Total LOC": 28, + "Coding LOC": 17, "Documentation LOC": 0, - "Structural Magnitude": 46.18, + "Structural Magnitude": 9.24, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.412 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "10.27%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.89%", + "API Exposure": "6.37%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -214193,179 +213115,69 @@ }, "5. Function Analysis": [ { - "Function Name": "test_validlist", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 110, - "End Line": 132 - }, - { - "Function Name": "test_objectlist", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 157 - }, - { - "Function Name": "test_no_response_model_objectlist", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 23, + "Function Name": "__call__", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 171, - "End Line": 193 + "Start Line": 12, + "End Line": 13 }, { - "Function Name": "get_validlist", + "Function Name": "test_stringified_annotations", "Structural Impact": 1.6, "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 46 - }, - { - "Function Name": "test_valid", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 85 - }, - { - "Function Name": "test_object", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 88, - "End Line": 96 - }, - { - "Function Name": "test_coerce", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 99, - "End Line": 107 - }, - { - "Function Name": "test_no_response_model_object", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 160, - "End Line": 168 - }, - { - "Function Name": "get_objectlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 50, - "End Line": 55 - }, - { - "Function Name": "get_no_response_model_objectlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 71 - }, - { - "Function Name": "get_object", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 24, + "Start Line": 17, "End Line": 27 }, { - "Function Name": "get_no_response_model_object", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 62 - }, - { - "Function Name": "get_valid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 - }, - { - "Function Name": "get_coerce", - "Structural Impact": 1.1, + "Function Name": "call", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 37, - "Function Parameters": 14, - "Function/Method Declarations": 14, + "Sequential Logic Declarations": 17, + "Function Parameters": 3, + "Function/Method Declarations": 3, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 9, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 22, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 14, + "Unit Test Assertions": 2, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -214379,11 +213191,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Private / Encapsulated Scopes": 2, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 130, + "Structural Space Indentations": 9, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214399,16 +213211,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 6, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 3, "Design Camel Case": 0, - "Design Snake Case": 16, - "Design Pascal Case": 2, + "Design Snake Case": 3, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 14, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -214432,35 +213244,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "dataclasses", - "datetime", + ".utils", + "__future__", "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "typing" ] }, - "python/fastapi/tests/test_serialize_response_model.py": { + "python/fastapi/tests/test_swagger_ui_escape.py": { "1. Artifact Identity": { - "Filename": "test_serialize_response_model.py", - "Path": "python/fastapi/tests/test_serialize_response_model.py", + "Filename": "test_swagger_ui_escape.py", + "Path": "python/fastapi/tests/test_swagger_ui_escape.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2627.65, - "Y": -31.07, - "Z": 1158.25 + "X": 901.26, + "Y": -311.24, + "Z": -921.66 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -214469,23 +213281,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 153, - "Coding LOC": 115, + "Total LOC": 38, + "Coding LOC": 30, "Documentation LOC": 0, - "Structural Magnitude": 47.5, + "Structural Magnitude": 8.1, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.067 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", + "Cognitive Load Exposure": "3.05%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.94%", + "API Exposure": "7.57%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -214497,192 +213309,62 @@ }, "5. Function Analysis": [ { - "Function Name": "test_coerce", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 93, - "End Line": 100 - }, - { - "Function Name": "test_validlist", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 110 - }, - { - "Function Name": "test_validdict", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "test_init_oauth_html_chars_are_escaped", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 113, - "End Line": 120 + "Start Line": 4, + "End Line": 14 }, { - "Function Name": "test_validlist_exclude_unset", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "test_normal_init_oauth_still_works", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 135, - "End Line": 142 + "Start Line": 28, + "End Line": 37 }, { - "Function Name": "test_validdict_exclude_unset", + "Function Name": "test_swagger_ui_parameters_html_chars_are_escaped", "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 145, - "End Line": 152 - }, - { - "Function Name": "get_validlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 30 - }, - { - "Function Name": "get_validdict", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 39 - }, - { - "Function Name": "get_validlist_exclude_unset", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 68 - }, - { - "Function Name": "get_validdict_exclude_unset", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 81 - }, - { - "Function Name": "test_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 87, - "End Line": 90 - }, - { - "Function Name": "test_valid_exclude_unset", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 123, - "End Line": 126 - }, - { - "Function Name": "test_coerce_exclude_unset", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 129, - "End Line": 132 - }, - { - "Function Name": "get_valid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 - }, - { - "Function Name": "get_coerce", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 21 - }, - { - "Function Name": "get_valid_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 46 - }, - { - "Function Name": "get_coerce_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 + "Start Line": 17, + "End Line": 25 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 16, - "Function/Method Declarations": 16, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 12, + "Sequential Logic Declarations": 12, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 7, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 25, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 16, + "Unit Test Assertions": 10, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 8, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 1, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -214707,7 +213389,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 81, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214723,21 +213405,21 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 7, - "Core Var Decl": 24, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 17, "Design Camel Case": 0, - "Design Snake Case": 22, - "Design Pascal Case": 2, + "Design Snake Case": 17, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 3, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 16, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, + "High-Entropy / Obfuscated Logic": 5, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, @@ -214756,34 +213438,31 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 1, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "pydantic", - "starlette.testclient" + "fastapi.openapi.docs" ] }, - "python/fastapi/tests/test_skip_defaults.py": { + "python/fastapi/tests/test_swagger_ui_init_oauth.py": { "1. Artifact Identity": { - "Filename": "test_skip_defaults.py", - "Path": "python/fastapi/tests/test_skip_defaults.py", + "Filename": "test_swagger_ui_init_oauth.py", + "Path": "python/fastapi/tests/test_swagger_ui_init_oauth.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, Model", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2318.46, - "Y": -82.62, - "Z": -1385.85 + "X": 2390.15, + "Y": -97.58, + "Z": 2031.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -214792,160 +213471,90 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 94, - "Coding LOC": 62, + "Total LOC": 29, + "Coding LOC": 18, "Documentation LOC": 0, - "Structural Magnitude": 31.24, + "Structural Magnitude": 8.96, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 0.278 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "23.28%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "13.16%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "get_root", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 32 - }, - { - "Function Name": "get_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 39 - }, - { - "Function Name": "get_exclude_defaults", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 - }, - { - "Function Name": "get_exclude_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 55 - }, - { - "Function Name": "get_exclude_unset_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 64, - "End Line": 65 - }, - { - "Function Name": "test_return_defaults", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 73 - }, - { - "Function Name": "test_return_exclude_unset", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 78 - }, + "Cognitive Load Exposure": "6.57%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "9.46%", + "Concurrency Exposure": "50.51%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_return_exclude_defaults", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_swagger_ui", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 81, - "End Line": 83 + "Start Line": 17, + "End Line": 23 }, { - "Function Name": "test_return_exclude_none", + "Function Name": "read_items", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 86, - "End Line": 88 + "Start Line": 10, + "End Line": 11 }, { - "Function Name": "test_return_exclude_unset_none", + "Function Name": "test_response", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 91, - "End Line": 93 + "Start Line": 26, + "End Line": 28 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 30, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 4, - "Defensive Programming Constructs": 9, - "Type/Safety Bypasses": 2, + "Sequential Logic Declarations": 13, + "Function Parameters": 3, + "Function/Method Declarations": 3, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 5, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 19, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -214958,7 +213567,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 1, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -214970,7 +213579,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 34, + "Structural Space Indentations": 9, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -214986,16 +213595,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 23, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 5, "Design Camel Case": 0, - "Design Snake Case": 18, - "Design Pascal Case": 5, + "Design Snake Case": 5, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, - "Design Long Vars": 3, + "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 10, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -215019,34 +213628,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient", - "pydantic" + "fastapi.testclient" ] }, - "python/fastapi/tests/test_sse.py": { + "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py": { "1. Artifact Identity": { - "Filename": "test_sse.py", - "Path": "python/fastapi/tests/test_sse.py", + "Filename": "test_top_level_security_scheme_in_openapi.py", + "Path": "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2291.84, - "Y": -92.97, - "Z": 105.58 + "X": 4886.95, + "Y": 217.81, + "Z": 231.94 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -215055,24 +213662,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 319, - "Coding LOC": 215, - "Documentation LOC": 12, - "Structural Magnitude": 154.2, - "Control Flow Ratio": "22.4%", + "Total LOC": 61, + "Coding LOC": 45, + "Documentation LOC": 3, + "Structural Magnitude": 12.8, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.423 + "Raw Cognitive Density": 0.111 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.44%", + "Cognitive Load Exposure": "3.6%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.62%", - "Concurrency Exposure": "95.93%", + "API Exposure": "8.68%", + "Concurrency Exposure": "33.24%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -215083,359 +213690,79 @@ }, "5. Function Analysis": [ { - "Function Name": "test_async_generator_with_model", - "Structural Impact": 9.4, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 5, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 108, - "End Line": 126 - }, - { - "Function Name": "test_keepalive_ping_async", - "Structural Impact": 6.2, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "37.5%", - "Start Line": 290, - "End Line": 299 - }, - { - "Function Name": "test_keepalive_ping_sync", - "Structural Impact": 6.1, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 3, - "Input Parameters": 1, - "Control Flow Ratio": "37.5%", - "Start Line": 302, - "End Line": 310 - }, - { - "Function Name": "test_sync_generator_with_model", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 129, - "End Line": 137 - }, - { - "Function Name": "test_async_generator_no_annotation", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 140, - "End Line": 148 - }, - { - "Function Name": "test_sync_generator_no_annotation", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 151, - "End Line": 159 - }, - { - "Function Name": "test_post_method_sse", - "Structural Impact": 4.7, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 172, - "End Line": 180 - }, - { - "Function Name": "test_dict_items", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 162, - "End Line": 169 - }, - { - "Function Name": "test_sse_on_router_included_in_app", - "Structural Impact": 4.6, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 2, - "Input Parameters": 1, - "Control Flow Ratio": "28.6%", - "Start Line": 258, - "End Line": 265 - }, - { - "Function Name": "test_data_and_raw_data_mutually_exclusive", - "Structural Impact": 3.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 252, - "End Line": 255 - }, - { - "Function Name": "test_server_sent_event_null_id_rejected", - "Structural Impact": 3.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "66.7%", - "Start Line": 219, - "End Line": 221 - }, - { - "Function Name": "test_sse_events_with_fields", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 17, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 183, - "End Line": 199 - }, - { - "Function Name": "test_raw_data_sent_without_json_encoding", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 16, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 234, - "End Line": 249 - }, - { - "Function Name": "sse_items", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 30, - "End Line": 32 - }, - { - "Function Name": "sse_items_no_annotation", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 41, - "End Line": 43 - }, - { - "Function Name": "sse_items_dict", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 52, - "End Line": 54 - }, - { - "Function Name": "sse_items_post", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 78, - "End Line": 80 - }, - { - "Function Name": "client_fixture", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 103, - "End Line": 105 - }, - { - "Function Name": "test_server_sent_event_negative_retry_rejected", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 224, - "End Line": 226 - }, - { - "Function Name": "test_server_sent_event_float_retry_rejected", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 229, - "End Line": 231 - }, - { - "Function Name": "test_mixed_plain_and_sse_events", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 8, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 202, - "End Line": 209 - }, - { - "Function Name": "test_string_data_json_encoded", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 212, - "End Line": 216 - }, - { - "Function Name": "test_no_keepalive_when_fast", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 313, - "End Line": 318 - }, - { - "Function Name": "slow_async_stream", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 275, - "End Line": 280 - }, - { - "Function Name": "sse_items_event", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 62 - }, - { - "Function Name": "sse_items_mixed", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_openapi_schema", + "Structural Impact": 2.4, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 69 + "Start Line": 34, + "End Line": 60 }, { - "Function Name": "sse_items_raw", + "Function Name": "test_get_root", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 87 + "Start Line": 22, + "End Line": 25 }, { - "Function Name": "slow_sync_stream", + "Function Name": "test_get_root_no_token", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 284, - "End Line": 287 - }, - { - "Function Name": "sse_items_sync", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "sse_items_sync_no_annotation", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 47, - "End Line": 48 + "Start Line": 28, + "End Line": 31 }, { - "Function Name": "sse_items_string", + "Function Name": "get_root", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 74 - }, - { - "Function Name": "stream_events", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 94, - "End Line": 96 + "Start Line": 15, + "End Line": 16 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 34, - "Sequential Logic Declarations": 118, - "Function Parameters": 32, - "Function/Method Declarations": 32, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 59, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 20, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 44, + "Exposed API / Public Exports": 5, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 10, - "Unit Test Assertions": 84, - "Asynchronous/Concurrent Execution": 15, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 14, - "Generic Type Abstractions": 4, - "Collection Iterators / Comprehensions": 9, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 2, - "Module Dependencies (Imports)": 10, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -215444,16 +213771,16 @@ "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 2, + "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 152, + "Structural Space Indentations": 33, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -215461,24 +213788,24 @@ "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 1, + "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 24, - "Vectorized Math & Tensor Operations": 12, - "Core Var Decl": 50, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 7, "Design Camel Case": 0, - "Design Snake Case": 49, - "Design Pascal Case": 1, + "Design Snake Case": 7, + "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 32, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -215486,7 +213813,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 2, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -215502,40 +213829,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 10, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "asyncio", - "collections.abc", "fastapi", - "fastapi.responses", - "fastapi.routing", - "fastapi.sse", + "fastapi.security", "fastapi.testclient", - "pydantic", - "pytest", - "time" + "inline_snapshot" ] }, - "python/fastapi/tests/test_starlette_exception.py": { + "python/fastapi/tests/test_tuples.py": { "1. Artifact Identity": { - "Filename": "test_starlette_exception.py", - "Path": "python/fastapi/tests/test_starlette_exception.py", + "Filename": "test_tuples.py", + "Path": "python/fastapi/tests/test_tuples.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1773.64, - "Y": -138.55, - "Z": -12.85 + "X": 1819.97, + "Y": -172.79, + "Z": 482.6 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -215544,24 +213866,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 210, - "Coding LOC": 183, + "Total LOC": 277, + "Coding LOC": 246, "Documentation LOC": 0, - "Structural Magnitude": 47.76, - "Control Flow Ratio": "8.9%", + "Structural Magnitude": 46.82, + "Control Flow Ratio": "7.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.104 + "Raw Cognitive Density": 0.039 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.51%", + "Cognitive Load Exposure": "2.75%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.36%", - "Concurrency Exposure": "42.52%", + "API Exposure": "9.85%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -215573,123 +213895,113 @@ "5. Function Analysis": [ { "Function Name": "test_openapi_schema", - "Structural Impact": 8.5, - "Lines of Code (LOC)": 130, + "Structural Impact": 11.7, + "Lines of Code (LOC)": 193, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "5.9%", - "Start Line": 80, - "End Line": 209 + "Control Flow Ratio": "3.6%", + "Start Line": 84, + "End Line": 276 }, { - "Function Name": "read_item", - "Structural Impact": 3.2, + "Function Name": "test_model_with_tuple_invalid", + "Structural Impact": 3.4, "Lines of Code (LOC)": 8, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 12, - "End Line": 19 - }, - { - "Function Name": "read_starlette_item", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 33, - "End Line": 36 + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "40.0%", + "Start Line": 43, + "End Line": 50 }, { - "Function Name": "test_no_body_status_code_with_detail_exception_handlers", + "Function Name": "test_model_with_tuple_valid", "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 74, - "End Line": 77 + "Start Line": 36, + "End Line": 40 }, { - "Function Name": "test_get_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "post_model_with_tuple", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 45 + "Start Line": 19, + "End Line": 20 }, { - "Function Name": "test_get_item_not_found", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "post_tuple_of_models", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 52 + "Start Line": 24, + "End Line": 25 }, { - "Function Name": "test_get_starlette_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "hello", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 55, - "End Line": 58 + "Start Line": 29, + "End Line": 30 }, { - "Function Name": "test_get_starlette_item_not_found", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "test_tuple_with_model_invalid", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 65 + "Start Line": 60, + "End Line": 67 }, { - "Function Name": "test_no_body_status_code_exception_handlers", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_tuple_form_invalid", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 68, - "End Line": 71 + "Start Line": 76, + "End Line": 81 }, { - "Function Name": "no_body_status_code_exception", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_tuple_with_model_valid", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 53, + "End Line": 57 }, { - "Function Name": "no_body_status_code_with_detail_exception", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_tuple_form_valid", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 29 + "Start Line": 70, + "End Line": 73 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 5, - "Sequential Logic Declarations": 51, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 16, + "Sequential Logic Declarations": 61, + "Function Parameters": 10, + "Function/Method Declarations": 10, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 17, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -215697,13 +214009,13 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 23, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 21, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -215722,7 +214034,7 @@ "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 4, + "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, @@ -215732,7 +214044,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 161, + "Structural Space Indentations": 225, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -215748,16 +214060,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 13, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 18, "Design Camel Case": 0, - "Design Snake Case": 13, + "Design Snake Case": 18, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 11, + "Orphaned Logic": 10, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -215790,13 +214102,13 @@ "fastapi", "fastapi.testclient", "inline_snapshot", - "starlette.exceptions" + "pydantic" ] }, - "python/fastapi/tests/test_starlette_urlconvertors.py": { + "python/fastapi/tests/test_typing_python39.py": { "1. Artifact Identity": { - "Filename": "test_starlette_urlconvertors.py", - "Path": "python/fastapi/tests/test_starlette_urlconvertors.py", + "Filename": "test_typing_python39.py", + "Path": "python/fastapi/tests/test_typing_python39.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -215806,9 +214118,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4231.44, - "Y": 126.72, - "Z": -601.88 + "X": 1683.67, + "Y": -181.89, + "Z": 1766.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -215817,23 +214129,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 64, - "Coding LOC": 38, - "Documentation LOC": 4, - "Structural Magnitude": 25.96, - "Control Flow Ratio": "0.0%", + "Total LOC": 25, + "Coding LOC": 19, + "Documentation LOC": 0, + "Structural Magnitude": 7.78, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.053 + "Raw Cognitive Density": 0.158 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.89%", + "Cognitive Load Exposure": "4.28%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "12.64%", + "API Exposure": "8.51%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -215845,122 +214157,52 @@ }, "5. Function Analysis": [ { - "Function Name": "int_convertor", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", + "Function Name": "test_typing", + "Structural Impact": 2.9, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", "Start Line": 8, - "End Line": 9 - }, - { - "Function Name": "float_convertor", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 - }, - { - "Function Name": "path_convertor", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "End Line": 24 }, { - "Function Name": "query_convertor", + "Function Name": "post_endpoint", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - }, - { - "Function Name": "test_route_converters_int", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 35 - }, - { - "Function Name": "test_route_converters_float", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 38, - "End Line": 43 - }, - { - "Function Name": "test_route_converters_path", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 46, - "End Line": 50 - }, - { - "Function Name": "test_route_converters_query", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 57 - }, - { - "Function Name": "test_url_path_for_path_convertor", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 63 + "Start Line": 19, + "End Line": 20 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 28, - "Function Parameters": 9, - "Function/Method Declarations": 9, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 11, + "Function Parameters": 2, + "Function/Method Declarations": 2, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 11, + "Defensive Programming Constructs": 2, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 13, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 16, + "Unit Test Assertions": 3, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 2, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 3, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -215985,7 +214227,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 21, + "Structural Space Indentations": 14, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216001,16 +214243,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 13, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 13, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 6, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -216018,7 +214260,7 @@ "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 1, + "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, @@ -216034,20 +214276,21 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 3, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + ".utils", "fastapi", "fastapi.testclient" ] }, - "python/fastapi/tests/test_stream_bare_type.py": { + "python/fastapi/tests/test_union_body.py": { "1. Artifact Identity": { - "Filename": "test_stream_bare_type.py", - "Path": "python/fastapi/tests/test_stream_bare_type.py", + "Filename": "test_union_body.py", + "Path": "python/fastapi/tests/test_union_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -216058,9 +214301,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3177.1, - "Y": -13.47, - "Z": 1664.83 + "X": 2548.89, + "Y": -95.48, + "Z": -1709.53 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216069,24 +214312,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 43, - "Coding LOC": 27, + "Total LOC": 135, + "Coding LOC": 119, "Documentation LOC": 0, - "Structural Magnitude": 17.34, - "Control Flow Ratio": "8.3%", + "Structural Magnitude": 19.18, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.481 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "12.73%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.99%", - "Concurrency Exposure": "94.13%", + "API Exposure": "8.47%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216097,54 +214340,54 @@ }, "5. Function Analysis": [ { - "Function Name": "test_stream_bare_async_iterable", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 29, - "End Line": 34 - }, - { - "Function Name": "test_stream_bare_sync_iterable", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, + "Function Name": "test_openapi_schema", + "Structural Impact": 5.9, + "Lines of Code (LOC)": 98, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", + "Control Flow Ratio": "0.0%", "Start Line": 37, - "End Line": 42 + "End Line": 134 }, { - "Function Name": "stream_bare_async", - "Structural Impact": 1.1, + "Function Name": "save_union_body", + "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 18, + "End Line": 19 + }, + { + "Function Name": "test_post_other_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "stream_bare_sync", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "test_post_item", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 22, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 37, "Function Parameters": 4, "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 8, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 9, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, @@ -216152,17 +214395,17 @@ "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, - "Collection Iterators / Comprehensions": 2, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -216187,7 +214430,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 13, + "Structural Space Indentations": 106, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216202,12 +214445,12 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 2, + "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 6, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, @@ -216236,7 +214479,7 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 @@ -216244,27 +214487,27 @@ "9. Extracted Dependencies": [ "fastapi", "fastapi.testclient", - "json", - "pydantic", - "typing" + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_stream_cancellation.py": { + "python/fastapi/tests/test_union_body_discriminator.py": { "1. Artifact Identity": { - "Filename": "test_stream_cancellation.py", - "Path": "python/fastapi/tests/test_stream_cancellation.py", + "Filename": "test_union_body_discriminator.py", + "Path": "python/fastapi/tests/test_union_body_discriminator.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3903.53, - "Y": 63.01, - "Z": 41.62 + "X": 4196.4, + "Y": 162.99, + "Z": -1069.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216273,24 +214516,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 89, - "Coding LOC": 50, - "Documentation LOC": 16, - "Structural Magnitude": 49.0, - "Control Flow Ratio": "15.6%", + "Total LOC": 205, + "Coding LOC": 187, + "Documentation LOC": 6, + "Structural Magnitude": 21.44, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.22 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "21.69%", - "Error & Exception Exposure": "39.98%", + "Cognitive Load Exposure": "0.0%", + "Error & Exception Exposure": "36.67%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.1%", - "Concurrency Exposure": "100.0%", + "API Exposure": "6.73%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216301,108 +214544,58 @@ }, "5. Function Analysis": [ { - "Function Name": "_run_asgi_and_cancel", - "Structural Impact": 9.7, - "Lines of Code (LOC)": 34, - "Control Flow Branches": 3, - "Input Parameters": 3, - "Control Flow Ratio": "21.4%", - "Start Line": 41, - "End Line": 74 - }, - { - "Function Name": "send", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 1, - "Control Flow Ratio": "33.3%", - "Start Line": 53, - "End Line": 55 - }, - { - "Function Name": "stream_raw", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 24, - "End Line": 29 - }, - { - "Function Name": "stream_jsonl", - "Structural Impact": 2.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 33, - "End Line": 38 - }, - { - "Function Name": "test_raw_stream_cancellation", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 77, - "End Line": 82 - }, - { - "Function Name": "receive", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_discriminator_pydantic_v2", + "Structural Impact": 10.8, + "Lines of Code (LOC)": 195, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 + "Start Line": 10, + "End Line": 204 }, { - "Function Name": "test_jsonl_stream_cancellation", - "Structural Impact": 1.2, + "Function Name": "save_union_body_discriminator", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 85, - "End Line": 88 + "Start Line": 29, + "End Line": 32 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 27, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 1, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 47, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 12, + "Type/Safety Bypasses": 2, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 8, - "State Mutations / Variable Reassignments": 3, + "Exposed API / Public Exports": 5, + "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 12, - "Unit Test Assertions": 8, - "Asynchronous/Concurrent Execution": 16, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 7, + "Decorators and Annotations": 1, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 2, + "Event Publishers / Emitters": 0, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -216410,18 +214603,18 @@ "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 1, + "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 3, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 35, + "Structural Space Indentations": 180, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216436,17 +214629,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 2, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 8, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 8, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 2, + "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -216470,23 +214663,24 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 6, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "anyio", - "collections.abc", + "dirty_equals", "fastapi", - "fastapi.responses", - "pytest" + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_stream_json_validation_error.py": { + "python/fastapi/tests/test_union_body_discriminator_annotated.py": { "1. Artifact Identity": { - "Filename": "test_stream_json_validation_error.py", - "Path": "python/fastapi/tests/test_stream_json_validation_error.py", + "Filename": "test_union_body_discriminator_annotated.py", + "Path": "python/fastapi/tests/test_union_body_discriminator_annotated.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -216497,9 +214691,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4002.73, - "Y": 155.32, - "Z": 1767.09 + "X": 1567.53, + "Y": -211.05, + "Z": -329.6 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216508,24 +214702,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 41, - "Coding LOC": 25, - "Documentation LOC": 0, - "Structural Magnitude": 14.9, - "Control Flow Ratio": "11.1%", + "Total LOC": 204, + "Coding LOC": 184, + "Documentation LOC": 1, + "Structural Magnitude": 35.78, + "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.28 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.62%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.13%", - "Concurrency Exposure": "44.03%", + "API Exposure": "9.34%", + "Concurrency Exposure": "25.46%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216536,72 +214730,102 @@ }, "5. Function Analysis": [ { - "Function Name": "test_stream_json_validation_error_async", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 33, - "End Line": 35 - }, - { - "Function Name": "test_stream_json_validation_error_sync", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 38, - "End Line": 40 + "Function Name": "test_openapi_schema", + "Structural Impact": 8.6, + "Lines of Code (LOC)": 144, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 60, + "End Line": 203 }, { - "Function Name": "stream_items_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "client_fixture", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 21 + "Start Line": 13, + "End Line": 45 }, { - "Function Name": "stream_items_invalid_sync", - "Structural Impact": 1.1, + "Function Name": "get_pet_type", + "Structural Impact": 1.6, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", "Start Line": 25, "End Line": 27 + }, + { + "Function Name": "test_union_body_discriminator_assignment", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 51 + }, + { + "Function Name": "test_union_body_discriminator_annotated", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 54, + "End Line": 57 + }, + { + "Function Name": "create_pet_assignment", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 37, + "End Line": 38 + }, + { + "Function Name": "create_pet_annotated", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 42 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 16, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 2, + "Control Flow Branches": 0, + "Sequential Logic Declarations": 52, + "Function Parameters": 7, + "Function/Method Declarations": 7, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, + "Exposed API / Public Exports": 11, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 2, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 4, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 6, + "Module Dependencies (Imports)": 8, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -216626,7 +214850,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 10, + "Structural Space Indentations": 173, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216641,17 +214865,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 4, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 2, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 9, "Design Camel Case": 0, - "Design Snake Case": 2, - "Design Pascal Case": 0, + "Design Snake Case": 7, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -216681,30 +214905,31 @@ "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "collections.abc", "fastapi", - "fastapi.exceptions", "fastapi.testclient", + "inline_snapshot", "pydantic", - "pytest" + "pytest", + "typing" ] }, - "python/fastapi/tests/test_strict_content_type_app_level.py": { + "python/fastapi/tests/test_union_forms.py": { "1. Artifact Identity": { - "Filename": "test_strict_content_type_app_level.py", - "Path": "python/fastapi/tests/test_strict_content_type_app_level.py", + "Filename": "test_union_forms.py", + "Path": "python/fastapi/tests/test_union_forms.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 3602.72, - "Y": 96.75, - "Z": 1746.2 + "X": 1339.2, + "Y": -229.48, + "Z": 264.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216713,24 +214938,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 45, - "Coding LOC": 27, + "Total LOC": 164, + "Coding LOC": 143, "Documentation LOC": 0, - "Structural Magnitude": 16.24, + "Structural Magnitude": 24.66, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.296 + "Raw Cognitive Density": 0.0 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "7.0%", + "Cognitive Load Exposure": "0.0%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.16%", - "Concurrency Exposure": "77.5%", + "API Exposure": "9.02%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216741,92 +214966,92 @@ }, "5. Function Analysis": [ { - "Function Name": "app_default_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 102, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 + "Start Line": 62, + "End Line": 163 }, { - "Function Name": "app_lax_post", + "Function Name": "post_union_form", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_default_strict_accepts_json_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_post_user_form", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", "Start Line": 29, - "End Line": 32 + "End Line": 36 }, { - "Function Name": "test_lax_accepts_no_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_post_company_form", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 39, + "End Line": 46 }, { - "Function Name": "test_lax_accepts_json_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_invalid_form_data", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 44 + "Start Line": 49, + "End Line": 54 }, { - "Function Name": "test_default_strict_rejects_no_content_type", + "Function Name": "test_empty_form", "Structural Impact": 1.1, "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 26 + "Start Line": 57, + "End Line": 59 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 19, + "Sequential Logic Declarations": 44, "Function Parameters": 6, "Function/Method Declarations": 6, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 11, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 6, + "Exposed API / Public Exports": 9, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 11, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 13, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -216851,7 +215076,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 13, + "Structural Space Indentations": 127, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -216867,10 +215092,10 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 8, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 10, "Design Camel Case": 0, - "Design Snake Case": 8, + "Design Snake Case": 10, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, @@ -216900,32 +215125,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_strict_content_type_nested.py": { + "python/fastapi/tests/test_union_inherited_body.py": { "1. Artifact Identity": { - "Filename": "test_strict_content_type_nested.py", - "Path": "python/fastapi/tests/test_strict_content_type_nested.py", + "Filename": "test_union_inherited_body.py", + "Path": "python/fastapi/tests/test_union_inherited_body.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel, Item", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2397.73, - "Y": -64.45, - "Z": 1429.05 + "X": 4497.43, + "Y": 200.81, + "Z": -485.54 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -216934,10 +215163,10 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 92, - "Coding LOC": 54, - "Documentation LOC": 2, - "Structural Magnitude": 32.08, + "Total LOC": 143, + "Coding LOC": 127, + "Documentation LOC": 0, + "Structural Magnitude": 19.74, "Control Flow Ratio": "0.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, @@ -216950,8 +215179,8 @@ "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.32%", - "Concurrency Exposure": "90.12%", + "API Exposure": "8.37%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -216962,17 +215191,17 @@ }, "5. Function Analysis": [ { - "Function Name": "inner_strict_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "test_openapi_schema", + "Structural Impact": 6.3, + "Lines of Code (LOC)": 106, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 14 + "Start Line": 37, + "End Line": 142 }, { - "Function Name": "inner_default_post", + "Function Name": "save_union_different_body", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, @@ -216982,132 +215211,52 @@ "End Line": 19 }, { - "Function Name": "mixed_outer_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 - }, - { - "Function Name": "mixed_inner_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 64 - }, - { - "Function Name": "test_default_inner_inherits_lax_from_app", + "Function Name": "test_post_extended_item", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 37 + "Start Line": 25, + "End Line": 28 }, { - "Function Name": "test_lax_outer_on_strict_app_accepts_no_content_type", + "Function Name": "test_post_item", "Structural Impact": 1.2, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 73, - "End Line": 76 - }, - { - "Function Name": "test_strict_inner_on_lax_app_rejects_no_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 31 - }, - { - "Function Name": "test_strict_inner_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 42 - }, - { - "Function Name": "test_default_inner_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 45, - "End Line": 47 - }, - { - "Function Name": "test_strict_inner_on_lax_outer_rejects_no_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 79, - "End Line": 81 - }, - { - "Function Name": "test_lax_outer_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 84, - "End Line": 86 - }, - { - "Function Name": "test_strict_inner_on_lax_outer_accepts_json_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 89, - "End Line": 91 + "Start Line": 31, + "End Line": 34 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { "Control Flow Branches": 0, - "Sequential Logic Declarations": 30, - "Function Parameters": 12, - "Function/Method Declarations": 12, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 10, + "Sequential Logic Declarations": 39, + "Function Parameters": 4, + "Function/Method Declarations": 4, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 8, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 12, + "Exposed API / Public Exports": 7, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 18, - "Asynchronous/Concurrent Execution": 4, + "Unit Test Assertions": 9, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 4, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -217132,7 +215281,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 22, + "Structural Space Indentations": 114, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217148,16 +215297,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 4, - "Core Var Decl": 17, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 17, - "Design Pascal Case": 0, + "Design Snake Case": 5, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 12, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -217181,32 +215330,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "inline_snapshot", + "pydantic" ] }, - "python/fastapi/tests/test_strict_content_type_router_level.py": { + "python/fastapi/tests/test_validate_response.py": { "1. Artifact Identity": { - "Filename": "test_strict_content_type_router_level.py", - "Path": "python/fastapi/tests/test_strict_content_type_router_level.py", + "Filename": "test_validate_response.py", + "Path": "python/fastapi/tests/test_validate_response.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1607.42, - "Y": -232.62, - "Z": -1152.09 + "X": 1932.68, + "Y": -160.32, + "Z": -1052.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217215,24 +215367,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 62, - "Coding LOC": 38, + "Total LOC": 83, + "Coding LOC": 55, "Documentation LOC": 0, - "Structural Magnitude": 23.96, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 38.0, + "Control Flow Ratio": "16.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.289 + "Raw Cognitive Density": 0.145 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.84%", + "Cognitive Load Exposure": "4.09%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "11.12%", - "Concurrency Exposure": "87.76%", + "API Exposure": "13.05%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -217243,122 +215395,142 @@ }, "5. Function Analysis": [ { - "Function Name": "router_lax_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, + "Function Name": "get_valid_none", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 + "Control Flow Ratio": "40.0%", + "Start Line": 27, + "End Line": 31 }, { - "Function Name": "router_strict_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Function Name": "test_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 51, + "End Line": 53 }, { - "Function Name": "router_default_post", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Function Name": "test_invalid_none", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 56, + "End Line": 58 }, { - "Function Name": "test_lax_router_on_strict_app_accepts_no_content_type", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "test_double_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 75, + "End Line": 77 + }, + { + "Function Name": "test_invalid_list", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 80, + "End Line": 82 + }, + { + "Function Name": "get_invalidlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 33, - "End Line": 36 + "Start Line": 40, + "End Line": 45 }, { - "Function Name": "test_strict_router_on_strict_app_rejects_no_content_type", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_valid_none_data", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 41 + "Start Line": 61, + "End Line": 65 }, { - "Function Name": "test_default_router_inherits_strict_from_app", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "test_valid_none_none", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 46 + "Start Line": 68, + "End Line": 72 }, { - "Function Name": "test_lax_router_accepts_json_content_type", + "Function Name": "get_invalid", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 51 + "Start Line": 17, + "End Line": 18 }, { - "Function Name": "test_strict_router_accepts_json_content_type", + "Function Name": "get_invalid_none", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 56 + "Start Line": 22, + "End Line": 23 }, { - "Function Name": "test_default_router_accepts_json_content_type", + "Function Name": "get_innerinvalid", "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 59, - "End Line": 61 + "Start Line": 35, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 23, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, + "Control Flow Branches": 6, + "Sequential Logic Declarations": 31, + "Function Parameters": 11, + "Function/Method Declarations": 11, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 6, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 17, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 3, + "Unit Test Assertions": 15, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 5, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -217383,7 +215555,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, + "Structural Space Indentations": 31, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217399,16 +215571,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 11, + "Vectorized Math & Tensor Operations": 2, + "Core Var Decl": 14, "Design Camel Case": 0, - "Design Snake Case": 11, - "Design Pascal Case": 0, + "Design Snake Case": 12, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 9, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -217432,20 +215604,23 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.testclient" + "fastapi.exceptions", + "fastapi.testclient", + "pydantic", + "pytest" ] }, - "python/fastapi/tests/test_stringified_annotation_dependency.py": { + "python/fastapi/tests/test_validate_response_dataclass.py": { "1. Artifact Identity": { - "Filename": "test_stringified_annotation_dependency.py", - "Path": "python/fastapi/tests/test_stringified_annotation_dependency.py", + "Filename": "test_validate_response_dataclass.py", + "Path": "python/fastapi/tests/test_validate_response_dataclass.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -217455,9 +215630,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2703.35, - "Y": -3.31, - "Z": 1501.72 + "X": 3408.88, + "Y": 2.11, + "Z": 1441.99 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217466,24 +215641,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 80, - "Coding LOC": 61, + "Total LOC": 52, + "Coding LOC": 34, "Documentation LOC": 0, - "Structural Magnitude": 27.92, - "Control Flow Ratio": "3.0%", + "Structural Magnitude": 20.48, + "Control Flow Ratio": "13.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.344 + "Raw Cognitive Density": 0.147 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "8.24%", - "Error & Exception Exposure": "33.59%", + "Cognitive Load Exposure": "4.11%", + "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.43%", - "Concurrency Exposure": "97.68%", + "API Exposure": "12.08%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -217494,109 +215669,99 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 31, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 79 + "Function Name": "test_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 39, + "End Line": 41 }, { - "Function Name": "test_get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 43, + "Function Name": "test_double_invalid", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 44, "End Line": 46 }, { - "Function Name": "get_people", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Function Name": "test_invalid_list", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 49, + "End Line": 51 }, { - "Function Name": "close", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get_invalidlist", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 28, + "End Line": 33 }, { - "Function Name": "get_people", - "Structural Impact": 1.5, + "Function Name": "get_invalid", + "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 1, - "Control Flow Ratio": "0.0%", - "Start Line": 36, - "End Line": 37 - }, - { - "Function Name": "client_fixture", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 32, - "End Line": 40 + "Start Line": 18, + "End Line": 19 }, { - "Function Name": "get_client", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "get_innerinvalid", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 23, + "End Line": 24 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 32, - "Function Parameters": 7, - "Function/Method Declarations": 7, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 19, + "Function Parameters": 6, + "Function/Method Declarations": 6, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, + "Defensive Programming Constructs": 2, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, + "Exposed API / Public Exports": 10, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 6, + "Unit Test Assertions": 7, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 5, + "Decorators and Annotations": 4, + "Generic Type Abstractions": 2, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, + "Module Dependencies (Imports)": 5, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -217609,12 +215774,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 2, - "Private / Encapsulated Scopes": 1, + "Resource Deallocation & Cleanup": 0, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 47, + "Structural Space Indentations": 16, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217629,17 +215794,17 @@ "Local Inference & Tensor Math": 0, "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 3, + "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 6, + "Core Var Decl": 7, "Design Camel Case": 0, "Design Snake Case": 5, - "Design Pascal Case": 1, + "Design Pascal Case": 2, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -217663,37 +215828,36 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, + "Direct Upstream (Fragility)": 5, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "__future__", - "collections.abc", "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "inline_snapshot", - "pytest", - "typing" + "pydantic.dataclasses", + "pytest" ] }, - "python/fastapi/tests/test_stringified_annotation_dependency_py314.py": { + "python/fastapi/tests/test_validation_error_context.py": { "1. Artifact Identity": { - "Filename": "test_stringified_annotation_dependency_py314.py", - "Path": "python/fastapi/tests/test_stringified_annotation_dependency_py314.py", + "Filename": "test_validation_error_context.py", + "Path": "python/fastapi/tests/test_validation_error_context.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 843.17, - "Y": -294.47, - "Z": -608.96 + "X": 3057.56, + "Y": -46.26, + "Z": -990.18 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217702,24 +215866,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 31, - "Coding LOC": 19, - "Documentation LOC": 1, - "Structural Magnitude": 11.98, - "Control Flow Ratio": "6.2%", + "Total LOC": 169, + "Coding LOC": 123, + "Documentation LOC": 0, + "Structural Magnitude": 69.56, + "Control Flow Ratio": "9.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.474 + "Raw Cognitive Density": 0.515 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "12.44%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "14.06%", + "Error & Exception Exposure": "12.22%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "10.34%", - "Concurrency Exposure": "85.77%", + "API Exposure": "11.29%", + "Concurrency Exposure": "98.38%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -217730,58 +215894,198 @@ }, "5. Function Analysis": [ { - "Function Name": "test_stringified_annotation", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 17, + "Function Name": "test_websocket_validation_error_includes_endpoint_context", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 113, + "End Line": 124 + }, + { + "Function Name": "test_subapp_websocket_validation_error_includes_endpoint_context", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 140, + "End Line": 151 + }, + { + "Function Name": "test_request_validation_error_includes_endpoint_context", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 87, + "End Line": 97 + }, + { + "Function Name": "test_response_validation_error_includes_endpoint_context", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 100, + "End Line": 110 + }, + { + "Function Name": "test_subapp_request_validation_error_includes_endpoint_context", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "16.7%", + "Start Line": 127, + "End Line": 137 + }, + { + "Function Name": "websocket_validation_handler", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 48, + "End Line": 52 + }, + { + "Function Name": "capture", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 20, + "End Line": 22 + }, + { + "Function Name": "request_validation_handler", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 34, + "End Line": 36 + }, + { + "Function Name": "response_validation_handler", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 41, + "End Line": 43 + }, + { + "Function Name": "websocket_endpoint", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 71, + "End Line": 74 + }, + { + "Function Name": "subapp_websocket_endpoint", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 78, + "End Line": 81 + }, + { + "Function Name": "__init__", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 17, + "End Line": 18 + }, + { + "Function Name": "get_user", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 56, + "End Line": 57 + }, + { + "Function Name": "test_validation_error_with_no_context", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 14, - "End Line": 30 + "Start Line": 162, + "End Line": 168 }, { - "Function Name": "get", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "test_validation_error_with_only_path", + "Structural Impact": 1.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 27 + "Start Line": 154, + "End Line": 159 }, { - "Function Name": "get_current_user", + "Function Name": "get_item", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 61, + "End Line": 62 + }, + { + "Function Name": "get_sub_item", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 66, + "End Line": 67 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 15, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 7, + "Sequential Logic Declarations": 66, + "Function Parameters": 17, + "Function/Method Declarations": 17, + "Class/Entity Declarations": 2, + "Defensive Programming Constructs": 34, + "Type/Safety Bypasses": 13, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 20, + "State Mutations / Variable Reassignments": 2, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 2, + "Unit Test Assertions": 27, + "Asynchronous/Concurrent Execution": 11, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 2, + "Decorators and Annotations": 11, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -217792,25 +216096,25 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Explicit Type Casts": 7, + "Fatal Aborts & Exceptions": 3, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Resource Deallocation & Cleanup": 2, + "Private / Encapsulated Scopes": 1, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 12, + "Structural Space Indentations": 84, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -217826,23 +216130,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 3, + "Vectorized Math & Tensor Operations": 8, + "Core Var Decl": 17, "Design Camel Case": 0, - "Design Snake Case": 3, + "Design Snake Case": 17, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 11, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 2, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -217859,23 +216163,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", - "__future__", "fastapi", + "fastapi.exceptions", "fastapi.testclient", - "typing" + "pydantic" ] }, - "python/fastapi/tests/test_stringified_annotations_simple.py": { + "python/fastapi/tests/test_vibe.py": { "1. Artifact Identity": { - "Filename": "test_stringified_annotations_simple.py", - "Path": "python/fastapi/tests/test_stringified_annotations_simple.py", + "Filename": "test_vibe.py", + "Path": "python/fastapi/tests/test_vibe.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -217885,9 +216188,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 639.46, - "Y": -297.73, - "Z": -311.76 + "X": 837.32, + "Y": -232.84, + "Z": 800.23 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -217896,27 +216199,27 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 28, - "Coding LOC": 17, + "Total LOC": 18, + "Coding LOC": 13, "Documentation LOC": 0, - "Structural Magnitude": 9.24, - "Control Flow Ratio": "0.0%", + "Structural Magnitude": 8.26, + "Control Flow Ratio": "14.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.412 + "Raw Cognitive Density": 0.385 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "10.27%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "80.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "6.37%", - "Concurrency Exposure": "0.0%", + "API Exposure": "7.46%", + "Concurrency Exposure": "56.59%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", + "Specification Exposure": "86.67%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", "Documentation Exposure": "0.0%", @@ -217924,69 +216227,59 @@ }, "5. Function Analysis": [ { - "Function Name": "__call__", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 2, - "Control Flow Ratio": "0.0%", - "Start Line": 12, - "End Line": 13 - }, - { - "Function Name": "test_stringified_annotations", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, + "Function Name": "test_vibe_raises", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 27 + "Control Flow Ratio": "28.6%", + "Start Line": 8, + "End Line": 17 }, { - "Function Name": "call", + "Function Name": "ai_vibes", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 + "Start Line": 16, + "End Line": 17 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 17, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 1, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 12, + "Function Parameters": 2, + "Function/Method Declarations": 2, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, + "Type/Safety Bypasses": 3, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 2, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 3, + "Asynchronous/Concurrent Execution": 1, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 1, - "Module Dependencies (Imports)": 5, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -218000,11 +216293,11 @@ "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 2, + "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 9, + "Structural Space Indentations": 8, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218029,7 +216322,7 @@ "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -218053,35 +216346,35 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", - "__future__", "fastapi", - "fastapi.testclient", + "fastapi.exceptions", + "pytest", "typing" ] }, - "python/fastapi/tests/test_swagger_ui_escape.py": { + "python/fastapi/tests/test_webhooks_security.py": { "1. Artifact Identity": { - "Filename": "test_swagger_ui_escape.py", - "Path": "python/fastapi/tests/test_swagger_ui_escape.py", + "Filename": "test_webhooks_security.py", + "Path": "python/fastapi/tests/test_webhooks_security.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", + "Parent Entity": "BaseModel", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 901.26, - "Y": -311.24, - "Z": -921.66 + "X": 2838.89, + "Y": -59.72, + "Z": -1958.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218090,23 +216383,23 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 38, - "Coding LOC": 30, - "Documentation LOC": 0, - "Structural Magnitude": 8.1, - "Control Flow Ratio": "0.0%", + "Total LOC": 135, + "Coding LOC": 116, + "Documentation LOC": 5, + "Structural Magnitude": 17.12, + "Control Flow Ratio": "5.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.067 + "Raw Cognitive Density": 0.034 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.05%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "2.31%", + "Error & Exception Exposure": "44.19%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "7.57%", + "API Exposure": "6.55%", "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", @@ -218118,68 +216411,68 @@ }, "5. Function Analysis": [ { - "Function Name": "test_init_oauth_html_chars_are_escaped", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 11, - "Control Flow Branches": 0, + "Function Name": "test_openapi_schema", + "Structural Impact": 7.8, + "Lines of Code (LOC)": 96, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 4, - "End Line": 14 + "Control Flow Ratio": "9.5%", + "Start Line": 39, + "End Line": 134 }, { - "Function Name": "test_normal_init_oauth_still_works", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 10, + "Function Name": "new_subscription", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 37 + "Start Line": 22, + "End Line": 24 }, { - "Function Name": "test_swagger_ui_parameters_html_chars_are_escaped", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 9, + "Function Name": "test_dummy_webhook", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 3, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 25 + "Start Line": 34, + "End Line": 36 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 12, + "Control Flow Branches": 2, + "Sequential Logic Declarations": 36, "Function Parameters": 3, "Function/Method Declarations": 3, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 7, - "Type/Safety Bypasses": 0, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 4, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, + "Exposed API / Public Exports": 4, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 10, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 4, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 0, + "Decorators and Annotations": 1, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 1, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 1, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 1, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, @@ -218198,7 +216491,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, + "Structural Space Indentations": 100, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218214,21 +216507,21 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 17, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 17, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 2, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 5, + "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, @@ -218247,19 +216540,25 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 1, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi.openapi.docs" + "datetime", + "fastapi", + "fastapi.security", + "fastapi.testclient", + "inline_snapshot", + "pydantic", + "typing" ] }, - "python/fastapi/tests/test_swagger_ui_init_oauth.py": { + "python/fastapi/tests/test_wrapped_method_forward_reference.py": { "1. Artifact Identity": { - "Filename": "test_swagger_ui_init_oauth.py", - "Path": "python/fastapi/tests/test_swagger_ui_init_oauth.py", + "Filename": "test_wrapped_method_forward_reference.py", + "Path": "python/fastapi/tests/test_wrapped_method_forward_reference.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -218269,9 +216568,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 2390.15, - "Y": -97.58, - "Z": 2031.82 + "X": 1355.55, + "Y": -258.26, + "Z": 1417.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218280,24 +216579,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 29, + "Total LOC": 32, "Coding LOC": 18, - "Documentation LOC": 0, - "Structural Magnitude": 8.96, - "Control Flow Ratio": "0.0%", + "Documentation LOC": 6, + "Structural Magnitude": 9.66, + "Control Flow Ratio": "7.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.278 + "Raw Cognitive Density": 0.167 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "6.57%", + "Cognitive Load Exposure": "2.21%", "Error & Exception Exposure": "0.0%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.46%", - "Concurrency Exposure": "50.51%", + "API Exposure": "7.93%", + "Concurrency Exposure": "0.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -218308,53 +216607,53 @@ }, "5. Function Analysis": [ { - "Function Name": "test_swagger_ui", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, - "Control Flow Branches": 0, + "Function Name": "test_wrapped_method_type_inference", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", + "Control Flow Ratio": "33.3%", "Start Line": 17, - "End Line": 23 + "End Line": 31 }, { - "Function Name": "read_items", - "Structural Impact": 1.1, + "Function Name": "method", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 11 + "Start Line": 11, + "End Line": 12 }, { - "Function Name": "test_response", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "passthrough", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 26, - "End Line": 28 + "Start Line": 9, + "End Line": 14 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Sequential Logic Declarations": 13, "Function Parameters": 3, "Function/Method Declarations": 3, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 5, + "Defensive Programming Constructs": 1, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, + "Exposed API / Public Exports": 3, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 1, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 2, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, @@ -218363,7 +216662,7 @@ "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, + "Module Dependencies (Imports)": 4, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -218376,7 +216675,7 @@ "Manual Memory Allocation": 0, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 1, + "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, "Fatal Aborts & Exceptions": 0, "Thread Sleeps & Blocking Waits": 0, @@ -218388,7 +216687,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 9, + "Structural Space Indentations": 12, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218404,16 +216703,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 4, "Design Camel Case": 0, - "Design Snake Case": 5, + "Design Snake Case": 4, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 3, + "Orphaned Logic": 1, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -218437,20 +216736,22 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 2, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ + ".forward_reference_type", "fastapi", - "fastapi.testclient" + "fastapi.testclient", + "functools" ] }, - "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py": { + "python/fastapi/tests/test_ws_dependencies.py": { "1. Artifact Identity": { - "Filename": "test_top_level_security_scheme_in_openapi.py", - "Path": "python/fastapi/tests/test_top_level_security_scheme_in_openapi.py", + "Filename": "test_ws_dependencies.py", + "Path": "python/fastapi/tests/test_ws_dependencies.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", @@ -218460,9 +216761,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 4886.95, - "Y": 217.81, - "Z": 231.94 + "X": 1612.06, + "Y": -200.0, + "Z": 36.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218471,24 +216772,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 61, - "Coding LOC": 45, - "Documentation LOC": 3, - "Structural Magnitude": 12.8, - "Control Flow Ratio": "0.0%", + "Total LOC": 73, + "Coding LOC": 48, + "Documentation LOC": 0, + "Structural Magnitude": 39.56, + "Control Flow Ratio": "8.3%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.111 + "Raw Cognitive Density": 0.896 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "3.6%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "32.09%", + "Error & Exception Exposure": "36.14%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "8.68%", - "Concurrency Exposure": "33.24%", + "API Exposure": "10.7%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -218499,68 +216800,118 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 2.4, - "Lines of Code (LOC)": 27, - "Control Flow Branches": 0, + "Function Name": "test_index", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 54, + "End Line": 58 + }, + { + "Function Name": "test_routerindex", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 61, + "End Line": 65 + }, + { + "Function Name": "test_routerprefixindex", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 68, + "End Line": 72 + }, + { + "Function Name": "index", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 60 + "Start Line": 28, + "End Line": 31 }, { - "Function Name": "test_get_root", - "Structural Impact": 1.2, + "Function Name": "routerindex", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 25 + "Start Line": 35, + "End Line": 38 }, { - "Function Name": "test_get_root_no_token", - "Structural Impact": 1.2, + "Function Name": "routerprefixindex", + "Structural Impact": 1.9, "Lines of Code (LOC)": 4, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 31 + "Start Line": 42, + "End Line": 45 }, { - "Function Name": "get_root", + "Function Name": "create_dependency", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 15, + "End Line": 19 + }, + { + "Function Name": "fun", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 16, + "End Line": 17 + }, + { + "Function Name": "dependency_list", "Structural Impact": 1.1, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 16 + "Start Line": 8, + "End Line": 9 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 20, - "Function Parameters": 4, - "Function/Method Declarations": 4, + "Control Flow Branches": 3, + "Sequential Logic Declarations": 33, + "Function Parameters": 9, + "Function/Method Declarations": 9, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 6, + "Defensive Programming Constructs": 3, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 9, + "State Mutations / Variable Reassignments": 1, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 1, + "Unit Test Assertions": 6, + "Asynchronous/Concurrent Execution": 12, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, + "Decorators and Annotations": 3, + "Generic Type Abstractions": 3, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, @@ -218571,7 +216922,7 @@ "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 2, + "Dependency Injection Constructs": 3, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, "Manual Memory Allocation": 0, @@ -218584,12 +216935,12 @@ "Bitwise Operations": 0, "Thread Synchronization Locks": 0, "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Resource Deallocation & Cleanup": 3, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 33, + "Structural Space Indentations": 26, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218605,23 +216956,23 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 7, + "Vectorized Math & Tensor Operations": 3, + "Core Var Decl": 15, "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 0, + "Design Snake Case": 14, + "Design Pascal Case": 1, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 3, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, "Hyperlinked Literature References": 0, "High-Entropy / Obfuscated Logic": 0, "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, + "External Network & I/O Hooks": 3, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, "Commented-Out Executable Logic": 0, @@ -218645,28 +216996,28 @@ }, "9. Extracted Dependencies": [ "fastapi", - "fastapi.security", "fastapi.testclient", - "inline_snapshot" + "json", + "typing" ] }, - "python/fastapi/tests/test_tuples.py": { + "python/fastapi/tests/test_ws_router.py": { "1. Artifact Identity": { - "Filename": "test_tuples.py", - "Path": "python/fastapi/tests/test_tuples.py", + "Filename": "test_ws_router.py", + "Path": "python/fastapi/tests/test_ws_router.py", "Language": "Python", "Architect": "Unknown Architect", "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Parent Entity": "Exception", "Doc Umbrella": 0.0, "Folder Dominant Lang": "python", "Lock Tier": 2, "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 1819.97, - "Y": -172.79, - "Z": 482.6 + "X": 2672.34, + "Y": -89.93, + "Z": 429.77 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218675,24 +217026,24 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 277, - "Coding LOC": 246, - "Documentation LOC": 0, - "Structural Magnitude": 46.82, - "Control Flow Ratio": "7.6%", + "Total LOC": 272, + "Coding LOC": 182, + "Documentation LOC": 17, + "Structural Magnitude": 184.94, + "Control Flow Ratio": "16.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.039 + "Raw Cognitive Density": 1.115 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.75%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "21.63%", + "Error & Exception Exposure": "28.18%", "Tech Debt Exposure": "0.0%", "Testing Exposure": "0.0%", - "API Exposure": "9.85%", - "Concurrency Exposure": "0.0%", + "API Exposure": "12.68%", + "Concurrency Exposure": "100.0%", "State Flux Exposure": "0.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", @@ -218703,132 +217054,536 @@ }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 11.7, - "Lines of Code (LOC)": 193, + "Function Name": "test_depend_validation", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 210, + "End Line": 233 + }, + { + "Function Name": "test_depend_err_middleware", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "23.1%", + "Start Line": 236, + "End Line": 254 + }, + { + "Function Name": "wrapped_app", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "10.0%", + "Start Line": 195, + "End Line": 203 + }, + { + "Function Name": "make_app", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "33.3%", + "Start Line": 107, + "End Line": 112 + }, + { + "Function Name": "websocket_middleware", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "7.1%", + "Start Line": 188, + "End Line": 207 + }, + { + "Function Name": "catcher", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "20.0%", + "Start Line": 217, + "End Line": 222 + }, + { + "Function Name": "test_depend_err_handler", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "22.2%", + "Start Line": 257, + "End Line": 271 + }, + { + "Function Name": "errorhandler", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "16.7%", + "Start Line": 242, + "End Line": 246 + }, + { + "Function Name": "test_wrong_uri", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, "Input Parameters": 0, - "Control Flow Ratio": "3.6%", - "Start Line": 84, - "End Line": 276 + "Control Flow Ratio": "33.3%", + "Start Line": 177, + "End Line": 185 }, { - "Function Name": "test_model_with_tuple_invalid", - "Structural Impact": 3.4, - "Lines of Code (LOC)": 8, + "Function Name": "middleware_constructor", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "8.3%", + "Start Line": 193, + "End Line": 205 + }, + { + "Function Name": "test_prefix_router", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 2, "Input Parameters": 0, "Control Flow Ratio": "40.0%", - "Start Line": 43, - "End Line": 50 + "Start Line": 132, + "End Line": 136 }, { - "Function Name": "test_model_with_tuple_valid", + "Function Name": "test_native_prefix_router", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "40.0%", + "Start Line": 139, + "End Line": 143 + }, + { + "Function Name": "routerprefixindex", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 37, + "End Line": 40 + }, + { + "Function Name": "router_native_prefix_ws", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "20.0%", + "Start Line": 72, + "End Line": 75 + }, + { + "Function Name": "test_router_with_params", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "20.0%", + "Start Line": 166, + "End Line": 174 + }, + { + "Function Name": "routerindexparams", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 51, + "End Line": 55 + }, + { + "Function Name": "test_app", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, "Control Flow Ratio": "25.0%", - "Start Line": 36, - "End Line": 40 + "Start Line": 118, + "End Line": 122 }, { - "Function Name": "post_model_with_tuple", - "Structural Impact": 1.5, + "Function Name": "test_router", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 125, + "End Line": 129 + }, + { + "Function Name": "test_router2", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 146, + "End Line": 150 + }, + { + "Function Name": "test_router_ws_depends", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 153, + "End Line": 156 + }, + { + "Function Name": "test_router_ws_depends_with_override", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "25.0%", + "Start Line": 159, + "End Line": 163 + }, + { + "Function Name": "router_ws_decorator_depends", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 63, + "End Line": 68 + }, + { + "Function Name": "router_ws_depends_validate", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 92, + "End Line": 95 + }, + { + "Function Name": "router_ws_depends_err", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 2, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 83, + "End Line": 84 + }, + { + "Function Name": "custom_handler", + "Structural Impact": 1.8, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 262, + "End Line": 263 + }, + { + "Function Name": "index", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 23, + "End Line": 26 }, { - "Function Name": "post_tuple_of_models", + "Function Name": "routerindex", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 30, + "End Line": 33 + }, + { + "Function Name": "routerindex2", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 4, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 44, + "End Line": 47 + }, + { + "Function Name": "ws_dependency_validate", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 24, - "End Line": 25 + "Start Line": 87, + "End Line": 88 }, { - "Function Name": "hello", + "Function Name": "router_ws_custom_error", "Structural Impact": 1.5, "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 30 + "Start Line": 103, + "End Line": 104 }, { - "Function Name": "test_tuple_with_model_invalid", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "ws_dependency", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 67 + "Start Line": 58, + "End Line": 59 }, { - "Function Name": "test_tuple_form_invalid", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "ws_dependency_err", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 76, - "End Line": 81 + "Start Line": 78, + "End Line": 79 }, { - "Function Name": "test_tuple_with_model_valid", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 5, + "Function Name": "call_next", + "Structural Impact": 1.1, + "Lines of Code (LOC)": 2, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 53, - "End Line": 57 - }, + "Start Line": 199, + "End Line": 200 + } + ], + "6. Contextual Mitigations & Amplifications": "None Detected", + "7. Structural Signatures (Net Mitigated Signals)": { + "Control Flow Branches": 24, + "Sequential Logic Declarations": 119, + "Function Parameters": 34, + "Function/Method Declarations": 33, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 20, + "Type/Safety Bypasses": 12, + "High-Risk Execution Commands": 0, + "I/O and Network Boundaries": 0, + "Exposed API / Public Exports": 34, + "State Mutations / Variable Reassignments": 3, + "Commented-out Code (Dead Logic)": 0, + "Structured Documentation Blocks": 10, + "Unit Test Assertions": 33, + "Asynchronous/Concurrent Execution": 57, + "UI / View Layer Components": 0, + "Closures and Anonymous Functions": 1, + "Global State Dependencies": 0, + "Decorators and Annotations": 13, + "Generic Type Abstractions": 1, + "Collection Iterators / Comprehensions": 0, + "Scientific & Mathematical Operations": 0, + "Metaprogramming & Reflection": 0, + "Module Dependencies (Imports)": 5, + "Authorship Metadata": 0, + "Planned Work (TODOs)": 0, + "Acknowledged Tech Debt (FIXMEs)": 0, + "Specification Traceability Tags": 0, + "Server-Side Rendering Contexts": 0, + "Event Publishers / Emitters": 5, + "Dependency Injection Constructs": 4, + "Preprocessor Macros": 0, + "Pointer Arithmetic & Addressing": 0, + "Manual Memory Allocation": 0, + "Inline Assembly Blocks": 0, + "Structured Telemetry & Logging": 0, + "Ad-hoc Print / Debug Statements": 0, + "Explicit Type Casts": 0, + "Fatal Aborts & Exceptions": 3, + "Thread Sleeps & Blocking Waits": 0, + "Bitwise Operations": 0, + "Thread Synchronization Locks": 0, + "Immutable Data Declarations": 0, + "Resource Deallocation & Cleanup": 9, + "Private / Encapsulated Scopes": 0, + "Event Listeners & Subscribers": 0, + "Bypassed / Skipped Tests": 0, + "Structural Tab Indentations": 0, + "Structural Space Indentations": 131, + "Hardware Bridge": 0, + "Cryptography": 0, + "Auth Middleware": 0, + "Ipc Rpc Bridges": 0, + "Feature Flags": 0, + "Serialization Parsing": 0, + "Regex Execution": 0, + "Time Date Logic": 0, + "Cloud LLM API Integrations": 0, + "AI Orchestration Frameworks": 0, + "Vector Databases (RAG)": 0, + "Local Inference & Tensor Math": 0, + "Traditional Machine Learning (Stats/Trees)": 0, + "Deep Learning & Neural Networks": 0, + "Lazy Evaluation & Generators (O(1) Memory)": 0, + "Vectorized Math & Tensor Operations": 10, + "Core Var Decl": 35, + "Design Camel Case": 0, + "Design Snake Case": 35, + "Design Pascal Case": 0, + "Design Upper Case": 0, + "Design Short Vars": 0, + "Design Long Vars": 0, + "Duplicate Logic": 0, + "Orphaned Logic": 22, + "Instructional Code Examples": 0, + "Architectural Diagrams (Mermaid/PlantUML)": 0, + "Structured Literature Headers": 0, + "Hyperlinked Literature References": 0, + "High-Entropy / Obfuscated Logic": 0, + "Safety & Constraint Bypasses": 0, + "External Network & I/O Hooks": 8, + "Dynamic Code Execution (Eval/Exec)": 0, + "Global Environment Mutation": 0, + "Commented-Out Executable Logic": 0, + "Low-Level Bitwise / Cryptographic Math": 0, + "Non-Standard / Steganographic Imports": 0, + "Non-Standard Unicode / Homoglyphs": 0, + "Embedded Credentials & Keys": 0, + "Sec Extension Mismatch": 0, + "Sec Entropy": 0, + "Sec Tainted Injection": 0, + "Prompt Injection": 0, + "Agentic Rce": 0, + "Invisible Unicode Payload Smuggling": 0, + "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 + }, + "8. Dependency Network": { + "Direct Upstream (Fragility)": 5, + "Direct Downstream (Dependency Blast Radius)": 0, + "Total Upstream (Absolute Fragility)": 0, + "Total Downstream (Absolute Dependency Blast Radius)": 0 + }, + "9. Extracted Dependencies": [ + "fastapi", + "fastapi.middleware", + "fastapi.testclient", + "functools", + "pytest" + ] + }, + "python/fastapi/tests/utils.py": { + "1. Artifact Identity": { + "Filename": "utils.py", + "Path": "python/fastapi/tests/utils.py", + "Language": "Python", + "Architect": "Unknown Architect", + "Indentation Style": "Spaces", + "Doc Umbrella": 0.0, + "Folder Dominant Lang": "python", + "Lock Tier": 1.5, + "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" + }, + "2. Topological Coordinates": { + "X": 4126.68, + "Y": 121.5, + "Z": 1768.9 + }, + "3. Architectural Profile": { + "Repository Archetype": "Unclassified", + "Repository Drift (Z-Score)": 0.0, + "Repository Fingerprint": {}, + "File Archetype": "Unclassified", + "File Drift (Z-Score)": 0.0, + "File Fingerprint": {}, + "Total LOC": 19, + "Coding LOC": 12, + "Documentation LOC": 1, + "Structural Magnitude": 4.44, + "Control Flow Ratio": "25.0%", + "Popularity Rank": 2, + "Raw Churn Frequency": 0.0, + "Authorship Centralization": 0.0, + "Ownership Entropy": 0.0, + "Raw Cognitive Density": 0.25 + }, + "4. Vulnerability & Risk Exposures": { + "Cognitive Load Exposure": "5.0%", + "Error & Exception Exposure": "0.0%", + "Tech Debt Exposure": "0.0%", + "Testing Exposure": "0.0%", + "API Exposure": "7.33%", + "Concurrency Exposure": "0.0%", + "State Flux Exposure": "0.0%", + "Commented Logic Exposure": "0.0%", + "Specification Exposure": "80.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "0.0%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "5. Function Analysis": [ { - "Function Name": "test_tuple_form_valid", - "Structural Impact": 1.2, + "Function Name": "skip_module_if_py_gte_314", + "Structural Impact": 2.2, "Lines of Code (LOC)": 4, - "Control Flow Branches": 0, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 70, - "End Line": 73 + "Control Flow Ratio": "50.0%", + "Start Line": 15, + "End Line": 18 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 5, - "Sequential Logic Declarations": 61, - "Function Parameters": 10, - "Function/Method Declarations": 10, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 17, + "Control Flow Branches": 1, + "Sequential Logic Declarations": 3, + "Function Parameters": 1, + "Function/Method Declarations": 1, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 0, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 15, + "I/O and Network Boundaries": 3, + "Exposed API / Public Exports": 2, "State Mutations / Variable Reassignments": 0, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 21, + "Structured Documentation Blocks": 2, + "Unit Test Assertions": 5, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 3, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -218853,7 +217608,7 @@ "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, "Structural Tab Indentations": 0, - "Structural Space Indentations": 225, + "Structural Space Indentations": 4, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -218869,16 +217624,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 18, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 6, "Design Camel Case": 0, - "Design Snake Case": 18, + "Design Snake Case": 6, "Design Pascal Case": 0, "Design Upper Case": 0, "Design Short Vars": 0, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 10, + "Orphaned Logic": 0, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -218902,34 +217657,59 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, + "Direct Upstream (Fragility)": 3, + "Direct Downstream (Dependency Blast Radius)": 2, "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 + "Total Downstream (Absolute Dependency Blast Radius)": 1 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "pytest", + "sys", + "time." ] - }, - "python/fastapi/tests/test_typing_python39.py": { + } + } + }, + "javascript/threejs": { + "Directory Group Magnitude": 7715.5, + "File Count": 6, + "Ecosystem Fingerprint (Archetypes)": { + "Unclassified": "100.0%" + }, + "Average Risk Exposures": { + "Cognitive Load Exposure": "46.97%", + "Error & Exception Exposure": "66.72%", + "Tech Debt Exposure": "42.36%", + "Testing Exposure": "80.0%", + "API Exposure": "2.6%", + "Concurrency Exposure": "33.42%", + "State Flux Exposure": "84.4%", + "Commented Logic Exposure": "3.33%", + "Specification Exposure": "100.0%", + "Instability Exposure": "50.0%", + "Volatility Exposure": "0.0%", + "Documentation Exposure": "16.29%", + "Hardcoded Payload Artifacts": "0.0%" + }, + "Files": { + "javascript/threejs/BufferGeometry.js": { "1. Artifact Identity": { - "Filename": "test_typing_python39.py", - "Path": "python/fastapi/tests/test_typing_python39.py", - "Language": "Python", + "Filename": "BufferGeometry.js", + "Path": "javascript/threejs/BufferGeometry.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", + "Indentation Style": "Tabs", + "Parent Entity": "EventDispatcher", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Alert": "TYPOSQUATTING THREAT: 'math/Vector2.js' mimics 'math/Vector3.js'", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 1683.67, - "Y": -181.89, - "Z": 1766.82 + "X": 2453.8, + "Y": -162.66, + "Z": -5120.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -218938,90 +217718,420 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 25, - "Coding LOC": 19, - "Documentation LOC": 0, - "Structural Magnitude": 7.78, - "Control Flow Ratio": "8.3%", + "Total LOC": 1459, + "Coding LOC": 588, + "Documentation LOC": 377, + "Structural Magnitude": 616.46, + "Control Flow Ratio": "55.7%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.158 + "Raw Cognitive Density": 1.275 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.28%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.51%", + "Cognitive Load Exposure": "44.55%", + "Error & Exception Exposure": "90.35%", + "Tech Debt Exposure": "44.92%", + "Testing Exposure": "80.0%", + "API Exposure": "1.9%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "State Flux Exposure": "100.0%", + "Commented Logic Exposure": "5.03%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_typing", - "Structural Impact": 2.9, - "Lines of Code (LOC)": 17, + "Function Name": "computeTangents", + "Structural Impact": 21.9, + "Lines of Code (LOC)": 158, + "Control Flow Branches": 13, + "Input Parameters": 0, + "Control Flow Ratio": "61.9%", + "Start Line": 822, + "End Line": 979 + }, + { + "Function Name": "computeBoundingSphere", + "Structural Impact": 20.6, + "Lines of Code (LOC)": 111, + "Control Flow Branches": 14, + "Input Parameters": 0, + "Control Flow Ratio": "70.0%", + "Start Line": 703, + "End Line": 813 + }, + { + "Function Name": "toJSON", + "Structural Impact": 19.4, + "Lines of Code (LOC)": 109, + "Control Flow Branches": 13, + "Input Parameters": 0, + "Control Flow Ratio": "76.5%", + "Start Line": 1212, + "End Line": 1320 + }, + { + "Function Name": "copy", + "Structural Impact": 16.5, + "Lines of Code (LOC)": 104, + "Control Flow Branches": 7, + "Input Parameters": 1, + "Control Flow Ratio": "70.0%", + "Start Line": 1339, + "End Line": 1442 + }, + { + "Function Name": "computeBoundingBox", + "Structural Impact": 16.4, + "Lines of Code (LOC)": 69, + "Control Flow Branches": 12, + "Input Parameters": 0, + "Control Flow Ratio": "85.7%", + "Start Line": 628, + "End Line": 696 + }, + { + "Function Name": "toNonIndexed", + "Structural Impact": 15.1, + "Lines of Code (LOC)": 101, + "Control Flow Branches": 9, + "Input Parameters": 0, + "Control Flow Ratio": "52.9%", + "Start Line": 1105, + "End Line": 1205 + }, + { + "Function Name": "setFromPoints", + "Structural Impact": 14.8, + "Lines of Code (LOC)": 41, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "72.7%", + "Start Line": 581, + "End Line": 621 + }, + { + "Function Name": "computeVertexNormals", + "Structural Impact": 13.6, + "Lines of Code (LOC)": 91, + "Control Flow Branches": 8, + "Input Parameters": 0, + "Control Flow Ratio": "66.7%", + "Start Line": 987, + "End Line": 1077 + }, + { + "Function Name": "applyMatrix4", + "Structural Impact": 10.9, + "Lines of Code (LOC)": 49, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "83.3%", + "Start Line": 363, + "End Line": 411 + }, + { + "Function Name": "convertBufferAttribute", + "Structural Impact": 10.3, + "Lines of Code (LOC)": 33, + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 1107, + "End Line": 1139 + }, + { + "Function Name": "setIndex", + "Structural Impact": 6.4, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 217, + "End Line": 231 + }, + { + "Function Name": "handleTriangle", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 872, + "End Line": 905 + }, + { + "Function Name": "handleVertex", + "Structural Impact": 3.9, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 940, + "End Line": 960 + }, + { + "Function Name": "normalizeNormals", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 15, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 8, - "End Line": 24 + "Control Flow Ratio": "50.0%", + "Start Line": 1083, + "End Line": 1097 }, { - "Function Name": "post_endpoint", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "addGroup", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 322, + "End Line": 332 + }, + { + "Function Name": "translate", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 499, + "End Line": 509 + }, + { + "Function Name": "scale", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 521, + "End Line": 531 + }, + { + "Function Name": "setIndirect", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 240, + "End Line": 247 + }, + { + "Function Name": "setAttribute", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 280, + "End Line": 286 + }, + { + "Function Name": "constructor", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 146, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 53, + "End Line": 198 + }, + { + "Function Name": "setDrawRange", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 350, + "End Line": 355 + }, + { + "Function Name": "rotateX", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 19, - "End Line": 20 + "Start Line": 437, + "End Line": 447 + }, + { + "Function Name": "rotateY", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 457, + "End Line": 467 + }, + { + "Function Name": "rotateZ", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 477, + "End Line": 487 + }, + { + "Function Name": "lookAt", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 541, + "End Line": 551 + }, + { + "Function Name": "applyQuaternion", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 419, + "End Line": 427 + }, + { + "Function Name": "deleteAttribute", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 294, + "End Line": 300 + }, + { + "Function Name": "getAttribute", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 267, + "End Line": 271 + }, + { + "Function Name": "hasAttribute", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 308, + "End Line": 312 + }, + { + "Function Name": "center", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 558, + "End Line": 568 + }, + { + "Function Name": "getIndex", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 205, + "End Line": 209 + }, + { + "Function Name": "getIndirect", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 254, + "End Line": 258 + }, + { + "Function Name": "clearGroups", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 337, + "End Line": 341 + }, + { + "Function Name": "clone", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1327, + "End Line": 1331 + }, + { + "Function Name": "dispose", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1450, + "End Line": 1454 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 11, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 2, + "Control Flow Branches": 93, + "Sequential Logic Declarations": 74, + "Function Parameters": 35, + "Function/Method Declarations": 35, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 28, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 387, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 112, + "Unit Test Assertions": 0, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 2, - "Generic Type Abstractions": 4, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 3, + "Metaprogramming & Reflection": 2, + "Module Dependencies (Imports)": 11, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 1, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 40, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -219030,19 +218140,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 98, + "Resource Deallocation & Cleanup": 4, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 14, + "Structural Tab Indentations": 564, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 0, + "Serialization Parsing": 2, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -219052,16 +218162,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 4, - "Design Camel Case": 0, - "Design Snake Case": 4, + "Vectorized Math & Tensor Operations": 4, + "Core Var Decl": 136, + "Design Camel Case": 46, + "Design Snake Case": 89, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 37, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 13, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -219071,10 +218181,10 @@ "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, + "Commented-Out Executable Logic": 1, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, + "Non-Standard Unicode / Homoglyphs": 1, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -219085,34 +218195,41 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, + "Direct Upstream (Fragility)": 11, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".utils", - "fastapi", - "fastapi.testclient" + "../math/Box3.js", + "../math/MathUtils.js", + "../math/Matrix3.js", + "../math/Matrix4.js", + "../math/Sphere.js", + "../math/Vector2.js", + "../math/Vector3.js", + "../utils.js", + "./BufferAttribute.js", + "./EventDispatcher.js", + "./Object3D.js" ] }, - "python/fastapi/tests/test_union_body.py": { + "javascript/threejs/Editor.js": { "1. Artifact Identity": { - "Filename": "test_union_body.py", - "Path": "python/fastapi/tests/test_union_body.py", - "Language": "Python", + "Filename": "Editor.js", + "Path": "javascript/threejs/Editor.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 2548.89, - "Y": -95.48, - "Z": -1709.53 + "X": 3256.59, + "Y": -58.58, + "Z": -4581.5 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -219121,110 +218238,490 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 135, - "Coding LOC": 119, - "Documentation LOC": 0, - "Structural Magnitude": 19.18, - "Control Flow Ratio": "0.0%", + "Total LOC": 820, + "Coding LOC": 458, + "Documentation LOC": 14, + "Structural Magnitude": 631.06, + "Control Flow Ratio": "54.8%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.021 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", + "Cognitive Load Exposure": "74.71%", + "Error & Exception Exposure": "96.41%", "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.47%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", + "Testing Exposure": "80.0%", + "API Exposure": "8.44%", + "Concurrency Exposure": "75.79%", + "State Flux Exposure": "100.0%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "34.08%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 5.9, - "Lines of Code (LOC)": 98, + "Function Name": "addHelper", + "Structural Impact": 23.2, + "Lines of Code (LOC)": 85, + "Control Flow Branches": 18, + "Input Parameters": 0, + "Control Flow Ratio": "78.3%", + "Start Line": 392, + "End Line": 476 + }, + { + "Function Name": "addObject", + "Structural Impact": 11.4, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 179, + "End Line": 207 + }, + { + "Function Name": "setObjectMaterial", + "Structural Impact": 8.7, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 540, + "End Line": 552 + }, + { + "Function Name": "fromJSON", + "Structural Impact": 7.4, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "37.5%", + "Start Line": 674, + "End Line": 707 + }, + { + "Function Name": "addMaterial", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 251, + "End Line": 269 + }, + { + "Function Name": "removeMaterial", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 291, + "End Line": 309 + }, + { + "Function Name": "getMaterialById", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "42.9%", + "Start Line": 331, + "End Line": 349 + }, + { + "Function Name": "toJSON", + "Structural Impact": 6.0, + "Lines of Code (LOC)": 40, + "Control Flow Branches": 3, + "Input Parameters": 0, + "Control Flow Ratio": "33.3%", + "Start Line": 709, + "End Line": 748 + }, + { + "Function Name": "removeScript", + "Structural Impact": 5.9, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 510, + "End Line": 524 + }, + { + "Function Name": "getObjectMaterial", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 526, + "End Line": 538 + }, + { + "Function Name": "save", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 787, + "End Line": 799 + }, + { + "Function Name": "removeObject", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 216, + "End Line": 236 + }, + { + "Function Name": "addMaterialToRefCounter", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 271, + "End Line": 289 + }, + { + "Function Name": "removeMaterialFromRefCounter", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 311, + "End Line": 329 + }, + { + "Function Name": "setScene", + "Structural Impact": 4.3, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 147, + "End Line": 175 + }, + { + "Function Name": "addScript", + "Structural Impact": 4.1, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 496, + "End Line": 508 + }, + { + "Function Name": "removeHelper", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 478, + "End Line": 492 + }, + { + "Function Name": "selectByUuid", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 589, + "End Line": 603 + }, + { + "Function Name": "clear", + "Structural Impact": 3.5, + "Lines of Code (LOC)": 44, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 627, + "End Line": 670 + }, + { + "Function Name": "addCamera", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 366, + "End Line": 376 + }, + { + "Function Name": "removeCamera", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 378, + "End Line": 388 + }, + { + "Function Name": "selectById", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 576, + "End Line": 587 + }, + { + "Function Name": "focus", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 611, + "End Line": 619 + }, + { + "Function Name": "setViewportCamera", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 554, + "End Line": 559 + }, + { + "Function Name": "Editor", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 129, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 15, + "End Line": 143 + }, + { + "Function Name": "updateMatrixWorld", + "Structural Impact": 3.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 415, + "End Line": 433 + }, + { + "Function Name": "nameObject", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 209, + "End Line": 214 + }, + { + "Function Name": "setGeometryName", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 244, + "End Line": 249 + }, + { + "Function Name": "setMaterialName", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 351, + "End Line": 356 + }, + { + "Function Name": "execute", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 756, + "End Line": 760 + }, + { + "Function Name": "saveArrayBuffer", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 801, + "End Line": 805 + }, + { + "Function Name": "saveString", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 807, + "End Line": 811 + }, + { + "Function Name": "addGeometry", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 238, + "End Line": 242 + }, + { + "Function Name": "addTexture", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 358, + "End Line": 362 + }, + { + "Function Name": "setViewportShading", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 561, + "End Line": 566 + }, + { + "Function Name": "select", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 570, + "End Line": 574 + }, + { + "Function Name": "focusById", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 134 + "Start Line": 621, + "End Line": 625 }, { - "Function Name": "save_union_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "objectByUuid", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 750, + "End Line": 754 }, { - "Function Name": "test_post_other_item", + "Function Name": "formatNumber", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 813, + "End Line": 817 + }, + { + "Function Name": "deselect", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 605, + "End Line": 609 }, { - "Function Name": "test_post_item", + "Function Name": "undo", "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 + "Start Line": 762, + "End Line": 766 + }, + { + "Function Name": "redo", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 768, + "End Line": 772 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 37, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 9, + "Control Flow Branches": 63, + "Sequential Logic Declarations": 52, + "Function Parameters": 46, + "Function/Method Declarations": 42, + "Class/Entity Declarations": 0, + "Defensive Programming Constructs": 28, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 16, + "State Mutations / Variable Reassignments": 409, "Commented-out Code (Dead Logic)": 0, "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 18, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Closures and Anonymous Functions": 41, + "Global State Dependencies": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 7, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, + "Event Publishers / Emitters": 1, "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 74, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, @@ -219233,19 +218730,19 @@ "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 10, + "Resource Deallocation & Cleanup": 7, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 106, + "Structural Tab Indentations": 433, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 0, + "Serialization Parsing": 2, "Regex Execution": 0, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, @@ -219255,16 +218752,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 5, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 43, + "Design Camel Case": 4, + "Design Snake Case": 37, "Design Pascal Case": 1, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 4, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 4, + "Orphaned Logic": 0, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -219288,35 +218785,38 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 7, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" + "./Config.js", + "./History.js", + "./Loader.js", + "./Selector.js", + "./Storage.js", + "./Strings.js", + "three" ] }, - "python/fastapi/tests/test_union_body_discriminator.py": { + "javascript/threejs/GLTFLoader.js": { "1. Artifact Identity": { - "Filename": "test_union_body_discriminator.py", - "Path": "python/fastapi/tests/test_union_body_discriminator.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Filename": "GLTFLoader.js", + "Path": "javascript/threejs/GLTFLoader.js", + "Language": "Javascript", + "Architect": "GLTFExporter", + "Indentation Style": "Tabs", + "Parent Entity": "Loader, Interpolant, GLTFCubicSplineInterpolant", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 4196.4, - "Y": 162.99, - "Z": -1069.85 + "X": 2920.34, + "Y": -74.07, + "Z": -5005.35 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -219325,1053 +218825,1372 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 205, - "Coding LOC": 187, - "Documentation LOC": 6, - "Structural Magnitude": 21.44, - "Control Flow Ratio": "0.0%", + "Total LOC": 4861, + "Coding LOC": 2413, + "Documentation LOC": 613, + "Structural Magnitude": 3082.26, + "Control Flow Ratio": "66.1%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 + "Raw Cognitive Density": 1.53 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "36.67%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "6.73%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Cognitive Load Exposure": "47.88%", + "Error & Exception Exposure": "75.38%", + "Tech Debt Exposure": "46.56%", + "Testing Exposure": "80.0%", + "API Exposure": "1.63%", + "Concurrency Exposure": "100.0%", + "State Flux Exposure": "100.0%", + "Commented Logic Exposure": "4.91%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_discriminator_pydantic_v2", - "Structural Impact": 10.8, - "Lines of Code (LOC)": 195, + "Function Name": "parse", + "Structural Impact": 77.7, + "Lines of Code (LOC)": 122, + "Control Flow Branches": 31, + "Input Parameters": 4, + "Control Flow Ratio": "86.1%", + "Start Line": 429, + "End Line": 550 + }, + { + "Function Name": "_createAnimationTracks", + "Structural Impact": 71.3, + "Lines of Code (LOC)": 103, + "Control Flow Branches": 26, + "Input Parameters": 5, + "Control Flow Ratio": "89.7%", + "Start Line": 4514, + "End Line": 4616 + }, + { + "Function Name": "getDependency", + "Structural Impact": 67.4, + "Lines of Code (LOC)": 101, + "Control Flow Branches": 35, + "Input Parameters": 2, + "Control Flow Ratio": "79.5%", + "Start Line": 2872, + "End Line": 2972 + }, + { + "Function Name": "loadMaterial", + "Structural Impact": 50.1, + "Lines of Code (LOC)": 153, + "Control Flow Branches": 29, + "Input Parameters": 1, + "Control Flow Ratio": "85.3%", + "Start Line": 3542, + "End Line": 3694 + }, + { + "Function Name": "loadMesh", + "Structural Impact": 49.5, + "Lines of Code (LOC)": 142, + "Control Flow Branches": 29, + "Input Parameters": 1, + "Control Flow Ratio": "78.4%", + "Start Line": 3799, + "End Line": 3940 + }, + { + "Function Name": "addMorphTargets", + "Structural Impact": 48.0, + "Lines of Code (LOC)": 80, + "Control Flow Branches": 21, + "Input Parameters": 3, + "Control Flow Ratio": "72.4%", + "Start Line": 2333, + "End Line": 2412 + }, + { + "Function Name": "_loadNodeShallow", + "Structural Impact": 44.1, + "Lines of Code (LOC)": 146, + "Control Flow Branches": 25, + "Input Parameters": 1, + "Control Flow Ratio": "75.8%", + "Start Line": 4274, + "End Line": 4419 + }, + { + "Function Name": "createNodeMesh", + "Structural Impact": 40.9, + "Lines of Code (LOC)": 139, + "Control Flow Branches": 23, + "Input Parameters": 1, + "Control Flow Ratio": "69.7%", + "Start Line": 1691, + "End Line": 1829 + }, + { + "Function Name": "loadAccessor", + "Structural Impact": 39.2, + "Lines of Code (LOC)": 133, + "Control Flow Branches": 22, + "Input Parameters": 1, + "Control Flow Ratio": "78.6%", + "Start Line": 3071, + "End Line": 3203 + }, + { + "Function Name": "computeBounds", + "Structural Impact": 37.5, + "Lines of Code (LOC)": 109, + "Control Flow Branches": 15, + "Input Parameters": 3, + "Control Flow Ratio": "83.3%", + "Start Line": 4669, + "End Line": 4777 + }, + { + "Function Name": "loadTextureImage", + "Structural Impact": 36.6, + "Lines of Code (LOC)": 53, + "Control Flow Branches": 16, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 3233, + "End Line": 3285 + }, + { + "Function Name": "_loadLight", + "Structural Impact": 31.7, + "Lines of Code (LOC)": 68, + "Control Flow Branches": 19, + "Input Parameters": 1, + "Control Flow Ratio": "82.6%", + "Start Line": 694, + "End Line": 761 + }, + { + "Function Name": "assignFinalMaterial", + "Structural Impact": 29.9, + "Lines of Code (LOC)": 89, + "Control Flow Branches": 17, + "Input Parameters": 1, + "Control Flow Ratio": "77.3%", + "Start Line": 3439, + "End Line": 3527 + }, + { + "Function Name": "constructor", + "Structural Impact": 27.9, + "Lines of Code (LOC)": 74, + "Control Flow Branches": 13, + "Input Parameters": 2, + "Control Flow Ratio": "76.5%", + "Start Line": 2549, + "End Line": 2622 + }, + { + "Function Name": "load", + "Structural Impact": 23.9, + "Lines of Code (LOC)": 76, + "Control Flow Branches": 8, + "Input Parameters": 4, + "Control Flow Ratio": "88.9%", + "Start Line": 264, + "End Line": 339 + }, + { + "Function Name": "loadImageSource", + "Structural Impact": 23.5, + "Lines of Code (LOC)": 88, + "Control Flow Branches": 10, + "Input Parameters": 2, + "Control Flow Ratio": "52.6%", + "Start Line": 3287, + "End Line": 3374 + }, + { + "Function Name": "loadAnimation", + "Structural Impact": 22.9, + "Lines of Code (LOC)": 90, + "Control Flow Branches": 12, + "Input Parameters": 1, + "Control Flow Ratio": "70.6%", + "Start Line": 4059, + "End Line": 4148 + }, + { + "Function Name": "addPrimitiveAttributes", + "Structural Impact": 22.9, + "Lines of Code (LOC)": 59, + "Control Flow Branches": 9, + "Input Parameters": 3, + "Control Flow Ratio": "75.0%", + "Start Line": 4787, + "End Line": 4845 + }, + { + "Function Name": "loadBufferView", + "Structural Impact": 21.7, + "Lines of Code (LOC)": 67, + "Control Flow Branches": 12, + "Input Parameters": 1, + "Control Flow Ratio": "63.2%", + "Start Line": 1605, + "End Line": 1671 + }, + { + "Function Name": "loadScene", + "Structural Impact": 21.2, + "Lines of Code (LOC)": 85, + "Control Flow Branches": 11, + "Input Parameters": 1, + "Control Flow Ratio": "61.1%", + "Start Line": 4428, + "End Line": 4512 + }, + { + "Function Name": "assignTexture", + "Structural Impact": 20.0, + "Lines of Code (LOC)": 42, + "Control Flow Branches": 7, + "Input Parameters": 4, + "Control Flow Ratio": "70.0%", + "Start Line": 3386, + "End Line": 3427 + }, + { + "Function Name": "extendTexture", + "Structural Impact": 19.5, + "Lines of Code (LOC)": 43, + "Control Flow Branches": 9, + "Input Parameters": 2, + "Control Flow Ratio": "81.8%", + "Start Line": 2005, + "End Line": 2047 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 18.2, + "Lines of Code (LOC)": 53, + "Control Flow Branches": 8, + "Input Parameters": 2, + "Control Flow Ratio": "80.0%", + "Start Line": 1019, + "End Line": 1071 + }, + { + "Function Name": "decodePrimitive", + "Structural Impact": 16.8, + "Lines of Code (LOC)": 58, + "Control Flow Branches": 7, + "Input Parameters": 2, + "Control Flow Ratio": "77.8%", + "Start Line": 1929, + "End Line": 1986 + }, + { + "Function Name": "loadNode", + "Structural Impact": 16.7, + "Lines of Code (LOC)": 79, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 4192, + "End Line": 4270 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 16.3, + "Lines of Code (LOC)": 49, + "Control Flow Branches": 7, + "Input Parameters": 2, + "Control Flow Ratio": "77.8%", + "Start Line": 905, + "End Line": 953 + }, + { + "Function Name": "getImageURIMimeType", + "Structural Impact": 16.0, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 10, + "Input Parameters": 1, + "Control Flow Ratio": "71.4%", + "Start Line": 2533, + "End Line": 2541 + }, + { + "Function Name": "constructor", + "Structural Impact": 15.8, + "Lines of Code (LOC)": 62, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "88.9%", + "Start Line": 1840, + "End Line": 1901 + }, + { + "Function Name": "updateMorphTargets", + "Structural Impact": 15.8, + "Lines of Code (LOC)": 38, + "Control Flow Branches": 7, + "Input Parameters": 2, + "Control Flow Ratio": "77.8%", + "Start Line": 2420, + "End Line": 2457 + }, + { + "Function Name": "parse", + "Structural Impact": 15.4, + "Lines of Code (LOC)": 66, + "Control Flow Branches": 6, + "Input Parameters": 2, + "Control Flow Ratio": "54.5%", + "Start Line": 2636, + "End Line": 2701 + }, + { + "Function Name": "loadSkin", + "Structural Impact": 14.5, + "Lines of Code (LOC)": 64, + "Control Flow Branches": 7, + "Input Parameters": 1, + "Control Flow Ratio": "63.6%", + "Start Line": 3987, + "End Line": 4050 + }, + { + "Function Name": "loadCamera", + "Structural Impact": 14.2, + "Lines of Code (LOC)": 30, + "Control Flow Branches": 8, + "Input Parameters": 1, + "Control Flow Ratio": "72.7%", + "Start Line": 3949, + "End Line": 3978 + }, + { + "Function Name": "loadGeometries", + "Structural Impact": 12.9, + "Lines of Code (LOC)": 61, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "54.5%", + "Start Line": 3730, + "End Line": 3790 + }, + { + "Function Name": "_markDefs", + "Structural Impact": 12.5, + "Lines of Code (LOC)": 50, + "Control Flow Branches": 9, + "Input Parameters": 0, + "Control Flow Ratio": "75.0%", + "Start Line": 2708, + "End Line": 2757 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 12.4, + "Lines of Code (LOC)": 40, + "Control Flow Branches": 5, + "Input Parameters": 2, + "Control Flow Ratio": "71.4%", + "Start Line": 1099, + "End Line": 1138 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 11.8, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 5, + "Input Parameters": 2, + "Control Flow Ratio": "71.4%", + "Start Line": 1308, + "End Line": 1335 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 5, + "Input Parameters": 2, + "Control Flow Ratio": "71.4%", + "Start Line": 1217, + "End Line": 1240 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 1458, + "End Line": 1491 + }, + { + "Function Name": "getNormalizedComponentScale", + "Structural Impact": 11.1, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 2507, + "End Line": 2531 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 10.1, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "66.7%", + "Start Line": 1410, + "End Line": 1438 + }, + { + "Function Name": "createPrimitiveKey", + "Structural Impact": 10.0, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "62.5%", + "Start Line": 2459, + "End Line": 2489 + }, + { + "Function Name": "extendParams", + "Structural Impact": 9.6, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "75.0%", + "Start Line": 813, + "End Line": 843 + }, + { + "Function Name": "_getNodeRef", + "Structural Impact": 9.6, + "Lines of Code (LOC)": 32, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 2795, + "End Line": 2826 + }, + { + "Function Name": "reduceAssociations", + "Structural Impact": 8.9, + "Lines of Code (LOC)": 37, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 4476, + "End Line": 4512 + }, + { + "Function Name": "addUnknownExtensionsToUserData", + "Structural Impact": 8.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 3, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 2283, + "End Line": 2298 + }, + { + "Function Name": "createNodeMesh", + "Structural Impact": 8.8, + "Lines of Code (LOC)": 34, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "44.4%", + "Start Line": 4150, + "End Line": 4183 + }, + { + "Function Name": "loadBuffer", + "Structural Impact": 8.6, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 3011, + "End Line": 3041 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 8.5, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 1511, + "End Line": 1538 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 8.5, + "Lines of Code (LOC)": 28, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "57.1%", + "Start Line": 1558, + "End Line": 1585 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 1167, + "End Line": 1189 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 7.9, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 1364, + "End Line": 1382 + }, + { + "Function Name": "assignExtrasToUserData", + "Structural Impact": 7.8, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 2306, + "End Line": 2322 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 7.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 1268, + "End Line": 1280 + }, + { + "Function Name": "constructor", + "Structural Impact": 7.4, + "Lines of Code (LOC)": 119, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 135, + "End Line": 253 + }, + { + "Function Name": "_markDefs", + "Structural Impact": 7.0, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 5, + "Input Parameters": 0, + "Control Flow Ratio": "83.3%", + "Start Line": 673, + "End Line": 692 + }, + { + "Function Name": "getDependencies", + "Structural Impact": 6.8, + "Lines of Code (LOC)": 22, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2981, + "End Line": 3002 + }, + { + "Function Name": "getMaterialExtension", + "Structural Impact": 6.7, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 614, + "End Line": 626 + }, + { + "Function Name": "createNodeAttachment", + "Structural Impact": 6.6, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 771, + "End Line": 788 + }, + { + "Function Name": "createUniqueName", + "Structural Impact": 6.5, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "60.0%", + "Start Line": 3703, + "End Line": 3719 + }, + { + "Function Name": "interpolate_", + "Structural Impact": 6.4, + "Lines of Code (LOC)": 39, + "Control Flow Branches": 1, + "Input Parameters": 4, + "Control Flow Ratio": "33.3%", + "Start Line": 2102, + "End Line": 2140 + }, + { + "Function Name": "updateMappings", + "Structural Impact": 6.4, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 2803, + "End Line": 2826 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 5.9, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 863, + "End Line": 877 + }, + { + "Function Name": "_addNodeRef", + "Structural Impact": 5.8, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "66.7%", + "Start Line": 2772, + "End Line": 2784 + }, + { + "Function Name": "extendMaterialParams", + "Structural Impact": 5.7, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 2, + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 981, + "End Line": 991 + }, + { + "Function Name": "_getArrayFromAccessor", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 22, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 4618, + "End Line": 4639 + }, + { + "Function Name": "loadTexture", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 20, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 3212, + "End Line": 3231 + }, + { + "Function Name": "_invokeAll", + "Structural Impact": 5.1, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2845, + "End Line": 2862 + }, + { + "Function Name": "_onError", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 295, + "End Line": 310 + }, + { + "Function Name": "_invokeOne", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 2828, + "End Line": 2843 + }, + { + "Function Name": "loadBufferView", + "Structural Impact": 4.9, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 3050, + "End Line": 3062 + }, + { + "Function Name": "collectMorphTargets", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 4521, + "End Line": 4529 + }, + { + "Function Name": "constructor", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "100.0%", + "Start Line": 1914, + "End Line": 1927 + }, + { + "Function Name": "getDependency", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "33.3%", + "Start Line": 763, + "End Line": 769 + }, + { + "Function Name": "copySampleValue_", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 2082, + "End Line": 2100 + }, + { + "Function Name": "createDefaultMaterial", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2263, + "End Line": 2281 + }, + { + "Function Name": "_createCubicSplineTrackInterpolant", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 18, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 4641, + "End Line": 4658 + }, + { + "Function Name": "createAttributesKey", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "25.0%", + "Start Line": 2491, + "End Line": 2505 + }, + { + "Function Name": "register", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 391, + "End Line": 401 + }, + { + "Function Name": "unregister", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 409, + "End Line": 419 + }, + { + "Function Name": "InterpolantFactoryMethodGLTFCubicSpline", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 4643, + "End Line": 4653 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 897, + "End Line": 903 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 973, + "End Line": 979 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1011, + "End Line": 1017 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1091, + "End Line": 1097 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1159, + "End Line": 1165 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1209, + "End Line": 1215 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1260, + "End Line": 1266 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1300, + "End Line": 1306 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1356, + "End Line": 1362 + }, + { + "Function Name": "getMaterialType", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 1402, + "End Line": 1408 + }, + { + "Function Name": "GLTFRegistry", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 33, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 10, - "End Line": 204 + "Start Line": 576, + "End Line": 608 }, { - "Function Name": "save_union_body_discriminator", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "interpolate_", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 2148, + "End Line": 2156 + }, + { + "Function Name": "constructor", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 4, + "Control Flow Ratio": "0.0%", + "Start Line": 2076, + "End Line": 2080 + }, + { + "Function Name": "parseAsync", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 32 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 47, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 12, - "Type/Safety Bypasses": 2, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 5, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 3, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 180, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "dirty_equals", - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "typing" - ] - }, - "python/fastapi/tests/test_union_body_discriminator_annotated.py": { - "1. Artifact Identity": { - "Filename": "test_union_body_discriminator_annotated.py", - "Path": "python/fastapi/tests/test_union_body_discriminator_annotated.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1567.53, - "Y": -211.05, - "Z": -329.6 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 204, - "Coding LOC": 184, - "Documentation LOC": 1, - "Structural Magnitude": 35.78, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.34%", - "Concurrency Exposure": "25.46%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 560, + "End Line": 570 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 8.6, - "Lines of Code (LOC)": 144, + "Function Name": "assignAttributeAccessor", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 4793, + "End Line": 4802 + }, + { + "Function Name": "add", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 588, + "End Line": 592 + }, + { + "Function Name": "constructor", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 1598, + "End Line": 1603 + }, + { + "Function Name": "createDracoPrimitive", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 60, - "End Line": 203 + "Start Line": 3736, + "End Line": 3746 }, { - "Function Name": "client_fixture", - "Structural Impact": 2.7, - "Lines of Code (LOC)": 33, + "Function Name": "constructor", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 13, - "End Line": 45 + "Start Line": 663, + "End Line": 671 }, { - "Function Name": "get_pet_type", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 3, + "Function Name": "onLoad", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 8, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 27 + "Start Line": 3331, + "End Line": 3338 }, { - "Function Name": "test_union_body_discriminator_assignment", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "setDRACOLoader", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 51 + "Start Line": 348, + "End Line": 353 }, { - "Function Name": "test_union_body_discriminator_annotated", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "setKTX2Loader", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 54, - "End Line": 57 + "Start Line": 362, + "End Line": 367 }, { - "Function Name": "create_pet_assignment", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "setMeshoptDecoder", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 38 + "Start Line": 376, + "End Line": 381 }, { - "Function Name": "create_pet_annotated", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "get", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 42 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 52, - "Function Parameters": 7, - "Function/Method Declarations": 7, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 11, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 11, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 2, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 4, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 8, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 173, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 9, - "Design Camel Case": 0, - "Design Snake Case": 7, - "Design Pascal Case": 2, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 6, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "pytest", - "typing" - ] - }, - "python/fastapi/tests/test_union_forms.py": { - "1. Artifact Identity": { - "Filename": "test_union_forms.py", - "Path": "python/fastapi/tests/test_union_forms.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1339.2, - "Y": -229.48, - "Z": 264.87 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 164, - "Coding LOC": 143, - "Documentation LOC": 0, - "Structural Magnitude": 24.66, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "9.02%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 582, + "End Line": 586 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.1, - "Lines of Code (LOC)": 102, + "Function Name": "remove", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 62, - "End Line": 163 + "Start Line": 594, + "End Line": 598 }, { - "Function Name": "post_union_form", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 856, + "End Line": 861 }, { - "Function Name": "test_post_user_form", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 29, - "End Line": 36 + "Start Line": 890, + "End Line": 895 }, { - "Function Name": "test_post_company_form", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 8, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 39, - "End Line": 46 + "Start Line": 966, + "End Line": 971 }, { - "Function Name": "test_invalid_form_data", - "Structural Impact": 1.3, + "Function Name": "constructor", + "Structural Impact": 1.7, "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 49, - "End Line": 54 + "Start Line": 1004, + "End Line": 1009 }, { - "Function Name": "test_empty_form", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 57, - "End Line": 59 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 44, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 11, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 13, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 127, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 10, - "Design Camel Case": 0, - "Design Snake Case": 10, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "typing" - ] - }, - "python/fastapi/tests/test_union_inherited_body.py": { - "1. Artifact Identity": { - "Filename": "test_union_inherited_body.py", - "Path": "python/fastapi/tests/test_union_inherited_body.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel, Item", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 4497.43, - "Y": 200.81, - "Z": -485.54 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 143, - "Coding LOC": 127, - "Documentation LOC": 0, - "Structural Magnitude": 19.74, - "Control Flow Ratio": "0.0%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.0 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "0.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "8.37%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 1084, + "End Line": 1089 + }, { - "Function Name": "test_openapi_schema", - "Structural Impact": 6.3, - "Lines of Code (LOC)": 106, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 37, - "End Line": 142 + "Start Line": 1152, + "End Line": 1157 }, { - "Function Name": "save_union_different_body", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Start Line": 1202, + "End Line": 1207 }, { - "Function Name": "test_post_extended_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 25, - "End Line": 28 + "Start Line": 1253, + "End Line": 1258 }, { - "Function Name": "test_post_item", - "Structural Impact": 1.2, - "Lines of Code (LOC)": 4, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 31, - "End Line": 34 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 0, - "Sequential Logic Declarations": 39, - "Function Parameters": 4, - "Function/Method Declarations": 4, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 8, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 7, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 9, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 114, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 4, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "inline_snapshot", - "pydantic" - ] - }, - "python/fastapi/tests/test_validate_response.py": { - "1. Artifact Identity": { - "Filename": "test_validate_response.py", - "Path": "python/fastapi/tests/test_validate_response.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1932.68, - "Y": -160.32, - "Z": -1052.78 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 83, - "Coding LOC": 55, - "Documentation LOC": 0, - "Structural Magnitude": 38.0, - "Control Flow Ratio": "16.2%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.145 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.09%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "13.05%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 1293, + "End Line": 1298 + }, { - "Function Name": "get_valid_none", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "40.0%", - "Start Line": 27, - "End Line": 31 + "Control Flow Ratio": "0.0%", + "Start Line": 1349, + "End Line": 1354 + }, + { + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1395, + "End Line": 1400 + }, + { + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1451, + "End Line": 1456 + }, + { + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1504, + "End Line": 1509 }, { - "Function Name": "test_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 51, - "End Line": 53 + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1551, + "End Line": 1556 }, { - "Function Name": "test_invalid_none", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 56, - "End Line": 58 + "Function Name": "constructor", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 1684, + "End Line": 1689 }, { - "Function Name": "test_double_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 75, - "End Line": 77 + "Function Name": "setExtensions", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 2624, + "End Line": 2628 }, { - "Function Name": "test_invalid_list", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 80, - "End Line": 82 + "Function Name": "setPlugins", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 2630, + "End Line": 2634 }, { - "Function Name": "get_invalidlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "removeAll", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 40, - "End Line": 45 + "Start Line": 600, + "End Line": 604 }, { - "Function Name": "test_valid_none_data", + "Function Name": "constructor", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 65 + "Start Line": 801, + "End Line": 805 }, { - "Function Name": "test_valid_none_none", + "Function Name": "getMaterialType", "Structural Impact": 1.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 68, - "End Line": 72 + "Start Line": 807, + "End Line": 811 }, { - "Function Name": "get_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 1999, + "End Line": 2003 }, { - "Function Name": "get_invalid_none", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "constructor", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 23 + "Start Line": 2060, + "End Line": 2064 }, { - "Function Name": "get_innerinvalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "getMaterialType", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 36 + "Start Line": 3529, + "End Line": 3533 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 6, - "Sequential Logic Declarations": 31, - "Function Parameters": 11, - "Function/Method Declarations": 11, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 6, - "Type/Safety Bypasses": 0, + "Control Flow Branches": 614, + "Sequential Logic Declarations": 315, + "Function Parameters": 207, + "Function/Method Declarations": 129, + "Class/Entity Declarations": 26, + "Defensive Programming Constructs": 247, + "Type/Safety Bypasses": 3, "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 17, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 15, - "Asynchronous/Concurrent Execution": 0, + "I/O and Network Boundaries": 13, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 1186, + "Commented-out Code (Dead Logic)": 2, + "Structured Documentation Blocks": 150, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 415, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 5, - "Generic Type Abstractions": 2, - "Collection Iterators / Comprehensions": 0, + "Closures and Anonymous Functions": 86, + "Global State Dependencies": 5, + "Decorators and Annotations": 0, + "Generic Type Abstractions": 0, + "Collection Iterators / Comprehensions": 3, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Metaprogramming & Reflection": 4, + "Module Dependencies (Imports)": 3, + "Authorship Metadata": 1, + "Planned Work (TODOs)": 3, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 49, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 122, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, + "Ad-hoc Print / Debug Statements": 11, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 14, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 4, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 418, + "Resource Deallocation & Cleanup": 2, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 31, + "Structural Tab Indentations": 2300, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, + "Serialization Parsing": 3, + "Regex Execution": 8, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, @@ -220380,16 +220199,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 14, - "Design Camel Case": 0, - "Design Snake Case": 12, - "Design Pascal Case": 2, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 11, + "Vectorized Math & Tensor Operations": 0, + "Core Var Decl": 546, + "Design Camel Case": 199, + "Design Snake Case": 323, + "Design Pascal Case": 8, + "Design Upper Case": 14, + "Design Short Vars": 51, + "Design Long Vars": 3, + "Duplicate Logic": 12, + "Orphaned Logic": 6, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -220413,35 +220232,34 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, + "Direct Upstream (Fragility)": 4, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pydantic", - "pytest" + "../utils/BufferGeometryUtils.js", + "../utils/SkeletonUtils.js", + "three", + "three/addons/loaders/GLTFLoader.js" ] }, - "python/fastapi/tests/test_validate_response_dataclass.py": { + "javascript/threejs/Matrix4.js": { "1. Artifact Identity": { - "Filename": "test_validate_response_dataclass.py", - "Path": "python/fastapi/tests/test_validate_response_dataclass.py", - "Language": "Python", + "Filename": "Matrix4.js", + "Path": "javascript/threejs/Matrix4.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 3408.88, - "Y": 2.11, - "Z": 1441.99 + "X": 3458.53, + "Y": -30.17, + "Z": -5519.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -220450,638 +220268,430 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 52, - "Coding LOC": 34, - "Documentation LOC": 0, - "Structural Magnitude": 20.48, - "Control Flow Ratio": "13.6%", + "Total LOC": 1315, + "Coding LOC": 597, + "Documentation LOC": 376, + "Structural Magnitude": 292.94, + "Control Flow Ratio": "44.0%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.147 + "Raw Cognitive Density": 0.515 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "4.11%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "12.08%", + "Cognitive Load Exposure": "14.03%", + "Error & Exception Exposure": "51.2%", + "Tech Debt Exposure": "89.15%", + "Testing Exposure": "80.0%", + "API Exposure": "1.93%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "State Flux Exposure": "54.96%", + "Commented Logic Exposure": "5.06%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 39, - "End Line": 41 + "Function Name": "makePerspective", + "Structural Impact": 23.2, + "Lines of Code (LOC)": 45, + "Control Flow Branches": 6, + "Input Parameters": 8, + "Control Flow Ratio": "75.0%", + "Start Line": 1122, + "End Line": 1166 }, { - "Function Name": "test_double_invalid", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 44, - "End Line": 46 + "Function Name": "makeOrthographic", + "Structural Impact": 23.2, + "Lines of Code (LOC)": 45, + "Control Flow Branches": 6, + "Input Parameters": 8, + "Control Flow Ratio": "75.0%", + "Start Line": 1182, + "End Line": 1226 }, { - "Function Name": "test_invalid_list", - "Structural Impact": 2.1, - "Lines of Code (LOC)": 3, + "Function Name": "makeRotationFromEuler", + "Structural Impact": 23.0, + "Lines of Code (LOC)": 121, + "Control Flow Branches": 11, + "Input Parameters": 1, + "Control Flow Ratio": "91.7%", + "Start Line": 338, + "End Line": 458 + }, + { + "Function Name": "lookAt", + "Structural Impact": 12.3, + "Lines of Code (LOC)": 46, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 483, + "End Line": 528 + }, + { + "Function Name": "constructor", + "Structural Impact": 9.4, + "Lines of Code (LOC)": 23, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 49, - "End Line": 51 + "Input Parameters": 16, + "Control Flow Ratio": "100.0%", + "Start Line": 79, + "End Line": 101 }, { - "Function Name": "get_invalidlist", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 33 + "Function Name": "decompose", + "Structural Impact": 8.7, + "Lines of Code (LOC)": 54, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "40.0%", + "Start Line": 1053, + "End Line": 1106 }, { - "Function Name": "get_invalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 18, - "End Line": 19 + "Function Name": "makeTranslation", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "66.7%", + "Start Line": 810, + "End Line": 838 }, { - "Function Name": "get_innerinvalid", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, - "Control Flow Branches": 0, - "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 24 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 19, - "Function Parameters": 6, - "Function/Method Declarations": 6, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 2, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 10, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 7, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 4, - "Generic Type Abstractions": 2, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 16, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 2, - "Core Var Decl": 7, - "Design Camel Case": 0, - "Design Snake Case": 5, - "Design Pascal Case": 2, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 6, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pydantic.dataclasses", - "pytest" - ] - }, - "python/fastapi/tests/test_validation_error_context.py": { - "1. Artifact Identity": { - "Filename": "test_validation_error_context.py", - "Path": "python/fastapi/tests/test_validation_error_context.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 3057.56, - "Y": -46.26, - "Z": -990.18 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 169, - "Coding LOC": 123, - "Documentation LOC": 0, - "Structural Magnitude": 69.56, - "Control Flow Ratio": "9.6%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.515 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "14.06%", - "Error & Exception Exposure": "12.22%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "11.29%", - "Concurrency Exposure": "98.38%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Function Name": "setPosition", + "Structural Impact": 7.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "66.7%", + "Start Line": 683, + "End Line": 703 + }, { - "Function Name": "test_websocket_validation_error_includes_endpoint_context", - "Structural Impact": 3.6, - "Lines of Code (LOC)": 12, + "Function Name": "extractBasis", + "Structural Impact": 5.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 1, + "Input Parameters": 3, + "Control Flow Ratio": "33.3%", + "Start Line": 239, + "End Line": 257 + }, + { + "Function Name": "equals", + "Structural Impact": 4.9, + "Lines of Code (LOC)": 14, "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 113, - "End Line": 124 + "Input Parameters": 1, + "Control Flow Ratio": "40.0%", + "Start Line": 1234, + "End Line": 1247 }, { - "Function Name": "test_subapp_websocket_validation_error_includes_endpoint_context", - "Structural Impact": 3.6, + "Function Name": "set", + "Structural Impact": 4.7, "Lines of Code (LOC)": 12, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 140, - "End Line": 151 + "Control Flow Branches": 0, + "Input Parameters": 16, + "Control Flow Ratio": "0.0%", + "Start Line": 125, + "End Line": 136 }, { - "Function Name": "test_request_validation_error_includes_endpoint_context", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "extractRotation", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 38, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 87, - "End Line": 97 + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 289, + "End Line": 326 }, { - "Function Name": "test_response_validation_error_includes_endpoint_context", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 11, + "Function Name": "invert", + "Structural Impact": 4.0, + "Lines of Code (LOC)": 52, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 100, - "End Line": 110 + "Control Flow Ratio": "33.3%", + "Start Line": 712, + "End Line": 763 }, { - "Function Name": "test_subapp_request_validation_error_includes_endpoint_context", - "Structural Impact": 2.5, + "Function Name": "fromArray", + "Structural Impact": 4.0, "Lines of Code (LOC)": 11, "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "16.7%", - "Start Line": 127, - "End Line": 137 + "Input Parameters": 2, + "Control Flow Ratio": "33.3%", + "Start Line": 1256, + "End Line": 1266 }, { - "Function Name": "websocket_validation_handler", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 5, + "Function Name": "compose", + "Structural Impact": 3.8, + "Lines of Code (LOC)": 35, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 48, - "End Line": 52 + "Start Line": 1004, + "End Line": 1038 }, { - "Function Name": "capture", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "multiplyMatrices", + "Structural Impact": 3.7, + "Lines of Code (LOC)": 39, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 20, - "End Line": 22 + "Start Line": 562, + "End Line": 600 }, { - "Function Name": "request_validation_handler", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "makeShear", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 6, "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 36 + "Start Line": 980, + "End Line": 993 }, { - "Function Name": "response_validation_handler", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "toArray", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 27, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 41, - "End Line": 43 + "Start Line": 1276, + "End Line": 1302 }, { - "Function Name": "websocket_endpoint", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "makeRotationAxis", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 22, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 71, - "End Line": 74 + "Start Line": 923, + "End Line": 944 }, { - "Function Name": "subapp_websocket_endpoint", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "makeScale", + "Structural Impact": 2.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 3, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 81 + "Start Line": 954, + "End Line": 967 }, { - "Function Name": "__init__", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "makeBasis", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 267, + "End Line": 278 + }, + { + "Function Name": "setFromMatrix3", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 17, - "End Line": 18 + "Start Line": 214, + "End Line": 229 }, { - "Function Name": "get_user", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "makeRotationX", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 56, - "End Line": 57 + "Start Line": 847, + "End Line": 862 }, { - "Function Name": "test_validation_error_with_no_context", - "Structural Impact": 1.4, - "Lines of Code (LOC)": 7, + "Function Name": "makeRotationY", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 162, - "End Line": 168 + "Start Line": 871, + "End Line": 886 }, { - "Function Name": "test_validation_error_with_only_path", - "Structural Impact": 1.3, - "Lines of Code (LOC)": 6, + "Function Name": "makeRotationZ", + "Structural Impact": 2.2, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 895, + "End Line": 910 + }, + { + "Function Name": "copy", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 175, + "End Line": 187 + }, + { + "Function Name": "scale", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 771, + "End Line": 783 + }, + { + "Function Name": "copyPosition", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 196, + "End Line": 206 + }, + { + "Function Name": "multiplyScalar", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 608, + "End Line": 619 + }, + { + "Function Name": "determinant", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 23, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 154, - "End Line": 159 + "Start Line": 628, + "End Line": 650 }, { - "Function Name": "get_item", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "transpose", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 16, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 61, - "End Line": 62 + "Start Line": 657, + "End Line": 672 }, { - "Function Name": "get_sub_item", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "identity", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 14, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 66, - "End Line": 67 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 7, - "Sequential Logic Declarations": 66, - "Function Parameters": 17, - "Function/Method Declarations": 17, - "Class/Entity Declarations": 2, - "Defensive Programming Constructs": 34, - "Type/Safety Bypasses": 13, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 20, - "State Mutations / Variable Reassignments": 2, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 27, - "Asynchronous/Concurrent Execution": 11, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 11, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 7, - "Fatal Aborts & Exceptions": 3, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 2, - "Private / Encapsulated Scopes": 1, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 84, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 8, - "Core Var Decl": 17, - "Design Camel Case": 0, - "Design Snake Case": 17, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 11, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 2, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "fastapi.testclient", - "pydantic" - ] - }, - "python/fastapi/tests/test_vibe.py": { - "1. Artifact Identity": { - "Filename": "test_vibe.py", - "Path": "python/fastapi/tests/test_vibe.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 837.32, - "Y": -232.84, - "Z": 800.23 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 18, - "Coding LOC": 13, - "Documentation LOC": 0, - "Structural Magnitude": 8.26, - "Control Flow Ratio": "14.3%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.385 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "80.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.46%", - "Concurrency Exposure": "56.59%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "86.67%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Start Line": 143, + "End Line": 156 + }, { - "Function Name": "test_vibe_raises", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 10, - "Control Flow Branches": 2, + "Function Name": "makeRotationFromQuaternion", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 468, + "End Line": 472 + }, + { + "Function Name": "multiply", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 536, + "End Line": 540 + }, + { + "Function Name": "premultiply", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 548, + "End Line": 552 + }, + { + "Function Name": "getMaxScaleOnAxis", + "Structural Impact": 1.6, + "Lines of Code (LOC)": 11, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "28.6%", - "Start Line": 8, - "End Line": 17 + "Control Flow Ratio": "0.0%", + "Start Line": 790, + "End Line": 800 }, { - "Function Name": "ai_vibes", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "clone", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 163, + "End Line": 167 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 12, - "Function Parameters": 2, - "Function/Method Declarations": 2, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 3, + "Control Flow Branches": 40, + "Sequential Logic Declarations": 51, + "Function Parameters": 37, + "Function/Method Declarations": 37, + "Class/Entity Declarations": 1, + "Defensive Programming Constructs": 19, + "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 3, - "Asynchronous/Concurrent Execution": 1, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 86, + "Commented-out Code (Dead Logic)": 1, + "Structured Documentation Blocks": 178, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, "Closures and Anonymous Functions": 0, "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, "Collection Iterators / Comprehensions": 0, "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Metaprogramming & Reflection": 1, + "Module Dependencies (Imports)": 2, "Authorship Metadata": 0, "Planned Work (TODOs)": 0, "Acknowledged Tech Debt (FIXMEs)": 0, @@ -221091,22 +220701,22 @@ "Dependency Injection Constructs": 0, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 10, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 2, "Thread Sleeps & Blocking Waits": 0, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, + "Immutable Data Declarations": 98, "Resource Deallocation & Cleanup": 0, "Private / Encapsulated Scopes": 0, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 8, + "Structural Tab Indentations": 582, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, @@ -221123,15 +220733,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 3, - "Design Camel Case": 0, - "Design Snake Case": 3, + "Core Var Decl": 140, + "Design Camel Case": 12, + "Design Snake Case": 128, "Design Pascal Case": 0, "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Short Vars": 89, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 2, + "Orphaned Logic": 27, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -221140,8 +220750,8 @@ "Safety & Constraint Bypasses": 0, "External Network & I/O Hooks": 0, "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, + "Global Environment Mutation": 1, + "Commented-Out Executable Logic": 1, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, "Non-Standard Unicode / Homoglyphs": 0, @@ -221155,35 +220765,32 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 2, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "fastapi", - "fastapi.exceptions", - "pytest", - "typing" + "../constants.js", + "./Vector3.js" ] }, - "python/fastapi/tests/test_webhooks_security.py": { + "javascript/threejs/WebGLProgram.js": { "1. Artifact Identity": { - "Filename": "test_webhooks_security.py", - "Path": "python/fastapi/tests/test_webhooks_security.py", - "Language": "Python", + "Filename": "WebGLProgram.js", + "Path": "javascript/threejs/WebGLProgram.js", + "Language": "Javascript", "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "BaseModel", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 2838.89, - "Y": -59.72, - "Z": -1958.05 + "X": 3008.36, + "Y": -88.2, + "Z": -5520.1 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -221192,318 +220799,372 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 135, - "Coding LOC": 116, - "Documentation LOC": 5, - "Structural Magnitude": 17.12, - "Control Flow Ratio": "5.3%", + "Total LOC": 1029, + "Coding LOC": 621, + "Documentation LOC": 30, + "Structural Magnitude": 684.02, + "Control Flow Ratio": "77.6%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.034 + "Raw Cognitive Density": 0.857 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.31%", - "Error & Exception Exposure": "44.19%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "6.55%", + "Cognitive Load Exposure": "60.53%", + "Error & Exception Exposure": "47.87%", + "Tech Debt Exposure": "21.55%", + "Testing Exposure": "80.0%", + "API Exposure": "0.01%", "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", + "State Flux Exposure": "53.38%", "Commented Logic Exposure": "0.0%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "15.98%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_openapi_schema", - "Structural Impact": 7.8, - "Lines of Code (LOC)": 96, + "Function Name": "WebGLProgram", + "Structural Impact": 455.6, + "Lines of Code (LOC)": 615, + "Control Flow Branches": 189, + "Input Parameters": 4, + "Control Flow Ratio": "93.6%", + "Start Line": 412, + "End Line": 1026 + }, + { + "Function Name": "onFirstUse", + "Structural Impact": 24.5, + "Lines of Code (LOC)": 94, + "Control Flow Branches": 13, + "Input Parameters": 1, + "Control Flow Ratio": "86.7%", + "Start Line": 856, + "End Line": 949 + }, + { + "Function Name": "getShaderErrors", + "Structural Impact": 13.2, + "Lines of Code (LOC)": 25, + "Control Flow Branches": 5, + "Input Parameters": 3, + "Control Flow Ratio": "62.5%", + "Start Line": 58, + "End Line": 82 + }, + { + "Function Name": "generatePrecision", + "Structural Impact": 10.4, + "Lines of Code (LOC)": 38, + "Control Flow Branches": 5, + "Input Parameters": 1, + "Control Flow Ratio": "71.4%", + "Start Line": 306, + "End Line": 343 + }, + { + "Function Name": "fetchAttributeLocations", + "Structural Impact": 10.1, + "Lines of Code (LOC)": 29, + "Control Flow Branches": 4, + "Input Parameters": 2, + "Control Flow Ratio": "57.1%", + "Start Line": 178, + "End Line": 206 + }, + { + "Function Name": "getEncodingComponents", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 4, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 36, + "End Line": 56 + }, + { + "Function Name": "includeReplacer", + "Structural Impact": 8.1, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 3, + "Input Parameters": 2, + "Control Flow Ratio": "60.0%", + "Start Line": 253, + "End Line": 276 + }, + { + "Function Name": "generateDefines", + "Structural Impact": 6.5, + "Lines of Code (LOC)": 17, + "Control Flow Branches": 3, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 160, + "End Line": 176 + }, + { + "Function Name": "handleSource", + "Structural Impact": 6.1, + "Lines of Code (LOC)": 18, "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "9.5%", - "Start Line": 39, - "End Line": 134 + "Input Parameters": 2, + "Control Flow Ratio": "50.0%", + "Start Line": 15, + "End Line": 32 }, { - "Function Name": "new_subscription", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 3, + "Function Name": "loopReplacer", + "Structural Impact": 5.2, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 4, + "Control Flow Ratio": "25.0%", + "Start Line": 288, + "End Line": 302 + }, + { + "Function Name": "generateVertexExtensions", + "Structural Impact": 4.7, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "66.7%", + "Start Line": 149, + "End Line": 158 + }, + { + "Function Name": "generateEnvMapTypeDefine", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 362, + "End Line": 368 + }, + { + "Function Name": "generateEnvMapModeDefine", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 374, + "End Line": 380 + }, + { + "Function Name": "generateEnvMapBlendingDefine", + "Structural Impact": 4.6, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 388, + "End Line": 394 + }, + { + "Function Name": "getToneMappingFunction", + "Structural Impact": 4.2, + "Lines of Code (LOC)": 14, + "Control Flow Branches": 1, + "Input Parameters": 2, + "Control Flow Ratio": "20.0%", + "Start Line": 110, + "End Line": 123 + }, + { + "Function Name": "generateCubeUVSize", + "Structural Impact": 3.6, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "33.3%", + "Start Line": 396, + "End Line": 410 + }, + { + "Function Name": "generateShadowMapTypeDefine", + "Structural Impact": 3.1, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 350, + "End Line": 354 + }, + { + "Function Name": "replaceLightNums", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 18, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 22, - "End Line": 24 + "Start Line": 214, + "End Line": 231 }, { - "Function Name": "test_dummy_webhook", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 3, - "Control Flow Branches": 0, + "Function Name": "getUniforms", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "0.0%", - "Start Line": 34, - "End Line": 36 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 2, - "Sequential Logic Declarations": 36, - "Function Parameters": 3, - "Function/Method Declarations": 3, - "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 4, - "Type/Safety Bypasses": 1, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 4, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 4, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, - "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 1, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 7, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 1, - "Dependency Injection Constructs": 0, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 100, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 1, - "Core Var Decl": 4, - "Design Camel Case": 0, - "Design Snake Case": 4, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 2, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 0, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 7, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "datetime", - "fastapi", - "fastapi.security", - "fastapi.testclient", - "inline_snapshot", - "pydantic", - "typing" - ] - }, - "python/fastapi/tests/test_wrapped_method_forward_reference.py": { - "1. Artifact Identity": { - "Filename": "test_wrapped_method_forward_reference.py", - "Path": "python/fastapi/tests/test_wrapped_method_forward_reference.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 1355.55, - "Y": -258.26, - "Z": 1417.38 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 32, - "Coding LOC": 18, - "Documentation LOC": 6, - "Structural Magnitude": 9.66, - "Control Flow Ratio": "7.1%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.167 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "2.21%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.93%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ + "Control Flow Ratio": "50.0%", + "Start Line": 955, + "End Line": 966 + }, { - "Function Name": "test_wrapped_method_type_inference", - "Structural Impact": 2.8, + "Function Name": "getAttributes", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 972, + "End Line": 983 + }, + { + "Function Name": "getTexelEncodingFunction", + "Structural Impact": 2.5, "Lines of Code (LOC)": 15, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 84, + "End Line": 98 + }, + { + "Function Name": "isReady", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 11, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 17, - "End Line": 31 + "Control Flow Ratio": "50.0%", + "Start Line": 990, + "End Line": 1000 }, { - "Function Name": "method", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "replaceClippingPlaneNums", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 11, - "End Line": 12 + "Start Line": 233, + "End Line": 239 }, { - "Function Name": "passthrough", + "Function Name": "getLuminanceFunction", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 127, + "End Line": 147 + }, + { + "Function Name": "filterEmptyLine", "Structural Impact": 1.7, - "Lines of Code (LOC)": 6, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 9, - "End Line": 14 + "Start Line": 208, + "End Line": 212 + }, + { + "Function Name": "resolveIncludes", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 245, + "End Line": 249 + }, + { + "Function Name": "unrollLoops", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 282, + "End Line": 286 + }, + { + "Function Name": "destroy", + "Structural Impact": 1.4, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 1004, + "End Line": 1011 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 13, - "Function Parameters": 3, - "Function/Method Declarations": 3, + "Control Flow Branches": 229, + "Sequential Logic Declarations": 66, + "Function Parameters": 29, + "Function/Method Declarations": 28, "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 1, + "Defensive Programming Constructs": 38, "Type/Safety Bypasses": 0, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 3, - "State Mutations / Variable Reassignments": 0, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 70, "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 2, + "Structured Documentation Blocks": 0, + "Unit Test Assertions": 0, "Asynchronous/Concurrent Execution": 0, "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 1, + "Closures and Anonymous Functions": 4, + "Global State Dependencies": 3, + "Decorators and Annotations": 0, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 6, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, + "Module Dependencies (Imports)": 8, "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Planned Work (TODOs)": 1, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Dependency Injection Constructs": 1, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 5, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, + "Fatal Aborts & Exceptions": 1, "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, + "Bitwise Operations": 1, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, - "Private / Encapsulated Scopes": 0, + "Immutable Data Declarations": 65, + "Resource Deallocation & Cleanup": 1, + "Private / Encapsulated Scopes": 204, "Event Listeners & Subscribers": 0, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 12, + "Structural Tab Indentations": 549, + "Structural Space Indentations": 0, "Hardware Bridge": 0, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, - "Regex Execution": 0, + "Regex Execution": 18, "Time Date Logic": 0, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, @@ -221512,16 +221173,16 @@ "Traditional Machine Learning (Stats/Trees)": 0, "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 4, - "Design Camel Case": 0, - "Design Snake Case": 4, + "Vectorized Math & Tensor Operations": 1, + "Core Var Decl": 98, + "Design Camel Case": 64, + "Design Snake Case": 33, "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, + "Design Upper Case": 1, + "Design Short Vars": 9, "Design Long Vars": 0, "Duplicate Logic": 0, - "Orphaned Logic": 1, + "Orphaned Logic": 4, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -221545,34 +221206,39 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, + "Direct Upstream (Fragility)": 8, "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - ".forward_reference_type", - "fastapi", - "fastapi.testclient", - "functools" + "../../constants.js", + "../../math/ColorManagement.js", + "../../math/Matrix3.js", + "../../math/Vector3.js", + "../../utils.js", + "../shaders/ShaderChunk.js", + "./WebGLShader.js", + "./WebGLUniforms.js" ] }, - "python/fastapi/tests/test_ws_dependencies.py": { + "javascript/threejs/WebGLRenderer.js": { "1. Artifact Identity": { - "Filename": "test_ws_dependencies.py", - "Path": "python/fastapi/tests/test_ws_dependencies.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", + "Filename": "WebGLRenderer.js", + "Path": "javascript/threejs/WebGLRenderer.js", + "Language": "Javascript", + "Architect": "the renderer", + "Indentation Style": "Tabs", "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", + "Alert": "TYPOSQUATTING THREAT: 'math/Vector4.js' mimics 'math/Vector3.js'", + "Folder Dominant Lang": "javascript", "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" + "Identity Proof": "Single Indicator (Ext: .js)" }, "2. Topological Coordinates": { - "X": 1612.06, - "Y": -200.0, - "Z": 36.9 + "X": 2619.95, + "Y": -96.13, + "Z": -4923.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -221581,851 +221247,863 @@ "File Archetype": "Unclassified", "File Drift (Z-Score)": 0.0, "File Fingerprint": {}, - "Total LOC": 73, - "Coding LOC": 48, - "Documentation LOC": 0, - "Structural Magnitude": 39.56, - "Control Flow Ratio": "8.3%", + "Total LOC": 3639, + "Coding LOC": 1628, + "Documentation LOC": 734, + "Structural Magnitude": 2408.76, + "Control Flow Ratio": "77.2%", "Popularity Rank": 0, "Raw Churn Frequency": 0.0, "Authorship Centralization": 0.0, "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.896 + "Raw Cognitive Density": 1.1 }, "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "32.09%", - "Error & Exception Exposure": "36.14%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "10.7%", - "Concurrency Exposure": "100.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", + "Cognitive Load Exposure": "40.12%", + "Error & Exception Exposure": "39.1%", + "Tech Debt Exposure": "52.0%", + "Testing Exposure": "80.0%", + "API Exposure": "1.69%", + "Concurrency Exposure": "24.71%", + "State Flux Exposure": "98.04%", + "Commented Logic Exposure": "4.97%", "Specification Exposure": "100.0%", "Instability Exposure": "50.0%", "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", + "Documentation Exposure": "11.92%", "Hardcoded Payload Artifacts": "0.0%" }, "5. Function Analysis": [ { - "Function Name": "test_index", - "Structural Impact": 2.2, + "Function Name": "constructor", + "Structural Impact": 642.0, + "Lines of Code (LOC)": 2545, + "Control Flow Branches": 363, + "Input Parameters": 1, + "Control Flow Ratio": "80.5%", + "Start Line": 70, + "End Line": 2614 + }, + { + "Function Name": "setProgram", + "Structural Impact": 374.1, + "Lines of Code (LOC)": 428, + "Control Flow Branches": 143, + "Input Parameters": 5, + "Control Flow Ratio": "94.7%", + "Start Line": 2295, + "End Line": 2722 + }, + { + "Function Name": "copyTextureToTexture", + "Structural Impact": 141.4, + "Lines of Code (LOC)": 235, + "Control Flow Branches": 48, + "Input Parameters": 6, + "Control Flow Ratio": "90.6%", + "Start Line": 3205, + "End Line": 3439 + }, + { + "Function Name": "renderBufferDirect", + "Structural Impact": 108.5, + "Lines of Code (LOC)": 159, + "Control Flow Branches": 37, + "Input Parameters": 6, + "Control Flow Ratio": "78.7%", + "Start Line": 1175, + "End Line": 1333 + }, + { + "Function Name": "render", + "Structural Impact": 94.2, + "Lines of Code (LOC)": 221, + "Control Flow Branches": 47, + "Input Parameters": 2, + "Control Flow Ratio": "92.2%", + "Start Line": 1600, + "End Line": 1820 + }, + { + "Function Name": "projectObject", + "Structural Impact": 81.7, + "Lines of Code (LOC)": 113, + "Control Flow Branches": 33, + "Input Parameters": 4, + "Control Flow Ratio": "91.7%", + "Start Line": 1822, + "End Line": 1934 + }, + { + "Function Name": "setRenderTarget", + "Structural Impact": 80.4, + "Lines of Code (LOC)": 168, + "Control Flow Branches": 35, + "Input Parameters": 3, + "Control Flow Ratio": "87.5%", + "Start Line": 2823, + "End Line": 2990 + }, + { + "Function Name": "getProgram", + "Structural Impact": 51.8, + "Lines of Code (LOC)": 116, + "Control Flow Branches": 22, + "Input Parameters": 3, + "Control Flow Ratio": "84.6%", + "Start Line": 2142, + "End Line": 2257 + }, + { + "Function Name": "readRenderTargetPixels", + "Structural Impact": 51.2, + "Lines of Code (LOC)": 65, + "Control Flow Branches": 15, + "Input Parameters": 8, + "Control Flow Ratio": "78.9%", + "Start Line": 3004, + "End Line": 3068 + }, + { + "Function Name": "readRenderTargetPixelsAsync", + "Structural Impact": 48.9, + "Lines of Code (LOC)": 78, + "Control Flow Branches": 14, + "Input Parameters": 8, + "Control Flow Ratio": "82.4%", + "Start Line": 3086, + "End Line": 3163 + }, + { + "Function Name": "renderTransmissionPass", + "Structural Impact": 44.2, + "Lines of Code (LOC)": 123, + "Control Flow Branches": 16, + "Input Parameters": 4, + "Control Flow Ratio": "84.2%", + "Start Line": 1960, + "End Line": 2082 + }, + { + "Function Name": "compile", + "Structural Impact": 38.6, + "Lines of Code (LOC)": 92, + "Control Flow Branches": 16, + "Input Parameters": 3, + "Control Flow Ratio": "84.2%", + "Start Line": 1371, + "End Line": 1462 + }, + { + "Function Name": "clear", + "Structural Impact": 23.8, + "Lines of Code (LOC)": 75, + "Control Flow Branches": 9, + "Input Parameters": 3, + "Control Flow Ratio": "81.8%", + "Start Line": 944, + "End Line": 1018 + }, + { + "Function Name": "renderObject", + "Structural Impact": 14.7, + "Lines of Code (LOC)": 30, + "Control Flow Branches": 4, + "Input Parameters": 6, + "Control Flow Ratio": "100.0%", + "Start Line": 2111, + "End Line": 2140 + }, + { + "Function Name": "renderScene", + "Structural Impact": 14.6, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 5, + "Input Parameters": 4, + "Control Flow Ratio": "100.0%", + "Start Line": 1936, + "End Line": 1958 + }, + { + "Function Name": "renderObjects", + "Structural Impact": 13.3, + "Lines of Code (LOC)": 26, + "Control Flow Branches": 5, + "Input Parameters": 3, + "Control Flow Ratio": "71.4%", + "Start Line": 2084, + "End Line": 2109 + }, + { + "Function Name": "compileAsync", + "Structural Impact": 12.9, + "Lines of Code (LOC)": 59, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "50.0%", + "Start Line": 1478, + "End Line": 1536 + }, + { + "Function Name": "initTexture", + "Structural Impact": 12.5, + "Lines of Code (LOC)": 23, + "Control Flow Branches": 7, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 3464, + "End Line": 3486 + }, + { + "Function Name": "setSize", + "Structural Impact": 11.6, + "Lines of Code (LOC)": 31, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "80.0%", + "Start Line": 650, + "End Line": 680 + }, + { + "Function Name": "setEffects", + "Structural Impact": 11.2, + "Lines of Code (LOC)": 27, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "75.0%", + "Start Line": 726, + "End Line": 752 + }, + { + "Function Name": "prepareMaterial", + "Structural Impact": 11.1, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 4, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 1337, + "End Line": 1357 + }, + { + "Function Name": "materialNeedsLights", + "Structural Impact": 10.2, + "Lines of Code (LOC)": 7, + "Control Flow Branches": 6, + "Input Parameters": 1, + "Control Flow Ratio": "85.7%", + "Start Line": 2742, + "End Line": 2748 + }, + { + "Function Name": "setViewport", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 4, + "Control Flow Ratio": "100.0%", + "Start Line": 787, + "End Line": 801 + }, + { + "Function Name": "setScissor", + "Structural Impact": 7.5, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 2, + "Input Parameters": 4, + "Control Flow Ratio": "100.0%", + "Start Line": 824, + "End Line": 838 + }, + { + "Function Name": "setRenderTargetTextures", + "Structural Impact": 7.0, + "Lines of Code (LOC)": 19, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 2784, + "End Line": 2802 + }, + { + "Function Name": "copyFramebufferToTexture", + "Structural Impact": 6.8, + "Lines of Code (LOC)": 16, + "Control Flow Branches": 2, + "Input Parameters": 3, + "Control Flow Ratio": "100.0%", + "Start Line": 3172, + "End Line": 3187 + }, + { + "Function Name": "releaseMaterialProgramReferences", + "Structural Impact": 5.3, + "Lines of Code (LOC)": 21, + "Control Flow Branches": 2, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 1151, + "End Line": 1171 + }, + { + "Function Name": "initGLContext", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 116, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "100.0%", + "Start Line": 423, + "End Line": 538 + }, + { + "Function Name": "checkMaterialsReady", + "Structural Impact": 4.5, + "Lines of Code (LOC)": 30, + "Control Flow Branches": 2, + "Input Parameters": 0, + "Control Flow Ratio": "50.0%", + "Start Line": 1487, + "End Line": 1516 + }, + { + "Function Name": "getUniformList", + "Structural Impact": 3.4, + "Lines of Code (LOC)": 12, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 2259, + "End Line": 2270 + }, + { + "Function Name": "setPixelRatio", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "50.0%", + "Start Line": 619, + "End Line": 627 + }, + { + "Function Name": "initRenderTarget", + "Structural Impact": 3.3, + "Lines of Code (LOC)": 9, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 3448, + "End Line": 3456 + }, + { + "Function Name": "setAnimationLoop", + "Structural Impact": 3.2, + "Lines of Code (LOC)": 8, + "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 1572, + "End Line": 1579 + }, + { + "Function Name": "onAnimationFrame", + "Structural Impact": 3.1, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, + "Input Parameters": 1, + "Control Flow Ratio": "100.0%", + "Start Line": 1542, + "End Line": 1546 + }, + { + "Function Name": "updateCommonMaterialProperties", + "Structural Impact": 2.8, + "Lines of Code (LOC)": 22, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 2272, + "End Line": 2293 + }, + { + "Function Name": "setDrawingBufferSize", + "Structural Impact": 2.6, + "Lines of Code (LOC)": 13, + "Control Flow Branches": 0, + "Input Parameters": 3, + "Control Flow Ratio": "0.0%", + "Start Line": 707, + "End Line": 719 + }, + { + "Function Name": "markUniformsLightsNeedsUpdate", + "Structural Impact": 2.5, + "Lines of Code (LOC)": 15, + "Control Flow Branches": 0, + "Input Parameters": 2, + "Control Flow Ratio": "0.0%", + "Start Line": 2726, + "End Line": 2740 + }, + { + "Function Name": "forceContextLoss", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 54, - "End Line": 58 + "Control Flow Ratio": "100.0%", + "Start Line": 586, + "End Line": 591 }, { - "Function Name": "test_routerindex", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "forceContextRestore", + "Structural Impact": 2.3, + "Lines of Code (LOC)": 6, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 61, - "End Line": 65 + "Control Flow Ratio": "100.0%", + "Start Line": 596, + "End Line": 601 }, { - "Function Name": "test_routerprefixindex", + "Function Name": "getTargetPixelRatio", "Structural Impact": 2.2, "Lines of Code (LOC)": 5, "Control Flow Branches": 1, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 68, - "End Line": 72 + "Control Flow Ratio": "50.0%", + "Start Line": 349, + "End Line": 353 }, { - "Function Name": "index", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "setRenderTargetFramebuffer", + "Structural Impact": 2.1, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 28, - "End Line": 31 + "Start Line": 2804, + "End Line": 2810 }, { - "Function Name": "routerindex", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "getContext", + "Structural Impact": 2.0, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 2, "Control Flow Ratio": "0.0%", - "Start Line": 35, - "End Line": 38 + "Start Line": 359, + "End Line": 363 }, { - "Function Name": "routerprefixindex", + "Function Name": "onContextLost", "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 42, - "End Line": 45 + "Start Line": 1092, + "End Line": 1100 }, { - "Function Name": "create_dependency", - "Structural Impact": 1.7, - "Lines of Code (LOC)": 5, + "Function Name": "onMaterialDispose", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 15, - "End Line": 19 + "Start Line": 1130, + "End Line": 1138 }, { - "Function Name": "fun", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "outputColorSpace", + "Structural Impact": 1.9, + "Lines of Code (LOC)": 9, "Control Flow Branches": 0, "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 16, - "End Line": 17 + "Start Line": 3539, + "End Line": 3547 }, { - "Function Name": "dependency_list", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "deallocateMaterial", + "Structural Impact": 1.8, + "Lines of Code (LOC)": 7, "Control Flow Branches": 0, - "Input Parameters": 0, + "Input Parameters": 1, "Control Flow Ratio": "0.0%", - "Start Line": 8, - "End Line": 9 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 3, - "Sequential Logic Declarations": 33, - "Function Parameters": 9, - "Function/Method Declarations": 9, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 3, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 9, - "State Mutations / Variable Reassignments": 1, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 0, - "Unit Test Assertions": 6, - "Asynchronous/Concurrent Execution": 12, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, - "Global State Dependencies": 0, - "Decorators and Annotations": 3, - "Generic Type Abstractions": 3, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 4, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 3, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 3, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 26, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 3, - "Core Var Decl": 15, - "Design Camel Case": 0, - "Design Snake Case": 14, - "Design Pascal Case": 1, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 3, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 3, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 4, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.testclient", - "json", - "typing" - ] - }, - "python/fastapi/tests/test_ws_router.py": { - "1. Artifact Identity": { - "Filename": "test_ws_router.py", - "Path": "python/fastapi/tests/test_ws_router.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Parent Entity": "Exception", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 2, - "Identity Proof": "Single Indicator (Shebang)" - }, - "2. Topological Coordinates": { - "X": 2672.34, - "Y": -89.93, - "Z": 429.77 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 272, - "Coding LOC": 182, - "Documentation LOC": 17, - "Structural Magnitude": 184.94, - "Control Flow Ratio": "16.8%", - "Popularity Rank": 0, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 1.115 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "21.63%", - "Error & Exception Exposure": "28.18%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "12.68%", - "Concurrency Exposure": "100.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "100.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "test_depend_validation", - "Structural Impact": 5.2, - "Lines of Code (LOC)": 24, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 210, - "End Line": 233 - }, - { - "Function Name": "test_depend_err_middleware", - "Structural Impact": 5.0, - "Lines of Code (LOC)": 19, - "Control Flow Branches": 3, - "Input Parameters": 0, - "Control Flow Ratio": "23.1%", - "Start Line": 236, - "End Line": 254 - }, - { - "Function Name": "wrapped_app", - "Structural Impact": 4.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, - "Input Parameters": 3, - "Control Flow Ratio": "10.0%", - "Start Line": 195, - "End Line": 203 + "Start Line": 1142, + "End Line": 1148 }, { - "Function Name": "make_app", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "33.3%", - "Start Line": 107, - "End Line": 112 + "Function Name": "getSize", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 635, + "End Line": 639 }, { - "Function Name": "websocket_middleware", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 20, - "Control Flow Branches": 1, + "Function Name": "getDrawingBufferSize", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "7.1%", - "Start Line": 188, - "End Line": 207 + "Control Flow Ratio": "0.0%", + "Start Line": 688, + "End Line": 692 }, { - "Function Name": "catcher", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 6, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "20.0%", - "Start Line": 217, - "End Line": 222 + "Function Name": "getCurrentViewport", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 760, + "End Line": 764 }, { - "Function Name": "test_depend_err_handler", - "Structural Impact": 3.8, - "Lines of Code (LOC)": 15, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "22.2%", - "Start Line": 257, - "End Line": 271 + "Function Name": "getViewport", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 772, + "End Line": 776 }, { - "Function Name": "errorhandler", - "Structural Impact": 3.7, + "Function Name": "getScissor", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, - "Input Parameters": 2, - "Control Flow Ratio": "16.7%", - "Start Line": 242, - "End Line": 246 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 809, + "End Line": 813 }, { - "Function Name": "test_wrong_uri", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "33.3%", - "Start Line": 177, - "End Line": 185 + "Function Name": "setScissorTest", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 858, + "End Line": 862 }, { - "Function Name": "middleware_constructor", - "Structural Impact": 3.5, - "Lines of Code (LOC)": 13, - "Control Flow Branches": 1, + "Function Name": "setOpaqueSort", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "8.3%", - "Start Line": 193, - "End Line": 205 + "Control Flow Ratio": "0.0%", + "Start Line": 870, + "End Line": 874 }, { - "Function Name": "test_prefix_router", - "Structural Impact": 3.2, + "Function Name": "setTransparentSort", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 132, - "End Line": 136 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 882, + "End Line": 886 }, { - "Function Name": "test_native_prefix_router", - "Structural Impact": 3.2, + "Function Name": "getClearColor", + "Structural Impact": 1.7, "Lines of Code (LOC)": 5, - "Control Flow Branches": 2, - "Input Parameters": 0, - "Control Flow Ratio": "40.0%", - "Start Line": 139, - "End Line": 143 + "Control Flow Branches": 0, + "Input Parameters": 1, + "Control Flow Ratio": "0.0%", + "Start Line": 896, + "End Line": 900 }, { - "Function Name": "routerprefixindex", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "setNodesHandler", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 6, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 37, - "End Line": 40 + "Control Flow Ratio": "0.0%", + "Start Line": 1054, + "End Line": 1059 }, { - "Function Name": "router_native_prefix_ws", - "Structural Impact": 3.0, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "onContextCreationError", + "Structural Impact": 1.7, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 1, - "Control Flow Ratio": "20.0%", - "Start Line": 72, - "End Line": 75 + "Control Flow Ratio": "0.0%", + "Start Line": 1124, + "End Line": 1128 }, { - "Function Name": "test_router_with_params", - "Structural Impact": 2.5, - "Lines of Code (LOC)": 9, - "Control Flow Branches": 1, + "Function Name": "dispose", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 24, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "20.0%", - "Start Line": 166, - "End Line": 174 + "Control Flow Ratio": "0.0%", + "Start Line": 1065, + "End Line": 1088 }, { - "Function Name": "routerindexparams", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 5, + "Function Name": "onContextRestore", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 21, "Control Flow Branches": 0, - "Input Parameters": 3, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 51, - "End Line": 55 + "Start Line": 1102, + "End Line": 1122 }, { - "Function Name": "test_app", - "Structural Impact": 2.2, + "Function Name": "resetState", + "Structural Impact": 1.5, + "Lines of Code (LOC)": 10, + "Control Flow Branches": 0, + "Input Parameters": 0, + "Control Flow Ratio": "0.0%", + "Start Line": 3493, + "End Line": 3502 + }, + { + "Function Name": "getContext", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 118, - "End Line": 122 + "Control Flow Ratio": "0.0%", + "Start Line": 566, + "End Line": 570 }, { - "Function Name": "test_router", - "Structural Impact": 2.2, + "Function Name": "getContextAttributes", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 125, - "End Line": 129 + "Control Flow Ratio": "0.0%", + "Start Line": 577, + "End Line": 581 }, { - "Function Name": "test_router2", - "Structural Impact": 2.2, + "Function Name": "getPixelRatio", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 146, - "End Line": 150 + "Control Flow Ratio": "0.0%", + "Start Line": 608, + "End Line": 612 }, { - "Function Name": "test_router_ws_depends", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, + "Function Name": "getScissorTest", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 153, - "End Line": 156 + "Control Flow Ratio": "0.0%", + "Start Line": 845, + "End Line": 849 }, { - "Function Name": "test_router_ws_depends_with_override", - "Structural Impact": 2.2, + "Function Name": "setClearColor", + "Structural Impact": 1.2, "Lines of Code (LOC)": 5, - "Control Flow Branches": 1, + "Control Flow Branches": 0, "Input Parameters": 0, - "Control Flow Ratio": "25.0%", - "Start Line": 159, - "End Line": 163 + "Control Flow Ratio": "0.0%", + "Start Line": 908, + "End Line": 912 }, { - "Function Name": "router_ws_decorator_depends", - "Structural Impact": 2.0, - "Lines of Code (LOC)": 6, + "Function Name": "getClearAlpha", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 63, - "End Line": 68 + "Start Line": 919, + "End Line": 923 }, { - "Function Name": "router_ws_depends_validate", - "Structural Impact": 1.9, - "Lines of Code (LOC)": 4, + "Function Name": "setClearAlpha", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 92, - "End Line": 95 + "Start Line": 930, + "End Line": 934 }, { - "Function Name": "router_ws_depends_err", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "clearColor", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 83, - "End Line": 84 + "Start Line": 1023, + "End Line": 1027 }, { - "Function Name": "custom_handler", - "Structural Impact": 1.8, - "Lines of Code (LOC)": 2, + "Function Name": "clearDepth", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 2, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 262, - "End Line": 263 + "Start Line": 1032, + "End Line": 1036 }, { - "Function Name": "index", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "clearStencil", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 23, - "End Line": 26 + "Start Line": 1041, + "End Line": 1045 }, { - "Function Name": "routerindex", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "onXRSessionStart", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 30, - "End Line": 33 + "Start Line": 1548, + "End Line": 1552 }, { - "Function Name": "routerindex2", - "Structural Impact": 1.6, - "Lines of Code (LOC)": 4, + "Function Name": "onXRSessionEnd", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 44, - "End Line": 47 + "Start Line": 1554, + "End Line": 1558 }, { - "Function Name": "ws_dependency_validate", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "getActiveCubeFace", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 87, - "End Line": 88 + "Start Line": 2755, + "End Line": 2759 }, { - "Function Name": "router_ws_custom_error", - "Structural Impact": 1.5, - "Lines of Code (LOC)": 2, + "Function Name": "getActiveMipmapLevel", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, - "Input Parameters": 1, + "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 103, - "End Line": 104 + "Start Line": 2766, + "End Line": 2770 }, { - "Function Name": "ws_dependency", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "getRenderTarget", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 58, - "End Line": 59 + "Start Line": 2778, + "End Line": 2782 }, { - "Function Name": "ws_dependency_err", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "coordinateSystem", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 78, - "End Line": 79 + "Start Line": 3521, + "End Line": 3525 }, { - "Function Name": "call_next", - "Structural Impact": 1.1, - "Lines of Code (LOC)": 2, + "Function Name": "outputColorSpace", + "Structural Impact": 1.2, + "Lines of Code (LOC)": 5, "Control Flow Branches": 0, "Input Parameters": 0, "Control Flow Ratio": "0.0%", - "Start Line": 199, - "End Line": 200 + "Start Line": 3533, + "End Line": 3537 } ], "6. Contextual Mitigations & Amplifications": "None Detected", "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 24, - "Sequential Logic Declarations": 119, - "Function Parameters": 34, - "Function/Method Declarations": 33, + "Control Flow Branches": 515, + "Sequential Logic Declarations": 152, + "Function Parameters": 83, + "Function/Method Declarations": 77, "Class/Entity Declarations": 1, - "Defensive Programming Constructs": 20, - "Type/Safety Bypasses": 12, + "Defensive Programming Constructs": 204, + "Type/Safety Bypasses": 1, "High-Risk Execution Commands": 0, "I/O and Network Boundaries": 0, - "Exposed API / Public Exports": 34, - "State Mutations / Variable Reassignments": 3, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 10, - "Unit Test Assertions": 33, - "Asynchronous/Concurrent Execution": 57, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 1, - "Global State Dependencies": 0, - "Decorators and Annotations": 13, - "Generic Type Abstractions": 1, - "Collection Iterators / Comprehensions": 0, - "Scientific & Mathematical Operations": 0, - "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 5, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, - "Acknowledged Tech Debt (FIXMEs)": 0, - "Specification Traceability Tags": 0, - "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 5, - "Dependency Injection Constructs": 4, - "Preprocessor Macros": 0, - "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, - "Inline Assembly Blocks": 0, - "Structured Telemetry & Logging": 0, - "Ad-hoc Print / Debug Statements": 0, - "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 3, - "Thread Sleeps & Blocking Waits": 0, - "Bitwise Operations": 0, - "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 9, - "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, - "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 131, - "Hardware Bridge": 0, - "Cryptography": 0, - "Auth Middleware": 0, - "Ipc Rpc Bridges": 0, - "Feature Flags": 0, - "Serialization Parsing": 0, - "Regex Execution": 0, - "Time Date Logic": 0, - "Cloud LLM API Integrations": 0, - "AI Orchestration Frameworks": 0, - "Vector Databases (RAG)": 0, - "Local Inference & Tensor Math": 0, - "Traditional Machine Learning (Stats/Trees)": 0, - "Deep Learning & Neural Networks": 0, - "Lazy Evaluation & Generators (O(1) Memory)": 0, - "Vectorized Math & Tensor Operations": 10, - "Core Var Decl": 35, - "Design Camel Case": 0, - "Design Snake Case": 35, - "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, - "Duplicate Logic": 0, - "Orphaned Logic": 22, - "Instructional Code Examples": 0, - "Architectural Diagrams (Mermaid/PlantUML)": 0, - "Structured Literature Headers": 0, - "Hyperlinked Literature References": 0, - "High-Entropy / Obfuscated Logic": 0, - "Safety & Constraint Bypasses": 0, - "External Network & I/O Hooks": 8, - "Dynamic Code Execution (Eval/Exec)": 0, - "Global Environment Mutation": 0, - "Commented-Out Executable Logic": 0, - "Low-Level Bitwise / Cryptographic Math": 0, - "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, - "Embedded Credentials & Keys": 0, - "Sec Extension Mismatch": 0, - "Sec Entropy": 0, - "Sec Tainted Injection": 0, - "Prompt Injection": 0, - "Agentic Rce": 0, - "Invisible Unicode Payload Smuggling": 0, - "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 - }, - "8. Dependency Network": { - "Direct Upstream (Fragility)": 5, - "Direct Downstream (Dependency Blast Radius)": 0, - "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 0 - }, - "9. Extracted Dependencies": [ - "fastapi", - "fastapi.middleware", - "fastapi.testclient", - "functools", - "pytest" - ] - }, - "python/fastapi/tests/utils.py": { - "1. Artifact Identity": { - "Filename": "utils.py", - "Path": "python/fastapi/tests/utils.py", - "Language": "Python", - "Architect": "Unknown Architect", - "Indentation Style": "Spaces", - "Doc Umbrella": 0.0, - "Folder Dominant Lang": "python", - "Lock Tier": 1.5, - "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" - }, - "2. Topological Coordinates": { - "X": 4126.68, - "Y": 121.5, - "Z": 1768.9 - }, - "3. Architectural Profile": { - "Repository Archetype": "Unclassified", - "Repository Drift (Z-Score)": 0.0, - "Repository Fingerprint": {}, - "File Archetype": "Unclassified", - "File Drift (Z-Score)": 0.0, - "File Fingerprint": {}, - "Total LOC": 19, - "Coding LOC": 12, - "Documentation LOC": 1, - "Structural Magnitude": 4.44, - "Control Flow Ratio": "25.0%", - "Popularity Rank": 2, - "Raw Churn Frequency": 0.0, - "Authorship Centralization": 0.0, - "Ownership Entropy": 0.0, - "Raw Cognitive Density": 0.25 - }, - "4. Vulnerability & Risk Exposures": { - "Cognitive Load Exposure": "5.0%", - "Error & Exception Exposure": "0.0%", - "Tech Debt Exposure": "0.0%", - "Testing Exposure": "0.0%", - "API Exposure": "7.33%", - "Concurrency Exposure": "0.0%", - "State Flux Exposure": "0.0%", - "Commented Logic Exposure": "0.0%", - "Specification Exposure": "80.0%", - "Instability Exposure": "50.0%", - "Volatility Exposure": "0.0%", - "Documentation Exposure": "0.0%", - "Hardcoded Payload Artifacts": "0.0%" - }, - "5. Function Analysis": [ - { - "Function Name": "skip_module_if_py_gte_314", - "Structural Impact": 2.2, - "Lines of Code (LOC)": 4, - "Control Flow Branches": 1, - "Input Parameters": 0, - "Control Flow Ratio": "50.0%", - "Start Line": 15, - "End Line": 18 - } - ], - "6. Contextual Mitigations & Amplifications": "None Detected", - "7. Structural Signatures (Net Mitigated Signals)": { - "Control Flow Branches": 1, - "Sequential Logic Declarations": 3, - "Function Parameters": 1, - "Function/Method Declarations": 1, - "Class/Entity Declarations": 0, - "Defensive Programming Constructs": 0, - "Type/Safety Bypasses": 0, - "High-Risk Execution Commands": 0, - "I/O and Network Boundaries": 3, - "Exposed API / Public Exports": 2, - "State Mutations / Variable Reassignments": 0, - "Commented-out Code (Dead Logic)": 0, - "Structured Documentation Blocks": 2, - "Unit Test Assertions": 5, - "Asynchronous/Concurrent Execution": 0, - "UI / View Layer Components": 0, - "Closures and Anonymous Functions": 0, + "Exposed API / Public Exports": 1, + "State Mutations / Variable Reassignments": 338, + "Commented-out Code (Dead Logic)": 2, + "Structured Documentation Blocks": 198, + "Unit Test Assertions": 0, + "Asynchronous/Concurrent Execution": 15, + "UI / View Layer Components": 3, + "Closures and Anonymous Functions": 54, "Global State Dependencies": 0, "Decorators and Annotations": 0, "Generic Type Abstractions": 0, - "Collection Iterators / Comprehensions": 0, + "Collection Iterators / Comprehensions": 2, "Scientific & Mathematical Operations": 0, "Metaprogramming & Reflection": 0, - "Module Dependencies (Imports)": 2, - "Authorship Metadata": 0, - "Planned Work (TODOs)": 0, + "Module Dependencies (Imports)": 37, + "Authorship Metadata": 2, + "Planned Work (TODOs)": 1, "Acknowledged Tech Debt (FIXMEs)": 0, "Specification Traceability Tags": 0, "Server-Side Rendering Contexts": 0, - "Event Publishers / Emitters": 0, - "Dependency Injection Constructs": 0, + "Event Publishers / Emitters": 1, + "Dependency Injection Constructs": 2, "Preprocessor Macros": 0, "Pointer Arithmetic & Addressing": 0, - "Manual Memory Allocation": 0, + "Manual Memory Allocation": 49, "Inline Assembly Blocks": 0, "Structured Telemetry & Logging": 0, "Ad-hoc Print / Debug Statements": 0, "Explicit Type Casts": 0, - "Fatal Aborts & Exceptions": 0, - "Thread Sleeps & Blocking Waits": 0, + "Fatal Aborts & Exceptions": 9, + "Thread Sleeps & Blocking Waits": 2, "Bitwise Operations": 0, "Thread Synchronization Locks": 0, - "Immutable Data Declarations": 0, - "Resource Deallocation & Cleanup": 0, + "Immutable Data Declarations": 172, + "Resource Deallocation & Cleanup": 20, "Private / Encapsulated Scopes": 0, - "Event Listeners & Subscribers": 0, + "Event Listeners & Subscribers": 6, "Bypassed / Skipped Tests": 0, - "Structural Tab Indentations": 0, - "Structural Space Indentations": 4, - "Hardware Bridge": 0, + "Structural Tab Indentations": 1587, + "Structural Space Indentations": 0, + "Hardware Bridge": 26, "Cryptography": 0, "Auth Middleware": 0, "Ipc Rpc Bridges": 0, "Feature Flags": 0, "Serialization Parsing": 0, "Regex Execution": 0, - "Time Date Logic": 0, + "Time Date Logic": 2, "Cloud LLM API Integrations": 0, "AI Orchestration Frameworks": 0, "Vector Databases (RAG)": 0, @@ -222434,15 +222112,15 @@ "Deep Learning & Neural Networks": 0, "Lazy Evaluation & Generators (O(1) Memory)": 0, "Vectorized Math & Tensor Operations": 0, - "Core Var Decl": 6, - "Design Camel Case": 0, - "Design Snake Case": 6, + "Core Var Decl": 391, + "Design Camel Case": 195, + "Design Snake Case": 141, "Design Pascal Case": 0, - "Design Upper Case": 0, - "Design Short Vars": 0, - "Design Long Vars": 0, + "Design Upper Case": 2, + "Design Short Vars": 21, + "Design Long Vars": 6, "Duplicate Logic": 0, - "Orphaned Logic": 0, + "Orphaned Logic": 27, "Instructional Code Examples": 0, "Architectural Diagrams (Mermaid/PlantUML)": 0, "Structured Literature Headers": 0, @@ -222455,7 +222133,7 @@ "Commented-Out Executable Logic": 0, "Low-Level Bitwise / Cryptographic Math": 0, "Non-Standard / Steganographic Imports": 0, - "Non-Standard Unicode / Homoglyphs": 0, + "Non-Standard Unicode / Homoglyphs": 1, "Embedded Credentials & Keys": 0, "Sec Extension Mismatch": 0, "Sec Entropy": 0, @@ -222466,15 +222144,49 @@ "Self-Referential File Copy/Overwrite (Worm Pattern)": 0 }, "8. Dependency Network": { - "Direct Upstream (Fragility)": 3, - "Direct Downstream (Dependency Blast Radius)": 2, + "Direct Upstream (Fragility)": 37, + "Direct Downstream (Dependency Blast Radius)": 0, "Total Upstream (Absolute Fragility)": 0, - "Total Downstream (Absolute Dependency Blast Radius)": 1 + "Total Downstream (Absolute Dependency Blast Radius)": 0 }, "9. Extracted Dependencies": [ - "pytest", - "sys", - "time." + "../constants.js", + "../math/Color.js", + "../math/ColorManagement.js", + "../math/Frustum.js", + "../math/Matrix4.js", + "../math/Vector3.js", + "../math/Vector4.js", + "../utils.js", + "./WebGLRenderTarget.js", + "./shaders/DFGLUTData.js", + "./webgl/WebGLAnimation.js", + "./webgl/WebGLAttributes.js", + "./webgl/WebGLBackground.js", + "./webgl/WebGLBindingStates.js", + "./webgl/WebGLBufferRenderer.js", + "./webgl/WebGLCapabilities.js", + "./webgl/WebGLClipping.js", + "./webgl/WebGLEnvironments.js", + "./webgl/WebGLExtensions.js", + "./webgl/WebGLGeometries.js", + "./webgl/WebGLIndexedBufferRenderer.js", + "./webgl/WebGLInfo.js", + "./webgl/WebGLMaterials.js", + "./webgl/WebGLMorphtargets.js", + "./webgl/WebGLObjects.js", + "./webgl/WebGLOutput.js", + "./webgl/WebGLPrograms.js", + "./webgl/WebGLProperties.js", + "./webgl/WebGLRenderLists.js", + "./webgl/WebGLRenderStates.js", + "./webgl/WebGLShadowMap.js", + "./webgl/WebGLState.js", + "./webgl/WebGLTextures.js", + "./webgl/WebGLUniforms.js", + "./webgl/WebGLUniformsGroups.js", + "./webgl/WebGLUtils.js", + "./webxr/WebXRManager.js" ] } } @@ -233503,9 +233215,9 @@ "Identity Proof": "Single Indicator (Ext: .ps1)" }, "2. Topological Coordinates": { - "X": 1312.13, + "X": -5728.74, "Y": -105.95, - "Z": -4827.76 + "Z": -1612.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -233691,9 +233403,9 @@ "Identity Proof": "Single Indicator (Ext: .ps1)" }, "2. Topological Coordinates": { - "X": 2092.58, + "X": -4948.29, "Y": 80.63, - "Z": -4362.69 + "Z": -1147.05 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -233929,9 +233641,9 @@ "Identity Proof": "Single Indicator (Ext: .psm1)" }, "2. Topological Coordinates": { - "X": 1517.86, + "X": -5523.01, "Y": -38.45, - "Z": -4502.72 + "Z": -1287.08 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -234301,9 +234013,9 @@ "Identity Proof": "Single Indicator (Ext: .ps1)" }, "2. Topological Coordinates": { - "X": 1848.27, + "X": -5192.6, "Y": -93.81, - "Z": -5501.26 + "Z": -2285.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -234499,9 +234211,9 @@ "Identity Proof": "Single Indicator (Ext: .psd1)" }, "2. Topological Coordinates": { - "X": 2254.37, + "X": -4786.5, "Y": 1.74, - "Z": -5102.18 + "Z": -1886.55 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -234656,9 +234368,9 @@ "Identity Proof": "Single Indicator (Ext: .psm1)" }, "2. Topological Coordinates": { - "X": 1782.87, + "X": -5258.01, "Y": 9.14, - "Z": -5033.4 + "Z": -1817.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -238150,9 +237862,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 1192.14, + "X": 6023.97, "Y": -302.43, - "Z": 2790.96 + "Z": -1744.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -238353,9 +238065,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 710.18, + "X": 5542.01, "Y": -263.75, - "Z": 2940.41 + "Z": -1594.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -239981,9 +239693,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 559.41, + "X": 5391.24, "Y": -117.52, - "Z": 3695.78 + "Z": -839.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -240313,9 +240025,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 1030.16, + "X": 5861.99, "Y": -177.79, - "Z": 3485.98 + "Z": -1049.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -241277,9 +240989,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 761.33, + "X": 5593.16, "Y": -322.11, - "Z": 2543.97 + "Z": -1991.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -242550,9 +242262,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 400.55, + "X": 5232.39, "Y": -147.87, - "Z": 3079.44 + "Z": -1455.91 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -243913,9 +243625,9 @@ "Identity Proof": "Single Indicator (Ext: .scala)" }, "2. Topological Coordinates": { - "X": 180.75, + "X": 5012.58, "Y": -246.69, - "Z": 3028.47 + "Z": -1506.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -245228,9 +244940,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5944.63, + "X": -452.56, "Y": 165.91, - "Z": -1240.74 + "Z": -4012.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -246031,9 +245743,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5564.02, + "X": -833.17, "Y": 265.38, - "Z": -525.67 + "Z": -3297.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247001,9 +246713,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5352.22, + "X": -1044.97, "Y": 225.2, - "Z": -761.32 + "Z": -3533.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247282,9 +246994,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 6389.69, + "X": -7.51, "Y": 134.51, - "Z": -986.53 + "Z": -3758.27 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247554,9 +247266,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 6202.89, + "X": -194.3, "Y": 311.65, - "Z": -65.79 + "Z": -2837.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -247832,9 +247544,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5857.28, + "X": -539.91, "Y": 257.91, - "Z": -720.76 + "Z": -3492.5 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -248942,9 +248654,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 5766.46, + "X": -630.73, "Y": 404.61, - "Z": -21.17 + "Z": -2792.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -257128,9 +256840,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": -4053.1, + "X": 594.1, "Y": 172.11, - "Z": 1264.53 + "Z": 3500.76 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -257285,9 +256997,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -4429.69, + "X": 217.52, "Y": 31.7, - "Z": 809.35 + "Z": 3045.58 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -257463,9 +257175,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -3944.04, + "X": 703.16, "Y": 134.89, - "Z": 820.69 + "Z": 3056.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -258361,9 +258073,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -3462.67, + "X": 1184.53, "Y": 121.05, - "Z": 608.1 + "Z": 2844.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -258529,9 +258241,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -3652.19, + "X": 995.01, "Y": 256.87, - "Z": 1295.66 + "Z": 3531.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -258827,9 +258539,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -4267.42, + "X": 379.78, "Y": 143.2, - "Z": 1071.8 + "Z": 3308.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -259185,9 +258897,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -3935.7, + "X": 711.51, "Y": -13.0, - "Z": 444.59 + "Z": 2680.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -259637,9 +259349,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2449.7, + "X": 6427.46, "Y": 61.77, - "Z": 5266.87 + "Z": 2662.59 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -260722,9 +260434,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2200.41, + "X": 6676.75, "Y": -91.82, - "Z": 5565.45 + "Z": 2961.17 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -260907,9 +260619,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2805.43, + "X": 6071.73, "Y": -26.07, - "Z": 5422.06 + "Z": 2817.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -261180,9 +260892,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2007.27, + "X": 6869.9, "Y": 108.29, - "Z": 5108.62 + "Z": 2504.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -261351,9 +261063,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2975.76, + "X": 5901.4, "Y": 73.38, - "Z": 5041.59 + "Z": 2437.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -261541,9 +261253,9 @@ "Identity Proof": "Single Indicator (Ext: .cc)" }, "2. Topological Coordinates": { - "X": -2435.62, + "X": 6441.55, "Y": 102.5, - "Z": 4757.8 + "Z": 2153.53 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -286503,9 +286215,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -199.36, + "X": -3295.43, "Y": -66.18, - "Z": -3706.31 + "Z": 453.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287080,9 +286792,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 417.56, + "X": -2678.51, "Y": -114.19, - "Z": -3762.21 + "Z": 398.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287514,9 +287226,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 588.85, + "X": -2507.22, "Y": -282.71, - "Z": -4422.1 + "Z": -261.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287799,9 +287511,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -38.18, + "X": -3134.25, "Y": -62.78, - "Z": -3536.89 + "Z": 623.33 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -287960,9 +287672,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 60.63, + "X": -3035.44, "Y": -181.22, - "Z": -3950.75 + "Z": 209.47 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -288438,9 +288150,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": 124.64, + "X": -2971.43, "Y": -178.55, - "Z": -4605.95 + "Z": -445.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -288896,9 +288608,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -395.79, + "X": -3491.86, "Y": -39.71, - "Z": -4225.88 + "Z": -65.66 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -301467,9 +301179,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1372.25, + "X": -1370.58, "Y": -60.79, - "Z": -4081.38 + "Z": -4074.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -302812,9 +302524,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1056.93, + "X": -1055.26, "Y": -58.65, - "Z": -4083.55 + "Z": -4077.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -304536,9 +304248,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -777.37, + "X": -775.69, "Y": -135.82, - "Z": -3648.77 + "Z": -3642.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -304990,9 +304702,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -1046.3, + "X": -1044.62, "Y": -69.43, - "Z": -4621.31 + "Z": -4614.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -314386,9 +314098,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4653.58, + "X": -773.85, "Y": 25.69, - "Z": -433.35 + "Z": 4860.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -316364,9 +316076,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4058.45, + "X": -178.72, "Y": 43.44, - "Z": -316.26 + "Z": 4977.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -317661,9 +317373,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4524.35, + "X": -644.62, "Y": 44.17, - "Z": -80.65 + "Z": 5212.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -317824,9 +317536,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4324.79, + "X": -445.07, "Y": 139.3, - "Z": -1074.53 + "Z": 4219.07 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -318416,9 +318128,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -3861.48, + "X": 18.25, "Y": 121.45, - "Z": -801.86 + "Z": 4491.74 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -318642,9 +318354,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4377.27, + "X": -497.55, "Y": 78.53, - "Z": -731.65 + "Z": 4561.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -319733,9 +319445,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -4919.16, + "X": -1039.44, "Y": 28.12, - "Z": -843.22 + "Z": 4450.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -320825,9 +320537,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 479.81, + "X": 479.18, "Y": 258.69, - "Z": -5334.33 + "Z": -5326.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -321365,9 +321077,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 149.98, + "X": 149.34, "Y": 118.88, - "Z": -4746.82 + "Z": -4739.22 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -322120,9 +321832,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": 411.61, + "X": 410.97, "Y": 157.88, - "Z": -5086.45 + "Z": -5078.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -323022,9 +322734,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7172.69, + "X": 86.86, "Y": 41.07, - "Z": -27.36 + "Z": -4569.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -323544,9 +323256,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6890.19, + "X": -195.64, "Y": 4.05, - "Z": 810.22 + "Z": -3731.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -324064,9 +323776,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7458.57, + "X": 372.74, "Y": -122.07, - "Z": 954.39 + "Z": -3587.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -324459,9 +324171,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7214.87, + "X": 129.04, "Y": -1.82, - "Z": 515.63 + "Z": -4026.53 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -326684,9 +326396,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 7610.69, + "X": 524.86, "Y": -36.01, - "Z": 117.87 + "Z": -4424.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -326972,9 +326684,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6977.11, + "X": -108.72, "Y": -4.97, - "Z": 1086.25 + "Z": -3455.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -327166,9 +326878,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6634.54, + "X": -451.29, "Y": 119.37, - "Z": 351.86 + "Z": -4190.3 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -329208,9 +328920,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": 1045.77, + "X": 1044.62, "Y": -33.59, - "Z": 4968.76 + "Z": 4961.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -329365,9 +329077,9 @@ "Identity Proof": "Single Indicator (Ext: .cbl)" }, "2. Topological Coordinates": { - "X": 548.52, + "X": 547.37, "Y": -117.02, - "Z": 4988.98 + "Z": 4982.18 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -329901,9 +329613,9 @@ "Identity Proof": "Single Indicator (Ext: .cbl)" }, "2. Topological Coordinates": { - "X": 867.29, + "X": 866.14, "Y": -115.16, - "Z": 4143.35 + "Z": 4136.55 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -330333,9 +330045,9 @@ "Identity Proof": "Single Indicator (Ext: .cbl)" }, "2. Topological Coordinates": { - "X": 816.1, + "X": 814.95, "Y": -62.33, - "Z": 4813.42 + "Z": 4806.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -339780,9 +339492,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 791.97, + "X": -4354.52, "Y": -38.82, - "Z": -3914.31 + "Z": -477.54 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340273,9 +339985,9 @@ "Identity Proof": "Sibling Anchor (C++)" }, "2. Topological Coordinates": { - "X": 1271.0, + "X": -3875.49, "Y": 30.72, - "Z": -4220.75 + "Z": -783.98 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340433,9 +340145,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 239.92, + "X": -4906.57, "Y": -77.74, - "Z": -4202.17 + "Z": -765.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340636,9 +340348,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 807.66, + "X": -4338.84, "Y": 13.64, - "Z": -4669.19 + "Z": -1232.42 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -340911,9 +340623,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 1090.09, + "X": -4056.4, "Y": -140.05, - "Z": -3843.51 + "Z": -406.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -341119,9 +340831,9 @@ "Identity Proof": "Single Indicator (Ext: .cpp)" }, "2. Topological Coordinates": { - "X": 525.45, + "X": -4621.04, "Y": -172.93, - "Z": -3944.9 + "Z": -508.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -341417,9 +341129,9 @@ "Identity Proof": "Ecosystem Consensus Lock (81% Local Dominance)" }, "2. Topological Coordinates": { - "X": 677.05, + "X": -4469.44, "Y": -222.35, - "Z": -3407.18 + "Z": 29.59 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -345679,9 +345391,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4902.13, + "X": -4896.61, "Y": 134.82, - "Z": 1493.83 + "Z": 1492.16 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -346219,9 +345931,9 @@ "Identity Proof": "Ecosystem Consensus Lock (70% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4350.37, + "X": -4344.85, "Y": 124.77, - "Z": 1789.42 + "Z": 1787.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -346376,9 +346088,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4640.86, + "X": -4635.33, "Y": 160.38, - "Z": 903.93 + "Z": 902.26 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -346564,9 +346276,9 @@ "Identity Proof": "Ecosystem Consensus Lock (100% Local Dominance)" }, "2. Topological Coordinates": { - "X": -4616.73, + "X": -4611.2, "Y": 101.25, - "Z": 1293.55 + "Z": 1291.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -351939,7 +351651,7 @@ "2. Topological Coordinates": { "X": 81.09, "Y": -200.51, - "Z": 4961.7 + "Z": 4961.69 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -352096,7 +351808,7 @@ "2. Topological Coordinates": { "X": -271.83, "Y": -101.16, - "Z": 5505.76 + "Z": 5505.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -358714,9 +358426,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5314.95, + "X": -2452.76, "Y": -393.05, - "Z": -3305.37 + "Z": 4780.21 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359031,9 +358743,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5322.26, + "X": -2460.06, "Y": -231.59, - "Z": -2851.52 + "Z": 5234.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359411,9 +359123,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5108.13, + "X": -2245.94, "Y": -173.3, - "Z": -2567.88 + "Z": 5517.7 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359686,9 +359398,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -4896.32, + "X": -2034.13, "Y": -363.79, - "Z": -3129.69 + "Z": 4955.88 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -359952,9 +359664,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5472.91, + "X": -2610.72, "Y": -81.14, - "Z": -2120.94 + "Z": 5964.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -360156,9 +359868,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5823.52, + "X": -2961.33, "Y": -250.76, - "Z": -2801.29 + "Z": 5284.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -360390,9 +360102,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": -5649.18, + "X": -2786.99, "Y": -175.26, - "Z": -2544.56 + "Z": 5541.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386120,9 +385832,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6682.58, + "X": 2119.53, "Y": -80.31, - "Z": 3011.01 + "Z": -4584.13 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386283,9 +385995,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 5873.29, + "X": 1310.24, "Y": -209.29, - "Z": 2557.5 + "Z": -5037.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386461,9 +386173,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6785.67, + "X": 2222.62, "Y": -131.37, - "Z": 2468.2 + "Z": -5126.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386631,9 +386343,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6209.33, + "X": 1646.28, "Y": -148.81, - "Z": 3172.5 + "Z": -4422.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -386801,9 +386513,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6115.86, + "X": 1552.81, "Y": -153.05, - "Z": 3037.38 + "Z": -4557.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -387102,9 +386814,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6367.29, + "X": 1804.25, "Y": -186.87, - "Z": 2529.72 + "Z": -5065.43 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -387341,9 +387053,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 6454.74, + "X": 1891.69, "Y": -172.13, - "Z": 2363.8 + "Z": -5231.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -387608,7 +387320,7 @@ "2. Topological Coordinates": { "X": -1183.82, "Y": 197.84, - "Z": 5563.93 + "Z": 5563.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -388120,7 +387832,7 @@ "2. Topological Coordinates": { "X": -932.02, "Y": 180.21, - "Z": 5385.57 + "Z": 5385.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -390632,7 +390344,7 @@ "2. Topological Coordinates": { "X": -846.67, "Y": 232.31, - "Z": 5001.34 + "Z": 5001.33 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -397284,9 +396996,9 @@ "Identity Proof": "Single Indicator (Ext: .php)" }, "2. Topological Coordinates": { - "X": 790.54, + "X": 789.5, "Y": 4.24, - "Z": -5695.29 + "Z": -5688.24 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -397719,9 +397431,9 @@ "Identity Proof": "Prose Anchor (MIT-LICENSE)" }, "2. Topological Coordinates": { - "X": -3253.93, + "X": 0.74, "Y": -214.32, - "Z": -417.78 + "Z": 3385.55 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -397876,9 +397588,9 @@ "Identity Proof": "Metadata Anchor (Rakefile)" }, "2. Topological Coordinates": { - "X": -3012.84, + "X": 241.83, "Y": -212.88, - "Z": -481.13 + "Z": 3322.21 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -398083,9 +397795,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3515.08, + "X": -260.41, "Y": -200.67, - "Z": 135.46 + "Z": 3938.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -398510,9 +398222,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3233.03, + "X": 21.64, "Y": -180.03, - "Z": 225.36 + "Z": 4028.7 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -399093,9 +398805,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3055.64, + "X": 199.03, "Y": -156.99, - "Z": 50.86 + "Z": 3854.2 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -399505,9 +399217,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -2603.61, + "X": 651.06, "Y": -234.2, - "Z": -51.36 + "Z": 3751.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -399766,9 +399478,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -2740.79, + "X": 513.88, "Y": -168.22, - "Z": 457.11 + "Z": 4260.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -400191,9 +399903,9 @@ "Identity Proof": "Single Indicator (Ext: .rb)" }, "2. Topological Coordinates": { - "X": -3129.14, + "X": 125.53, "Y": -72.13, - "Z": 594.33 + "Z": 4397.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -400376,9 +400088,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -349.86, + "X": -349.23, "Y": -180.04, - "Z": -5252.55 + "Z": -5244.98 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -400808,9 +400520,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -632.07, + "X": -631.44, "Y": -268.88, - "Z": -4549.53 + "Z": -4541.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -401168,9 +400880,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -439.18, + "X": -438.55, "Y": -217.33, - "Z": -4935.59 + "Z": -4928.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -401929,9 +401641,9 @@ "Identity Proof": "Single Indicator (Ext: .java)" }, "2. Topological Coordinates": { - "X": -176.94, + "X": -176.3, "Y": -132.14, - "Z": -4362.89 + "Z": -4355.32 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402169,9 +401881,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2958.98, + "X": -5343.27, "Y": -141.56, - "Z": -5443.98 + "Z": -3122.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402451,9 +402163,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 3246.85, + "X": -5055.4, "Y": -203.92, - "Z": -4761.91 + "Z": -2440.82 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402684,9 +402396,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2654.1, + "X": -5648.15, "Y": -280.56, - "Z": -4802.86 + "Z": -2481.77 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -402939,9 +402651,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2982.86, + "X": -5319.39, "Y": -165.03, - "Z": -5260.85 + "Z": -2939.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -403670,9 +403382,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2828.13, + "X": -5474.12, "Y": -276.55, - "Z": -4523.5 + "Z": -2202.41 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -403868,9 +403580,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 3402.24, + "X": -4900.01, "Y": -115.73, - "Z": -5339.39 + "Z": -3018.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -404108,9 +403820,9 @@ "Identity Proof": "Single Indicator (Ext: .sol)" }, "2. Topological Coordinates": { - "X": 2497.89, + "X": -5804.36, "Y": -170.9, - "Z": -5131.33 + "Z": -2810.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -404381,9 +404093,9 @@ "Identity Proof": "Prose Anchor (LICENSE-APACHE)" }, "2. Topological Coordinates": { - "X": -50.56, + "X": 5601.47, "Y": -184.11, - "Z": 3391.38 + "Z": -1100.18 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -404538,9 +404250,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -203.13, + "X": 5448.9, "Y": -166.59, - "Z": 3660.72 + "Z": -830.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -404751,9 +404463,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 207.22, + "X": 5859.25, "Y": -132.43, - "Z": 3978.61 + "Z": -512.94 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -405237,9 +404949,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 280.03, + "X": 5932.06, "Y": -144.98, - "Z": 3302.81 + "Z": -1188.75 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -405517,9 +405229,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 718.59, + "X": 6370.61, "Y": -91.83, - "Z": 3491.56 + "Z": -1000.0 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -405772,9 +405484,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 124.27, + "X": 5776.3, "Y": -90.85, - "Z": 4304.22 + "Z": -187.34 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -406030,9 +405742,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": -45.04, + "X": 5606.99, "Y": -130.58, - "Z": 4052.92 + "Z": -438.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -406408,9 +406120,9 @@ "Identity Proof": "Single Indicator (Ext: .rs)" }, "2. Topological Coordinates": { - "X": 549.03, + "X": 6201.05, "Y": -91.38, - "Z": 4074.84 + "Z": -416.72 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -414865,9 +414577,9 @@ "Identity Proof": "Single Indicator (Exact Match)" }, "2. Topological Coordinates": { - "X": 1458.9, + "X": 1458.34, "Y": -239.64, - "Z": -6032.96 + "Z": -6030.81 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -415022,9 +414734,9 @@ "Identity Proof": "Single Indicator (Ext: .asm)" }, "2. Topological Coordinates": { - "X": 1227.9, + "X": 1227.35, "Y": -204.08, - "Z": -5386.1 + "Z": -5383.95 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -415210,9 +414922,9 @@ "Identity Proof": "Single Indicator (Ext: .asm)" }, "2. Topological Coordinates": { - "X": 1403.44, + "X": 1402.89, "Y": -167.42, - "Z": -5515.83 + "Z": -5513.68 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -415863,9 +415575,9 @@ "Identity Proof": "Metadata Anchor (COPYRIGHT)" }, "2. Topological Coordinates": { - "X": -2147.87, + "X": -2145.74, "Y": 165.31, - "Z": 5679.28 + "Z": 5673.14 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -416020,9 +415732,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -2163.34, + "X": -2161.2, "Y": 184.98, - "Z": 6050.22 + "Z": 6044.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -416288,9 +416000,9 @@ "Identity Proof": "Single Indicator (Shebang)" }, "2. Topological Coordinates": { - "X": -2377.47, + "X": -2375.33, "Y": 159.81, - "Z": 6377.87 + "Z": 6371.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -418973,9 +418685,9 @@ "Identity Proof": "Single Indicator (Ext: .xml)" }, "2. Topological Coordinates": { - "X": -631.11, + "X": 7027.29, "Y": 114.61, - "Z": 5319.1 + "Z": 1121.64 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419130,9 +418842,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": -762.03, + "X": 6896.37, "Y": 132.99, - "Z": 4016.22 + "Z": -181.25 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -419287,9 +418999,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -90.84, + "X": 7567.55, "Y": 58.4, - "Z": 4302.08 + "Z": 104.62 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419485,9 +419197,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -475.02, + "X": 7183.37, "Y": 155.83, - "Z": 4225.19 + "Z": 27.73 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419653,9 +419365,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -695.53, + "X": 6962.86, "Y": 158.06, - "Z": 4971.26 + "Z": 773.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -419941,9 +419653,9 @@ "Identity Proof": "Single Indicator (Ext: .cls)" }, "2. Topological Coordinates": { - "X": -453.61, + "X": 7204.79, "Y": 149.53, - "Z": 4600.71 + "Z": 403.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -420299,9 +420011,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": -991.76, + "X": 6666.63, "Y": 131.5, - "Z": 4565.5 + "Z": 368.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -420456,9 +420168,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": -253.0, + "X": 7405.39, "Y": 46.08, - "Z": 4813.92 + "Z": 616.45 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -420939,9 +420651,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 6805.41, + "X": 6803.58, "Y": -97.87, - "Z": -215.36 + "Z": -215.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -421732,9 +421444,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 6541.11, + "X": 6539.28, "Y": -0.84, - "Z": 47.57 + "Z": 47.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -421957,9 +421669,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 6830.79, + "X": 6828.95, "Y": -170.42, - "Z": -523.32 + "Z": -523.24 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -422148,9 +421860,9 @@ "Identity Proof": "Single Indicator (Ext: .dockerfile)" }, "2. Topological Coordinates": { - "X": 7047.89, + "X": 7046.06, "Y": -79.86, - "Z": 215.61 + "Z": 215.68 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428184,9 +427896,9 @@ "Identity Proof": "Single Indicator (Exact Match)" }, "2. Topological Coordinates": { - "X": -5147.43, + "X": -5146.22, "Y": 39.33, - "Z": -276.64 + "Z": -276.58 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428341,9 +428053,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -4854.51, + "X": -4853.29, "Y": 89.29, - "Z": 58.54 + "Z": 58.59 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428498,9 +428210,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -5137.2, + "X": -5135.98, "Y": 59.95, - "Z": -682.46 + "Z": -682.4 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428696,9 +428408,9 @@ "Identity Proof": "Single Indicator (Ext: .s)" }, "2. Topological Coordinates": { - "X": -5388.64, + "X": -5387.42, "Y": 69.27, - "Z": 176.46 + "Z": 176.51 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -428898,9 +428610,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": -16.94, + "X": -3459.03, "Y": 76.49, - "Z": -3071.46 + "Z": 1078.86 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429055,9 +428767,9 @@ "Identity Proof": "Single Indicator (Ext: .cpy)" }, "2. Topological Coordinates": { - "X": -699.75, + "X": -4141.84, "Y": 315.46, - "Z": -3870.2 + "Z": 280.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429212,9 +428924,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -301.5, + "X": -3743.59, "Y": 53.02, - "Z": -3048.84 + "Z": 1101.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429369,9 +429081,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -634.86, + "X": -4076.96, "Y": 110.33, - "Z": -2836.66 + "Z": 1313.65 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429526,9 +429238,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -52.68, + "X": -3494.77, "Y": 215.68, - "Z": -3522.2 + "Z": 628.12 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429683,9 +429395,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -459.06, + "X": -3901.15, "Y": 192.76, - "Z": -3270.95 + "Z": 879.36 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429840,9 +429552,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -699.57, + "X": -4141.66, "Y": 208.22, - "Z": -3129.64 + "Z": 1020.68 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -429997,9 +429709,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -934.63, + "X": -4376.72, "Y": 230.29, - "Z": -3337.76 + "Z": 812.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -430154,9 +429866,9 @@ "Identity Proof": "Single Indicator (Ext: .cob)" }, "2. Topological Coordinates": { - "X": -461.77, + "X": -3903.86, "Y": 252.47, - "Z": -3890.25 + "Z": 260.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -431524,9 +431236,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6290.54, + "X": 6284.16, "Y": -77.64, - "Z": -1003.65 + "Z": -1002.29 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -431822,9 +431534,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6576.58, + "X": 6570.21, "Y": -42.95, - "Z": -1680.75 + "Z": -1679.39 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -431990,9 +431702,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6049.51, + "X": 6043.13, "Y": -172.45, - "Z": -1559.37 + "Z": -1558.01 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432158,9 +431870,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6787.44, + "X": 6781.07, "Y": 23.44, - "Z": -1053.28 + "Z": -1051.92 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432336,9 +432048,9 @@ "Identity Proof": "Single Indicator (Ext: .m4)" }, "2. Topological Coordinates": { - "X": 6518.91, + "X": 6512.54, "Y": -92.58, - "Z": -1345.32 + "Z": -1343.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432708,9 +432420,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -5139.23, + "X": -5134.1, "Y": 229.77, - "Z": 771.62 + "Z": 770.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -432865,9 +432577,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -4869.53, + "X": -4864.39, "Y": 150.65, - "Z": 211.52 + "Z": 210.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433022,9 +432734,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -5401.71, + "X": -5396.57, "Y": 150.33, - "Z": 383.5 + "Z": 382.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433179,9 +432891,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -4658.36, + "X": -4653.23, "Y": 218.44, - "Z": 978.0 + "Z": 977.35 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433336,9 +433048,9 @@ "Identity Proof": "Single Indicator (Ext: .blp)" }, "2. Topological Coordinates": { - "X": -4970.01, + "X": -4964.87, "Y": 184.72, - "Z": 560.02 + "Z": 559.37 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433517,9 +433229,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": -5807.57, + "X": -5801.49, "Y": -300.32, - "Z": -2720.9 + "Z": -2718.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433685,9 +433397,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": -6072.53, + "X": -6066.46, "Y": -225.58, - "Z": -2027.07 + "Z": -2024.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -433853,9 +433565,9 @@ "Identity Proof": "Absolute Consensus (Ext + Shebang)" }, "2. Topological Coordinates": { - "X": -5885.35, + "X": -5879.28, "Y": -210.37, - "Z": -2224.24 + "Z": -2221.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -434195,9 +433907,9 @@ "Identity Proof": "Single Indicator (Ext: .nix)" }, "2. Topological Coordinates": { - "X": 2271.16, + "X": 2270.61, "Y": 36.48, - "Z": -5377.32 + "Z": -5376.09 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -434352,9 +434064,9 @@ "Identity Proof": "Single Indicator (Ext: .nix)" }, "2. Topological Coordinates": { - "X": 2431.97, + "X": 2431.42, "Y": 1.68, - "Z": -5689.51 + "Z": -5688.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -434509,9 +434221,9 @@ "Identity Proof": "Single Indicator (Ext: .nix)" }, "2. Topological Coordinates": { - "X": 2471.27, + "X": 2470.72, "Y": -34.57, - "Z": -6011.34 + "Z": -6010.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435028,9 +434740,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6619.7, + "X": 6617.65, "Y": -132.9, - "Z": 3493.92 + "Z": 3492.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435185,9 +434897,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6866.66, + "X": 6864.61, "Y": -120.12, - "Z": 2905.1 + "Z": 2904.08 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435342,9 +435054,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 6871.85, + "X": 6869.8, "Y": -124.13, - "Z": 3456.08 + "Z": 3455.06 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435523,9 +435235,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -3423.6, + "X": -3421.97, "Y": -160.84, - "Z": 6121.09 + "Z": 6118.11 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435680,9 +435392,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -3200.79, + "X": -3199.15, "Y": -103.73, - "Z": 5387.54 + "Z": 5384.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -435837,9 +435549,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -3221.9, + "X": -3220.26, "Y": -123.93, - "Z": 5653.95 + "Z": 5650.97 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -436018,9 +435730,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": -1480.38, + "X": -1478.99, "Y": -241.05, - "Z": 6287.91 + "Z": 6282.0 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -436787,9 +436499,9 @@ "Identity Proof": "Single Indicator (Ext: .hlo)" }, "2. Topological Coordinates": { - "X": -5829.85, + "X": -5823.45, "Y": -115.43, - "Z": -3744.81 + "Z": -3740.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -436944,9 +436656,9 @@ "Identity Proof": "Single Indicator (Ext: .hlo)" }, "2. Topological Coordinates": { - "X": -5817.19, + "X": -5810.79, "Y": -71.41, - "Z": -3598.57 + "Z": -3594.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -437101,9 +436813,9 @@ "Identity Proof": "Single Indicator (Ext: .hlo)" }, "2. Topological Coordinates": { - "X": -6053.77, + "X": -6047.37, "Y": -21.96, - "Z": -3422.65 + "Z": -3418.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -439806,9 +439518,9 @@ "Identity Proof": "Single Indicator (Ext: .yml)" }, "2. Topological Coordinates": { - "X": -5350.04, + "X": -5344.71, "Y": -32.07, - "Z": 1196.1 + "Z": 1194.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -439963,9 +439675,9 @@ "Identity Proof": "Single Indicator (Ext: .yml)" }, "2. Topological Coordinates": { - "X": -5623.26, + "X": -5617.93, "Y": -37.1, - "Z": 1443.53 + "Z": 1442.28 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440144,9 +439856,9 @@ "Identity Proof": "Single Indicator (Ext: .csv)" }, "2. Topological Coordinates": { - "X": -931.27, + "X": -930.06, "Y": 187.56, - "Z": -4858.18 + "Z": -4851.87 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440301,9 +440013,9 @@ "Identity Proof": "Single Indicator (Ext: .tsv)" }, "2. Topological Coordinates": { - "X": -1171.43, + "X": -1170.22, "Y": 221.85, - "Z": -4738.56 + "Z": -4732.25 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440482,9 +440194,9 @@ "Identity Proof": "Single Indicator (Ext: .go)" }, "2. Topological Coordinates": { - "X": -6164.94, + "X": -6152.34, "Y": 147.19, - "Z": -1846.19 + "Z": -1842.67 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -440687,9 +440399,9 @@ "Identity Proof": "Single Indicator (Ext: .json)" }, "2. Topological Coordinates": { - "X": 1923.88, + "X": 1923.27, "Y": -231.81, - "Z": -5797.02 + "Z": -5795.15 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -441564,9 +441276,9 @@ "Identity Proof": "Prose Extension (.txt)" }, "2. Topological Coordinates": { - "X": 7838.05, + "X": 7833.49, "Y": -134.52, - "Z": 928.07 + "Z": 927.49 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -441721,9 +441433,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 7648.47, + "X": 7643.9, "Y": -115.04, - "Z": 1298.36 + "Z": 1297.78 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -441878,9 +441590,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 7948.54, + "X": 7943.98, "Y": -116.02, - "Z": 503.37 + "Z": 502.8 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442037,9 +441749,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 8100.88, + "X": 8096.32, "Y": -163.93, - "Z": 1356.61 + "Z": 1356.03 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442224,9 +441936,9 @@ "Identity Proof": "Single Indicator (Ext: .mlir)" }, "2. Topological Coordinates": { - "X": 7186.12, + "X": 7184.26, "Y": -136.67, - "Z": 2755.07 + "Z": 2754.38 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442405,9 +442117,9 @@ "Identity Proof": "Ecosystem Consensus Lock (75% Local Dominance)" }, "2. Topological Coordinates": { - "X": -2589.37, + "X": -2591.67, "Y": 164.39, - "Z": 6066.58 + "Z": 6072.04 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442586,9 +442298,9 @@ "Identity Proof": "Single Indicator (Ext: .proto)" }, "2. Topological Coordinates": { - "X": -6166.6, + "X": -6160.39, "Y": -23.25, - "Z": -2796.4 + "Z": -2793.48 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -442767,9 +442479,9 @@ "Identity Proof": "Single Indicator (Ext: .tsv)" }, "2. Topological Coordinates": { - "X": 3094.18, + "X": 3092.53, "Y": 83.46, - "Z": -6043.67 + "Z": -6040.52 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -443129,9 +442841,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": 3536.09, + "X": 3533.95, "Y": 77.93, - "Z": -5549.3 + "Z": -5546.09 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -443286,9 +442998,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": 3737.55, + "X": 3735.41, "Y": 117.24, - "Z": -5574.01 + "Z": -5570.79 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -443443,9 +443155,9 @@ "Identity Proof": "Prose Extension (.md)" }, "2. Topological Coordinates": { - "X": 3681.35, + "X": 3679.22, "Y": 156.7, - "Z": -5877.32 + "Z": -5874.1 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445058,9 +444770,9 @@ "Identity Proof": "Metadata Anchor (COPYING)" }, "2. Topological Coordinates": { - "X": 7053.26, + "X": 7047.53, "Y": 146.31, - "Z": -980.35 + "Z": -979.51 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445215,9 +444927,9 @@ "Identity Proof": "Single Indicator (Ext: .sql)" }, "2. Topological Coordinates": { - "X": 6841.22, + "X": 6835.48, "Y": 104.96, - "Z": -955.16 + "Z": -954.31 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -445408,9 +445120,9 @@ "Identity Proof": "Single Indicator (Exact Match)" }, "2. Topological Coordinates": { - "X": -5602.36, + "X": -5597.49, "Y": 101.03, - "Z": 316.07 + "Z": 315.76 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -445576,9 +445288,9 @@ "Identity Proof": "Metadata Anchor (COPYRIGHT)" }, "2. Topological Coordinates": { - "X": -5820.83, + "X": -5815.96, "Y": 189.24, - "Z": 405.96 + "Z": 405.65 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445758,9 +445470,9 @@ "Identity Proof": "Prose Extension (.txt)" }, "2. Topological Coordinates": { - "X": -5879.66, + "X": -5865.12, "Y": 179.76, - "Z": -1308.52 + "Z": -1305.43 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -445915,9 +445627,9 @@ "Identity Proof": "Metadata Anchor (index.html)" }, "2. Topological Coordinates": { - "X": -6022.49, + "X": -6007.94, "Y": 259.77, - "Z": -1167.26 + "Z": -1164.17 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -446072,9 +445784,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5767.95, + "X": -5753.4, "Y": 114.06, - "Z": -1550.87 + "Z": -1547.77 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -446229,9 +445941,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5642.21, + "X": -5627.67, "Y": 242.79, - "Z": -821.06 + "Z": -817.96 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -447091,9 +446803,9 @@ "Identity Proof": "Prose Extension (.txt)" }, "2. Topological Coordinates": { - "X": 522.12, + "X": 521.43, "Y": -96.74, - "Z": 5269.99 + "Z": 5263.48 }, "3. Architectural Profile": { "Repository Archetype": "Static: Literature & Documentation", @@ -447248,9 +446960,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": 389.57, + "X": 388.89, "Y": -88.78, - "Z": 5480.0 + "Z": 5473.49 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -448716,7 +448428,7 @@ "2. Topological Coordinates": { "X": -546.63, "Y": -118.19, - "Z": 6132.86 + "Z": 6132.85 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -448884,7 +448596,7 @@ "2. Topological Coordinates": { "X": -414.1, "Y": -124.89, - "Z": 6010.9 + "Z": 6010.89 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -449063,9 +448775,9 @@ "Identity Proof": "Single Indicator (Ext: .css)" }, "2. Topological Coordinates": { - "X": 7729.63, + "X": 7725.68, "Y": 152.01, - "Z": 500.78 + "Z": 500.69 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -449241,9 +448953,9 @@ "Identity Proof": "Single Indicator (Ext: .css)" }, "2. Topological Coordinates": { - "X": 7926.99, + "X": 7923.04, "Y": 110.36, - "Z": 277.92 + "Z": 277.84 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450146,9 +449858,9 @@ "Identity Proof": "Single Indicator (Ext: .bat)" }, "2. Topological Coordinates": { - "X": -133.1, + "X": -132.95, "Y": -200.63, - "Z": -5401.09 + "Z": -5393.93 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450303,9 +450015,9 @@ "Identity Proof": "Single Indicator (Ext: .bat)" }, "2. Topological Coordinates": { - "X": -273.34, + "X": -273.19, "Y": -263.49, - "Z": -5503.0 + "Z": -5495.83 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450484,9 +450196,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5667.5, + "X": -5666.37, "Y": 252.02, - "Z": -548.03 + "Z": -547.91 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -450641,9 +450353,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5924.75, + "X": -5923.62, "Y": 281.75, - "Z": -450.68 + "Z": -450.56 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", @@ -451003,9 +450715,9 @@ "Identity Proof": "Single Indicator (Ext: .html)" }, "2. Topological Coordinates": { - "X": -5189.36, + "X": -5184.02, "Y": 14.4, - "Z": 1847.76 + "Z": 1845.9 }, "3. Architectural Profile": { "Repository Archetype": "Unclassified", diff --git a/tests/ruff_audit_baseline.json b/tests/ruff_audit_baseline.json index c48bb50cf..f5ea843ab 100644 --- a/tests/ruff_audit_baseline.json +++ b/tests/ruff_audit_baseline.json @@ -17,7 +17,7 @@ "gitgalaxy/metrics/signal_processor.py:538: SIM118": "Use `key in dict` instead of `key in dict.keys()`", "gitgalaxy/metrics/signal_processor.py:689: SIM118": "Use `key in dict` instead of `key in dict.keys()`", "gitgalaxy/metrics/signal_processor.py:89: SIM118": "Use `key in dict` instead of `key in dict.keys()`", - "gitgalaxy/metrics/statistical_auditor.py:349: PERF203": "`try`-`except` within a loop incurs performance overhead", + "gitgalaxy/metrics/statistical_auditor.py:337: PERF203": "`try`-`except` within a loop incurs performance overhead", "gitgalaxy/recorders/audit_recorder.py:281: C416": "Unnecessary dict comprehension (rewrite using `dict()`)", "gitgalaxy/recorders/audit_recorder.py:298: C414": "Unnecessary `list()` call within `sorted()`", "gitgalaxy/recorders/audit_recorder.py:358: PERF401": "Use `list.extend` to create a transformed list", diff --git a/tests/security_auditing/test_statistical_auditor.py b/tests/security_auditing/test_statistical_auditor.py index f68a3300b..d5d15de58 100644 --- a/tests/security_auditing/test_statistical_auditor.py +++ b/tests/security_auditing/test_statistical_auditor.py @@ -139,30 +139,34 @@ def test_auditor_threat_quarantine_guard(auditor): # ============================================================================== -# TEST 5: THE LOW-SAMPLE THRESHOLD GUARD (Hallucination Stripping) +# TEST 5: SMALL, WEAK-TIER POPULATIONS ARE KEPT (no Low-Sample Guard) # ============================================================================== -def test_auditor_low_sample_threshold_guard(auditor): +def test_auditor_small_weak_tier_population_is_kept(auditor): """ - Proves that a tiny population (1 file) with a weak confidence tier gets - its hallucinated language stripped and reverted to plaintext. + The old "Low-Sample Threshold Guard" (GATE C) reverted any language with a tiny + footprint to plaintext unless every file had a Tier-0 lock. It was removed with + #2325 -- clean single-extension files lock at Tier 2, never Tier 0, so the guard + erased legitimately-classified languages from any repo with a small footprint of + them. A tiny population with a real signal density must now survive intact. """ files = [ { - "path": "weird_file.python", - "name": "weird_file.python", + "path": "weird_file.py", + "name": "weird_file.py", "lang_id": "python", "coding_loc": 10, + "total_loc": 10, "equations": {"branch": 5}, - "telemetry": {"identity_lock_tier": 3}, # <--- CHANGE TO 3 (Survives Gate 0, Dies to Low-Sample Guard) + "telemetry": {"identity_lock_tier": 3}, } ] with patch.object(auditor, "_is_highly_blended", return_value=False): verified, unparsable = auditor.audit(files) + assert len(unparsable) == 0 assert len(verified) == 1 - assert verified[0]["lang_id"] == "plaintext", "Low-Sample Guard failed to strip the hallucinated language!" - assert "Low-Sample Guard Fallback" in verified[0]["telemetry"]["identity_source_proof"] + assert verified[0]["lang_id"] == "python", "A small weak-tier population must not be reverted to plaintext." # ==============================================================================