{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SpeakCommand.validate (cyclomatic 128): SpeakCommand.validate has cyclomatic complexity 128 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6088b2b8527eb7b1476cd6c74ff1cc2e68131b8b1da01f9c1f3c9697b8fbd235"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioServer.swift.handleRealtimeWS (cyclomatic 105): AudioServer.swift.handleRealtimeWS has cyclomatic complexity 105 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4ecf68d8396d19b306ddc27a7fab14e8e69bc6dca2ea03d0dacce9dc5cdfff"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.normalizeNumbers (cyclomatic 91): GermanPhonemizer.normalizeNumbers has cyclomatic complexity 91 (threshold 15). Of this number, 85 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9410f25f35a733ac9d7ed37af3815419eb87efcbfa8f5cb93b0057f67b1779a"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.mapConsonants (cyclomatic 71): GermanPhonemizer.mapConsonants has cyclomatic complexity 71 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca3de5e1b2bdd48329ab9610eec484721243a30e43f9957ad6d793f774eba5d"}},{"ruleId":"D1","level":"warning","message":{"text":"PersonaPlexModel.respond (cyclomatic 69): PersonaPlexModel.respond has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f0c54b0473721f9e66937a5eb662d4af02041273d4cf75b876cb51891a8f13"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatSession.advance (cyclomatic 68): VoiceChatSession.advance has cyclomatic complexity 68 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa2754edcc8b18d3d9c9c540b5124f0246e85f5ded9ff2045c1f050d1fa3bbb"}},{"ruleId":"D1","level":"warning","message":{"text":"PersonaPlexModel.respondStream (cyclomatic 65): PersonaPlexModel.respondStream has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fa1226d53d80aebcc821332e1e4193341a2fedb6181ba0f732f65afced1b2c"}},{"ruleId":"D1","level":"warning","message":{"text":"FishAudioDrama3Config.parse (cyclomatic 59): FishAudioDrama3Config.parse has cyclomatic complexity 59 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 14 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDrama3Config.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d8e7c7d327921a553341c993b467b0ea429fdc81eb295b7f76a10dee449102"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaMatcher.feedString (cyclomatic 55): JSONSchemaMatcher.feedString has cyclomatic complexity 55 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a56c97fbc1fca3a45086667d2f3d498b6f0436c9e9df33a76eeac909bb63030"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatBench.runFullDuplexToolScenario (cyclomatic 55): VoiceChatBench.runFullDuplexToolScenario has cyclomatic complexity 55 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (VoiceChatBench.runFullDuplexToolScenario::observe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78120744d8dca8ec91ac30b6929912963cc9f050c1df2915fa3ac733127ae8f"}},{"ruleId":"D1","level":"warning","message":{"text":"BreezeTTSConfig.validate (cyclomatic 53): BreezeTTSConfig.validate has cyclomatic complexity 53 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/Options.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cb340d82571cdecb45ae0a0fbd12a15d46fdfe81dadd379876ea41b3928f08"}},{"ruleId":"D1","level":"warning","message":{"text":"PersonaPlexModel.respondDiagnostic (cyclomatic 49): PersonaPlexModel.respondDiagnostic has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb65e63154b870124c0fef64095bac49460fbd62ae2af5f3b52391140e3cc9da"}},{"ruleId":"D1","level":"warning","message":{"text":"PersonaPlexModel.respondRealtime (cyclomatic 47): PersonaPlexModel.respondRealtime has cyclomatic complexity 47 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8572ca3594f4eaa4457145cab8e02c6eb0e976cfb9fa76b5cb3bc61d005ba3a"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.vowelPhoneme (cyclomatic 46): GermanPhonemizer.vowelPhoneme has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf38557420f56598acc915066679623875b38af9968402e0e0633d7e500048d"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3TTSCoreMLModel.synthesize (cyclomatic 46): Qwen3TTSCoreMLModel.synthesize has cyclomatic complexity 46 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f5ee0fd05753cf2209e054f50e4b15351d0ae9ebce90179cc1f1e850ff4021"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatCommand.validate (cyclomatic 42): VoiceChatCommand.validate has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ebf4691bf73d38fcb3651f003f06ab16b54d0e74da5b10bb98bf81dbdd8d83"}},{"ruleId":"D1","level":"warning","message":{"text":"NemotronMLXConfiguration.validate (cyclomatic 41): NemotronMLXConfiguration.validate has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXConfiguration.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7343d296b483d3c154518d2ccaf1f56451af6d7a76e6ddc099b615503d75677"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaMatcher.feed (cyclomatic 41): JSONSchemaMatcher.feed has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa0c16db59a758b747b8d1f48e2e92b074de114b2fbdf63f313362a20301c6a"}},{"ruleId":"D1","level":"warning","message":{"text":"RespondCommand.run (cyclomatic 40): RespondCommand.run has cyclomatic complexity 40 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/RespondCommand.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f350f5a9fd2814dcb31ca665fb396dae02007c02d6fb9828f1e85ae8f0df3a63"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioServer.buildRouter (cyclomatic 39): AudioServer.buildRouter has cyclomatic complexity 39 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f92dc502fe3a7b57706fb10629726d52519c64c1cf8dc480ab3e874c2ed54f"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatCommand.runMicrophone (cyclomatic 38): VoiceChatCommand.runMicrophone has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da0fd931340ffeb63ae3339c747d8c73defbdf7bf7454ce08a516a1bc0778a5"}},{"ruleId":"D1","level":"warning","message":{"text":"VoxCPM2TTSModel.generateVoxCPM2 (cyclomatic 38): VoxCPM2TTSModel.generateVoxCPM2 has cyclomatic complexity 38 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a983de883f1276f7fb5cc83b367753dbdaa1087cb4a37b2130171073001253e"}},{"ruleId":"D1","level":"warning","message":{"text":"PyannoteDiarizationPipeline.runEmbeddingClusteredDiarization (cyclomatic 37): PyannoteDiarizationPipeline.runEmbeddingClusteredDiarization has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationPipeline.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c58b71810ae9decb551e9dd765825d3a7509395725d47a9a4b9b9501f108ac1"}},{"ruleId":"D1","level":"warning","message":{"text":"NativeInferenceRequest.validate (cyclomatic 35): NativeInferenceRequest.validate has cyclomatic complexity 35 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/NativeInference.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"727d491ba0164a111969bc9570c3218be9547fb2336f0467e919246ad16540b7"}},{"ruleId":"D1","level":"warning","message":{"text":"VibeVoiceQuantizer.quantizeAndSave (cyclomatic 34): VibeVoiceQuantizer.quantizeAndSave has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Quantization/VibeVoiceQuantization.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6715c9c7361c29941f48a36d4879f6a7154cbfc3d11043708d0e18fbe33c9ee"}},{"ruleId":"D1","level":"warning","message":{"text":"SpeakCommand.runCosyVoice (cyclomatic 33): SpeakCommand.runCosyVoice has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"b794edefd212bf8bb4f903772a662cfdcb46153244e5d032fab48f8067bbd71f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSampler.sample (cyclomatic 33): ChatSampler.sample has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/ChatSampler.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a798cf8825c89531e9f57d19db445a516c243380bba5996bafb5d1bcdc724f2"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.g2pLower (cyclomatic 31): GermanPhonemizer.g2pLower has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"25f3b3dd4cd704f157662e5c9eaead6ec17c474a83b427fc7dcaac82ee4ac50f"}},{"ruleId":"D1","level":"warning","message":{"text":"MagpieCoreMLDecoder.step (cyclomatic 31): MagpieCoreMLDecoder.step has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"08afe9c3e4f996fb8eac42e4248e268366a88f43234a0e5b14112fff2b10cb2a"}},{"ruleId":"D1","level":"warning","message":{"text":"KokoroPhonemizer.bartG2P (cyclomatic 30): KokoroPhonemizer.bartG2P has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2598c74c7c74e52a3dfb860868f36bb58e4c0c05031696d97b5e2716e3a8e3"}},{"ruleId":"D1","level":"warning","message":{"text":"MossMLXConfiguration.validate (cyclomatic 30): MossMLXConfiguration.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXConfiguration.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"7746eb6364679db9668312070683576c7bb66dda90ab861c906ba3b556a80ea5"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscribeCommand.validate (cyclomatic 29): TranscribeCommand.validate has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0030e0f1de0dc63512a6e930e02d43661b0d3fbfabf8d83f12aa68a04f61ce"}},{"ruleId":"D1","level":"warning","message":{"text":"HibikiTranslateModel.translate (cyclomatic 29): HibikiTranslateModel.translate has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTranslate.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded8e4d02bbcd3e02147e2912d65b48a9c87626f35212d14a6eb986beef265b1"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parseValue (cyclomatic 29): Parser.parseValue has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"462d8d0438cea9f51c8aed79e11daf65f109d7d08ea541331b5aee12cd5a26e4"}},{"ruleId":"D1","level":"warning","message":{"text":"FullDuplexAcousticAnalyzer.analyze (cyclomatic 29): FullDuplexAcousticAnalyzer.analyze has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"77075ed758e4f63ee1b7ff741a93aa274b3d39fc80d72aa67686e28a7219ac06"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatTerminalRenderer.render (cyclomatic 28): VoiceChatTerminalRenderer.render has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3acd5dcd46a10f0d8c94f1938d71895595c18306070918f9b165cfe303806c"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaGrammar.compileType (cyclomatic 28): JSONSchemaGrammar.compileType has cyclomatic complexity 28 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a2790cf5d2df2fe7af8f9154cd4f7bee692bf266b4fbd8ade0082df5a97e7c"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3TTSCoreMLModel.fromPretrained (cyclomatic 28): Qwen3TTSCoreMLModel.fromPretrained has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 13 of the 28 points are its own statements and the rest belongs to 4 function items inside it that branch (loadML, route, loadML::require, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b95df181e6b2444b7b206dd94e5da310c66cf2f9d808a699efc8bfde257e05c"}},{"ruleId":"D1","level":"warning","message":{"text":"FishDrama3Benchmark.run (cyclomatic 28): FishDrama3Benchmark.run has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/FishDrama3Benchmark.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8371e85acec83619da2d62706990cff0fe27aa661986843485518a9a7a5c874f"}},{"ruleId":"D1","level":"warning","message":{"text":"PocketBenchmark.run (cyclomatic 27): PocketBenchmark.run has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTSBenchmark/main.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c29a521afa2adc33d6d9c0f960a7ea7fc4c55c39e857851073485f762df93d"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingASR.transcribeStream (cyclomatic 27): StreamingASR.transcribeStream has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/StreamingASR.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6febc4bdad91e58b49a81619d01f02c3bd60ed7cb90272fc1b9d31f3b932d18"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4ToolCodec.prompt (cyclomatic 27): Gemma4ToolCodec.prompt has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1bd82451e20769ed024a09b5441023567809e8df2fa792a42510c3792b3738"}},{"ruleId":"D1","level":"warning","message":{"text":"WienerFilter.emWiener (cyclomatic 27): WienerFilter.emWiener has cyclomatic complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/WienerFilter.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb82a7b1fa4530e7ccdf35ad059ed1c282da7b44964f2efeab1007486b0e46b8"}},{"ruleId":"D1","level":"warning","message":{"text":"MossTTSNanoTokenizer.encode (cyclomatic 26): MossTTSNanoTokenizer.encode has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 12 of the 26 points are its own statements and the rest belongs to 4 function items inside it that branch (pop, enqueue, push, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoTokenizer.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabcb6897c3e75c71699acbf644ab21bb14ac5f21feff9be769f815577decb69"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaMatcher.feedObject (cyclomatic 26): JSONSchemaMatcher.feedObject has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce593b2c87f3d6a1975aca2e3b136f73b96aabbca2d3cabb1a8c7e3335d954f"}},{"ruleId":"D1","level":"warning","message":{"text":"TTSSampler.sample (cyclomatic 26): TTSSampler.sample has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Sampler.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef91f575bd7937553e50238b775a327a2d1dd77bc308a274f2947e9bc3ac4a61"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatSession.validate (cyclomatic 26): VoiceChatSession.validate has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"1076b410e2c2cfa48ff25f0b71aa5b1d324cca9af68888ef2ecd42d5a7ab07b7"}},{"ruleId":"D1","level":"warning","message":{"text":"FullDuplexToolScenario.load (cyclomatic 26): FullDuplexToolScenario.load has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8460ed45e071d8505841e63e15efde6a39def0e1111789ef9dec61858c49904"}},{"ruleId":"D1","level":"warning","message":{"text":"convert_coreml.main (cyclomatic 26): convert_coreml.main has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"57989df1b0732130dc65f8371160bc87e072c2fb0fd8ccd73e12ba9c2d1c0055"}},{"ruleId":"D1","level":"warning","message":{"text":"FullDuplexAudioIO.start (cyclomatic 25): FullDuplexAudioIO.start has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/FullDuplexAudioIO.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"230c734886e59f92c4306755cfdbd9f031b936fcbfef8129a111797e09a83354"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatSession.runFunctionFastPath (cyclomatic 25): VoiceChatSession.runFunctionFastPath has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e0c235497509b34688186b6857f30e5fccba035518860d0356e73e6f63aab0"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioFileLoader.loadWAV (cyclomatic 24): AudioFileLoader.loadWAV has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileLoader.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"441c129da2d716011ba64a79575eb67a1af9e9c5f19821e01aa2caf80c8e3d90"}},{"ruleId":"D1","level":"warning","message":{"text":"KokoroPhonemizer.phonemizeWithDict (cyclomatic 24): KokoroPhonemizer.phonemizeWithDict has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"241e249414f7d4103de871e6eda88286258f0cef4db88a9e53f8d9ee06cfda4b"}},{"ruleId":"D1","level":"warning","message":{"text":"KyutaiSTTConfig.init (cyclomatic 24): KyutaiSTTConfig.init has cyclomatic complexity 24 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KyutaiSTT/Configuration.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a072a9e23c3cb61fe7a3a0583f446d8cfb8a479e3c2f390eb099e48b0055f19"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4UnifiedChat.generateResponse (cyclomatic 24): Gemma4UnifiedChat.generateResponse has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4UnifiedChat.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01abd9e2b18a85e2216921f8f88aecc9e24b63401752df3d76da2c0efdc4e6c"}},{"ruleId":"D1","level":"warning","message":{"text":"HTDemucs.init (cyclomatic 24): HTDemucs.init has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucs.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b449a69f3b3d874fdc9bbc8ec8f7ad97d80913d9193a5be0c5a4a8228022370"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatRNNTTurnTakingState.selectToken (cyclomatic 24): VoiceChatRNNTTurnTakingState.selectToken has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatTurnTaking.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d228da08d67a6158f02e9b87eec13bf27ab7fc9488f63abbc46191f2b9547367"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatMCPRuntime.callProvider (cyclomatic 23): VoiceChatMCPRuntime.callProvider has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06de1f9160f297ed4a0ab6eb0f30844d22d076fb56e0bc8d9a60d7b5d2b2e7f"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatMCPToolCoordinator.validate (cyclomatic 23): VoiceChatMCPToolCoordinator.validate has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76e1e3b07f32bf96c086fdc32d29bf7aee0cd8b54b781429ae12cefee43b111"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioIO.startMicrophoneTimestamped (cyclomatic 23): AudioIO.startMicrophoneTimestamped has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioIO.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a089786d58e2936b92c8e133191a4dbd2f24aeb0cbc56dd9aa56cc6166c5341d"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexTTS2PauseCompressor.compress (cyclomatic 23): IndexTTS2PauseCompressor.compress has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Synthesis.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62d7ff120293a68e305bdafb77bd2219f1ae68c478f04402b6079a1a916dc2f"}},{"ruleId":"D1","level":"warning","message":{"text":"LatinPhonemizer.frenchToIPA (cyclomatic 23): LatinPhonemizer.frenchToIPA has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/LatinPhonemizer.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"12350614aa0a7cc2ea8947cb6acd591cd80d9a5d4f33f7da74081f82b8236f2c"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4Tokenizer.bpeEncode (cyclomatic 23): Gemma4Tokenizer.bpeEncode has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tokenizer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"be64d1987ecc35889bd634a22d9fb09a0ad2b684c2b9653018b3a6850405467d"}},{"ruleId":"D1","level":"warning","message":{"text":"RegexParser.escape (cyclomatic 23): RegexParser.escape has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONPattern.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"c55f2f873b058c7fb4ded3c360f4ec63fc15164a57b5dc3b86bd94c07f547052"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaGrammar.compile (cyclomatic 23): JSONSchemaGrammar.compile has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cb3bb7ff7b714198c373ce83059f82cb9e4bfb211de3bb14720d331523f861"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONSchemaGrammar.compileObject (cyclomatic 23): JSONSchemaGrammar.compileObject has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1866b3e50f57a190d3a8d63478e991be71bdaec807fc4d84ab255e04729d1cf"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.value (cyclomatic 23): Parser.value has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/OrderedJSON.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a839f18ace8afa33f29aac63dc7bd4623ffc682e47d7ddddd20b6d9d1af2aa4b"}},{"ruleId":"D1","level":"warning","message":{"text":"Sampling.swift.sampleToken (cyclomatic 23): Sampling.swift.sampleToken has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Sampling.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08aec36c48794b62a1252d160f1b3badbc4b9a47d127ed8071539a20a018af0"}},{"ruleId":"D1","level":"warning","message":{"text":"SortformerStateUpdater.topKIndices (cyclomatic 23): SortformerStateUpdater.topKIndices has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6ae4b5f9b7b0ffbaa22e1b75ee4bcf22ec78574375d8491993d4d4060c41e1"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatSpeechDecoder.init (cyclomatic 23): VoiceChatSpeechDecoder.init has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSpeechDecoder.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4565cfd87073b108a86cd72fd6c46334d15620720c57ab03b3ba0d03d5f7ffb"}},{"ruleId":"D1","level":"warning","message":{"text":"FullDuplexExpectedArguments.parse (cyclomatic 23): FullDuplexExpectedArguments.parse has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"038bf664a9856ed92a2658122c02f2c87ae2168e51ffdb439861dab8dea8bcd7"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatBench.run (cyclomatic 23): VoiceChatBench.run has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/VoiceChatBench.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc3deb16cadeacf2994ff3553ca4cb2366cfbf2d6808535ad229596e7dcbc4d"}},{"ruleId":"D1","level":"warning","message":{"text":"export_breeze_mlx.export (cyclomatic 23): export_breeze_mlx.export has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/export_breeze_mlx.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da3f3bb621f0c4b103328e5317eb410fa11810d310f5662d9ccb767fbf123ed"}},{"ruleId":"D1","level":"warning","message":{"text":"validate_coreml.check (cyclomatic 23): validate_coreml.check has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/validate_coreml.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"1619ac4eb5efb352352bfd8cdf4debbdbd3349e12919cb8271464a0d58edb87c"}},{"ruleId":"D1","level":"warning","message":{"text":"MultipartParser.parse (cyclomatic 22): MultipartParser.parse has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAITranscriptions.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8cb8e14a8e537874a04ab5f52252170f748b2208005584a544946a92160458"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatterboxFlashT3Graphs.generateSpeechTokens (cyclomatic 22): ChatterboxFlashT3Graphs.generateSpeechTokens has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa38b761cba8ce0889afa9d50dd2c73397bbb37577c74ed7c66c6b0fa2a6ab90"}},{"ruleId":"D1","level":"warning","message":{"text":"ChinesePhonemizer.syllableToIPA (cyclomatic 22): ChinesePhonemizer.syllableToIPA has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: ChinesePhonemizer.extractTone (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/ChinesePhonemizer.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e306a43eac40d66b8cdcb8f304b7b0d22976204801dc198aae845e74930028ed"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.normalize (cyclomatic 22): GermanPhonemizer.normalize has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d7f50e5b02b22baa32d11a61c5f53487cbe4c0ec4e5e57021781e25dc8d81f"}},{"ruleId":"D1","level":"warning","message":{"text":"MossTTSNanoSampler.sample (cyclomatic 22): MossTTSNanoSampler.sample has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoSampling.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"66bb3e1b5a31ca6f51b1187a42efc6dab0628884b898aaa84d2cda0acbdcd732"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4Chat.decode (cyclomatic 22): Gemma4Chat.decode has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Chat.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b861b8e6ac999bafbcd76d10334b7c4a6b80c5d2329d37ed40730f920dc85c"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3TTSModel.runStreamingGeneration (cyclomatic 22): Qwen3TTSModel.runStreamingGeneration has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"268e306eef53c67c5553a52553e47cb1ef0c70a5ccaeb4c473117a0aed142b89"}},{"ruleId":"D1","level":"warning","message":{"text":"SupertonicTokenizer.preprocess (cyclomatic 22): SupertonicTokenizer.preprocess has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTokenizer.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1b8435eaa79ffbb2a474c9b9e32363f319df2b8db8edb999292e840c0cd2a7"}},{"ruleId":"D1","level":"warning","message":{"text":"CosyVoiceTTSModel.fromPretrained (cyclomatic 21): CosyVoiceTTSModel.fromPretrained has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CosyVoiceTTS.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"33536e036742f44e2b91c7faa39129cf62fd88f9e4e77e61b0db1ed972055ac3"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.phonemize (cyclomatic 21): GermanPhonemizer.phonemize has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"e361f0816bc5d12e3c3c77a184882ea62ebcd31b7540d03aebdd13ea7eec2653"}},{"ruleId":"D1","level":"warning","message":{"text":"MossMLXModel.transcribeLocked (cyclomatic 21): MossMLXModel.transcribeLocked has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXRuntime.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6de61833d3f64acfb912afcc5353bcbae52c64692f77d9d02288e986d2953c"}},{"ruleId":"D1","level":"warning","message":{"text":"Sampling.swift.sampleTokensBatch (cyclomatic 21): Sampling.swift.sampleTokensBatch has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Sampling.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4249898379f1630cfc5b96d7e0522d0d0b5e095c0df7fcead4e9832d4e362e6"}},{"ruleId":"D1","level":"warning","message":{"text":"NpzReader.parseNpy (cyclomatic 21): NpzReader.parseNpy has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/WeightLoading.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd16dafb75cac94144e1cf503fcc141dfff111f65bbc1abf8da98ba24eee026"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingVADProcessor.processProb (cyclomatic 21): StreamingVADProcessor.processProb has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/StreamingVADProcessor.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6160b9b8c2c88e25e08bd072e99ed95c28a0db1080b9bf4e9e5d03d7c7a496e"}},{"ruleId":"D1","level":"warning","message":{"text":"WeightLoader.swift.loadStagesWeightsForDecoder (cyclomatic 21): WeightLoader.swift.loadStagesWeightsForDecoder has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e676349a484ba7a802f9f9548b390956776116d053300dcdd65049ce1034f76"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatBench.runCompletePipeline (cyclomatic 21): VoiceChatBench.runCompletePipeline has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/VoiceChatBench.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e011811fe11bb8ce8cb1f7ce594099c5e88fce3f9c2a9c5a3b192fab826000d5"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatBench.runFullDuplexToolScenario::observe (cyclomatic 21): VoiceChatBench.runFullDuplexToolScenario::observe has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: one other method here (VoiceChatBench.runFullDuplexToolScenario) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaaf33044025f77b7b705eeb03a00e391eecd61f61bfd73a3a324dceca705288"}},{"ruleId":"D1","level":"warning","message":{"text":"fish_drama3_reference.main (cyclomatic 21): fish_drama3_reference.main has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/fish_drama3_reference.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6af2063382b858af6f99b0214bcfad141ccfe95dda5e1f6e8f2a850479fa6d6"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatDemoState.ingest (cyclomatic 20): VoiceChatDemoState.ingest has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9923e4a3b91116e8eab80c801110f53a83d22215f50b0491e241b10f2c91fe"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatMCPRuntime.appleEventKitProviderCall (cyclomatic 20): VoiceChatMCPRuntime.appleEventKitProviderCall has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbfd1d283fc6e953018852b27d2df82c51d3395e422ef5f35904d013b3d33b0"}},{"ruleId":"D1","level":"warning","message":{"text":"BreezeTTSModel.generateStreaming (cyclomatic 20): BreezeTTSModel.generateStreaming has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/BreezeTTSModel.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d24c344d05e91e300f26050d491cc0d162a163f02cfd34d132133cdafc2ad147"}},{"ruleId":"D1","level":"warning","message":{"text":"IndexTTS2Tokenizer.encode (cyclomatic 20): IndexTTS2Tokenizer.encode has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2239a8674c0d6920541af4fe5d3bdffaf1dca54a93875cda94bd341948aade3"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3ASRModel.pickNextToken (cyclomatic 20): Qwen3ASRModel.pickNextToken has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f261cc7bb36932a8fa179c3b59c746abea2e5c812550596312547898891d3e"}},{"ruleId":"D1","level":"warning","message":{"text":"TimestampCorrection.enforceMonotonicity (cyclomatic 20): TimestampCorrection.enforceMonotonicity has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/TimestampCorrection.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b5875da79fedb6aef0fffd3f292e1e28d4147ae08f3e4019aaa31f708d7707"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.string (cyclomatic 20): Parser.string has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/OrderedJSON.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fda8ab4a13b1d39e457e3b168b7b6df5e85d51d66c0463f1bbf344adcbf043e"}},{"ruleId":"D1","level":"warning","message":{"text":"Community1Clustering.vbx (cyclomatic 20): Community1Clustering.vbx has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d76be613a73ef9d5361f4f3a11b1908255395d37a77b6c35ea4a2933f63c7f9"}},{"ruleId":"D1","level":"warning","message":{"text":"FullDuplexExpectedAudio.parse (cyclomatic 20): FullDuplexExpectedAudio.parse has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d600147f3a7c7185c06f4120a011be728eebc3d371ccc2f8b197a99bc0ea70c2"}},{"ruleId":"D1","level":"warning","message":{"text":"AsrBench.run (cyclomatic 19): AsrBench.run has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/AsrBench.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efbd6b4fd49346adc080698fee3eb8c880759488c4a5f4f189273a0955f045b"}},{"ruleId":"D1","level":"warning","message":{"text":"WER.compute (cyclomatic 19): WER.compute has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/WER.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f619b815ead2d63afa0d9eb9e9c4f2a5cbdf9286c9122c2fb0826feb784c663"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingAudioPlayer.startCompletionPolling (cyclomatic 19): StreamingAudioPlayer.startCompletionPolling has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/StreamingAudioPlayer.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"1546c816c8607b823872e25a925d4004a630d6fb1269471beba3f21c1efcafdd"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatterboxFlashT3Graphs.denoiseBlockStep (cyclomatic 19): ChatterboxFlashT3Graphs.denoiseBlockStep has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bd61b72e84e7b0db91b1691334b9e31cd3446a044a35a6176b1c47198540a2e"}},{"ruleId":"D1","level":"warning","message":{"text":"IndicMioSampler.sample (cyclomatic 19): IndicMioSampler.sample has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioSampler.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d49109f1a3c26d9563a4d96fbb1762f61f759f28b70345d52cfe5169bebe6df"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.compound (cyclomatic 19): GermanPhonemizer.compound has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0517656cb6d7fc9d29af086fa00122a724e9bf0f174a1261c68bbe498d739ec"}},{"ruleId":"D1","level":"warning","message":{"text":"JapanesePhonemizer.phonemize (cyclomatic 19): JapanesePhonemizer.phonemize has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/JapanesePhonemizer.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09acef4294f0044e3be30db1ad9d299b5154e922db474f20a53d8b0c62d3404"}},{"ruleId":"D1","level":"warning","message":{"text":"MossTTSNanoTokenizer.init (cyclomatic 19): MossTTSNanoTokenizer.init has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoTokenizer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2e9961abc43baa040aa0113bc113ab21f750e1de2e16e982e5bc6042c3c1e7"}},{"ruleId":"D1","level":"warning","message":{"text":"PocketTtsMimiKeys.discover (cyclomatic 19): PocketTtsMimiKeys.discover has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTtsMimiKeys.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe53b85559bf49817a0721f3df295524f9ae67db4ec780abdbc98e093b1e83f5"}},{"ruleId":"D1","level":"warning","message":{"text":"Community1Clustering.centroidLinkageLabels (cyclomatic 19): Community1Clustering.centroidLinkageLabels has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f5f15631290af5ff2071001bfdfd8a29dbf16cf6715f9ef6d3db73cb814e9c1"}},{"ruleId":"D1","level":"warning","message":{"text":"Nemotron3ArtifactConfiguration.validate (cyclomatic 19): Nemotron3ArtifactConfiguration.validate has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3Diarizer.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a9c2c79f75cf6f50fa5ff681eab2f2a80f31307c23a0430b3df25a57e22452"}},{"ruleId":"D1","level":"warning","message":{"text":"SupertonicTokenizer.bisect (cyclomatic 19): SupertonicTokenizer.bisect has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTokenizer.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d3293ac4303a3cbb59f55e545e7e3048a6c8c81666184eae8b255f011e6f8e"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioServer.swift.dispatchSynthesize (cyclomatic 18): AudioServer.swift.dispatchSynthesize has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"74e277d01162dbbd523eb4b37a69a15055af893ee443fa545d047a553c91a9a3"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAISpeech.swift.handleOpenAISpeech (cyclomatic 18): OpenAISpeech.swift.handleOpenAISpeech has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAISpeech.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ebeae3dc80a4be465ee29919db7e743ac093916566342785a57e35a7d62f7c"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAITranscriptions.swift.handleOpenAITranscriptions (cyclomatic 18): OpenAITranscriptions.swift.handleOpenAITranscriptions has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAITranscriptions.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b73e39f41774d9f5f3b12ae21fc5b7313e50fa8de43b98618ec983f75aa1b9c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatterboxFlashNumpy.parseFloat32Vector (cyclomatic 18): ChatterboxFlashNumpy.parseFloat32Vector has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashNumpy.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"44da767515074b2da679c69c3fb5a3a489fac93131c2a4615afb7b572bed3728"}},{"ruleId":"D1","level":"warning","message":{"text":"SortformerTuning.init (cyclomatic 18): SortformerTuning.init has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: DiarizationBench.swift.makeDiarizationEngine (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a40c445a3470e3223d94c921fe1b17a1ddb2138e2d4a6a3775a1826c5cc969"}},{"ruleId":"D1","level":"warning","message":{"text":"FishAudioDrama3Prompt.build (cyclomatic 18): FishAudioDrama3Prompt.build has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (appendCodes, appendText). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDrama3Prompt.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f247854480b1ce47f2a3e336a425582577cd904735179ddff460c90dab7f7553"}},{"ruleId":"D1","level":"warning","message":{"text":"FishAudioSampler.sample (cyclomatic 18): FishAudioSampler.sample has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioGeneration.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb5902481e16f01095343bbfc315a225c378bc1ac18e162c85226dc22f0a051"}},{"ruleId":"D1","level":"warning","message":{"text":"HiggsTTSCodec.init (cyclomatic 18): HiggsTTSCodec.init has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSCodec.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a2db20b46a7365df5ecc0dfd9c2991883df762ae9e451ee7207f083d4c3952a"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.findNuclei (cyclomatic 18): GermanPhonemizer.findNuclei has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5065f69ec2d6f0b3a542cb3eac17f0b2981beb85b7c3fce425757fe0cf3012"}},{"ruleId":"D1","level":"warning","message":{"text":"MADLADTranslator.swift.sampleWithTemperature (cyclomatic 18): MADLADTranslator.swift.sampleWithTemperature has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTranslator.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b7b88994670a9ae0d200d60a07249f16654b6844ebe242336c383273b4bf8c"}},{"ruleId":"D1","level":"warning","message":{"text":"PocketSession.frame (cyclomatic 18): PocketSession.frame has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTTSModel.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71b97e34d5fbb6cd84d3586d595750b02396aed4c5f9b8e2a191a504b5d3d65"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4Tokenizer.load (cyclomatic 18): Gemma4Tokenizer.load has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tokenizer.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec989e5f5b7aa0776d5e47d6f9ffd76476a5abdbfbbb0fe007f34889b3c1af1"}},{"ruleId":"D1","level":"warning","message":{"text":"EmbeddingFile.read (cyclomatic 18): EmbeddingFile.read has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/BundleConfiguration.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cfb082bac1f998d8cba6a53a70d55d01a62ad3699bec5c90a375362225d034"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingKwsDecoder.step (cyclomatic 18): StreamingKwsDecoder.step has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechWakeWord/StreamingKwsDecoder.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a509ee1285d5f97b5341416ceb3efd9350317c41bebda48f7ac69c53f35c81"}},{"ruleId":"D1","level":"warning","message":{"text":"SupertonicTokenizer.chunk (cyclomatic 18): SupertonicTokenizer.chunk has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 3 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTokenizer.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb54a95bd901b63d5dd92f2691d45eac7a3299fc75011cdee45513695d1b1fa"}},{"ruleId":"D1","level":"warning","message":{"text":"VibeVoiceTTSModel.encodeVoice (cyclomatic 18): VibeVoiceTTSModel.encodeVoice has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4fd921c9456f95752078d7668043e2305c165e5652b8a91e5b089d3a09350f"}},{"ruleId":"D1","level":"warning","message":{"text":"BreezeTTSBenchmark.run (cyclomatic 18): BreezeTTSBenchmark.run has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/BreezeTTSBenchmark.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"82a212a3ed0af3ba8bc643bb59afdc96ea6dbb27325a1fcd116bb2d0264b320f"}},{"ruleId":"D1","level":"warning","message":{"text":"profile_gliner_memory.main (cyclomatic 18): profile_gliner_memory.main has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile_gliner_memory.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d34af9757d23b7e2388229680491cc7a3dcd1626c4a0a364e3451897643085c"}},{"ruleId":"D1","level":"warning","message":{"text":"profile_fish_drama3.main (cyclomatic 18): profile_fish_drama3.main has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/profile_fish_drama3.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3372e34bd3d7aa11d9cc32d3032f77276f0487cfdfdb1a3f518fbcbd4a122da"}},{"ruleId":"D1","level":"warning","message":{"text":"SpeakCommand.runFishDrama3 (cyclomatic 17): SpeakCommand.runFishDrama3 has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7176a2ae023c7374c9fb28c6bcc19b28d3b3b2e41fe533f392c54124c35bc957"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatCommand.runFile (cyclomatic 17): VoiceChatCommand.runFile has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b8ac243bdf57ef642c056194748826fd20db8b12b08568ed3acfeb7a07402c"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioFileLoader.convertDrained (cyclomatic 17): AudioFileLoader.convertDrained has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileLoader.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"783009100c84cb43cc93dac64e730a9c72ac6fcef28f2202bd68ecbe88bbe093"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioFileChunkReader.produceSamples (cyclomatic 17): AudioFileChunkReader.produceSamples has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileStream.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"136ce22405d703dfef543c70f73f3627eaac6dc60f27f73b9b7b15bbbaf9615a"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemAudioTap.handleInput (cyclomatic 17): SystemAudioTap.handleInput has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/SystemAudioTap.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"54778f99f6ecd6e63d4740b64f826dd94e29aaf3b3578a6846625e6047a91ad4"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioServer.swift.parseRealtimeTurnDetection (cyclomatic 17): AudioServer.swift.parseRealtimeTurnDetection has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41ff2757d0813483846e0b4fa6f5608065a5126c0bd37ae384580b1cbed3bc3"}},{"ruleId":"D1","level":"warning","message":{"text":"CosyVoiceTTSModel.synthesize (cyclomatic 17): CosyVoiceTTSModel.synthesize has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CosyVoiceTTS.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bebb677a5a2d9832005d880e703daf34c98fff2e66344d4d5501202d23a9632"}},{"ruleId":"D1","level":"warning","message":{"text":"CosyVoiceTTSModel.splitForLongForm (cyclomatic 17): CosyVoiceTTSModel.splitForLongForm has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/VoiceCloning.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5783a5efd463c17b158eecc5392c39071ec1761a08e3f3637e45b9d0beea2d96"}},{"ruleId":"D1","level":"warning","message":{"text":"DiarizationBench.swift.maximumJaccardAssignment (cyclomatic 17): DiarizationBench.swift.maximumJaccardAssignment has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: DiarizationBench.swift.makeDiarizationEngine (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0db491bc449dc5e97759ed91979ed34487aa8424369b09f316161c71b39ff5"}},{"ruleId":"D1","level":"warning","message":{"text":"BenchmarkOptions.parse (cyclomatic 17): BenchmarkOptions.parse has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GLiNERBenchmark/Options.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b99f1fdd59ddb7e18aab9dc1682a58f5764cf094c83a529fe9c55d5f07d7a95"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.expandAbbreviations (cyclomatic 17): GermanPhonemizer.expandAbbreviations has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e61dd4cd37e024cf7b729b16f19f206199b24cf40cb69963a7ae00a21f4baa7"}},{"ruleId":"D1","level":"warning","message":{"text":"MagpieTTSCoreML.synthesize (cyclomatic 17): MagpieTTSCoreML.synthesize has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7368ee78eec9a613f50a301690ef171d6f8deb983c722a89454fac1b563adfa1"}},{"ruleId":"D1","level":"warning","message":{"text":"MossTTSNanoModel.encodeReference (cyclomatic 17): MossTTSNanoModel.encodeReference has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoModel.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"6945b58bf2afc9c12c29b879f1e4c01bfda8e1abd47380dcd5f044ccac226e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"MossTranscribeModel.transcribeLocked (cyclomatic 17): MossTranscribeModel.transcribeLocked has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf456f7c4809d1c3c1e6e4a2aa4d4e4cb7c82667f1dd9a3297860b91d7ad9d08"}},{"ruleId":"D1","level":"warning","message":{"text":"NemotronSentencePieceUnigramTokenizer.encodeForWordBoosting (cyclomatic 17): NemotronSentencePieceUnigramTokenizer.encodeForWordBoosting has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/SentencePieceUnigramTokenizer.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaeabc4add314692d9b1a6f091ea905baba5fa7d0426f8cecb3e592565a4ed67"}},{"ruleId":"D1","level":"warning","message":{"text":"Mimi.sanitizeWeights (cyclomatic 17): Mimi.sanitizeWeights has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/MimiCodec.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3cca251ee282689c2b0769d28c3c6ed0dd3799b97f60b9eb005185482598734"}},{"ruleId":"D1","level":"warning","message":{"text":"CoreMLForcedAligner.align (cyclomatic 17): CoreMLForcedAligner.align has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLForcedAligner.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"94acc47e65e8f3f11723a22e07ef5ee29668d7fced2f5168a73f1553bc09de18"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSampler.sampleOnDevice (cyclomatic 17): ChatSampler.sampleOnDevice has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/ChatSamplerMLX.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"70b7cea0875bb0310479c566233d1b533d1a1d629ad870c3f22034e458522d70"}},{"ruleId":"D1","level":"warning","message":{"text":"JSONPattern.compile (cyclomatic 17): JSONPattern.compile has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONPattern.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb6ce6d1b0c042172c0ead1dae80bc3c5319703ecd0a2faf05a42141afb1b32"}},{"ruleId":"D1","level":"warning","message":{"text":"RegexParser.bracket (cyclomatic 17): RegexParser.bracket has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONPattern.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2a33902ab2c2966ac455683cf2c57091dc38453629d0c07bf8a8099ce4e26d"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.number (cyclomatic 17): Parser.number has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/OrderedJSON.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d67a2571bcc98a2bc249b09e70fd6f7bff25ca438d80e4e8af4ff20aebdabd"}},{"ruleId":"D1","level":"warning","message":{"text":"Qwen3TTSModel.synthesizeWithVoiceCloneICL (cyclomatic 17): Qwen3TTSModel.synthesizeWithVoiceCloneICL has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"377d8ec2e11187bebf3347f70e503941e869f7e9bb255756a6c7578b763b73bc"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageIDModelConfiguration.validate (cyclomatic 17): LanguageIDModelConfiguration.validate has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechLanguageID/LanguageIDTypes.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8093472e16ec1b14e875ae973482e946c613fa629dc0d139c7fa92bdcdf40744"}},{"ruleId":"D1","level":"warning","message":{"text":"Community1PLDA.load (cyclomatic 17): Community1PLDA.load has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (tensor). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"232e6de7f8387504816f4d86c6ebee4eddb90810b89a0dd8097c54a4eb9b9379"}},{"ruleId":"D1","level":"warning","message":{"text":"DERScoring.swift.maximumWeightAssignment (cyclomatic 17): DERScoring.swift.maximumWeightAssignment has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DERScoring.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"986b98a61dc7b6351e5769ef014ff307c5de4b57e05f6f81826c7cde3415e918"}},{"ruleId":"D1","level":"warning","message":{"text":"DPMSolverMultistepScheduler.step (cyclomatic 17): DPMSolverMultistepScheduler.step has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/DPMSolver.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3877c96edc07a7248883a9c23459020dbda77dd128ae9ccd4e64615ce127ed0d"}},{"ruleId":"D1","level":"warning","message":{"text":"VoiceChatMCPConfiguration.selectedServers (cyclomatic 16): VoiceChatMCPConfiguration.selectedServers has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a80224a3add3c3052f4a37d1f543b75f5ac10e01032b5159848234851210982"}},{"ruleId":"D1","level":"warning","message":{"text":"AudioFileChunkReader.init (cyclomatic 16): AudioFileChunkReader.init has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileStream.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a120b57aca4f913d3eb7491fc296882372f3bfdb01ea8b944d874f606bebb7b"}},{"ruleId":"D1","level":"warning","message":{"text":"S3GenVocoder.swift.s3Istft (cyclomatic 16): S3GenVocoder.swift.s3Istft has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa18866c98fca68b2c8ea543b9b9800042c8ad96b93a7447b4f642318dc00fd6"}},{"ruleId":"D1","level":"warning","message":{"text":"DiarizationBench.runEngine (cyclomatic 16): DiarizationBench.runEngine has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: DiarizationBench.swift.makeDiarizationEngine (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f344e0c36cff2127a42a296a8afa241bb752462353d2a261874bf78d2ba75e"}},{"ruleId":"D1","level":"warning","message":{"text":"GermanPhonemizer.intToDe (cyclomatic 16): GermanPhonemizer.intToDe has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"86070c169c3b2bd09f8580635b496ec23cec28b5f7b2bb8597d83752edf1a600"}},{"ruleId":"D1","level":"warning","message":{"text":"MagpieJapaneseG2P.phonemes (cyclomatic 16): MagpieJapaneseG2P.phonemes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/JapaneseG2P.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9322496dfbff888e6454736bf0e3f8ff018014d328362bc14c00663e423222"}},{"ruleId":"D1","level":"warning","message":{"text":"LanguageGuideContext.makeMask (cyclomatic 16): LanguageGuideContext.makeMask has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/LanguageGuide.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b86f39b729c01ebfb4430be8c32367ad5f3298c05c5a17b1a09210b477578f6"}},{"ruleId":"D1","level":"warning","message":{"text":"NemotronVocabulary.encodingsForWordBoosting (cyclomatic 16): NemotronVocabulary.encodingsForWordBoosting has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function item inside it that branches (collect). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"50629d97da5ac0d1030114f44f743c35c07a017133a0a2858f2157caaebaead2"}},{"ruleId":"D1","level":"warning","message":{"text":"StreamingSession.processChunk (cyclomatic 16): StreamingSession.processChunk has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetStreamingASR/StreamingSession.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"690428459529c83e25e6737fcf5e63a69f71abff295ea9f45c687794361919c2"}},{"ruleId":"D1","level":"warning","message":{"text":"PocketTTSTokenizer.encode (cyclomatic 16): PocketTTSTokenizer.encode has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTTSTokenizer.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5caf93d68b01b69f3a48d52a0d13fa76fa61e3daab9662895234ccf977b4cea"}},{"ruleId":"D1","level":"warning","message":{"text":"Gemma4ToolCodec.response (cyclomatic 16): Gemma4ToolCodec.response has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9d187c5137a8028ac71f57d962c6905439085df77be4e870e7c422e40478328"}},{"ruleId":"D1","level":"warning","message":{"text":"TextChunker.findNaturalBreak (cyclomatic 16): TextChunker.findNaturalBreak has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/TextChunker.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c655e6c1d88ba21de79cdbb254628737b3c81ca00979e6356687f888e8edc107"}},{"ruleId":"D1","level":"warning","message":{"text":"NpzReader.read (cyclomatic 16): NpzReader.read has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/WeightLoading.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"228c3e631f76508f4f7c047381579937ec407d081702514357eb4c069838ee79"}},{"ruleId":"D1","level":"warning","message":{"text":"DiarizationHelpers.constrainedAgglomerativeClustering (cyclomatic 16): DiarizationHelpers.constrainedAgglomerativeClustering has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationHelpers.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfb9a2160ddc089b760719eebaf786371fad47a82861dd50f20703c42a4bdf28"}},{"ruleId":"D1","level":"warning","message":{"text":"FullDuplexExpectedReply.parse (cyclomatic 16): FullDuplexExpectedReply.parse has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdc69c3d9f1fe1a859e1080bca8f0d6cd066fecae02a237d61ebfb352b3eb43"}},{"ruleId":"D1","level":"warning","message":{"text":"RuntimeOwnershipStress.main (cyclomatic 16): RuntimeOwnershipStress.main has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/RuntimeOwnershipStress.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85802259ce89bb06a317b7967d590b55b57564900617b2d9179c41d34dad08b"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioServer.swift.handleRealtimeWS (cognitive 309): AudioServer.swift.handleRealtimeWS has cognitive complexity 309 (threshold 15). Drivers by points: if/else 50 (210 pts), loops 9 (40 pts), match/switch 5 (25 pts), boolean chains 23, error handling 3 (6 pts), ternaries 1 (5 pts) (nesting depth added 218). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ceac715f4a9a8b740fb700e9deba319cdffca6c01c89c04c1f30f7b67c7cf75"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonaPlexModel.respondStream (cognitive 196): PersonaPlexModel.respondStream has cognitive complexity 196 (threshold 15). Drivers by points: if/else 29 (94 pts), loops 25 (73 pts), ternaries 5 (20 pts), boolean chains 6, error handling 2 (3 pts) (nesting depth added 129). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"25cdbca58c54d9aa432b89f22ba3a4beb79225c4068e60b4c218bc02dd9cc0ba"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.validate (cognitive 185): SpeakCommand.validate has cognitive complexity 185 (threshold 15). Drivers by points: if/else 70 (127 pts), boolean chains 51, match/switch 1 (4 pts), loops 1 (3 pts) (nesting depth added 62). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef9f7de44f387fbb2a319c96d97f4eed158274e392b78f219a9b31a2a0c2294"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.normalizeNumbers (cognitive 168): GermanPhonemizer.normalizeNumbers has cognitive complexity 168 (threshold 15). Drivers by points: if/else 29 (84 pts), boolean chains 53, loops 7 (20 pts), ternaries 3 (11 pts) (nesting depth added 76). Of this number, 162 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e52ca1381e65cd5f8e7d6427d86515265978815fbc3e5b588d90ab3a56acf6"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonaPlexModel.respond (cognitive 140): PersonaPlexModel.respond has cognitive complexity 140 (threshold 15). Drivers by points: if/else 32 (68 pts), loops 26 (49 pts), ternaries 5 (15 pts), boolean chains 7, error handling 1 (nesting depth added 69). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec00ef0877544b0a593f00ab88fb998120041c664ece1c52cd1b95e0e423609d"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonaPlexModel.respondRealtime (cognitive 130): PersonaPlexModel.respondRealtime has cognitive complexity 130 (threshold 15). Drivers by points: loops 22 (65 pts), if/else 14 (39 pts), ternaries 5 (18 pts), boolean chains 4, error handling 3 (4 pts) (nesting depth added 82). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e771d66e3948b7236eeb4765fde282a4b311dcdad7c57b1ec9aeade814622ca"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.mapConsonants (cognitive 110): GermanPhonemizer.mapConsonants has cognitive complexity 110 (threshold 15). Drivers by points: if/else 26 (49 pts), ternaries 11 (34 pts), boolean chains 23, loops 2, match/switch 1 (2 pts) (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"428733234c9f11f91284d058edb21e2e418feb023f33ed373729ae1015ed40eb"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatSession.advance (cognitive 98): VoiceChatSession.advance has cognitive complexity 98 (threshold 15). Drivers by points: if/else 40 (62 pts), boolean chains 24, ternaries 8 (12 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"0030c9ebe5bff11bf0e796abd87514e6c5e136bf1e60ac68f94ee9c13b3eaadd"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonaPlexModel.respondDiagnostic (cognitive 96): PersonaPlexModel.respondDiagnostic has cognitive complexity 96 (threshold 15). Drivers by points: loops 24 (44 pts), if/else 14 (34 pts), ternaries 4 (11 pts), boolean chains 6, error handling 1 (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"30baa82bae9fc37423c78cecd7c6b202bca5cafcf0da58d5765368d84f7e2ee9"}},{"ruleId":"D2","level":"warning","message":{"text":"PyannoteDiarizationPipeline.runEmbeddingClusteredDiarization (cognitive 94): PyannoteDiarizationPipeline.runEmbeddingClusteredDiarization has cognitive complexity 94 (threshold 15). Drivers by points: if/else 19 (53 pts), loops 14 (32 pts), ternaries 4 (8 pts), boolean chains 1 (nesting depth added 56). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationPipeline.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"822e65691f603021711e51bade913f8dcd56e72d31f05e2e669fc942b756b27a"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaMatcher.feedString (cognitive 80): JSONSchemaMatcher.feedString has cognitive complexity 80 (threshold 15). Drivers by points: if/else 28 (59 pts), match/switch 4 (8 pts), boolean chains 7, ternaries 2 (6 pts) (nesting depth added 39). Of this number, 73 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e2f3f2adfb4b7efa8e93987ea12d14c3345e85f2bf76b8765c43451d6911bd"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaMatcher.feed (cognitive 73): JSONSchemaMatcher.feed has cognitive complexity 73 (threshold 15). Drivers by points: if/else 25 (60 pts), loops 3 (6 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"696eaa51637415d2e1fb6375a4f9818affef4fa2dabb111a8800cf447d3f1e28"}},{"ruleId":"D2","level":"warning","message":{"text":"WienerFilter.emWiener (cognitive 73): WienerFilter.emWiener has cognitive complexity 73 (threshold 15). Drivers by points: loops 19 (47 pts), ternaries 4 (16 pts), if/else 3 (10 pts) (nesting depth added 47). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/WienerFilter.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d27a54cf2c6ea6af91f436395a329e9a40e68b9a13b1ad32fe06ee6f2b7d5d4"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroPhonemizer.bartG2P (cognitive 72): KokoroPhonemizer.bartG2P has cognitive complexity 72 (threshold 15). Drivers by points: if/else 14 (32 pts), loops 10 (28 pts), ternaries 2 (7 pts), boolean chains 4, error handling 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e7256e67acfabefb61d4fab8236f1e8f49f8038bdf347cadd4d384bbd86809"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3TTSCoreMLModel.synthesize (cognitive 72): Qwen3TTSCoreMLModel.synthesize has cognitive complexity 72 (threshold 15). Drivers by points: loops 13 (26 pts), if/else 16 (24 pts), boolean chains 16, ternaries 3 (6 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f1f5cdc17fa494b43a153a222261e7d0d2b8a66de8f46fc2394a0f7adb490f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingASR.transcribeStream (cognitive 70): StreamingASR.transcribeStream has cognitive complexity 70 (threshold 15). Drivers by points: if/else 19 (60 pts), loops 3 (4 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 44). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/StreamingASR.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad05b7d003537193307ed569b868af9108cb54abe57503a908ac4e29a93b250"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSampler.sample (cognitive 69): ChatSampler.sample has cognitive complexity 69 (threshold 15). Drivers by points: if/else 17 (39 pts), loops 11 (22 pts), ternaries 3 (5 pts), boolean chains 3 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/ChatSampler.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8ed755b611e23c422fefd73e0437a8e7fc8f3d0eccf0789aedb92374b0c2ac"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatCommand.runMicrophone (cognitive 68): VoiceChatCommand.runMicrophone has cognitive complexity 68 (threshold 15). Drivers by points: if/else 20 (45 pts), boolean chains 14, loops 2 (5 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"32c865ead1df95b5137fe7eb4b6d69107ed1d729fb0141c1dcae69c9159b1e03"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatBench.runFullDuplexToolScenario (cognitive 68): VoiceChatBench.runFullDuplexToolScenario has cognitive complexity 68 (threshold 15). Drivers by points: if/else 50 (63 pts), boolean chains 28, loops 3, ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level. This shape REPEATS in the file: one other method here (VoiceChatBench.runFullDuplexToolScenario::observe) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f18f318a810e6c8db443f7a51ea501a6c0d8064efc10a8f798012321cb4799"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runCosyVoice (cognitive 67): SpeakCommand.runCosyVoice has cognitive complexity 67 (threshold 15). Drivers by points: if/else 28 (50 pts), loops 5 (12 pts), boolean chains 5 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63077af7a886a44bd881deb0a4ca50d4d60d7d00335d527a9ce916d2e2b0f63"}},{"ruleId":"D2","level":"warning","message":{"text":"BreezeTTSConfig.validate (cognitive 59): BreezeTTSConfig.validate has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 40, if/else 9 (16 pts), loops 3 (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/Options.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cee67bf132042bff58a94fbc53a9e791ac4eeb80a8d5e709bcbee75be48706"}},{"ruleId":"D2","level":"warning","message":{"text":"RespondCommand.run (cognitive 58): RespondCommand.run has cognitive complexity 58 (threshold 15). Drivers by points: if/else 34 (45 pts), loops 5 (10 pts), boolean chains 2, ternaries 1 (nesting depth added 16). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/RespondCommand.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab464c46ada129d6c8826b221b2afa033e66ea562bba11a4fdfa84565faa37b"}},{"ruleId":"D2","level":"warning","message":{"text":"FishAudioDrama3Config.parse (cognitive 58): FishAudioDrama3Config.parse has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 47, if/else 9, loops 2. Of this number, 44 points are the body\u0027s own statements and 14 belong to 5 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDrama3Config.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4957015a0f8e03a43a2550f0dd600f6b3026c3e8cbbce0385abfc655cd7d5fef"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.vowelPhoneme (cognitive 56): GermanPhonemizer.vowelPhoneme has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 25, if/else 18 (25 pts), ternaries 2 (6 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59c250e5f35b3db394e722980bea1bd8670b86f1b47826c109be5de67aa425d"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeVoiceQuantizer.quantizeAndSave (cognitive 56): VibeVoiceQuantizer.quantizeAndSave has cognitive complexity 56 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 11, loops 3 (4 pts), error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Quantization/VibeVoiceQuantization.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"49541f82e67b10f79cefecd75c63c37b8dc287aedc2f865076bf57a7492061a9"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioServer.buildRouter (cognitive 54): AudioServer.buildRouter has cognitive complexity 54 (threshold 15). Drivers by points: if/else 28 (35 pts), boolean chains 8, error handling 8, ternaries 1 (2 pts), match/switch 1 (nesting depth added 8). Of this number, 53 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3b467c6048f8da27d32837ed7c499b1449cfd6494e61eb3b5d8eafcbad1762"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4ToolCodec.prompt (cognitive 53): Gemma4ToolCodec.prompt has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (34 pts), loops 4 (9 pts), boolean chains 7, ternaries 2 (3 pts) (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe615c5a9085dd6581ccef26e7146b77b5e7f709e5f04fdc51e3d922c8d38907"}},{"ruleId":"D2","level":"warning","message":{"text":"HibikiTranslateModel.translate (cognitive 47): HibikiTranslateModel.translate has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (22 pts), loops 9 (13 pts), ternaries 4 (9 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTranslate.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbfd806a074710988b0c56eca89060f55ccabb8ee0348c6b1ae18c151a0a2a8"}},{"ruleId":"D2","level":"warning","message":{"text":"SortformerStateUpdater.topKIndices (cognitive 47): SortformerStateUpdater.topKIndices has cognitive complexity 47 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 9 (16 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"072e67707f10b85fac49d1c427a23e8be4b5a6d8fe3c4440bc31ba4788f19252"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxCPM2TTSModel.generateVoxCPM2 (cognitive 47): VoxCPM2TTSModel.generateVoxCPM2 has cognitive complexity 47 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 8, ternaries 5, loops 2 (3 pts) (nesting depth added 9). Of this number, 44 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d71ca394ec28ece4ea2b4ac0eaa3c1499960700e94fbc42b9eb5849042ef6a7"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaMatcher.feedObject (cognitive 46): JSONSchemaMatcher.feedObject has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (42 pts), boolean chains 3, match/switch 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6ff365a6cb928e604a76b64dec50af436f7af6277d290ccb2e51f1e56fc567"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatterboxFlashT3Graphs.generateSpeechTokens (cognitive 45): ChatterboxFlashT3Graphs.generateSpeechTokens has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (34 pts), loops 3 (6 pts), boolean chains 5 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7151aa7340f058411bbb5e2cab13823fd5df6bb820ee251aee4e876aa6348c4"}},{"ruleId":"D2","level":"warning","message":{"text":"HTDemucs.init (cognitive 45): HTDemucs.init has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 11 (24 pts), if/else 11 (18 pts), boolean chains 2, loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucs.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06a9c3d28554511a6674b67dcc2ec3333aab81ebaa919d4bdbc2d3f2a159a95"}},{"ruleId":"D2","level":"warning","message":{"text":"Community1Clustering.vbx (cognitive 45): Community1Clustering.vbx has cognitive complexity 45 (threshold 15). Drivers by points: loops 16 (40 pts), if/else 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 26). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad854bb35d85086ddb7113dadfa426c4aa57f6ecd5514a0fba594d134ca688f8"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeCommand.validate (cognitive 44): TranscribeCommand.validate has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (35 pts), boolean chains 9 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9ce2bb268c79ae2b22eb17f90c85c95565b513bb7173f62647248b4f27b5e7"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.g2pLower (cognitive 44): GermanPhonemizer.g2pLower has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 12, loops 2 (3 pts), ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d8d8de008fe66d0739123381e3743a17baa529ad751c27a3395bfa4d68bf6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseValue (cognitive 44): Parser.parseValue has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 10, loops 4 (9 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5aa14d46ccf827cadd78e94cbc859ea431237e3ba254b7b36d02d3d741d109"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatCommand.validate (cognitive 43): VoiceChatCommand.validate has cognitive complexity 43 (threshold 15). Drivers by points: if/else 21 (23 pts), boolean chains 20 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d853037820a1f7727fd17d5a15f23722a2c8507857ac4e3f0b3749c137746b0"}},{"ruleId":"D2","level":"warning","message":{"text":"FishDrama3Benchmark.run (cognitive 43): FishDrama3Benchmark.run has cognitive complexity 43 (threshold 15). Drivers by points: if/else 14 (26 pts), ternaries 7 (9 pts), boolean chains 7, loops 1 (nesting depth added 14). Of this number, 41 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/FishDrama3Benchmark.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52bfb69f6e881cfd0090fba03dc76522dda65cc567a7412083377200c19fd5c"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroPhonemizer.phonemizeWithDict (cognitive 42): KokoroPhonemizer.phonemizeWithDict has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (25 pts), loops 6 (10 pts), boolean chains 7 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a868958c1955cd42181c3bfa04740a15363d4b462f930b44e62bab562bd55d06"}},{"ruleId":"D2","level":"warning","message":{"text":"FullDuplexAcousticAnalyzer.analyze (cognitive 42): FullDuplexAcousticAnalyzer.analyze has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 6 (12 pts), boolean chains 7, ternaries 7 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad65a47e0e034a3de7572987f3a445c566357ea81a298a30d043ade879775ae"}},{"ruleId":"D2","level":"warning","message":{"text":"convert_coreml.main (cognitive 42): convert_coreml.main has cognitive complexity 42 (threshold 15). Drivers by points: if/else 19 (27 pts), loops 4 (8 pts), ternaries 4 (6 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd4897b336dc7bcde97eb66d343cc163aa32f0a3b7352757e07e380c43a0d7d"}},{"ruleId":"D2","level":"warning","message":{"text":"CosyVoiceTTSModel.fromPretrained (cognitive 41): CosyVoiceTTSModel.fromPretrained has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (28 pts), match/switch 2 (8 pts), boolean chains 4, ternaries 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CosyVoiceTTS.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4edba06683dbba94accf1f4a3aeefec63c59ad8449e1b670e12c4862e6f08d"}},{"ruleId":"D2","level":"warning","message":{"text":"MagpieCoreMLDecoder.step (cognitive 41): MagpieCoreMLDecoder.step has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 9, loops 4 (6 pts), error handling 2 (4 pts), ternaries 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f590bcffc0e7e6d6744bf3b1571610c23397f8d169d9af5fba5df103293a76"}},{"ruleId":"D2","level":"warning","message":{"text":"PocketBenchmark.run (cognitive 41): PocketBenchmark.run has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (31 pts), boolean chains 8, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTSBenchmark/main.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f295290f12c02aa677db04bc5bf00a11fe25d0b6ef713bb6c28a2105ddd6a91"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4UnifiedChat.generateResponse (cognitive 41): Gemma4UnifiedChat.generateResponse has cognitive complexity 41 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 3 (6 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4UnifiedChat.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d693c6899ffadf53e17d3e01bdc5a1d56c70d4fd75f06bdb622cb3b453baeb1"}},{"ruleId":"D2","level":"warning","message":{"text":"WeightLoader.swift.loadStagesWeightsForDecoder (cognitive 41): WeightLoader.swift.loadStagesWeightsForDecoder has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (34 pts), error handling 2 (6 pts), loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfaefb7fea9e20db95d5d8b58f45b738e3136914ee32157f01f14091c23ec75"}},{"ruleId":"D2","level":"warning","message":{"text":"NemotronMLXConfiguration.validate (cognitive 40): NemotronMLXConfiguration.validate has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 35, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXConfiguration.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b83fbd605e236eb9b722fcc30bb2a6be5d76f8da16b7079cc64663ebb09e745"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatSession.runFunctionFastPath (cognitive 40): VoiceChatSession.runFunctionFastPath has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 9, error handling 3 (6 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c2fc2f9de501a15158db0740b140fd4dc901adce4599c306105fb11862f9e8"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.phonemize (cognitive 39): GermanPhonemizer.phonemize has cognitive complexity 39 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 10, loops 3 (7 pts), ternaries 1 (4 pts), match/switch 1 (2 pts) (nesting depth added 17). Of this number, 32 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f571121b536c0b3608958dd963d98baf13131599c691dfb9d8ea07a3ec11195"}},{"ruleId":"D2","level":"warning","message":{"text":"profile_gliner_memory.main (cognitive 39): profile_gliner_memory.main has cognitive complexity 39 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 5 (9 pts), error handling 1 (5 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile_gliner_memory.py"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1722b863a6c310cb894acf00f6ff1afd42e5b4bbe84c8d204594d7054f7da4"}},{"ruleId":"D2","level":"warning","message":{"text":"TTSSampler.sample (cognitive 38): TTSSampler.sample has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 7 (10 pts), boolean chains 8 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Sampler.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"41e3d7739be805786a7262302b390cd0b1daf7beab6b67be81091a207b6bbbea"}},{"ruleId":"D2","level":"warning","message":{"text":"JapanesePhonemizer.phonemize (cognitive 37): JapanesePhonemizer.phonemize has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/JapanesePhonemizer.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85ba9a261633f5febdd89c439cdb212b2c885eae80a5ae9c5e4faac0302ce12"}},{"ruleId":"D2","level":"warning","message":{"text":"LatinPhonemizer.frenchToIPA (cognitive 37): LatinPhonemizer.frenchToIPA has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 5, match/switch 1 (4 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/LatinPhonemizer.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2375e4fdc097d6f50181ef39e021dd9c9eca3a1122a4d9d3670e8df3e9f6ab17"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Tokenizer.bpeEncode (cognitive 37): Gemma4Tokenizer.bpeEncode has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 7 (11 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tokenizer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e4f1bec0e7ae113a8fceb85d4ef4adc2b56bf1be3475c013d20c1751b64ba8"}},{"ruleId":"D2","level":"warning","message":{"text":"fish_drama3_reference.main (cognitive 37): fish_drama3_reference.main has cognitive complexity 37 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 9 (13 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/fish_drama3_reference.py"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"73673b3363af5754e7c5947fa4b9e766ab068ccbe2ce03063daf73adc06222bd"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeInferenceRequest.validate (cognitive 36): NativeInferenceRequest.validate has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 17, if/else 9 (15 pts), match/switch 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/NativeInference.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2815852cf3e82ec7ed6e7176663c33c60c30e73c9dc417ae17709d6b08c0780"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.compound (cognitive 36): GermanPhonemizer.compound has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (22 pts), ternaries 2 (6 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"8664eebb19ed46357c43610d2218f9592c7462eee21694612a2e1df13bda02fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.value (cognitive 36): Parser.value has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (28 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/OrderedJSON.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"191a2958ab0fce1590319876b20e5e8577ec9bcc87460cc6a67a46a1059a3d32"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Chat.decode (cognitive 35): Gemma4Chat.decode has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (24 pts), boolean chains 4, ternaries 2 (4 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Chat.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c4ca22d386cd1c5555e14c3e27464a611d6eac3694a694360556bb84eb88cd"}},{"ruleId":"D2","level":"warning","message":{"text":"export_breeze_mlx.export (cognitive 35): export_breeze_mlx.export has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (22 pts), ternaries 5, boolean chains 4, loops 3 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/export_breeze_mlx.py"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f53f79a4f43c9678d872a5b92ac2cd05352f04fbaca4c86e3deb9a6d15e666"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatTerminalRenderer.render (cognitive 34): VoiceChatTerminalRenderer.render has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 11, ternaries 3 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f7017fdefa8cec014a698eae12d5942a6f2000676b800556152a4a794b800c"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPRuntime.appleEventKitProviderCall (cognitive 34): VoiceChatMCPRuntime.appleEventKitProviderCall has cognitive complexity 34 (threshold 15). Drivers by points: if/else 16 (32 pts), boolean chains 1, match/switch 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"48cc45b7f9d0593e72631eeb855c239c7d725120907000f990fcf35afa2200ee"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAISpeech.swift.handleOpenAISpeech (cognitive 34): OpenAISpeech.swift.handleOpenAISpeech has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (16 pts), error handling 7 (15 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAISpeech.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"13bfb445ec798c280f980ecaa293c67e8265595a88cf6b185181f9fab7a0de81"}},{"ruleId":"D2","level":"warning","message":{"text":"CosyVoiceTTSModel.splitForLongForm (cognitive 34): CosyVoiceTTSModel.splitForLongForm has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/VoiceCloning.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"71635c2007a6b2f74b2f88e4a95fbf6ecd90859593b87df41a4a0e3c1fde9e44"}},{"ruleId":"D2","level":"warning","message":{"text":"MagpieJapaneseG2P.phonemes (cognitive 34): MagpieJapaneseG2P.phonemes has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (25 pts), loops 4 (8 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/JapaneseG2P.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bcc90276bed4f8225cbb80affaa1636f7504e1f923303288ead187a22458594"}},{"ruleId":"D2","level":"warning","message":{"text":"Mimi.sanitizeWeights (cognitive 34): Mimi.sanitizeWeights has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (27 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/MimiCodec.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a97c8440b1a08f7decbd4583666e387f378c46e8025f8de46802f13a42f05ea"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3ASRModel.pickNextToken (cognitive 34): Qwen3ASRModel.pickNextToken has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 4 (8 pts), boolean chains 6, ternaries 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd06e033fac28459b69dd89d141206a92a9cb3c8a654979462dd4e2a5f053aa4"}},{"ruleId":"D2","level":"warning","message":{"text":"NpzReader.read (cognitive 34): NpzReader.read has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (29 pts), boolean chains 4, loops 1 (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/WeightLoading.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b115d6a680c7ec2e162b6b7f041d993141d0d74796e9f0d9866d727a8f2dffa8"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGraph.build (cognitive 34): ContextGraph.build has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 6 (20 pts), if/else 4 (10 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechWakeWord/ContextGraph.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8599138a11305ead0b349a1acb21cdd91043c7c109f6efa206adc8854431f81"}},{"ruleId":"D2","level":"warning","message":{"text":"AsrBench.run (cognitive 33): AsrBench.run has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (6 pts), error handling 2 (5 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/AsrBench.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf43abb33ed1cfd29c5e6fef8ba046e431cec213c775a1c8f2ebf8efb21caa4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatterboxFlashT3Graphs.denoiseBlockStep (cognitive 33): ChatterboxFlashT3Graphs.denoiseBlockStep has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 6 (11 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9480252a5b61c03a237c1a6074289986fbe8c2c50f7ec66ce07ed78411c91de"}},{"ruleId":"D2","level":"warning","message":{"text":"DiarizationBench.swift.maximumJaccardAssignment (cognitive 33): DiarizationBench.swift.maximumJaccardAssignment has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (12 pts), boolean chains 4 (nesting depth added 16). Of this number, 31 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":900}}}],"partialFingerprints":{"codehealthFindingId/v1":"104c38a001c43ecd0fed954bbd7dc72d0ba1068da2b6d2d70f3d1a4566ed261b"}},{"ruleId":"D2","level":"warning","message":{"text":"MADLADTranslator.swift.sampleWithTemperature (cognitive 33): MADLADTranslator.swift.sampleWithTemperature has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 6 (12 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTranslator.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa024911b41aa24bd857d5e0878b3a47305bddf692bcaffe67f1c451a76211c"}},{"ruleId":"D2","level":"warning","message":{"text":"DERScoring.swift.maximumWeightAssignment (cognitive 33): DERScoring.swift.maximumWeightAssignment has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 6 (12 pts), boolean chains 4 (nesting depth added 16). Of this number, 31 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DERScoring.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6752cfbf806f8fed76b63b20bef3bb49a8c089a03a29814ece60cac8d7b41e"}},{"ruleId":"D2","level":"warning","message":{"text":"profile_gliner_memory.check_reference (cognitive 33): profile_gliner_memory.check_reference has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profile_gliner_memory.py"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b0f311663c40718e19117feeaa4f489466c465ec5c50a63d909ef48d2d5551"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPRuntime.connect (cognitive 32): VoiceChatMCPRuntime.connect has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (7 pts), ternaries 1 (4 pts), error handling 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7452e437d43380a7c139eb2a910754c52d00cb281a573d90760634c90ebd795"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.expandAbbreviations (cognitive 32): GermanPhonemizer.expandAbbreviations has cognitive complexity 32 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 4 (10 pts), boolean chains 8 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"3144f3d09946a6ea762a2aa9cad5e568614576a8120d4c3a8c5f20b054c80c24"}},{"ruleId":"D2","level":"warning","message":{"text":"TimestampCorrection.enforceMonotonicity (cognitive 32): TimestampCorrection.enforceMonotonicity has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 2 (6 pts), loops 4 (5 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/TimestampCorrection.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfafcaa17bcdce4d9900d3360c4cceeab2831378e83f9bd20dbb6e938629bce4"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3TTSCoreMLModel.fromPretrained (cognitive 32): Qwen3TTSCoreMLModel.fromPretrained has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 7, ternaries 2 (3 pts), loops 1, match/switch 1 (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 15 belong to 4 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c98e65fca7c7208f88363aa9fe0cfb29a615703e99a96ec523f3441870d76e7"}},{"ruleId":"D2","level":"warning","message":{"text":"WeightLoader.swift.loadUpsampleLayersWeightsForDecoder (cognitive 32): WeightLoader.swift.loadUpsampleLayersWeightsForDecoder has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (30 pts), loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"583518ecde8967e30a6fec7862a123e85c4d66a489127fadfe89617b5679ca4a"}},{"ruleId":"D2","level":"warning","message":{"text":"validate_coreml.check (cognitive 32): validate_coreml.check has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 5 (9 pts), boolean chains 7, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/validate_coreml.py"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf6cc2135a83fee57a4510a92684f5ec3aa93ab818470ff892b8dc179069574"}},{"ruleId":"D2","level":"warning","message":{"text":"MultipartParser.parse (cognitive 31): MultipartParser.parse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 8, loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAITranscriptions.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"71d8e29a3f36d9e269219726bc48ed874a306ad16c289abbd3de477d9dfa28d4"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2Tokenizer.encode (cognitive 31): IndexTTS2Tokenizer.encode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2496eb2a744d4762895019babf09c34358e788f6d1bb7642f063ad058fc4c574"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.normalize (cognitive 31): GermanPhonemizer.normalize has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 6, loops 6, match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a09933e270af1a8bd41b0c128d9484440ab0a9b3675fab1973b3b1254d823b"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTTSNanoTokenizer.encode (cognitive 31): MossTTSNanoTokenizer.encode has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 7, loops 5, ternaries 2 (3 pts) (nesting depth added 6). Most of this is not in the body itself: 14 of the 31 points are its own statements and the rest belongs to 4 function items inside it that branch (pop, enqueue, push, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoTokenizer.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef54b248070336ad13b080cf2347a40569fa5b150c0e5b8b8404cb9540f4493a"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4ToolCodec.schema::resolve (cognitive 31): Gemma4ToolCodec.schema::resolve has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 4, loops 1 (3 pts), match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7f8005c8bb70ff2ee89b3f9c65517528bdcab68661abed55a442f917184ad2"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaGrammar.compile (cognitive 31): JSONSchemaGrammar.compile has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 4 (7 pts), boolean chains 5, ternaries 1 (2 pts), match/switch 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc19931f7a37302f399cc313a597c729482ff2c3529cfed27c707fe9a5b8ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingVADProcessor.processProb (cognitive 31): StreamingVADProcessor.processProb has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (30 pts), match/switch 1 (nesting depth added 13). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/StreamingVADProcessor.swift"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e203bd4d55f83ef0dd2bf6c6f41dd181bc246672a8e481528e6193fedcde24d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextGraph.fillFailAndOutput (cognitive 31): ContextGraph.fillFailAndOutput has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechWakeWord/ContextGraph.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0704061cba759aa6ea03aa60a0951b3660ba43edfc82035c900b403b9192c0fe"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeVoiceStreamInference.generateWithVoiceCacheCore (cognitive 31): VibeVoiceStreamInference.generateWithVoiceCacheCore has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (27 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18adcb0ab74b7cd1a74e9677031e7e59114bf1c563fafdb4e2cc744d249cdbc"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioFileChunkReader.produceSamples (cognitive 30): AudioFileChunkReader.produceSamples has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (26 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileStream.swift"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7359fa08f6d8287af1105dd4798ad84cc2eaf9067e8d0f3f6aa13048d6aef6a"}},{"ruleId":"D2","level":"warning","message":{"text":"Benchmark.main (cognitive 30): Benchmark.main has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 4 (8 pts), ternaries 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GLiNERBenchmark/GLiNERBench.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd1b4e0eacca5ad4e4d4bcc1b409bd5c2058256e28a69cd5db929c4b9738fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2PauseCompressor.compress (cognitive 30): IndexTTS2PauseCompressor.compress has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 7, loops 4 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Synthesis.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1f0ac1bc02c19ccb971808c9fbf46cf56a0fc34c4e2b9a1795c880e1a73184"}},{"ruleId":"D2","level":"warning","message":{"text":"NemotronSentencePieceUnigramTokenizer.encodeForWordBoosting (cognitive 30): NemotronSentencePieceUnigramTokenizer.encodeForWordBoosting has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (4 pts), boolean chains 3, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/SentencePieceUnigramTokenizer.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"0083fa14931f04da52379f5acecbe0a446274e943b50fc60aea73159182e9ec7"}},{"ruleId":"D2","level":"warning","message":{"text":"PocketTTSTokenizer.encode (cognitive 30): PocketTTSTokenizer.encode has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTTSTokenizer.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bf7022bc5b29c7d2c8d4880bbef118d7155842050185914ba6dfa0007f421e"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaGrammar.compileObject (cognitive 30): JSONSchemaGrammar.compileObject has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4 (5 pts), match/switch 3, ternaries 1 (2 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae56d013987b97eef68167279ae090f5f49a4360f0a045e71ad0e9e6b2cbc4f8"}},{"ruleId":"D2","level":"warning","message":{"text":"SortformerStateUpdater.boostTopK (cognitive 30): SortformerStateUpdater.boostTopK has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 5 (13 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedbca93de440d45c8ed8c6c0e344bc5a808bba1313a019f610694b6ef08dc60"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatCommand.runFile (cognitive 29): VoiceChatCommand.runFile has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 6 (11 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ec67ef40789ff1aaaac7d187e757a1cd9a6f402338d09d17880c78195dadff"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioIO.startMicrophoneTimestamped (cognitive 29): AudioIO.startMicrophoneTimestamped has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 3 (6 pts), boolean chains 2, error handling 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioIO.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa02d6b3106d822607ca56a6ae5d5b2c267a82f4627001fe76e0c9475341832"}},{"ruleId":"D2","level":"warning","message":{"text":"FullDuplexAudioIO.start (cognitive 29): FullDuplexAudioIO.start has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 11, ternaries 2 (3 pts), error handling 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/FullDuplexAudioIO.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"2597bdfad07e271768c38e20103d479c508b164c4675ba94768b4df0300fcfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2SemanticGPT.beamSampleSemanticCodes (cognitive 29): IndexTTS2SemanticGPT.beamSampleSemanticCodes has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 4 (8 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"800ea43781690d81185ebe1b19110d248abd3781898eaecd63d50c3fbca61785"}},{"ruleId":"D2","level":"warning","message":{"text":"ChinesePhonemizer.syllableToIPA (cognitive 29): ChinesePhonemizer.syllableToIPA has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 5, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/ChinesePhonemizer.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"802f0ecd338d7eb28936e1a3d0c4fe7bd1e29b1000d9b251da3f67941785d04c"}},{"ruleId":"D2","level":"warning","message":{"text":"MossMLXConfiguration.validate (cognitive 29): MossMLXConfiguration.validate has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 20, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXConfiguration.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9b4f3e90896df9dab61a9215e36ef49535fcb54fcf7308b06f4826dbd360c0"}},{"ruleId":"D2","level":"warning","message":{"text":"RegexParser.bracket (cognitive 29): RegexParser.bracket has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 6, loops 1, ternaries 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONPattern.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8094f93f06687b7124a6a2455facd53dfec1ecb52f12607534c3542943bc0a2"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaGrammar.compileType (cognitive 29): JSONSchemaGrammar.compileType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 5, match/switch 3 (5 pts), loops 1 (2 pts) (nesting depth added 11). Of this number, 21 points are the body\u0027s own statements and 8 belong to one function item inside it that branches. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"65d482a828bc1ae9edac62b8ec15bb624353747edd781b1c3a3ea1265b9462ba"}},{"ruleId":"D2","level":"warning","message":{"text":"SortformerStateUpdater.compressSpkcache (cognitive 29): SortformerStateUpdater.compressSpkcache has cognitive complexity 29 (threshold 15). Drivers by points: loops 7 (16 pts), if/else 6 (13 pts) (nesting depth added 16). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26b509bf0e694098d591d0a72bddc1a21adf20b58b7a00086f7f1d86545b76f"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingKwsDecoder.step (cognitive 29): StreamingKwsDecoder.step has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechWakeWord/StreamingKwsDecoder.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3ce308aedf3cca3e8e4f728a34ef72c4ffd733ab7a6e1195405a09a87af0e2"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatRNNTTurnTakingState.selectToken (cognitive 29): VoiceChatRNNTTurnTakingState.selectToken has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 13 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatTurnTaking.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cef4576a856fa542c884d677bd06fd37b7d3d6db80edd295981a3c66d59c6c"}},{"ruleId":"D2","level":"warning","message":{"text":"FullDuplexToolScenario.load (cognitive 29): FullDuplexToolScenario.load has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 8, ternaries 1 (nesting depth added 2). Of this number, 27 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"001a24cef865ee702f68fd8142a19448b6ca28304a9f1df6bd3e57fef07dfa49"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatBench.run (cognitive 29): VoiceChatBench.run has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 4 (7 pts), boolean chains 4, ternaries 2 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/VoiceChatBench.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e0cb86d3576051c81348d641fb474986f8d50e8d5eb9dbca614da1a5b517e21"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscribeBatchCommand.runQwen3Batch (cognitive 28): TranscribeBatchCommand.runQwen3Batch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (5 pts), error handling 1 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeBatchCommand.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1279e38df87e0828d89b12400d61420893ce1970cc17ebe0d12e8d7bc8815dc6"}},{"ruleId":"D2","level":"warning","message":{"text":"BreezeTTSModel.generateStreaming (cognitive 28): BreezeTTSModel.generateStreaming has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 3 (5 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/BreezeTTSModel.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b47401197d1001f2b78edd43a7b85f47be6c1b7708beb4e90c1db354193a59"}},{"ruleId":"D2","level":"warning","message":{"text":"DiarizationHelpers.constrainedAgglomerativeClustering (cognitive 28): DiarizationHelpers.constrainedAgglomerativeClustering has cognitive complexity 28 (threshold 15). Drivers by points: loops 9 (16 pts), if/else 4 (8 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationHelpers.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3680d547a21f61550ca9df29557fedb3a582c68dcef62d1508467512c5b318c"}},{"ruleId":"D2","level":"warning","message":{"text":"FullDuplexExpectedArguments.parse (cognitive 28): FullDuplexExpectedArguments.parse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 8, loops 1 (2 pts) (nesting depth added 5). Of this number, 24 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a2800c5e2ffc0d629832400d5bbff8a82a9e6c3f1d1229f79d2c3982511bb8"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatBench.runFullDuplexToolScenario::observe (cognitive 28): VoiceChatBench.runFullDuplexToolScenario::observe has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 11, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (VoiceChatBench.runFullDuplexToolScenario) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93c36af0f0a7f1a4400052c4da830aa02c3d806adc8128c9675442975178da5"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runFishDrama3 (cognitive 27): SpeakCommand.runFishDrama3 has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 3, loops 1 (2 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c619f71bebc6c09bad6dd9a148920ae9f7a9ea15f9eaced22865b5119f072cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioFileLoader.loadWAV (cognitive 27): AudioFileLoader.loadWAV has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5, loops 3 (4 pts), match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileLoader.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"3855447a4e8ce7d959a7cb070adc8a3469d378ba30fe6b442fbea2e924b89dd6"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashSRAudioSRUnet.init (cognitive 27): FlashSRAudioSRUnet.init has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"005819775a18c38b493be72ce489ff9a9b7ef84b99c9cb315e093d385f6ee563"}},{"ruleId":"D2","level":"warning","message":{"text":"IndicMioSampler.sample (cognitive 27): IndicMioSampler.sample has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 7 (10 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioSampler.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b60b3bca719f17209645144ab9a4bfb0b79c0992002a170ebdd5ccba33bd0b"}},{"ruleId":"D2","level":"warning","message":{"text":"MagpieTTSCoreML.synthesize (cognitive 27): MagpieTTSCoreML.synthesize has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (16 pts), ternaries 5 (9 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ace1f87a0faf8da9bf07cfb4dfc1a862b94aa4fa41eb0df83ffdffdc4a659f1"}},{"ruleId":"D2","level":"warning","message":{"text":"PocketSession.frame (cognitive 27): PocketSession.frame has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 7, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTTSModel.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e83e0c79358704715978ed8e366c9588a14bec7d0647dfe4ccc9ffc145955f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3ASRModel.generateTextBatchedBulkSync (cognitive 27): Qwen3ASRModel.generateTextBatchedBulkSync has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 4 (7 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7166eaedd68e5f160f8455f09c8e44cf884ccffd6b827ee685f0f243c8a8e09"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4ToolCodec.response (cognitive 27): Gemma4ToolCodec.response has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d913e6a8d02fa082a6a804be25a0f1eb13eb792ec5cf75ecdec1f0c439a6a5"}},{"ruleId":"D2","level":"warning","message":{"text":"SupertonicTokenizer.preprocess (cognitive 27): SupertonicTokenizer.preprocess has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 8, boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTokenizer.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f7a31139fa3bb2ba4733a104210795947e18a05da190fb67d57cf40847f5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"SupertonicTokenizer.bisect (cognitive 27): SupertonicTokenizer.bisect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 7, loops 3 (5 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTokenizer.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ad12c0bec8e9e3a2e56f7fcc6dcad5f6fde2fd30dddca7e4e26cb58b419c66"}},{"ruleId":"D2","level":"warning","message":{"text":"WER.compute (cognitive 26): WER.compute has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (6 pts), boolean chains 4, ternaries 1 (3 pts), match/switch 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/WER.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f4d088f0d30adf0d10b8f6dab7efd283c487687be07c5cb10fb352dd2d05b5"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatDemoState.ingest (cognitive 26): VoiceChatDemoState.ingest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, ternaries 1 (2 pts), match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"77906183a45cf9331ddd2101b22dabef6585043a4cbfa143c73880bacd222dab"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPToolCoordinator.validate (cognitive 26): VoiceChatMCPToolCoordinator.validate has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 7, loops 2, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":1582}}}],"partialFingerprints":{"codehealthFindingId/v1":"de14fe1847d02c9af018a7c4010a0bc7400e126abc4b1235694f73c70a581733"}},{"ruleId":"D2","level":"warning","message":{"text":"S3GenVocoder.swift.s3Istft (cognitive 26): S3GenVocoder.swift.s3Istft has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 6 (8 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45450befd71ec3b09e663119679b499f58708bf558c7473c402d00550472e55"}},{"ruleId":"D2","level":"warning","message":{"text":"DiarizationBench.runEngine (cognitive 26): DiarizationBench.runEngine has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 9 (15 pts), if/else 3 (7 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c96fd6b1a75a1d432ded30e2d94b3a20a626da3ec15b4f424cfa226799523a"}},{"ruleId":"D2","level":"warning","message":{"text":"HindiPhonemizer.phonemize (cognitive 26): HindiPhonemizer.phonemize has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 4 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/HindiPhonemizer.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ed7ef57a86e2a64cd7679e1d98a4a9f67b0e14d3ca99bcff2afa389e066715"}},{"ruleId":"D2","level":"warning","message":{"text":"PocketTtsMimiKeys.discover (cognitive 26): PocketTtsMimiKeys.discover has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 4, boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTtsMimiKeys.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"875b00768d6630f0e49a843d23d6f7171fdc9da966f0c56fc75d771ff4dc9b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreMLTextDecoder.argmaxImpl (cognitive 26): CoreMLTextDecoder.argmaxImpl has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLTextDecoder.swift"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e1dd6e37e5872847d11d67717f81b5300ffdca67f191cebaa6deea5baba709"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen35CoreMLChat.generateStream (cognitive 26): Qwen35CoreMLChat.generateStream has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 4, loops 2 (4 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Qwen35CoreMLChat.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f02fc5b90286c01946d6b65c1640c4227b9b959ea76aa1d49d4d330d93c8455"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.string (cognitive 26): Parser.string has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 2 (5 pts), boolean chains 3, loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/OrderedJSON.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"27026b5c040163f80beb13c54896dfb57ad6ba87113a8b686aa84fdd98afdb7b"}},{"ruleId":"D2","level":"warning","message":{"text":"Community1Clustering.centroidLinkageLabels (cognitive 26): Community1Clustering.centroidLinkageLabels has cognitive complexity 26 (threshold 15). Drivers by points: loops 11 (14 pts), if/else 6 (11 pts), boolean chains 1 (nesting depth added 8). Of this number, 23 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7d38dcdc46ab4088b49fe835903410aae3a2e0b42e2542f8d3fd8d9ad9fbac"}},{"ruleId":"D2","level":"warning","message":{"text":"Nemotron3StreamingSession.consumeNewProbabilities (cognitive 26): Nemotron3StreamingSession.consumeNewProbabilities has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3Diarizer.swift"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3a4a3cb85e197d7d4ce6dccdf08463d9efdd47f072d771329ab699ec5ebbef"}},{"ruleId":"D2","level":"warning","message":{"text":"DERScoring.swift.assignedOptimalMapping (cognitive 26): DERScoring.swift.assignedOptimalMapping has cognitive complexity 26 (threshold 15). Drivers by points: loops 7 (15 pts), if/else 4 (10 pts), ternaries 1 (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DERScoring.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf7f129445ebc17c4cfe0ed06ef64ad5625c94aab3d855e040ab36c9866d9b6"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatSession.validate (cognitive 26): VoiceChatSession.validate has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 11 (12 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"42cd370ec6b03e71dcaed835d99f042646bed8672a352c91f4599ff37520514f"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperCoreMLRuntime.argmax (cognitive 26): WhisperCoreMLRuntime.argmax has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 3 (6 pts), match/switch 1 (nesting depth added 15). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperASR/WhisperCoreMLRuntime.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff23432e166dea4e0d2db8c7d84ee511f804e746fc189614678ba2da9e2e55b"}},{"ruleId":"D2","level":"warning","message":{"text":"BreezeTTSBenchmark.run (cognitive 26): BreezeTTSBenchmark.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 5 (9 pts), boolean chains 4, loops 1 (nesting depth added 9). Of this number, 24 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/BreezeTTSBenchmark.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1131e643d6f08fc8b15b5c1dc62ced0043da6e9709eb220bc62b83b2ad99df1"}},{"ruleId":"D2","level":"warning","message":{"text":"CosyVoiceTTSModel.synthesize (cognitive 25): CosyVoiceTTSModel.synthesize has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 3 (5 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CosyVoiceTTS.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e42b1ad2f62ddade754daa8db165dfac0fdc97b6641b46476a4cef9d190d06"}},{"ruleId":"D2","level":"warning","message":{"text":"HiFiGAN.swift.istft (cognitive 25): HiFiGAN.swift.istft has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 6 (8 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/HiFiGAN.swift"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"673508308c9862d0b9cc07511760beeebb03c01b3019980a8cc92b22dcbe4d4d"}},{"ruleId":"D2","level":"warning","message":{"text":"FishAudioSampler.sample (cognitive 25): FishAudioSampler.sample has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (6 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioGeneration.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc05f92ba4e61e34f93c5a7d7508efecf4479ff63ac4c17a78d91b6a97840684"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingSession.processChunk (cognitive 25): StreamingSession.processChunk has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (25 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetStreamingASR/StreamingSession.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d63466859df6f580060fc57fa569968dcf0d02ff5a97453c50583cca94ad46"}},{"ruleId":"D2","level":"warning","message":{"text":"Gemma4Tokenizer.load (cognitive 25): Gemma4Tokenizer.load has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4, loops 3 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tokenizer.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17fa764cab6979b8899f4628812d2909eb9c67658daf1360042e505c5a404bf"}},{"ruleId":"D2","level":"warning","message":{"text":"TextChunker.findNaturalBreak (cognitive 25): TextChunker.findNaturalBreak has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/TextChunker.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d59798d8e2043a018f0304f1998247840f2a3355a64634bf81df76f12044178"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampling.swift.sampleToken (cognitive 25): Sampling.swift.sampleToken has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 8 (9 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Sampling.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"572a235b79e525584becae56cf11bfe2c6080bee2b2224c0ddfb5ccc39409088"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runVoxtral (cognitive 24): SpeakCommand.runVoxtral has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 2 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4695cc22c66a557e7aecb7f38049580b199c72832cd10e5466464fb7672f0bd"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runMossNano (cognitive 24): SpeakCommand.runMossNano has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand\u002BMossNano.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a1e8428f6f20e582100c1274673db391cbfbb098708f361adfc926c858b98f"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioFileLoader.convertDrained (cognitive 24): AudioFileLoader.convertDrained has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileLoader.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f6badff3297b65d49b37fd9e68659c295b428263abc300cc2f5db6bebcc5fe"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.findNuclei (cognitive 24): GermanPhonemizer.findNuclei has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 10, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"03196e912aa28727dca448c009864a0670c29bb491cd5b36662036ff1c0a4a9a"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3ASRModel.generateTextBatched (cognitive 24): Qwen3ASRModel.generateTextBatched has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 6 (9 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ebd535df0630b6477df5d860a2bbede4474e8f9db69ad6cf4012980cc2dace"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen35MLXChat.generateStream (cognitive 24): Qwen35MLXChat.generateStream has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a720ab8e87b9546333770cca54112d7e07aa41720e390c137e34adc9ac39c7"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaMatcher.feedInteger (cognitive 24): JSONSchemaMatcher.feedInteger has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"99134de32fe97ccf4c7ff4eedf937e7923e9ba9111b5aeb8ebb878947956f32b"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3TTSModel.runStreamingGeneration (cognitive 24): Qwen3TTSModel.runStreamingGeneration has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 5, loops 2 (3 pts), ternaries 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"cace4178a7a2748250751b13a68156ca11f6f964fb005cc78b242be35496dbca"}},{"ruleId":"D2","level":"warning","message":{"text":"DiarizationHelpers.agglomerativeClustering (cognitive 24): DiarizationHelpers.agglomerativeClustering has cognitive complexity 24 (threshold 15). Drivers by points: loops 8 (15 pts), if/else 4 (8 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationHelpers.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"1034aa2a20fef85e5db31ad2fd17f9b3a8be1544fc5a89da086a037508b08d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeVoiceTTSModel.encodeVoice (cognitive 24): VibeVoiceTTSModel.encodeVoice has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 5, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"045bbefb791a8da78f3be5c831e56a2d6c4b7ce0bcb67c0289097f95ba3facac"}},{"ruleId":"D2","level":"warning","message":{"text":"validate_coreml.fixtures (cognitive 24): validate_coreml.fixtures has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (6 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/validate_coreml.py"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d99fbb21a2a5e36bc60c9711f0f1cbaa6428ab97ebb4111bc8123e907b3d6907"}},{"ruleId":"D2","level":"warning","message":{"text":"VadStreamCommand.run (cognitive 23): VadStreamCommand.run has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 4 (6 pts), ternaries 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VadStreamCommand.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"46484d9c262b651a758254cef3ee0be1d032ba08a3ff909c68b30d9b1aca4613"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPRuntime.callProvider (cognitive 23): VoiceChatMCPRuntime.callProvider has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 2 (3 pts), match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"51194eca6100d76dc92bda62c610dd6653024b2f34ff2bc2e76579b1b2fa3279"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPToolCoordinator.handleFunctionCall (cognitive 23): VoiceChatMCPToolCoordinator.handleFunctionCall has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3, match/switch 1 (2 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"660415531f45520d93acb33990a02d088a75a099434e271dd0e8d9f43feb38d4"}},{"ruleId":"D2","level":"warning","message":{"text":"HuggingFaceDownloader.downloadRanged (cognitive 23): HuggingFaceDownloader.downloadRanged has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (7 pts), error handling 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HuggingFaceTransfer.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c77b6769206fd81a15edec4f5fdb65928a0d92f451f49302f4f0aadad889217"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemAudioTap.handleInput (cognitive 23): SystemAudioTap.handleInput has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/SystemAudioTap.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e3a68c0d92122327b8c19971b0eafffffe43e6c1a1dda0403d53f5c06f8ea6f"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionGemma.runPrefill (cognitive 23): FunctionGemma.runPrefill has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 4 (12 pts), loops 5 (6 pts), if/else 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FunctionGemma/FunctionGemma.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0565aaa7ea716d464dba392745274cad8b40df91fc393c888579557a172a868"}},{"ruleId":"D2","level":"warning","message":{"text":"HibikiWeightLoader.sanitizeDepformerWeights (cognitive 23): HibikiWeightLoader.sanitizeDepformerWeights has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9c542ab742894eab4e04a60efe0d51b486c9c23c856411ded30501cc2d6c03"}},{"ruleId":"D2","level":"warning","message":{"text":"HiggsTTSCodec.init (cognitive 23): HiggsTTSCodec.init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, ternaries 1 (3 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSCodec.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c42d24372f1d12d4b06a2c2c8126b8ccd4453b14ed6f61fe014777b8dbd0538"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2SemanticGPT.beamSearchSemanticCodes (cognitive 23): IndexTTS2SemanticGPT.beamSearchSemanticCodes has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d222ef24c882adf59cab38df637416d991176d7f6fba61cfe0b23fefd5651d7"}},{"ruleId":"D2","level":"warning","message":{"text":"KyutaiSTTConfig.init (cognitive 23): KyutaiSTTConfig.init has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 17, if/else 4, loops 2. Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KyutaiSTT/Configuration.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7240159d38b27a890410fc3635a0fe4e35e5d37ded4ac07346fefc6eba714ea"}},{"ruleId":"D2","level":"warning","message":{"text":"MagpieTTSCoreML.topKThreshold (cognitive 23): MagpieTTSCoreML.topKThreshold has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbd31a94fc92eac60e82f958a872e766b49bc7d82c350224a97d20a0656e684"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTTSNanoSampler.sample (cognitive 23): MossTTSNanoSampler.sample has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 5 (6 pts), loops 3, ternaries 2 (3 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoSampling.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a035b892082f71c9bdbb82bf11ec6c0f957b56077ee0bbf9ec35c53cba4f6338"}},{"ruleId":"D2","level":"warning","message":{"text":"MossMLXModel.transcribeLocked (cognitive 23): MossMLXModel.transcribeLocked has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), loops 5 (6 pts), boolean chains 4, ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXRuntime.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c13e6620d92f024558b36fc802bb4eadb70c4da21c8b990e92b1a59dcc5e8ad9"}},{"ruleId":"D2","level":"warning","message":{"text":"PersonaPlexWeightLoader.sanitizeDepformerWeights (cognitive 23): PersonaPlexWeightLoader.sanitizeDepformerWeights has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (7 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/WeightLoading.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cfa593d9f20ec90ea3d3e9b1b7163eab11772a3bd7d04c3f1284c8d462e7ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Sampling.swift.sampleTokensBatch (cognitive 23): Sampling.swift.sampleTokensBatch has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts), ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Sampling.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6b8cbe7d101163692568e9b3476e82610f84da6747ebbdf8840c0f9e9d578e"}},{"ruleId":"D2","level":"warning","message":{"text":"HTDemucs.callAsFunction (cognitive 23): HTDemucs.callAsFunction has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (20 pts), loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucs.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c90cb5ddc513586179efa95365589eab30cd5d5eb5807e4fbd64f651e79f92"}},{"ruleId":"D2","level":"warning","message":{"text":"Community1Clustering.cluster (cognitive 23): Community1Clustering.cluster has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 3 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4461abc8166cc007d6e0131a1ca447b0dbce5e11c9d22a784f9d424c07b3f7"}},{"ruleId":"D2","level":"warning","message":{"text":"Community1DiarizationPipeline.reconstruct (cognitive 23): Community1DiarizationPipeline.reconstruct has cognitive complexity 23 (threshold 15). Drivers by points: loops 6 (12 pts), if/else 3 (9 pts), boolean chains 2 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1DiarizationPipeline.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"1050c98a119108e585c74a227513c55d8ee7eca688ae6f2b94783715dde0a327"}},{"ruleId":"D2","level":"warning","message":{"text":"SortformerStateUpdater.update (cognitive 23): SortformerStateUpdater.update has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4e22fdad62ff0f82c970aecf2e42accef4f7b988620e5d06223b4b89e902e4"}},{"ruleId":"D2","level":"warning","message":{"text":"BPETokenizer.encodeViterbi (cognitive 23): BPETokenizer.encodeViterbi has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechWakeWord/BPETokenizer.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"094c52442bbee2998ab054b17b06c7a68c6cccbbdcae551288ce9b8b785788be"}},{"ruleId":"D2","level":"warning","message":{"text":"SupertonicTokenizer.chunk (cognitive 23): SupertonicTokenizer.chunk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, loops 4, ternaries 2 (nesting depth added 6). Of this number, 16 points are the body\u0027s own statements and 7 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTokenizer.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdd7c9f532a5e00c1ff03183a5c2decda1f1781545ab4530a64d5cb47628ad4"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeOwnershipStress.main (cognitive 23): RuntimeOwnershipStress.main has cognitive complexity 23 (threshold 15). Drivers by points: loops 10 (14 pts), if/else 2 (4 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/RuntimeOwnershipStress.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"18211f1ebd9cc14351c6c34f1a6ba2e2d49d47b14fea719e72e3c98906837dba"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runMagpieCoreML (cognitive 22): SpeakCommand.runMagpieCoreML has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7228583285e5c3dddbcdfaf3df22e9358afed6f8e0b1a4a717071105f39a30d"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runPocket (cognitive 22): SpeakCommand.runPocket has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (18 pts), loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1544}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cd4de82c65b6d5f8310bced8feabebdae2698513a9b1baa0e6ecfff2c584c3"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAITranscriptions.swift.handleOpenAITranscriptions (cognitive 22): OpenAITranscriptions.swift.handleOpenAITranscriptions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, error handling 3, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAITranscriptions.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"984751f4ba34023fb69fa4cdb61c70a23f2459eb73586d7dc15fa3e03562443c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChinesePhonemizer.phonemize (cognitive 22): ChinesePhonemizer.phonemize has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/ChinesePhonemizer.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d4cd10fc34ed1dcd254ab416c0ac0b54b4179c29e461aa33d13b22d640e4ba"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.intToDe (cognitive 22): GermanPhonemizer.intToDe has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 7, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b60d5a3589e12c61ff24cccee00cb9283c96c6cebfe065443470b55c293ba5b"}},{"ruleId":"D2","level":"warning","message":{"text":"NemotronVocabulary.encodingsForWordBoosting (cognitive 22): NemotronVocabulary.encodingsForWordBoosting has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (17 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to one function item inside it that branches (collect). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafd1030a48cec48af6478cfeae2486675b627cc3e9dbb2c22a3dd8ef817806b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatTokenizer.loadFromTokenizerJson (cognitive 22): ChatTokenizer.loadFromTokenizerJson has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/ChatTokenizer.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f1d72aa6d1582bf6ff8a322507b97969e3262c513ecc39d89a3ca561b0be7c"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONPattern.compile (cognitive 22): JSONPattern.compile has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (7 pts), boolean chains 4, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONPattern.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88f558bcb45c7770debd3d0eb19149953756f7968d9d60c6a2306bc06c92d0b"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3TTSModel.synthesizeWithVoiceCloneICL (cognitive 22): Qwen3TTSModel.synthesizeWithVoiceCloneICL has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, ternaries 4 (6 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d9ed8b0acde0dcc836eac6297260a55bc7b84ca7fcfacb4a08a5a41931083a"}},{"ruleId":"D2","level":"warning","message":{"text":"Community1DiarizationPipeline.toSegments (cognitive 22): Community1DiarizationPipeline.toSegments has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1DiarizationPipeline.swift"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a977aad822bb36c56941f68b75f87bb40c585627778f2c9c478888dcab7ce7"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatLanguageModel.load (cognitive 22): VoiceChatLanguageModel.load has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatLanguageModel.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f123e5c8067852bdc35bab75297d4b698ee180e2a53f5815471850b48ac1ee3d"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatSpeechDecoder.init (cognitive 22): VoiceChatSpeechDecoder.init has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 20, if/else 2. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSpeechDecoder.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9595870ffdb3531f29f3d8b2fddf8d8da42794720d6c48502249ea68ad0e0aba"}},{"ruleId":"D2","level":"warning","message":{"text":"profile_fish_drama3.main (cognitive 22): profile_fish_drama3.main has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (7 pts), if/else 5 (6 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/profile_fish_drama3.py"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01cad54294480e1185e9252cc8205ab641f656d6a8ea353f8f7ad51046ad4d0"}},{"ruleId":"D2","level":"warning","message":{"text":"Dataset.loadLibriSpeech (cognitive 21): Dataset.loadLibriSpeech has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/Dataset.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b0f49fec566b41482fff6b1a9c3b265a231e9feb8f4407125286b88477a975"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingAudioPlayer.startCompletionPolling (cognitive 21): StreamingAudioPlayer.startCompletionPolling has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (9 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/StreamingAudioPlayer.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"659cbaf8d0b895ec43db52ddf2fd7b7d3855dc631eedde953841cf3a43115883"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeInferenceService.perform (cognitive 21): NativeInferenceService.perform has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/NativeInference.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"562c3b53c845465dba064fa726efc8e11cba5e1ceeac654d4cc003c7a6450bb7"}},{"ruleId":"D2","level":"warning","message":{"text":"NativeInferenceService.registerRoutes (cognitive 21): NativeInferenceService.registerRoutes has cognitive complexity 21 (threshold 15). Drivers by points: error handling 5 (10 pts), if/else 4 (7 pts), boolean chains 3, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/NativeInference.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9ca065b5619f9f78fb630d5fa185f3739f846dd7f774d97ef1b97c64abd4b9"}},{"ruleId":"D2","level":"warning","message":{"text":"CamPlusPlusMelExtractor.extractRaw (cognitive 21): CamPlusPlusMelExtractor.extractRaw has cognitive complexity 21 (threshold 15). Drivers by points: loops 11 (19 pts), if/else 2 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ede76957708dfb8cf52687c51e462714cf432c505c4a8c5bcd58036b97cc863c"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroTTSModel.runModel (cognitive 21): KokoroTTSModel.runModel has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (12 pts), if/else 6 (7 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/KokoroTTS.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd525c8919e8e63c68a9868574df418f15f4dc4b2de1e6d9014bea1272afd57"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTTSNanoModel.synthesizeImpl (cognitive 21): MossTTSNanoModel.synthesizeImpl has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 3 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoModel.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f416335fa97380c46565107d7c5082e2b63849befc3a414cc99c9338d10fe76"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTranscribeModel.transcribeLocked (cognitive 21): MossTranscribeModel.transcribeLocked has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (16 pts), loops 4, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa9ffab5ce01d01f27bae26c6c6fca3e2b3156cb7b385172dc3263720bc9176"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreMLForcedAligner.argmaxAtPositions (cognitive 21): CoreMLForcedAligner.argmaxAtPositions has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (10 pts), match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLForcedAligner.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"19deead5fb0d643454dd6932e91c5764525633bc068d53287f8d82c814957f1d"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreMLTextDecoder.writeChunk (cognitive 21): CoreMLTextDecoder.writeChunk has cognitive complexity 21 (threshold 15). Drivers by points: loops 7 (12 pts), if/else 4 (8 pts), boolean chains 1 (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLTextDecoder.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"821938e04b352333e9dede9ae468656002707cb73646f0ac5d0f2eaf8dbb825a"}},{"ruleId":"D2","level":"warning","message":{"text":"NpzReader.parseNpy (cognitive 21): NpzReader.parseNpy has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts), match/switch 1, ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/WeightLoading.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8f00ea0de27daa9bfad50232fc3652a7919543ed1da2959a0527073a32eaa1"}},{"ruleId":"D2","level":"warning","message":{"text":"MelFeatureExtractor.extractRaw (cognitive 21): MelFeatureExtractor.extractRaw has cognitive complexity 21 (threshold 15). Drivers by points: loops 11 (19 pts), if/else 2 (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/MelFeatureExtractor.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bfa6942c3ae1dc232496391f6ebdb36b995b979c3338f676d79806e08cca6d"}},{"ruleId":"D2","level":"warning","message":{"text":"DERScoring.swift.computeDER (cognitive 21): DERScoring.swift.computeDER has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DERScoring.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b15d19d43a466538116558fdcc9860cb28d8a128a8ea8b727e8086bd877374"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatBench.runCompletePipeline (cognitive 21): VoiceChatBench.runCompletePipeline has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 6, loops 3 (4 pts), ternaries 2 (nesting depth added 1). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/VoiceChatBench.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08c42cd74d4cb43ab733dca6b8267bceb2b7bf88d02017e52615144cbd6f4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"Pipeline.synthesize (cognitive 21): Pipeline.synthesize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (7 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/run_coreml.py"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"049840c0feb019ab3e04bc4cc40b980a22c2de6d45e088c29ef2dc3145ed4b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runQwen3 (cognitive 20): SpeakCommand.runQwen3 has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 1 (4 pts), loops 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c902f2b77ce265be46d6ebffad846a84cd6cf72e5416d68269a8b099bbc3b3"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestParams.parse (cognitive 20): RequestParams.parse has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1965}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb5334dade7e0a097b4c5c64fb01aedbf28825d1af284047462461a83df3a4e"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioServer.swift.parseRealtimeTurnDetection (cognitive 20): AudioServer.swift.parseRealtimeTurnDetection has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ecc000fda6fbc585784f4af13574e4357b807182975742d474fff9b29546ed"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2TextNormalizer.zhCardinal (cognitive 20): IndexTTS2TextNormalizer.zhCardinal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2TextNormalizer.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d8c0e7892cfabdeeb3628039d28cfdfcf847894d2205a436d63108d6f46d51"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroTextChunker.pack (cognitive 20): KokoroTextChunker.pack has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/TextChunker.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"80cbbbdae4361a0a393cc97f83639c59c322c9004d543a555fe0f8427fec7d84"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTTSNanoTokenizer.init (cognitive 20): MossTTSNanoTokenizer.init has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (7 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoTokenizer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f338ffc62db255e62090359b1f3254a844ca98b6e70d7d5c992e159f35597c5e"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTTSNanoTokenizer.normalize (cognitive 20): MossTTSNanoTokenizer.normalize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 5 (8 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoTokenizer.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fee1aef5b8b27f84d46dead05dee940a0502a5233e03975e7cdc3b6a1c7e6d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"TalkerGenerator.forwardInternal (cognitive 20): TalkerGenerator.forwardInternal has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 3, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/TalkerGenerator.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc61e86444d831b7a2ac8ab8c94a67475f3e72d55df4b4799ac5e1ec991bae86"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceSeparator.separate (cognitive 20): SourceSeparator.separate has cognitive complexity 20 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 6, boolean chains 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/SourceSeparation.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e04e0b22713064fc67b2094ddf2248823a5d7256bb0fb5a4f2abcc8c99c01cd"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeVoiceTTSModel.generateLongForm (cognitive 20): VibeVoiceTTSModel.generateLongForm has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"493ea7d5a4751fa5a54531f4681cbc77fd170193e3d0f28849678e2050afa075"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeVoiceStreamInference.generate (cognitive 20): VibeVoiceStreamInference.generate has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"97af868fb744c020504bfb833e1d2ce678f78df23c9d1948a9b6f16349a2d561"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runBreeze (cognitive 19): SpeakCommand.runBreeze has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (15 pts), loops 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1607}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a81366b9f608fd5210aba366b6a3cdbaffdbecf72b02fb8ad9bd770427e547"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPConfiguration.selectedServers (cognitive 19): VoiceChatMCPConfiguration.selectedServers has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a21a53c08601207eb82d6ab277f3ed3ade6417dd5bcda3ddcdd85cee5335b3"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPRuntime.appleEventKitReminderRecords (cognitive 19): VoiceChatMCPRuntime.appleEventKitReminderRecords has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b1772201e3ed76ed4cdc6cfd83ef7345d54149a4304ba160034c462035a197d"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatMCPRuntime.normalizedEventKitDueDate (cognitive 19): VoiceChatMCPRuntime.normalizedEventKitDueDate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"78761339f9286be6793e909273673845b53e49d6f1dfa92b5091339cc4a98a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamingAudioPlayer.play (cognitive 19): StreamingAudioPlayer.play has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/StreamingAudioPlayer.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"4535828429acc80e4107058d4865369e534542b2a9bbdf69b89f4e89f93ef36e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatterboxT3.sampleToken (cognitive 19): ChatterboxT3.sampleToken has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 5 (9 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/T3Model.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"130e3d3d0905baf010686ab9c129b93b3528bb6a6eddf0d117165a71bb97ef1c"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperMelExtractor.setupMelFilterbank (cognitive 19): WhisperMelExtractor.setupMelFilterbank has cognitive complexity 19 (threshold 15). Drivers by points: loops 8 (11 pts), if/else 4 (6 pts), boolean chains 2 (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/WhisperMelExtractor.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de289110d01ba32cc28a16a9918694a1e46f8b26728cad683d8ee7a206b0042"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkOptions.parse (cognitive 19): BenchmarkOptions.parse has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (9 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/GLiNERBenchmark/Options.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"93052bea55566f5db9093d3b20c7381fe3076f1fe719da1fd1daff7b1e39a23d"}},{"ruleId":"D2","level":"warning","message":{"text":"MioCodecWaveDecoder.swift.istftSame (cognitive 19): MioCodecWaveDecoder.swift.istftSame has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 6 (8 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/MioCodecWaveDecoder.swift"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd87177d6c760a664d0c07cd03648d0c1104a93fb2403d98eed249a58c89bbf"}},{"ruleId":"D2","level":"warning","message":{"text":"GermanPhonemizer.splitPrefix (cognitive 19): GermanPhonemizer.splitPrefix has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 7, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"197dfca96a18bb7b400632622840d0ab4ff42ee16358d50a1800d02e551197cb"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroPhonemizer.phonemizeWithDict (cognitive 19): KokoroPhonemizer.phonemizeWithDict has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e205fe4d87af5780e29be78fc72bc53e14976b619a51ea24617efbd33f88f4"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroPhonemizer.stemS (cognitive 19): KokoroPhonemizer.stemS has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"2279d63d916980df5d62d7e4c767e55926ff2ff0922753fd4ecf091991c5507c"}},{"ruleId":"D2","level":"warning","message":{"text":"MagpieCoreMLLocalTransformer.forward (cognitive 19): MagpieCoreMLLocalTransformer.forward has cognitive complexity 19 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 4 (7 pts), boolean chains 3 (nesting depth added 7). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/LocalTransformer.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b9174fcdc883fe567030dc5da1c1e3336f172edc7423dd7208291342fcaca0"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3AudioEncoder.callAsFunction (cognitive 19): Qwen3AudioEncoder.callAsFunction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), loops 7, ternaries 1 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/AudioEncoder.swift"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"276e05ecabe659fcfe046b53de4dcefa9db12a9c486b2fc89d951715882380ae"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3ForcedAligner.alignLong (cognitive 19): Qwen3ForcedAligner.alignLong has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/ForcedAligner.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"488633c7679438be68093305877eebe8407ede0b276a157bfa9ddbdba09d8db1"}},{"ruleId":"D2","level":"warning","message":{"text":"JSONSchemaMatcher.integerFeasible (cognitive 19): JSONSchemaMatcher.integerFeasible has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (6 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cf4d0291b54fdb401ff7ff24ef24ba74d899a98972f7ddb86c1076a73f29ec"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.number (cognitive 19): Parser.number has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, loops 1 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/OrderedJSON.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"36edc2bdad5aedee13b672f5cea781e378d125076927b7cb2aba864896bbcf90"}},{"ruleId":"D2","level":"warning","message":{"text":"HDecLayer.callAsFunction (cognitive 19): HDecLayer.callAsFunction has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98c532122f2b4356b097be9d3fdaa6f542815d3e4fc35c92fed6503a99dacb6"}},{"ruleId":"D2","level":"warning","message":{"text":"VadBench.runEngine (cognitive 19): VadBench.runEngine has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 2 (4 pts), match/switch 1 (3 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VadBenchmark/VadBench.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde30656641d14601f28162a3950a90c314a0dea91b2bfba4d70ed9c38f5f781"}},{"ruleId":"D2","level":"warning","message":{"text":"FullDuplexExpectedAudio.parse (cognitive 19): FullDuplexExpectedAudio.parse has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 9. Of this number, 11 points are the body\u0027s own statements and 8 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"882ca864dd06ffb125ad25178f4ccdbc962349ce3732ae74ea68ec3eff7600ea"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxCPM2TTSModel.loadWeights (cognitive 19): VoxCPM2TTSModel.loadWeights has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"36366e9f178f0fa91ce256c76a801523de3b69a71f308d5b694ac8aa5092f7ee"}},{"ruleId":"D2","level":"warning","message":{"text":"RuntimeOwnershipProfile.micro (cognitive 19): RuntimeOwnershipProfile.micro has cognitive complexity 19 (threshold 15). Drivers by points: loops 12 (16 pts), if/else 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/RuntimeOwnershipProfile.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2da9414ecf1a45d6b7dbd6d19d96cfeea1a9b1666643dca440899c773b08cc"}},{"ruleId":"D2","level":"warning","message":{"text":"benchmark_qwen3_batch_decode.benchmark_one (cognitive 19): benchmark_qwen3_batch_decode.benchmark_one has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_qwen3_batch_decode.py"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa282ed0e3cbfcd4b94773032b09c281300936b41051350d102e4cb39dffe27"}},{"ruleId":"D2","level":"warning","message":{"text":"AsrBench.runIsolated (cognitive 18): AsrBench.runIsolated has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/AsrBench.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bf30d58c9a2283ac9a57f047534baba869f3f1875816f47bfc19d9fc49c556"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatterboxFlashNumpy.parseFloat32Vector (cognitive 18): ChatterboxFlashNumpy.parseFloat32Vector has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 8, loops 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashNumpy.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0e7131fc1ac94f41b6187e171e445c085836c71869fbaac2ead98052ff63e5"}},{"ruleId":"D2","level":"warning","message":{"text":"MTLTokenizer.normalizeJapaneseToHiragana (cognitive 18): MTLTokenizer.normalizeJapaneseToHiragana has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/MTLTokenizer.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e892c229608b7c940e91a6f7737fdb1bbf96118406e44f19a6c1cf9d17257c8a"}},{"ruleId":"D2","level":"warning","message":{"text":"HiFiGANGenerator.callAsFunction (cognitive 18): HiFiGANGenerator.callAsFunction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/HiFiGAN.swift"},"region":{"startLine":769}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7bc04a35c647d4f94093fa216c533bf0cb1e07876f7dca570dbf0e954787e3"}},{"ruleId":"D2","level":"warning","message":{"text":"FishAudioDrama3Prompt.build (cognitive 18): FishAudioDrama3Prompt.build has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (5 pts), loops 4, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 2 function items inside it that branch (appendCodes, appendText). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDrama3Prompt.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5beb7270be9370c07f7787740043edf40a858a1af9ce928be50e016a1d1c62d7"}},{"ruleId":"D2","level":"warning","message":{"text":"HiggsTTSCodec.sincResample (cognitive 18): HiggsTTSCodec.sincResample has cognitive complexity 18 (threshold 15). Drivers by points: loops 5 (9 pts), if/else 2 (4 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 8). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSCodecEncoder.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5cf2eef6b9ceaef8980b12f705d5bf5feb37302c3dd3a3c4542aa90250a1d9"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2BigVGAN.prepareWeights (cognitive 18): IndexTTS2BigVGAN.prepareWeights has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2BigVGAN.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"666e98e922d27cc66881d4762fc26ff545c18e5d1d1dd2a855a7a2024c70263f"}},{"ruleId":"D2","level":"warning","message":{"text":"LatinPhonemizer.spanishToIPA (cognitive 18): LatinPhonemizer.spanishToIPA has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/LatinPhonemizer.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9632a930016cd7d37fbc4a7daf1b3ebb0af85142a2a07a229011a6e0153185b2"}},{"ruleId":"D2","level":"warning","message":{"text":"KokoroTextChunker.boundaryRank (cognitive 18): KokoroTextChunker.boundaryRank has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 4, ternaries 2 (4 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/TextChunker.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae5d4ddf3e9b6fa0508b16bd202f9476b4dcc1f8659c0addd067baf441d339e"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen35MLXChat.generate (cognitive 18): Qwen35MLXChat.generate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"796ad73e8bea9f589a5c9c4c9c37cc51a9ee6a4e9645936576ad0efd6e9374c0"}},{"ruleId":"D2","level":"warning","message":{"text":"RegexParser.quantified (cognitive 18): RegexParser.quantified has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONPattern.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84cc9cb4b21eecbd9657d795913d431fdd11fb1f537ef09fbcd10ccdf33eaa7"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3TTSModel.resolveLocalConfiguration (cognitive 18): Qwen3TTSModel.resolveLocalConfiguration has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, error handling 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/LocalModelConfiguration.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"088470a28e599bceb26aa2e48d98fed0d5e82a547dff29dab213298d955d293c"}},{"ruleId":"D2","level":"warning","message":{"text":"EmbeddingFile.read (cognitive 18): EmbeddingFile.read has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, match/switch 1 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/BundleConfiguration.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"258c006aa28d44fedfd99fb12b914583be34af0d8057ab0bfd0ba5727a5c3764"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechEnhancer.enhanceCore (cognitive 18): SpeechEnhancer.enhanceCore has cognitive complexity 18 (threshold 15). Drivers by points: loops 7 (12 pts), if/else 5 (6 pts) (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/SpeechEnhancement.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b23c3d6f515fa50220e51ead41544f9778cdbaef9a246bd056e4fd2563891208"}},{"ruleId":"D2","level":"warning","message":{"text":"Nemotron3ArtifactConfiguration.validate (cognitive 18): Nemotron3ArtifactConfiguration.validate has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 15, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3Diarizer.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeefeb1c733ac1f752ae3ea8ef41e81e4759bc07cfd31ebb83875d8214271770"}},{"ruleId":"D2","level":"warning","message":{"text":"StableAudio3WeightLoading.swift.sa3RewriteDiTMediumKeys (cognitive 18): StableAudio3WeightLoading.swift.sa3RewriteDiTMediumKeys has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 2 (nesting depth added 8). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 2 function items inside it that branch (rewrite, rewrite::mapList). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/StableAudio3MusicGen/StableAudio3WeightLoading.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af2630b9aa9cd2336c0f9987d0cb6ecd7be9257dd67921adb39e0b5914001aa"}},{"ruleId":"D2","level":"warning","message":{"text":"WeightLoader.swift.loadEncoderManually (cognitive 18): WeightLoader.swift.loadEncoderManually has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a737ecb6ba5b8822ac4c823a97eab834ac5d581f8784700f49168e95af056a"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioVAE.sanitize (cognitive 18): AudioVAE.sanitize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/AudioVAE.swift"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"3943e908233082e8e592745de74b08ae9f34f0f08d748e3341be44d6e3fec2a0"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxCPM2TTSModel.fromPretrained (cognitive 18): VoxCPM2TTSModel.fromPretrained has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e59852f8897645d0ba299e81fd797c1667fd63e05a06f08a9ef2ee46015084a"}},{"ruleId":"D2","level":"warning","message":{"text":"profile_fish_drama3.summarize (cognitive 18): profile_fish_drama3.summarize has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/profile_fish_drama3.py"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"358751eedadc8fe5877397a420a60a9d81aea45853090ac46dbf5d5377de1c9e"}},{"ruleId":"D2","level":"warning","message":{"text":"DiarizeCommand.runPyannote (cognitive 17): DiarizeCommand.runPyannote has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 1 (4 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f483a8fa260bd2e53cd19504c21a4dde3f8938fcb501a929572a3563b5874f"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeakCommand.runMagpie (cognitive 17): SpeakCommand.runMagpie has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":709}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed622639bb4ba33e03b8d55c7c792fde1cfa903b8c611a265291915615717a1"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioFileChunkReader.init (cognitive 17): AudioFileChunkReader.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileStream.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfb673923127b97ee1c53f842ce6882db5efa5dfd6d606d3e998d2846b17938"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3Tokenizer.bpe (cognitive 17): Qwen3Tokenizer.bpe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/Tokenizer.swift"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"becd53ebe8f11fe1de3c62aad5638594aa9c4be46f264301803aeae07c43b06a"}},{"ruleId":"D2","level":"warning","message":{"text":"BenchmarkManifest.load (cognitive 17): BenchmarkManifest.load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BenchmarkSupport/BenchmarkSupport.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6730c0b67d67e383817facfd3e9bfbbede6ab3bb9b711dad53f4ec7a35d2e4a4"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowMelExtractor.setupMelFilterbank (cognitive 17): FlowMelExtractor.setupMelFilterbank has cognitive complexity 17 (threshold 15). Drivers by points: loops 8 (11 pts), if/else 2 (4 pts), boolean chains 2 (nesting depth added 5). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/FlowMelExtractor.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"524e3ebda12c58c2a8fef367ca64823a9621637481592922a61543a6a9d890f2"}},{"ruleId":"D2","level":"warning","message":{"text":"IndexTTS2TextSegmenter.split (cognitive 17): IndexTTS2TextSegmenter.split has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2TextSegmenter.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f391fa5726c289ca51ed7f6bb4c9a9e72f674e6186df984848a2ba948c20be"}},{"ruleId":"D2","level":"warning","message":{"text":"IndicMioSampler.topKIndices (cognitive 17): IndicMioSampler.topKIndices has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 3, boolean chains 2 (nesting depth added 5). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (siftDown, siftUp). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioSampler.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5c0d2337a9c9f3b08cf39d41cca6dbfe2cc11fb8e530cd95e53a65dbd5f375"}},{"ruleId":"D2","level":"warning","message":{"text":"LatinPhonemizer.tokenize (cognitive 17): LatinPhonemizer.tokenize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/LatinPhonemizer.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5508150e8150fd7e115a3653ec97af3b89f4355c5ff7c77704f5b7a9c5503bcd"}},{"ruleId":"D2","level":"warning","message":{"text":"T5Attention.callAsFunction (cognitive 17): T5Attention.callAsFunction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADModel.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf5e0c99c74c94ff55b975bdd99b15941808109b6856b1e499096aa01ecea3d"}},{"ruleId":"D2","level":"warning","message":{"text":"MADLADTranslator.translateStream (cognitive 17): MADLADTranslator.translateStream has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (10 pts), ternaries 1 (3 pts), loops 1 (2 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTranslator.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a0341e597b6920615a33e76332380b011c9603aca3c72cfbd0ebdcf99c88ce"}},{"ruleId":"D2","level":"warning","message":{"text":"MagpieWeightLoader.loadAndDequantize (cognitive 17): MagpieWeightLoader.loadAndDequantize has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, loops 2, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/WeightLoader.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"f560074b0549675ec86a3f75d803ff4e4ff7382ec195cd319f405bccb596b67b"}},{"ruleId":"D2","level":"warning","message":{"text":"MossTTSNanoModel.encodeReference (cognitive 17): MossTTSNanoModel.encodeReference has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 6, loops 2 (3 pts), ternaries 1 (nesting depth added 1). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTTSNano/MossTTSNanoModel.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2cb3333760ba86fde9bfa01f5cc5f3b33c5151f2c313ff73c6233234b40600"}},{"ruleId":"D2","level":"warning","message":{"text":"ParakeetVocabulary.decodeWords (cognitive 17): ParakeetVocabulary.decodeWords has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/Vocabulary.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d7bb7431264bc4914cdd08f98b105746f2bafb9361b2d03967c24f75b111e9"}},{"ruleId":"D2","level":"warning","message":{"text":"CoreMLForcedAligner.align (cognitive 17): CoreMLForcedAligner.align has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, if/else 6 (7 pts), loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLForcedAligner.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a81caf51d6395be2d8790be7c8fbb20e1a71b46fab7aa7bef9403268ea18c91"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSampler.sampleOnDevice (cognitive 17): ChatSampler.sampleOnDevice has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/ChatSamplerMLX.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1103078b321283a5fa46bd9ba3bb6886379f6cc66f82d7d0ad6bc70a85da6b63"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3TTSModel.generateBatchWithCodePredictor (cognitive 17): Qwen3TTSModel.generateBatchWithCodePredictor has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc58fb50fa943a9815ce5a456e3f6353f24c77dd8966d87a93a609a3e481f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"HTDemucsTransformer.swift.sinEmbedding2D (cognitive 17): HTDemucsTransformer.swift.sinEmbedding2D has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 3 (10 pts), loops 4 (7 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f9f3c0066d559da26437abd2a70ce686f124b990e0fe1ee951433152e982e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Community1PLDA.load (cognitive 17): Community1PLDA.load has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 3 (nesting depth added 1). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to one function item inside it that branches (tensor). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab85416a60882596e410f75efb5d7f0769e58b919835acd7e9a89938c1109a76"}},{"ruleId":"D2","level":"warning","message":{"text":"SortformerStateUpdater.disableLowScores (cognitive 17): SortformerStateUpdater.disableLowScores has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 4 (6 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29976c1dd2680d4d07eed2eb8069c7bec21cf1e322bbd3de9384e45d8f5c461"}},{"ruleId":"D2","level":"warning","message":{"text":"SortformerStreamingSession.drainReadyChunks (cognitive 17): SortformerStreamingSession.drainReadyChunks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStreamingSession.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"b141c2ce5d1ea62c164bbf6cea1e32a96c0edb993586e9ebb155b5c403c53581"}},{"ruleId":"D2","level":"warning","message":{"text":"DPMSolverMultistepScheduler.step (cognitive 17): DPMSolverMultistepScheduler.step has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, loops 1, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/DPMSolver.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b0621f34eb685b7f24f64bae28cf6ea971d77ef4ff52b43b936199cdcd71443"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor_apple_gpu.first_numeric (cognitive 17): monitor_apple_gpu.first_numeric has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/monitor_apple_gpu.py"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fd198b51031cc2b4ec81d0794243ce2b2246774404d4c7b6d7c90660fc671b"}},{"ruleId":"D2","level":"warning","message":{"text":"HuggingFaceDownloader.withDownloadRetries (cognitive 16): HuggingFaceDownloader.withDownloadRetries has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HuggingFaceDownloader.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae34b9ec0738a321855c012fe7bb5c96d39dfd86d659556ae1f30cd3922ed7f"}},{"ruleId":"D2","level":"warning","message":{"text":"Qwen3Tokenizer.decode (cognitive 16): Qwen3Tokenizer.decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/Tokenizer.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b818f6f1e20e78fbdcbaccbb7580d6be0802c28ba6c99aa31e62ced786e11b3"}},{"ruleId":"D2","level":"warning","message":{"text":"MelPreprocessor.buildMelFilterbank (cognitive 16): MelPreprocessor.buildMelFilterbank has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 4, if/else 2 (4 pts), loops 3 (4 pts), ternaries 3 (4 pts) (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/MelPreprocessor.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad836c446850d7967dffc053636959c66770581b682c35689025de81eb58441"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatterboxTTSModel.fromPretrained (cognitive 16): ChatterboxTTSModel.fromPretrained has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), loops 3 (4 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxTTSModel.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9fc7e1c0c72c39ed3a2db57f0e1be4a4d328e8b1494291d891a664607f43d5"}},{"ruleId":"D2","level":"warning","message":{"text":"DialogueSynthesizer.synthesize (cognitive 16): DialogueSynthesizer.synthesize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/DialogueSynthesizer.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"d249431c7b667597e616325d1d76858fbb4b552c7dc907ed744c731b21f50ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"FlashSRMelPreprocessor.melSpec (cognitive 16): FlashSRMelPreprocessor.melSpec has cognitive complexity 16 (threshold 15). Drivers by points: loops 7 (16 pts) (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Mel.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"77594a40460ecfc75f3b83308e71b0ee42ae9787da4923b44c9df2696f16dad7"}},{"ruleId":"D2","level":"warning","message":{"text":"CommonWeightLoader.verifyQuantizedLayout (cognitive 16): CommonWeightLoader.verifyQuantizedLayout has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d7e43baee034c8ac8026404c8b6c0f332f26e28b0762788468a47a4a346daf"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageGuideContext.makeMask (cognitive 16): LanguageGuideContext.makeMask has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/LanguageGuide.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4eb59077da2c14d79c11b024a4e07ae9250b5b42305951c05a0316da70adbb"}},{"ruleId":"D2","level":"warning","message":{"text":"NemotronVocabulary.decodeWords (cognitive 16): NemotronVocabulary.decodeWords has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"40070a27ce32616182b0909f3ba8e640a378ce95bc3e70d7670f19d997163de8"}},{"ruleId":"D2","level":"warning","message":{"text":"Resampler.resample (cognitive 16): Resampler.resample has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b06c9e5a4a7784beed9a3fd213b78935f6cea52b3a8aabeb87606e0c81d1a7"}},{"ruleId":"D2","level":"warning","message":{"text":"OmniVoiceCodecEncoder.shouldKeep (cognitive 16): OmniVoiceCodecEncoder.shouldKeep has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebac7e51c681966deb3c96df00060cff1f71fac9cae72856f1c0ef9963e19c7e"}},{"ruleId":"D2","level":"warning","message":{"text":"PocketTtsLayerKeys.discover (cognitive 16): PocketTtsLayerKeys.discover has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PocketTTS/PocketTtsLayerKeys.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b916d850b0c13c59ce76b98a1ecc72e02d9e0e9f72043870b47245ad488101"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperFeatureExtractor.setupMelFilterbank (cognitive 16): WhisperFeatureExtractor.setupMelFilterbank has cognitive complexity 16 (threshold 15). Drivers by points: loops 9 (12 pts), if/else 4 (nesting depth added 3). Of this number, 12 points are the body\u0027s own statements and 4 belong to 2 function items inside it that branch. To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/AudioPreprocessing.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c713e462f4c9ada9ae840948fb905ce2282b88005fffb3ed0ae191f7c9d4162f"}},{"ruleId":"D2","level":"warning","message":{"text":"WhisperFeatureExtractor.extractFeaturesRaw (cognitive 16): WhisperFeatureExtractor.extractFeaturesRaw has cognitive complexity 16 (threshold 15). Drivers by points: loops 9 (13 pts), if/else 3 (nesting depth added 4). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/AudioPreprocessing.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93b3ba14e94c3b1358d9346e05626e2fe3986344011edef43221bd451290051"}},{"ruleId":"D2","level":"warning","message":{"text":"TextPreprocessor.pairsForSegment (cognitive 16): TextPreprocessor.pairsForSegment has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 1 (nesting depth added 5). Of this number, 11 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/TextPreprocessing.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54b21e7705ed2fa00b57a093cc9cbb1a9dc7cc99c424314f3ad362465da5ec0"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parseString (cognitive 16): Parser.parseString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e6e15a85ac2fe5b3fb2d83ef730240c393e8818d59314eb4134577e8a1fac3"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechEnhancer.enhanceChunked (cognitive 16): SpeechEnhancer.enhanceChunked has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/SpeechEnhancement.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"63de95dbf45cad4e36f77328bfb1cf73b06cb3ab070d00b543213017072cd530"}},{"ruleId":"D2","level":"warning","message":{"text":"AudioProcessing.swift.computeERBFilterbank (cognitive 16): AudioProcessing.swift.computeERBFilterbank has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 5 (7 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/AudioProcessing.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4243382be34a633645bde30323bac315c770a6585ff1fae93aeef76338931628"}},{"ruleId":"D2","level":"warning","message":{"text":"LanguageIDModelConfiguration.validate (cognitive 16): LanguageIDModelConfiguration.validate has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechLanguageID/LanguageIDTypes.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc81f8171a4dcc460c9872ae0e5060de58411e0c57e745e1663751c1d8640ef"}},{"ruleId":"D2","level":"warning","message":{"text":"SpeechLanguageIdentifier.identify (cognitive 16): SpeechLanguageIdentifier.identify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 2 (3 pts), ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechLanguageID/SpeechLanguageIdentifier.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7719bb40fdc884f941d57142d3d92f36c2dea2a4aa203586e64ef3964254ecfe"}},{"ruleId":"D2","level":"warning","message":{"text":"SeamlessM4TFrontEnd.logMelSpectrogram (cognitive 16): SeamlessM4TFrontEnd.logMelSpectrogram has cognitive complexity 16 (threshold 15). Drivers by points: loops 7 (14 pts), if/else 2 (nesting depth added 7). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechRestoration/SeamlessM4TFrontEnd.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd475610b8e25037dac30a2d9703cac53bdd00e6d079169c21af41cf64ed6a8"}},{"ruleId":"D2","level":"warning","message":{"text":"FireRedVADModel.extractSegments (cognitive 16): FireRedVADModel.extractSegments has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 2, loops 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/FireRedVAD.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad50f02a77f14d1bcea8d33eb62d06cb0682d59d4d99eb2ed26adba80d20215"}},{"ruleId":"D2","level":"warning","message":{"text":"WeSpeakerNetwork.init (cognitive 16): WeSpeakerNetwork.init has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (12 pts), loops 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/WeSpeakerModel.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d4f1c2e108e6aa9a18e02dd55285008cae99746405c52be0f2f3a26b2eef4c1"}},{"ruleId":"D2","level":"warning","message":{"text":"UnigramTokenizer.bpeMergeAppend (cognitive 16): UnigramTokenizer.bpeMergeAppend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/StableAudio3MusicGen/UnigramTokenizer.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9178e19522aa3eca3cc9bced13e0951dc294c3653962b02c7255beedc663e959"}},{"ruleId":"D2","level":"warning","message":{"text":"VibeVoiceStreamInference.loadVoiceCache (cognitive 16): VibeVoiceStreamInference.loadVoiceCache has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 4, loops 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54f2b4ff04239d80c5c335aaa53dac02ef02a9d0afd00751a06ac0a9cc82731"}},{"ruleId":"D2","level":"warning","message":{"text":"WeightLoader.swift.transposeConv1dWeights (cognitive 16): WeightLoader.swift.transposeConv1dWeights has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"14671c005c00b5fbc3f64181a4f563f6aabaf6f7891ff998eaa68b4be20d54d7"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatSession.pushAudio (cognitive 16): VoiceChatSession.pushAudio has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 2 (4 pts), boolean chains 2, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"615446ca96656f00e43de5df21e8bac5d4d2f87426743328c95d1b776d22fe77"}},{"ruleId":"D2","level":"warning","message":{"text":"VoiceChatSession.deferMicrophoneFrame (cognitive 16): VoiceChatSession.deferMicrophoneFrame has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf8593141568c8e4b9fba159701effbbbabd07e72dd84d192cf403f5215e3e52"}},{"ruleId":"D2","level":"warning","message":{"text":"VoxCPM2TTSModel.loadWeights (cognitive 16): VoxCPM2TTSModel.loadWeights has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96ccea0f9cf5e1a298c6ac8971bb994216ca1133c721ca5362812d262a6ef68"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatBench.runFullDuplexToolScenario: MethodTooLong \u2014 runFullDuplexToolScenario runs 445 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 345 over it, 4.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"44352b2d43555f1e6d0dae3ec966e1c834d53c167a385f73660d055353bbc693"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: AudioServer.swift.handleRealtimeWS: FunctionTooLong \u2014 handleRealtimeWS runs 404 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 304 over it, 4.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b58101b55637c3f4ab39b18f28d3c8711f41c7f6aeb207cc3f361708298914"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SpeakCommand: ClassTooLong \u2014 1520 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 1120 over it, 3.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcc74f788e9c633e262ac62b3cf7765eb17e78b10420b58a0a067f4b992027e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VoiceChat/VoiceChatSession.swift: FileTooLong \u2014 1607 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1107 over it, 3.21\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"307a2d12c96523566b997c588f0e753165f3c73518ec5752ad785b77dffaf213"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoxCPM2TTSModel.generateVoxCPM2: MethodTooLong \u2014 generateVoxCPM2 runs 309 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 209 over it, 3.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4e0227e5035a69e97c5606ee435ec41038d3e39a7fcfb0c142f4efa513afda"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioCLILib/SpeakCommand.swift: FileTooLong \u2014 1539 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: SpeakCommand (21-2182). The bar is 500 significant lines; this is 1039 over it, 3.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b8ebe4957450068da4ccf255f7db746440109a48e5a5f813431a365ec907e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatSession.advance: MethodTooLong \u2014 advance runs 282 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 182 over it, 2.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"619f5aa02d8ec19d97323d5ceceb766ddf1471ae9ec7cbecc016de0cbd889bb6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PersonaPlexModel.respondStream: MethodTooLong \u2014 respondStream runs 280 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 180 over it, 2.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc7680bb1e7a449d28ca210e469dafea97e66fa15fda2d9feacd52013f77413"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioServer/AudioServer.swift: FileTooLong \u2014 1381 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 881 over it, 2.76\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e40539c3aefbcc38b61b0c4321e405d3d591a1db6a86f78e964bee0b70e438"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PersonaPlexModel: ClassTooLong \u2014 1091 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 691 over it, 2.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"a943084b735df64de8f55a99f5c6c7de1a18256ea0d803b8eb4e95f0febeef45"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VoxCPM2TTSModel: ClassTooLong \u2014 1077 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 677 over it, 2.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"012053df80e64519f843088c7e0ac4a23c3ed4b7d560500d7afcc6fb0c452d13"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PersonaPlexModel.respond: MethodTooLong \u2014 respond runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cce27d9e2a73c5354a2d7510023c5598526e3970eb29e3899d78f73bbfd8e4a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VoiceChatBenchmark/FullDuplexToolBench.swift: FileTooLong \u2014 1328 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 828 over it, 2.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da408de90b0d738a8535ed0c9b173b4b05c441c30647f05c595689c8b3a9a33c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioCLILib/VoiceChatMCP.swift: FileTooLong \u2014 1321 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 821 over it, 2.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a960682e5d5ce953e7a36a2925c20cd0eda92b17988dff4a236e2792423d47d7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3TTSModel: ClassTooLong \u2014 1053 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 653 over it, 2.63\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc28797c03a810a7ee1c3c41d6c291faefcab87cd2e3e20e19e6f05492144cad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Qwen3TTS/Qwen3TTS.swift: FileTooLong \u2014 1264 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: Qwen3TTSModel (32-1765). The bar is 500 significant lines; this is 764 over it, 2.53\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c744b27c2f847af7386310d25611a22bf3a770d475cbd11b12d038f4446116"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VoiceChatSession: TooManyMethods \u2014 72 methods, declared across 2 files: VoiceChat/VoiceChatSession.swift (71), VoiceChat/VoiceChatToolCalling.swift (1). The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef912eecfd2bec26b2c726e7984aefe14ae28b76f13e517c6a6f8a0e57cab0a7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IndexTTS2SemanticGPT: ClassTooLong \u2014 934 significant lines (blank, comment-only and punctuation-only lines excluded), 58 methods. The bar is 400 significant lines; this is 534 over it, 2.34\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f48e4fc9afae08ca52e8757e797010246ccca1822fbb0cafaad02032ec7caa4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VoxCPM2TTS/VoxCPM2TTS.swift: FileTooLong \u2014 1139 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: VoxCPM2TTSModel (30-1561). The bar is 500 significant lines; this is 639 over it, 2.28\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"de31f85b2c1d99e1a098f6b7b3e5cb14816a2b7292320dd4c83d5c05832de9c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PersonaPlexModel.respondRealtime: MethodTooLong \u2014 respondRealtime runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"020dd990b0e90247e8fb182e5733766747dcd6c7e9d2ed9cf1240c14cbfcf774"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: PersonaPlex/PersonaPlex.swift: FileTooLong \u2014 1096 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: PersonaPlexModel (12-1701). The bar is 500 significant lines; this is 596 over it, 2.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a46b3e3a9a1c99020e4f2fa70ad8d0f265ed53e9575f1c3c799e760a16912c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MossMLXModel.transcribeLocked: MethodTooLong \u2014 transcribeLocked runs 212 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 112 over it, 2.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXRuntime.swift"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"8af9137a8902f336b857d4a105ce03c2a226e9b65fff1bfdca581fb3e5bcb0e0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GermanPhonemizer: ClassTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded), 55 methods. The bar is 400 significant lines; this is 428 over it, 2.07\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9e13d9a92519ddb7426386191b67cdc8bd76dfed1e8448266e3c5a50bd6614"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: IndexTTS2TTS/IndexTTS2SemanticGPT.swift: FileTooLong \u2014 1019 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: IndexTTS2SemanticGPT (51-1279). The bar is 500 significant lines; this is 519 over it, 2.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69edacea50dae62c4bee68a2cbe3752fe607fa389ccf2424f3334c38a442511e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IndexTTS2SemanticGPT: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d927587a93ae90c89944c93206f6b0899bd102a0ddc1aa1680a6b6ded6fb503"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AudioServer.buildRouter: MethodTooLong \u2014 buildRouter runs 191 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 91 over it, 1.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"890c46134d967bf47718c08387bf0f1aa6d453ecba4fe773def5765ce1ebba3a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3TTSModel.runStreamingGeneration: MethodTooLong \u2014 runStreamingGeneration runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0dfb0de705773956956757229357b63f8697c23f6191a447b0ad7a11956a71c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GermanPhonemizer: TooManyMethods \u2014 55 methods. The bar is 30 methods; this is 25 over it, 1.83\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6109011bea6874b4b634e87f0e3cced7e958452cfa50d9e164a0291305442cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatCommand.runMicrophone: MethodTooLong \u2014 runMicrophone runs 182 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 82 over it, 1.82\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"be44f90c73e82f07c15d6293dbf5120190b83e0862ef4562ffa0c86d71e8ab35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PersonaPlexModel.respondDiagnostic: MethodTooLong \u2014 respondDiagnostic runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":1332}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e41342b252e53d29973578a9e0bcdb4e102c2da2e5d738186378d948baf2b8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: FishAudioTTS/FishAudioCodec.swift: FileTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 361 over it, 1.72\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63659e845b69b65300882a63ff76a828f766d39789e48c2325f2d4ac0b34b75"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioCLILib/VoiceChatDemoSupport.swift: FileTooLong \u2014 847 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 347 over it, 1.69\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d877b2358ba27bb774ae9cb1c410c060ba62ab5c8cb0f2ecf94423396386be"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VoiceChatCommand: ClassTooLong \u2014 676 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 276 over it, 1.69\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f8cbbc0f2abf496241b62ec450bb3ffb0a23f908046641968c04377f95c73f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift: FileTooLong \u2014 841 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: ChatterboxFlashT3Graphs (180-911). The bar is 500 significant lines; this is 341 over it, 1.68\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9486a6d19aaa549aded5ecc3bf9b6680cf29cecc9e304a036df246d8059e1fa4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MossTranscribeModel: ClassTooLong \u2014 664 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 264 over it, 1.66\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1fb323479e1cb69dde2eed509eb9fefb02d9ef80f153235693414f7b0dcb41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: KokoroTTS/GermanPhonemizer.swift: FileTooLong \u2014 829 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: GermanPhonemizer (19-1156). The bar is 500 significant lines; this is 329 over it, 1.66\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e317f53e373c88d32ef3a28536f0bd61613020f8197b195190453f7834e5510e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RespondCommand.run: MethodTooLong \u2014 run runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/RespondCommand.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2be561aadbb1b7fc9060ae4329edfc26805819ee8d08d26c7d86e1a1b0692a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpeakCommand.runCosyVoice: MethodTooLong \u2014 runCosyVoice runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d75b9b07c5bddf2529770c15402bf966d5eed6d1fafe740ad2ec41936dc0d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullDuplexAcousticAnalyzer.analyze: MethodTooLong \u2014 analyze runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"1733c031effa5641a8dfeb709383a4f6c98c7d71a07faa5eb1a309f9b965136a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: MossTranscribe/MossCoreMLRuntime.swift: FileTooLong \u2014 809 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: MossTranscribeModel (212-1083). The bar is 500 significant lines; this is 309 over it, 1.62\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fb30f2525156a78c2ec319d6ade7936b057d3aa15d94f3cb8b273772faae89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpeakCommand.validate: MethodTooLong \u2014 validate runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"da24311b7bc3e022a8176d5700c98ed45514d85c94c9c45b7aeb79048216ccc6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MossTranscribeModel.transcribeLocked: MethodTooLong \u2014 transcribeLocked runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8919b09f20e81d0099b5b618767bf50b6139a9f388383fd21baa1eccf01921a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatterboxFlashT3Graphs.generateSpeechTokens: MethodTooLong \u2014 generateSpeechTokens runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.57\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c92cc3556990579dc82f6dedc837cc5137f5f96b6753378b017b6b7cdf60dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AsrBench.run: MethodTooLong \u2014 run runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/AsrBench.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"1464916884c59fa2ceaa4451622df43a335631ebd68e9d751ff5cdde0b71125d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Qwen3ASR/Qwen3ASR.swift: FileTooLong \u2014 774 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: Qwen3ASRModel (118-1170). The bar is 500 significant lines; this is 274 over it, 1.55\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff8a24cbb25946992707a8778d5572f2da385a605b4fc5754e0f152b6864c97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioCLILib/VoiceChatCommand.swift: FileTooLong \u2014 759 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: VoiceChatCommand (14-855). The bar is 500 significant lines; this is 259 over it, 1.52\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cc8ee76ea51ba781e77a2e350ad9171430a17aa5a3199bf09bf02f18b0fc1b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PyannoteDiarizationPipeline.runEmbeddingClusteredDiarization: MethodTooLong \u2014 runEmbeddingClusteredDiarization runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationPipeline.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed39880b580001f4d53687c55b9d845a4ae0da4eceaf3976bc34a398d07d6d2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Qwen3TTSModel: TooManyMethods \u2014 45 methods, declared across 5 files: Qwen3TTS/Qwen3TTS.swift (37), Qwen3TTS/Qwen3TTS\u002BICL.swift (3), Qwen3TTS/Qwen3TTS\u002BProtocols.swift (3), Qwen3TTS/LocalModelConfiguration.swift (1), \u002B1 more file(s). The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3c6ec61594b1446a79c3708c5b265a6f1ae6f4f374db66e2ad706baab3bae8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: DiarizationBenchmark/DiarizationBench.swift: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 246 over it, 1.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4ef21e674e93fe2f9a01c630f6bfae20b1b7928aed32d995bcea5433b36b5c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Qwen3ASRModel: ClassTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 187 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ace972d484b3bacd03992fcda77ee68e6ecf383f0be0bf062c4114ae0e4885"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3TTSCoreMLModel.synthesize: MethodTooLong \u2014 synthesize runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ad94088333c1699a487e18a47531ba71d57c115eeae1dda8699ca0f0c8eda0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Audio2Face3DMLXRuntime: ClassTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 156 over it, 1.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dd88d937f27ebc54098addfbf95bcf083c9e64526ab72226037b8b354663eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HibikiTranslateModel.translate: MethodTooLong \u2014 translate runs 138 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 38 over it, 1.38\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTranslate.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f08dfa3f9eea2864dcdbadbc44603e0ff866ac3a8eed70cc2156afdff30ae63"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatterboxFlashT3Graphs: ClassTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 148 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"279bb1257bffedd1c9cdd7169a3459109dd869c1a08257a3fefd4e4c57e1fa8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MossWhisperFeatureExtractor.extractPaddedChunk: MethodTooLong \u2014 extractPaddedChunk runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossWhisperFeatureExtractor.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d1c5ef5031fbc81d65b94d7e990c6863f7c9092203bbd9a238b1d3b0d9ee760"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: StreamingASR.transcribeStream: MethodTooLong \u2014 transcribeStream runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/StreamingASR.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"917f1654279afcc4355e1534544b4179845b72a86d789e3f57572632df32e11c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VibeVoiceTTSModel.generateLongForm: MethodTooLong \u2014 generateLongForm runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fadbf0c182651c1769ca09e767fd05efe7609a8864894492d80c001aad72436"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatBench.run: MethodTooLong \u2014 run runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/VoiceChatBench.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf6bed1eba28948d20b46afbcabe7f50769bc6bff16d7fe5f25c5993a725526"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatBench.runCompletePipeline: MethodTooLong \u2014 runCompletePipeline runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/VoiceChatBench.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e93e0aec57f3157d62141352b83b215453f893e2359573bd670acd8e451d4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: qwen3_tts_coreml/convert_coreml.py: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 over it, 1.30\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf13676d7d934991d565d7133e4b4269e870773cf6aeca4c47c72d56eb4ebf2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VoxCPM2TTSModel: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c106b91ad2c9aad0a0d0b6eef96f37b6c2a412d6608c26afc71c38184541d7ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3TTSCoreMLModel.fromPretrained: MethodTooLong \u2014 fromPretrained runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c802235463e902fb370b79cb8755af03946f739e4185b6c3c698bcd1481a00e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Qwen3Chat/Gemma4Model.swift: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 111 over it, 1.22\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Model.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b2a78e0043ae68e68df549d68a61b5e47e0ccb1b89783f95b610a8b2ff3795"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TranscribeCommand: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"10081953f30d4065cb9a31b7dfffaa9384124679cbf256bfcf9a21f1a11efb05"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MossMLXModel: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 86 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXRuntime.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9a4d1019b537ae2172effe004226878b990885be78bd293f0498577e01b977"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GermanPhonemizer.normalizeNumbers: MethodTooLong \u2014 normalizeNumbers runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"955075522220e085c1eb880d46b447488985b1fc3372f4758b34e760290355b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: AudioCLILib/TranscribeCommand.swift: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: TranscribeCommand (18-668). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6855d9f1e627090bf5cf2dbc548af4b21e3b84091d1fb68dbef60741804bdd33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullDuplexAudioIO.start: MethodTooLong \u2014 start runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/FullDuplexAudioIO.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"583fa93dc9b297bfb91b57e3b0ca7125e23f63d2a1feab0cd579f9b856650eb4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WienerFilter.emWiener: MethodTooLong \u2014 emWiener runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/WienerFilter.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb541ec5336a4f8269b1258c65e5d4371f90d93c602bb3c9824cebb78e39f97"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Nemotron3Diarizer.diarize: MethodTooLong \u2014 diarize runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3Diarizer.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0ea9c691cc55eb43b905ae275fb61ae2e8a158713ae1b893b7e14d3e8634a15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatTerminalRenderer.render: MethodTooLong \u2014 render runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a309bbb0454838a520d9aef0bdac2611128ed2439b57ef9b73669f38748d877"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Audio2Face3D/Audio2Face3DMLXRuntime.swift: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Audio2Face3DMLXRuntime (4-676). The bar is 500 significant lines; this is 74 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"727d9f9bc3b644ddd3e1f1ca75789f9eca7e4c534c5075abf1df3de53f901547"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: F5TTSFlow: ClassTooLong \u2014 457 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 57 over it, 1.14\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSFlow.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d62c4e6c4f0add015fce65df2f9753c8d3ca48bf05a22e8ba9ae051ff39cd09"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SpeechVAD/Community1Clustering.swift: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: Community1Clustering (219-793). The bar is 500 significant lines; this is 69 over it, 1.14\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c2382f4ec3e114d6f575452e60e3cb98debb522b2cef42fcd491dd89cde922"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: NemotronStreamingASR/NemotronMLXNetwork.swift: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXNetwork.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94aa61b0c6559eea4b39c2d0aa862128b1899a5fadc77cf33f9c9a78305bf634"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoiceChatMCPRuntime.connect: MethodTooLong \u2014 connect runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb91f41af1c67174aaa3153344ee9ea842a97d15d496007b46f4c39dad926be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VibeVoice15BTTSModel.generate: MethodTooLong \u2014 generate runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"daffe25cb85d431c81740c6ef5a2f41bffbbaf57dca81a8782a0bfd555e547a3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: KokoroPhonemizer: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded), 29 methods. The bar is 400 significant lines; this is 36 over it, 1.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7225daec0b96fd23cd4190e57e28eefdf0078baa913da6545a405bcfc86917"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: JSONSchemaMatcher.feedString: MethodTooLong \u2014 feedString runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d08e74e06493690227748a18c55f071e20d4b0e881b8fac47b213bbb1334470"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpeechBrainFbank.extract: MethodTooLong \u2014 extract runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechLanguageID/SpeechBrainFbank.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"64fb2217b39db0a688b5ff58b7919bf0920b145947e12d31d3273f389935696f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VibeVoiceQuantizer.quantizeAndSave: MethodTooLong \u2014 quantizeAndSave runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Quantization/VibeVoiceQuantization.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"02518e77fdd6d879aba5cb302ae03d8f835ce5936177b80d75823d5a5cf3adc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VoxCPM2TTS/MiniCPM4.swift: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 38 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/MiniCPM4.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2f621fe99cb19b337b35b1099a54606325d2ed120797a1f8acf5663ee1bfd4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3TTSModel.synthesizeWithVoiceCloneICL: MethodTooLong \u2014 synthesizeWithVoiceCloneICL runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf2ae7a5599ceb87f227a858517a1d241ac14764dc5b4a9f9479d3682bada08"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VoxCPM2TTSModel.loadWeights: MethodTooLong \u2014 loadWeights runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8545c9d3c01b282f1d6473e6872b1da24b30d9833f60b7927feae8e5b88193"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpeakCommand: TooManyMethods \u2014 32 methods, declared across 2 files: AudioCLILib/SpeakCommand.swift (31), AudioCLILib/SpeakCommand\u002BMossNano.swift (1). The bar is 30 methods; this is 2 over it, 1.07\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4400c2e026dc6080e8ccc271dc6b0db62bd2cd248c347e8b1c67a4255397701"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: HuggingFaceDownloader: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 22 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HuggingFaceDownloader.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad860f97dca20637d1b81e5d7b24fb350d0ec266335919215028721c248613db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DiarizationBench.runEngine: MethodTooLong \u2014 runEngine runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4de2b4833f314c06c90ccdb40fc658bcfbcc08c502bcec8d96173297a3a5a78"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Qwen3TTSModel.generateBatchWithCodePredictor: MethodTooLong \u2014 generateBatchWithCodePredictor runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b20deb0d62a58bb64701e3431bb6cd777873a8c2a2fd3ab93da4a84a76ba177"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: JSONSchemaMatcher: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 18 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaMatcher.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"328db36970076b47d12a7a24496c99f5e146bc08777515bf41366d8189ba610a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: IndicMioTTS/MioCodecWaveDecoder.swift: FileTooLong \u2014 520 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 20 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/MioCodecWaveDecoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3decff084e03856f6cfe47cc27bc7c2d27dae6544fbf8d9f1df68b22a47717"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Community1Clustering: ClassTooLong \u2014 413 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf07b4f58f5ebc27e5a6abbd7ae4e603a1f6f13b8e8ead559bcb565bd80c7cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: VoiceChat/VoiceChatNemotronH.swift: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 15 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatNemotronH.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26459c1fce11cee9cca709e49bda17f953879698cabecc886debe98012210ad0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MagpieTTSCoreML: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e60767cb025c0522fa8ca34af0d5f7fee6644d15b25d8c4221a36dc1a6183e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullDuplexToolScenario.load: MethodTooLong \u2014 load runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"60cc96ddf73eb5a2557e968ff3e8e69d458c304a36acc90b8062feba7da4cb89"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RuntimeOwnershipProfile.micro: MethodTooLong \u2014 micro runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/RuntimeOwnershipProfile.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"88026e0ec8746ed233e4cc48e69a27702fd46b24be0b9e101d4fbf4b30385b30"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SpeechVAD/Nemotron3Diarizer.swift: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3Diarizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c3e6e157af799d04b450534b827f1ba89570b1392952d20f7d1d849ef1852e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Audio2Face3DMLXRuntime.resolveGraphTensors: MethodTooLong \u2014 resolveGraphTensors runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13f0ee3f32ad34248d151240b105610d14c3f5a5f0e5c4e1ac884a72c15c204"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Community1Clustering.centroidLinkageLabels: MethodTooLong \u2014 centroidLinkageLabels runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bac98838afc7e5b5199df131e52dd18415eb844879caf18ed0091d7a836daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 16 shared lines): Sources/Qwen3ASR/FloatTextDecoder.swift:70-109 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:56-105 | Sources/Qwen3Chat/Qwen35Model.swift:355-425 | Sources/Qwen3TTS/CodePredictor.swift:53-92 | Sources/Qwen3TTS/Talker.swift:61-103 \u2014 These 5 members are variants of one another: a block of 16 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccea2bcea1c028c7d6187393e2dd5f9a10865e1b275e7e29db95b18543392987"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 55 shared lines): Sources/PersonaPlex/PersonaPlex.swift:127-584 | Sources/PersonaPlex/PersonaPlex.swift:618-992 | Sources/PersonaPlex/PersonaPlex.swift:1012-1319 | Sources/PersonaPlex/PersonaPlex.swift:1332-1572 \u2014 These 4 members are variants of one another: a block of 55 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dbb3fcdc0cc9a5a69cfae7fd5657d8d23240fa866f5ae3492868ea662bc15b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 45 shared lines): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:43-108 | Sources/Qwen3ASR/AudioPreprocessing.swift:61-164 | Sources/SpeechVAD/MelFeatureExtractor.swift:45-111 | Sources/SpeechVAD/SortformerMelExtractor.swift:52-127 \u2014 These 4 members are variants of one another: a block of 45 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba6a950a0f209ee8ca28cc232e61220777137f52c506ec38d8d77c650abe9cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): Sources/Qwen3ASR/FloatTextDecoder.swift:70-109 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:56-105 | Sources/Qwen3TTS/CodePredictor.swift:53-92 | Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:262-289 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa83bf53ffc723a6a34b25798d62a32fbfd1331936357b57adc106ecdd42b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 47 shared lines): Sources/ChatterboxTTS/S3GenVocoder.swift:397-486 | Sources/CosyVoiceTTS/HiFiGAN.swift:508-633 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:593-678 \u2014 These 3 members are variants of one another: a block of 47 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"424e8b4a03bebb52a50b26a4a04a1cb196400829bb947350244de88f793c90d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): Sources/Qwen3ASR/CoreMLASRModel.swift:108-243 | Sources/Qwen3ASR/CoreMLASRModel.swift:260-363 \u2014 These two members are variants of one another: 47 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLASRModel.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0121e516250c199d4831e5eae90de1af05190a69c503b97dd1377ce516cb3659"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (38 shared lines): Sources/KokoroTTS/HindiPhonemizer.swift:49-109 | Sources/KokoroTTS/JapanesePhonemizer.swift:85-153 \u2014 These two members are variants of one another: 38 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/HindiPhonemizer.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fe50a9fef519d02f987920cf5b789b35cbe65a31f7861bbe860c83c3aa4ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (35 shared lines): Sources/CosyVoiceTTS/FlowMelExtractor.swift:83-136 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:47-127 \u2014 These two members are variants of one another: 35 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/FlowMelExtractor.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d521510ba0a5aac7709ea6dd7eca14794bcdd689eeb1d4f90e640c46a87b9617"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (32 shared lines): Sources/AudioCLILib/SpeakCommand.swift:1487-1542 | Sources/AudioCLILib/SpeakCommand.swift:1544-1597 \u2014 These two members are variants of one another: 32 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1487}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d15e54303a5d4b40beaef4721bb48b4c131a48afa2a9972acb517179ab504f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (30 shared lines): Sources/Qwen3ASR/Qwen3ASR.swift:729-823 | Sources/Qwen3ASR/Qwen3ASR.swift:825-957 \u2014 These two members are variants of one another: 30 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"b22202d645330683f2826572140b58453f7ccd7969d178acc8ee277e1af884af"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): Sources/NemotronStreamingASR/StreamingSession.swift:46-153 | Sources/ParakeetStreamingASR/StreamingSession.swift:52-128 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cd0901cfcce4c137e697277b80a0a03577c5661a76656cdd4b5e787ee7fe4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (25 shared lines): scripts/qwen3_tts_coreml/convert_coreml.py:274-344 | scripts/qwen3_tts_coreml/convert_coreml.py:371-431 \u2014 These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fdfd574fbbff8ac85c2a469f5c5ad7a53045cc484c3e344aa09f9f41356720"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:158-217 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:416-476 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a319fb1f15c2d6911f532358f3cdb45c6b8415bfedc031dc783e11ed38bfbf0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:76-95 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:114-131 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6468adfa0e7bd5ea3f4a5243f2898ddb29c2d7192613dc83aaef659c398e98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:186-199 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:161-174 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5df0d9a9243c270ac00f0a662b252ca8cdb4ac607584d7706388170846ba99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Sources/MLXCommon/SDPA.swift:18-37 | Sources/MLXCommon/SDPA.swift:42-59 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/SDPA.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"5636392462f389125b3dc07895e03ec7ad0810c33444cb9a1c219fa43e160b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Sources/HibikiTranslate/HibikiWeightLoading.swift:229-240 | Sources/PersonaPlex/WeightLoading.swift:244-256 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe68da6b2a903bfe49280049c7597a7ae83213395f1781209543c8edb34fd0e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/F5TTS/F5TTSFlow.swift:232-301 | Sources/F5TTS/F5TTSFlow.swift:503-522 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSFlow.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb1f801090b5caf1601484c5ff4fc3c10367a13dae6cf9547f60660c3b857b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/Qwen3TTS/LocalModelConfiguration.swift:174-208 | Sources/Qwen3TTS/LocalModelConfiguration.swift:244-268 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/LocalModelConfiguration.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba80b4af15d309a74063d0cd3b4d8f5d8f34d7d49279b6ae2b11f7c0bcb566e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/FishAudioTTS/FishAudioCodec.swift:92-108 | Sources/FishAudioTTS/FishAudioCodec.swift:110-126 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7ef95f689a80ed4acccf7d2c96ae6e6bd5e6e43406c76f0ad866e236680e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:64-76 | Sources/IndicMioTTS/MioCodecGlobalEncoder.swift:39-51 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c461b31fc5bb84e6116a656eeae3c64097c7bb460fe37f06ec65fd946ea98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/HibikiTranslate/HibikiWeightLoading.swift:206-220 | Sources/PersonaPlex/WeightLoading.swift:220-235 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"879b3a365c229bc95c6b28ad2a3ed22d218a3dd53561963ca4acfdcc52c26741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:303-368 | Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:427-526 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45e4a16b6a16498476a84864e8b135d4f31a48bd71f182ccf4e652afa8131e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Sources/VoxCPM2TTS/AudioVAE.swift:72-97 | Sources/VoxCPM2TTS/AudioVAE.swift:122-145 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/AudioVAE.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"063060413f2eb9428b76a301963dfe94a1b60ce86d18627adfc48b86102101f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Sources/FlashSR/UNet.swift:72-79 | Sources/FlashSR/VAE.swift:148-156 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbc50b529c7edcbe86303c5cba6a85fd2768ad1509b2e5b487c6a8c47755aa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/Qwen3Chat/Qwen3ChatConfig.swift:78-130 | Sources/SpeechVAD/SortformerConfig.swift:275-331 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Qwen3ChatConfig.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e81fb004722efb602763f3aed43df7c66030716c2f8fd3aa4015e61b71d8ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/MLXCommon/WeightLoading.swift:66-86 | Sources/Qwen3Chat/Qwen35WeightLoading.swift:155-194 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be2dcc28fa9a12346fc30e4860d41e80cb873edef9390442fc7d19d4ef4007b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Sources/FishAudioTTS/FishAudioCodec.swift:60-74 | Sources/FishAudioTTS/FishAudioCodec.swift:76-90 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5263087c1e1ffd9b4aea02fd6886773c3c795f27a5e0fef471a8a726465ac984"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Sources/PersonaPlex/Conv.swift:16-31 | Sources/PersonaPlex/Conv.swift:58-74 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Conv.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee50e650c8c0816914dfe41080bd23a9527ab2ea597aa30bb19d8ed10d43f4c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:114-217 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:142-229 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:132-225 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:58-148 | Sources/ParakeetASR/MelPreprocessor.swift:56-190 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:62-185 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:192-277 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:284-405 | Sources/Qwen3ASR/AudioPreprocessing.swift:169-317 | Sources/Qwen3ASR/AudioPreprocessing.swift:347-470 | Sources/SpeechVAD/MelFeatureExtractor.swift:120-227 | Sources/SpeechVAD/SortformerMelExtractor.swift:133-216 | Sources/SpeechWakeWord/KaldiFbank.swift:221-252 \u2014 These 13 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 13 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"067c9312592182d50b99dfdf71f1304f9fa513fd86bc3f8842c997bb949dbc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): Sources/AudioCLILib/TranscribeCommand.swift:206-230 | Sources/AudioCLILib/TranscribeCommand.swift:232-256 | Sources/AudioCLILib/TranscribeCommand.swift:393-425 | Sources/AudioCLILib/TranscribeCommand.swift:427-465 | Sources/AudioCLILib/TranscribeCommand.swift:467-504 | Sources/AudioCLILib/TranscribeCommand.swift:506-532 | Sources/AudioCLILib/TranscribeCommand.swift:534-573 | Sources/AudioCLILib/TranscribeCommand.swift:575-598 | Sources/AudioCLILib/TranscribeCommand.swift:608-637 | Sources/AudioCLILib/TranscribeCommand.swift:639-667 \u2014 These 10 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 10 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36d806ea54c35c0f1a923775c15a02285d074e4a849f50806cd391b66fb3493"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): Sources/CanaryASR/CanaryASR\u002BLoading.swift:12-95 | Sources/MossTranscribe/MossMLXRuntime.swift:107-153 | Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:91-140 | Sources/NemotronStreamingASR/NemotronStreamingASR.swift:219-268 | Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:58-129 | Sources/OmnilingualASR/OmnilingualASR.swift:62-134 | Sources/ParakeetASR/ParakeetASR.swift:336-463 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:153-221 | Sources/SourceSeparation/SourceSeparation.swift:186-253 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b08b2e8080ed0db4fa01fc86422cd136e10ade0e188cc7771776236ac358d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/CSM/CSMModel.swift:84-105 | Sources/HibikiTranslate/HibikiDepformer.swift:117-152 | Sources/HibikiTranslate/HibikiTemporalTransformer.swift:41-86 | Sources/PersonaPlex/Depformer.swift:92-128 | Sources/PersonaPlex/MimiTransformer.swift:48-86 | Sources/PersonaPlex/TemporalTransformer.swift:48-86 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CSM/CSMModel.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bb1ebde049d4173e94f619bf5f250aeb51d5d2caac490613343bccd698c7a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/CanaryASR/MelPreprocessor.swift:59-160 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:58-148 | Sources/ParakeetASR/MelPreprocessor.swift:56-190 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:62-185 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:192-277 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:284-405 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/MelPreprocessor.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2791d405499b707bf8161821ed15c5a89aa3cf9cc00f3517edd29a0c4fe1fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Sources/CosyVoiceTTS/LLM.swift:418-459 | Sources/Qwen3ASR/FloatTextDecoder.swift:183-225 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:202-251 | Sources/Qwen3TTS/CodePredictor.swift:183-221 | Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:368-391 | Sources/Qwen3TTS/Talker.swift:237-281 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"858fb8a49b0e01c05e668a4fdcee911c5c5e7441e9a6c604dd75b5c1dd0688cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/CosyVoiceTTS/LLM.swift:230-249 | Sources/Qwen3ASR/FloatTextDecoder.swift:149-165 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:156-174 | Sources/Qwen3TTS/CodePredictor.swift:115-131 | Sources/Qwen3TTS/Talker.swift:126-145 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2120f68dab25f068c119b65a762012e8e1347a904f69651bd0e7508cfe679f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift:93-108 | Sources/IndicMioTTS/IndicMioWavLM.swift:429-444 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:549-564 | Sources/MLXCommon/WeightLoading.swift:247-264 | Sources/Qwen3TTS/TTSWeightLoading\u002BEncoder.swift:86-93 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5083a9bbce9c4c8aa028831621ac4ff4a5bb8c733b801df4a4cb4c65a70ef898"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Sources/NemotronStreamingASR/NemotronStreamingASR\u002BProtocols.swift:7-14 | Sources/OmnilingualASR/MLX/OmnilingualASRMLXModel\u002BProtocols.swift:8-15 | Sources/OmnilingualASR/OmnilingualASR\u002BProtocols.swift:9-16 | Sources/ParakeetASR/ParakeetASR\u002BProtocols.swift:7-14 | Sources/ParakeetStreamingASR/ParakeetStreamingASR\u002BProtocols.swift:8-15 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR\u002BProtocols.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"4298a5c15013eeaf37bd855b12ca1f7cff535c0fc5e72b27fd5c625a722db266"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/AsrBenchmark/EngineNemotron.swift:17-27 | Sources/AsrBenchmark/EngineNemotron.swift:64-84 | Sources/AsrBenchmark/EngineOmnilingual.swift:17-27 | Sources/AsrBenchmark/EngineParakeet.swift:17-31 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineNemotron.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"82514294a0bc6a8573fd26d1a55a119de9e88aeec40c92f667f9201086197220"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/AudioCLILib/DiarizeCommand.swift:83-124 | Sources/AudioCLILib/EmbedSpeakerCommand.swift:24-88 | Sources/AudioCLILib/VadCommand.swift:44-122 | Sources/AudioCLILib/VadStreamCommand.swift:47-146 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9086037795827cb1d88b267a4dd07d910b07605cae84b6f72fff2f3b226012"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/AudioCLILib/DiarizeCommand.swift:418-436 | Sources/AudioCLILib/DiarizeCommand.swift:438-451 | Sources/AudioCLILib/VadCommand.swift:124-137 | Sources/AudioCLILib/VadStreamCommand.swift:158-175 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adc158cf56640b6ea645d6b254302cc679270f47706de3a3432a1e9192d8640"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/CanaryASR/MelPreprocessor.swift:31-52 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:28-54 | Sources/ParakeetASR/MelPreprocessor.swift:26-49 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:31-56 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/MelPreprocessor.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c516655f23f65ee4e6708a4b880c67486ea830dd3b98bd0140a5391f6611315"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/FishAudioTTS/FishAudioTokenizer.swift:31-61 | Sources/HiggsTTS/HiggsTTSTokenizer.swift:57-76 | Sources/IndicMioTTS/IndicMioTokenizer.swift:12-41 | Sources/OmniVoiceTTS/OmniVoiceTokenizer.swift:28-47 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioTokenizer.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"da03f77b6d34d29f7387fd69b567377d2cb6610094e8d0b8cd3eb70d4f34431b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/FishAudioTTS/FishAudioTokenizer.swift:83-112 | Sources/Qwen3Chat/ChatTokenizer.swift:46-85 | Sources/Qwen3Chat/Gemma4Tokenizer.swift:39-87 | Sources/VoiceChat/VoiceChatTokenizer.swift:88-126 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioTokenizer.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4690eb1c96213c9c6a386a03c3bdf2fe8c6d1c2c08866c1d893b13490f04d11"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/HibikiTranslate/HibikiWeightLoading.swift:113-138 | Sources/HibikiTranslate/HibikiWeightLoading.swift:149-199 | Sources/PersonaPlex/WeightLoading.swift:119-148 | Sources/PersonaPlex/WeightLoading.swift:160-216 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d504819e88068239ad520ddb6b38ff6b6cd57aa88aafd42646bc9baf238598e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/NemotronStreamingASR/NemotronStreamingASR.swift:381-394 | Sources/ParakeetASR/ParakeetASR.swift:538-561 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:223-236 | Sources/SpeechWakeWord/SpeechWakeWord.swift:326-336 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4add7e8c8711a5cc668fb847492aa69fc15461e479f5f4034c3c69016c044f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Qwen3ASR/FloatTextDecoder.swift:50-68 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:24-54 | Sources/Qwen3TTS/CodePredictor.swift:24-51 | Sources/Qwen3TTS/Talker.swift:29-56 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0c66293e5f75e0824f64001707242f7d2777126da001c369a6dba87c43ef78"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Sources/Qwen3ASR/WeightLoading.swift:232-255 | Sources/Qwen3ASR/WeightLoading.swift:257-273 | Sources/Qwen3TTS/TTSWeightLoading.swift:103-133 | Sources/Qwen3TTS/TTSWeightLoading.swift:181-207 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/WeightLoading.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"06669f6c16dffeb1eeb67b1eb98bb9ff5ca1ab7819106df4e3849a7c16e83086"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): scripts/render_benchmark_dashboard.py:192-232 | scripts/render_benchmark_dashboard.py:236-266 | scripts/render_benchmark_dashboard.py:270-300 | scripts/render_benchmark_dashboard.py:482-503 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/render_benchmark_dashboard.py"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d8ee0c79ecc68cadfaa91564d0943c928777916d871ee01aa6c6a2e4af3895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49\u201354 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:151-199 | Sources/PersonaPlex/WeightLoading.swift:163-216 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:151\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4458a984ba0cdaa9c4f56ace113fec3a90c8b4671956bf3a2971ab4c1861b51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201350 lines \u00D7 2): Sources/Qwen3ASR/AudioPreprocessing.swift:264-313 | Sources/Qwen3ASR/AudioPreprocessing.swift:422-460 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/AudioPreprocessing.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fc7e0354ba07235bb0df16faecb052b1b89983cccf0307acea2a0da5ffdf79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201348 lines \u00D7 2): Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:566-613 | Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:619-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:566\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c6985b4a503481a48fdab239520200b694c5c99e13a6e3203bdc59f209926c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38\u201345 lines \u00D7 2): Sources/MossTranscribe/MossCoreMLRuntime.swift:297-341 | Sources/WhisperASR/WhisperASR.swift:53-90 \u2014 before extracting anything, compare \u0060Sources/MossTranscribe/MossCoreMLRuntime.swift\u0060 and \u0060Sources/WhisperASR/WhisperASR.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 100 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MossTranscribe/MossCoreMLRuntime.swift:297\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c7b174adacc0e1f4651b381e7647fda6c8aefd8697995e06c192ea40a01249"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40\u201342 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:934-975 | Sources/SpeechVAD/DERScoring.swift:378-417 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/DiarizationBenchmark/DiarizationBench.swift:934\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"202fcefec18c07dc33c136509a641f97fc794efdcbba4fb6f324768fddae46a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201341 lines \u00D7 2): Sources/VibeVoiceTTS/Models/VibeVoice15BModel.swift:109-138 | Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:617-657 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoice15BModel.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d215d4859de5fbc28c55e393b7414887a856af58cf4becafcbb966eba346fde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201340 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:310-343 | Sources/PersonaPlex/TemporalTransformer.swift:335-374 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3e217b3285a79685669747eaa60182e2ca7e3ef9bca9e7377fb1a44ea89eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201340 lines \u00D7 2): Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift:71-107 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:88-127 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed786ec17984d670a9a477454314e1947fa48fb497a0ac054affaf85db3a0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): Sources/MossTranscribe/MossMLXRuntime.swift:117-153 | Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:104-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MossTranscribe/MossMLXRuntime.swift:117\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXRuntime.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec2248958050eee6d7c0c6fa34255852660260f6dad73b527414a618312141b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201336 lines \u00D7 2): Sources/Qwen3ASR/CoreMLASRModel.swift:181-216 | Sources/Qwen3ASR/CoreMLASRModel.swift:332-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLASRModel.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bac8f5017fa2b5181c108671a6f75de4ebdb88168edb27fe04429013b043bb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201334 lines \u00D7 2): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:188-217 | Sources/SpeechVAD/MelFeatureExtractor.swift:194-227 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/SpeechVAD/MelFeatureExtractor.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:188\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a944d571be18b033eaa5b092065baf5d7b7167748b06521d52c17119090e546"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201334 lines \u00D7 2): Sources/SpeechVAD/FireRedVAD.swift:131-157 | Sources/SpeechVAD/FireRedVAD.swift:184-217 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/FireRedVAD.swift:131\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/FireRedVAD.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"324f428e97d9af73052232cb8d9d3f0c5be7b5c35d7c9dbe97f13d948c5e1eae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201333 lines \u00D7 3): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:189-217 | Sources/ParakeetASR/MelPreprocessor.swift:232-264 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:447-476 \u2014 before extracting anything, compare \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:189\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a0327609fc6e08f94d2f642e446765953085745757b9a8c8e4755a63ffc9f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201333 lines \u00D7 3): Sources/ChatterboxTTS/S3GenVocoder.swift:452-475 | Sources/CosyVoiceTTS/HiFiGAN.swift:584-616 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:648-655 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ab588701fdbfe7587eed95bf42095694328e0de4315b31d505ad52d8bed803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201332 lines \u00D7 3): Sources/Qwen3ASR/FloatTextDecoder.swift:74-97 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:60-91 | Sources/Qwen3TTS/CodePredictor.swift:57-80 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b751c7b7fa083287ba374b1fb82e6ca9f4ee7a9f1bf36c0067729356c8289a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxFlashTokenizer.swift:80-110 | Sources/ChatterboxTTS/MTLTokenizer.swift:350-380 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashTokenizer.swift:80\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashTokenizer.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2b8eebed0dc0c611957b0f32e5dbbd824c9f2fe86025d3f1643828acc3bb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201331 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:232-257 | Sources/PersonaPlex/TemporalTransformer.swift:261-291 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee7c9804982ce9ab9ec02d991899afc3ad4cabff145f5edb5087402e7984789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:280-308 | Sources/PersonaPlex/TemporalTransformer.swift:298-327 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef7672853284fb4cd57e2b91415121e7d46e66b59e6a1eb28b509a3d7c2a430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201330 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:113-138 | Sources/PersonaPlex/WeightLoading.swift:119-148 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2249a49b789766f99fc241fc86c9cc631e7a389f8077b4602b04f02723250d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): Sources/NemotronStreamingASR/Vocabulary.swift:249-276 | Sources/ParakeetStreamingASR/Vocabulary.swift:48-77 \u2014 \u0060Sources/NemotronStreamingASR/Vocabulary.swift\u0060 and \u0060Sources/ParakeetStreamingASR/Vocabulary.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/Vocabulary.swift:249\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/NemotronStreamingASR/Vocabulary.swift:248\u0060 calls \u0060isSpecialToken\u0060 and \u0060Sources/ParakeetStreamingASR/Vocabulary.swift:47\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"959a72defa0bc574f13e995e458cde23457f618e52e8ca33b3a63e9d4efa9e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201330 lines \u00D7 2): Sources/PersonaPlex/Sampling.swift:57-86 | Sources/PersonaPlex/Sampling.swift:93-119 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/Sampling.swift:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Sampling.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb14d6f733bfc9cc68b3ba492570cf78b9d08ea6b44025ed04d3e0788c169b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 2): Sources/Qwen3ASR/FloatTextDecoder.swift:183-207 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:202-230 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8dc05315eda3892110aeb7c7dc498d8449fbdbc0d4de23b742ac1c86390230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:405-431 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:480-508 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/Inference/WeightLoader.swift:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"d971db2ee53e07b8774df907acf850c3577b45c199ed396eaf0e31a50e807d87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201328 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:207-234 | Sources/PersonaPlex/PersonaPlex.swift:683-698 | Sources/PersonaPlex/PersonaPlex.swift:1078-1093 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:207\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ca35703487f231decbd65e769217ed24a728a778e83a417eec1ba33fcb28f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:329-356 | Sources/PersonaPlex/PersonaPlex.swift:761-785 | Sources/PersonaPlex/PersonaPlex.swift:1146-1171 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:329\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8c94c3ab73f42851182cc87d06f42e664a98874e0f1587611849bfeaa9a134"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): Sources/SpeechVAD/DiarizationHelpers.swift:157-184 | Sources/SpeechVAD/DiarizationHelpers.swift:258-284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/DiarizationHelpers.swift:157\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SpeechVAD/DiarizationHelpers.swift:187\u0060 calls \u0060formUnion\u0060 and \u0060Sources/SpeechVAD/DiarizationHelpers.swift:285\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationHelpers.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2af48c0d644a345320211c5214fe5666d0fbcebf5feec538caf8504192f251"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201326 lines \u00D7 3): Sources/ChatterboxTTS/S3GenVocoder.swift:442-456 | Sources/CosyVoiceTTS/HiFiGAN.swift:566-591 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:634-647 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:442\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"a85e6af3304b420566b8fa2034d31eae64b16658c738d7536f9344368cae40e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201326 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:400-425 | Sources/PersonaPlex/PersonaPlex.swift:824-841 | Sources/PersonaPlex/PersonaPlex.swift:1232-1253 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:400\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"9173a462695467b040d79d749f59c7c14c6e9d36d501f6685953e5ede8758cb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): Sources/KokoroTTS/KokoroTTS.swift:369-394 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:98-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/KokoroTTS/KokoroTTS.swift:367\u0060 calls \u0060info\u0060 and \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:97\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/KokoroTTS.swift"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"172af3f1c50ccc97c465e83651b7e1b41591d6a131c2baec0d4d8b7d8eeb568f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201326 lines \u00D7 2): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:384-403 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:437-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29aae1384fedaee0ad577e8f2ebd0ba83477cdc1c5a6acf206b58ad138b9cf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1224-1248 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1281-1306 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1281\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1222\u0060 calls \u0060dim\u0060, \u0060MLXArray\u0060 and \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1281\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdb89495e0cf1a71b58b7d3c29fba7182fa677e8d9a2bebfaf15cd27b7719ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201325 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronStreamingASR.swift:153-170 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:94-118 \u2014 \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift\u0060 and \u0060Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 118 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift:153\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb83d6a3eb24c34e48b4b747f4ccc43be322ba43fc4f9033eaf3bb78ef4b9d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:98-118 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:222-246 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c99a99bcde9abd14d3ce775860db49053ea9bfc71b99b09db5e122899aad05a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201324 lines \u00D7 4): Sources/PersonaPlex/PersonaPlex.swift:223-246 | Sources/PersonaPlex/PersonaPlex.swift:692-708 | Sources/PersonaPlex/PersonaPlex.swift:1087-1104 | Sources/PersonaPlex/PersonaPlex.swift:1391-1407 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:223\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5788e307d777320bfd10fd2fbfd651bb9a4e52fd406d4370867281715fdd9ae9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 4): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:59-81 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:63-83 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:193-214 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:285-305 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e943690f59fd54a64c9c1b315cc5a86b788fb6a58a9c34a5a8c0668ba77595a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 3): Sources/MADLADTranslation/MADLADTranslator.swift:78-99 | Sources/Qwen3Chat/MLXGenerator.swift:129-151 | Sources/Qwen3Chat/Qwen35CoreMLChat.swift:79-101 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060MADLADTranslationConfig\u0060 in one and \u0060Qwen3ChatConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3Chat/MLXGenerator.swift:126\u0060 calls \u0060acquireDefault\u0060, \u0060release\u0060 and \u0060Sources/Qwen3Chat/Qwen35CoreMLChat.swift:78\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTranslator.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"177933e800f37dbd7e780710531f274b0499db3f9f6bc63c1a1ccee36b6907ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201323 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxFlashTokenizer.swift:120-139 | Sources/ChatterboxTTS/MTLTokenizer.swift:395-417 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashTokenizer.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"27991d1fe2866f703930e1e9dae10fb15cc4116541adf228f8612f6315488369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): Sources/MagpieTTSCoreML/CoreMLHelpers.swift:132-152 | Sources/MagpieTTSCoreML/NpyReader.swift:196-218 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/CoreMLHelpers.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf71dc2c87b4c797bfb4875d0a18c1ef612f1059acc37616a8b3fdb568f52dea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201323 lines \u00D7 2): Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:102-124 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:318-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:102\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"c987f25afdfc2f86a283eb34c332a6f872a262a6c4a379478f6d41930dbd8c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Sources/VoxtralASR/VoxtralLanguageModel.swift:67-89 | Sources/VoxtralTTS/LanguageModel.swift:67-89 \u2014 before extracting anything, compare \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift\u0060 and \u0060Sources/VoxtralTTS/LanguageModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift:67\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralLanguageModel.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b2a2dd9427e637c3178152cef26ccf353d7b6a4749a4009dfb70ffce0a071f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201322 lines \u00D7 7): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:156-174 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:180-194 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:166-180 | Sources/Qwen3ASR/AudioPreprocessing.swift:217-238 | Sources/Qwen3ASR/AudioPreprocessing.swift:388-406 | Sources/SpeechVAD/MelFeatureExtractor.swift:162-180 | Sources/SpeechVAD/SortformerMelExtractor.swift:170-188 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift:180\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"828612940560c7d9ca47cd65200a369d53e35071992ab9540dfbffd438344734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/AsrBenchmark/EngineMoss.swift:28-49 | Sources/AsrBenchmark/EngineMoss.swift:91-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineMoss.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e04bf00b902815cadc8117b6fbd3724ced19083158ce3d21f315ebb2f99277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): Sources/AudioCommon/WAVWriter.swift:16-37 | Sources/AudioCommon/WAVWriter.swift:61-79 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060sampleRate\u0060 to \u0060Int = 24000\u0060 in one and \u0060Int = 44100\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/WAVWriter.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e4fa270c301ed1a27f298823b238805e420520bc9fb90c528aa36c1677af71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201322 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:585-597 | Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:604-625 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf5d471f4002ccdd1d0fbc28438b8029ed3bff0efa090888831a8a8768fb889"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201322 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:89-106 | Sources/PersonaPlex/WeightLoading.swift:69-90 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:89\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8998fe3bcb3c4e08f223639357fc28be3b5b910f212296dd7125585a1509748d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201322 lines \u00D7 3): Sources/HiggsTTS/HiggsTTSWeightLoading.swift:25-35 | Sources/IndicMioTTS/IndicMioQwen3.swift:224-245 | Sources/Qwen3Chat/Qwen35WeightLoading.swift:213-217 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HiggsTTS/HiggsTTSWeightLoading.swift:25\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSWeightLoading.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4448c613b57a9f3f5c9b8c2a9557e98d20566a155d34ca12ff5f01dd0bbafde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201322 lines \u00D7 2): Sources/IndicMioTTS/IndicMioTTSModel.swift:56-77 | Sources/Qwen3Chat/Qwen3DenseChat.swift:64-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioTTSModel.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d85bb84fdbecb6031967fe8d064bce7f0ffabae04c125a4c706febbad1da2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201322 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:451-472 | Sources/PersonaPlex/PersonaPlex.swift:1514-1528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:451\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"985e2623df9978e3a884508982ba319748a669a37167d6e8692790719516189c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Sources/Qwen3TTS/CodePredictor.swift:25-46 | Sources/Qwen3TTS/Talker.swift:30-51 \u2014 before extracting anything, compare \u0060Sources/Qwen3TTS/CodePredictor.swift\u0060 and \u0060Sources/Qwen3TTS/Talker.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060CodePredictorConfig\u0060 in one and \u0060TalkerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/CodePredictor.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb272ac916b1421dd9d2850eaab462aa9ce0744c475b9f722887e94061d0b9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201321 lines \u00D7 4): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:46-64 | Sources/MossTranscribe/MossCoreMLRuntime.swift:318-338 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:60-69 | Sources/WhisperASR/WhisperASR.swift:70-87 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/MossTranscribe/MossCoreMLRuntime.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:46\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4363ae89560f02737c0344a5fdd7087166f40639f276f7617131481aed9d3d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:43-62 | Sources/SpeechVAD/MelFeatureExtractor.swift:45-65 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/SpeechVAD/MelFeatureExtractor.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04f9b679d719525fdba4a1936853a3074c9417f0866e82dec1f416ad0c8d1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:73-92 | Sources/PersonaPlex/Depformer.swift:48-68 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:73\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/HibikiTranslate/HibikiDepformer.swift:70\u0060 calls \u0060precondition\u0060 and \u0060Sources/PersonaPlex/Depformer.swift:47\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"8278409ecd08c41b1313bcdf58c7ca0b8cde7f9ef4f15d16f12aa11d9a870029"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:120-138 | Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift:136-156 \u2014 \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift\u0060 and \u0060Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8fc2feeb18dd714f7fd2115436d4c33a0bcdd820a65ad72153f8cf54dd975f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Sources/SpeechVAD/SileroVAD.swift:258-278 | Sources/SpeechVAD/WeSpeaker.swift:108-128 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/SileroVAD.swift\u0060 and \u0060Sources/SpeechVAD/WeSpeaker.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/SileroVAD.swift:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SileroVAD.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae1233eca1435ff0e1f32dcb1d096df7b3c2903b9878a5405505e72646c2284"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201321 lines \u00D7 3): Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:314-334 | Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:477-496 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:570-572 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e606ab561f4124cb1fc2def7bed12359c0c4f759a3cd9921a53187c48f560371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201320 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:477-496 | Sources/PersonaPlex/PersonaPlex.swift:862-870 | Sources/PersonaPlex/PersonaPlex.swift:1264-1274 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:477\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a2ca8a6fb142c56b70a7b5ea1af8bbd4eba4ba0a33e30f2653ad134c455eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): Sources/SpeechVAD/FireRedVAD.swift:71-90 | Sources/SpeechVAD/SileroVAD.swift:292-309 | Sources/SpeechVAD/WeSpeaker.swift:142-159 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/SileroVAD.swift\u0060 and \u0060Sources/SpeechVAD/WeSpeaker.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/FireRedVAD.swift:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/FireRedVAD.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4208cc746235ec4bcd9e0df9c12b16f3894bb35d7c3ff2dae7bcc2a9c55ed783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 3): Sources/SpeechVAD/SileroWeightLoading.swift:17-35 | Sources/SpeechVAD/WeSpeakerWeightLoading.swift:17-32 | Sources/SpeechVAD/WeightLoading.swift:17-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/SileroWeightLoading.swift:17\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060model\u0060 to \u0060SileroVADNetwork\u0060 in one and \u0060WeSpeakerNetwork\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SileroWeightLoading.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"992414f5c0c971a8bc79c6b98418b7007eab83a41c914c356fe5fc9eff74278f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/AudioCommon/AudioIO.swift:258-277 | Sources/AudioCommon/FullDuplexAudioIO.swift:377-396 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioIO.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"b227050356c732063df948cf335d792749d07d514b5eb84902de242ac89d7f60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:1273-1288 | Sources/AudioServer/AudioServer.swift:1483-1502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8f3f218808b04ca6a1d6186acdd8d600b52e393098994b6b1e2d2af8db7403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/CosyVoiceTTS/LLM.swift:230-249 | Sources/Qwen3TTS/Talker.swift:126-145 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3TTS/Talker.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f55fdce13a246735fd69ce1832cc9bdbd57955cec852b18b1871d276281f96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:470-489 | Sources/DiarizationBenchmark/DiarizationBench.swift:521-540 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6afe5bbcb8fbf33b3d307d2d94bc26a400f6bcbd97e6910efe8e4aa0c1fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 2): Sources/FlashSR/Mel.swift:160-179 | Sources/MLXCommon/SlaneyMel.swift:130-146 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Mel.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cec380c4fd8e63cbaff2e886707390bc578eaf15393491c9ecdb5ea8cb37f46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/KokoroTTS/HindiPhonemizer.swift:53-71 | Sources/KokoroTTS/JapanesePhonemizer.swift:86-105 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/HindiPhonemizer.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a58139afd20bbc1193737353d2e4e6050c26b8d31e21d219ec13de3b601ffc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 2): Sources/KokoroTTS/Phonemizer.swift:292-311 | Sources/KokoroTTS/Phonemizer.swift:327-344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KokoroTTS/Phonemizer.swift:292\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060fallback\u0060 to \u0060LatinPhonemizer\u0060 in one and \u0060HindiPhonemizer\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"356ca45ea9f649c189f4ac13f12c392953659cb10da95bff5f0ae7983d4cb2cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/MossTranscribe/MossMLXAudioModel.swift:43-62 | Sources/VoxtralASR/VoxtralAudioEncoder.swift:27-45 \u2014 before extracting anything, compare \u0060Sources/MossTranscribe/MossMLXAudioModel.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralAudioEncoder.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXAudioModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0e049d44dfe92c3b28fa0cbefcef941c15b4a6bb3169072c3b2dc6eeaa8925"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronMLXNetwork.swift:161-180 | Sources/VoiceChat/VoiceChatEncoder.swift:173-192 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronMLXNetwork.swift:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXNetwork.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc0f37cc59cf80f9288d076ab16b39d1ee85a7a2cefc907481c994617261b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201320 lines \u00D7 2): Sources/Qwen3ASR/AudioPreprocessing.swift:244-263 | Sources/Qwen3ASR/AudioPreprocessing.swift:408-421 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/AudioPreprocessing.swift:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/AudioPreprocessing.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b06b9852f5a5dffc5dd1d9a0666405cad227681d07f51b6fc827d7861cd6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/Qwen3TTS/Qwen3TTS.swift:529-547 | Sources/Qwen3TTS/Qwen3TTS.swift:1660-1679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/Qwen3TTS.swift:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e5b787870f5423561c65f06d3ce7d134fcf8e18fda42624b730e405b437c086"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:152-171 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:140-159 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"008c41504a599ce50fbabdec3b0ce07bf05a68b2a00cb1069c6db6ac52aabac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): Sources/SpeechVAD/ReDimNet2Speaker.swift:314-333 | Sources/SpeechVAD/SmartTurn.swift:192-210 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift\u0060 and \u0060Sources/SpeechVAD/SmartTurn.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:314\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/ReDimNet2Speaker.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f29068cdd8e7b33ed0c02f7c36c0d8511dbd7142eabd07b148d0ee56a0b6a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 6): Sources/CosyVoiceTTS/LLM.swift:188-204 | Sources/Qwen3ASR/FloatTextDecoder.swift:94-109 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:87-105 | Sources/Qwen3TTS/CodePredictor.swift:77-92 | Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:275-289 | Sources/Qwen3TTS/Talker.swift:87-103 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:188\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:92\u0060 calls \u0060dim\u0060 and \u0060Sources/CosyVoiceTTS/LLM.swift:184\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a22c4416337b185fcdd0ba32fcb00de2456eb8e13b4eeade5ae484f9a1046a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201319 lines \u00D7 3): Sources/CanaryASR/CanaryASR\u002BLoading.swift:39-57 | Sources/OmnilingualASR/OmnilingualASR.swift:86-103 | Sources/ParakeetASR/ParakeetASR.swift:378-393 \u2014 before extracting anything, compare \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift\u0060 and \u0060Sources/OmnilingualASR/OmnilingualASR.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 79 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:39\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0058684e491b45332d3840962a8602ec07cabfb3405714ead30f88d5d0c89ec5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:79-97 | Sources/SpeechVAD/MelFeatureExtractor.swift:82-100 | Sources/SpeechVAD/SortformerMelExtractor.swift:98-116 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/SpeechVAD/MelFeatureExtractor.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"82bd34cd192c0964c45485f8f9dc602cc3b33d1f183ce4e40926bbddd1c9b214"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Sources/F5TTS/F5TTSPrimitives.swift:43-61 | Sources/IndexTTS2TTS/IndexTTS2S2MelFlow.swift:309-327 | Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:1242-1260 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/F5TTS/F5TTSPrimitives.swift:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSPrimitives.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d14340e33db5f20878a737a609be91da498654c07ddcbfb974f228cdbc4fb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 3): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:161-175 | Sources/ParakeetASR/MelPreprocessor.swift:199-217 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:419-433 \u2014 before extracting anything, compare \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:161\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"be12ba85a78639f76caafded0cb16ceb3892f51c54327e4e0f851bcf84d227a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 3): Sources/Qwen3ASR/FloatTextDecoder.swift:149-165 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:156-174 | Sources/Qwen3TTS/CodePredictor.swift:115-131 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cbf332fb79141186c2383601d570d4468bd41cecf6a592ab57735d508a8c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:114-132 | Sources/SpeechVAD/MelFeatureExtractor.swift:120-138 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/SpeechVAD/MelFeatureExtractor.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"7605b4ef946e1addfc21c6d219ccb1e8f11e9ccb5c3d2a684ae56cac76555fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:436-454 | Sources/DiarizationBenchmark/DiarizationBench.swift:691-709 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/DiarizationBenchmark/DiarizationBench.swift:711\u0060 calls \u0060DiarizationResult\u0060 and \u0060Sources/DiarizationBenchmark/DiarizationBench.swift:455\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b728e5682a940d511c31d3ef365f54f5ac4c018c0800229d838595d7a275550"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): Sources/ParakeetASR/MelPreprocessor.swift:150-168 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:153-167 \u2014 before extracting anything, compare \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetASR/MelPreprocessor.swift:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/MelPreprocessor.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f17a994bd99dbf6610bca10fc2600bd32dddfb2459372161014919ccf381a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201319 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:500-518 | Sources/PersonaPlex/PersonaPlex.swift:1541-1551 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:500\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6abe2116da473479bbaa1d73a07a972a84ddcbb939ef2b0db3f8163e32cb763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201319 lines \u00D7 2): Sources/VibeVoiceTTS/Models/VibeVoice15BModel.swift:141-147 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:631-649 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:631\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoice15BModel.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b5264c0cb69851430fa7a3571955679911d55702a1a70a96b5262364771472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift:145-159 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:416-434 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b42cf9966a918e5ac03c71281f105aa3065a0f21d89b79e0d6e88e558f5b51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Sources/VoxtralASR/VoxtralLanguageModel.swift:47-65 | Sources/VoxtralTTS/LanguageModel.swift:47-65 \u2014 before extracting anything, compare \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift\u0060 and \u0060Sources/VoxtralTTS/LanguageModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift:47\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralLanguageModel.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53c098d727d4aa0a020946f6a80f1db780c53810a8a1401c48aa77c5efbd71b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201318 lines \u00D7 7): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:129-141 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:149-160 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:139-150 | Sources/Qwen3ASR/AudioPreprocessing.swift:175-192 | Sources/Qwen3ASR/AudioPreprocessing.swift:353-370 | Sources/SpeechVAD/MelFeatureExtractor.swift:135-147 | Sources/SpeechVAD/SortformerMelExtractor.swift:143-155 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/CosyVoiceTTS/WhisperMelExtractor.swift:155\u0060 calls \u0060max\u0060 and \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:145\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"307dcf7dad6db536e157812a83958aa726b8bbd5081bbc47b4b24fe558901490"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201318 lines \u00D7 6): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:49-63 | Sources/KokoroTTS/KokoroTTS.swift:377-391 | Sources/MossTranscribe/MossCoreMLRuntime.swift:321-338 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:105-119 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:61-68 | Sources/WhisperASR/WhisperASR.swift:73-87 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/KokoroTTS/KokoroTTS.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:49\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc4013d52b21dcba81c43f00068c262e72176ae4aba789d3b292c9cd6b938680"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 4): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:55-69 | Sources/Qwen3ASR/AudioPreprocessing.swift:89-106 | Sources/SpeechVAD/MelFeatureExtractor.swift:58-72 | Sources/SpeechVAD/SortformerMelExtractor.swift:74-88 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/Qwen3ASR/AudioPreprocessing.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d7379739e12617e8fa1184ddfd84b13031008c13fe9581f1a7d0dbe634a5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:43-60 | Sources/IndicMioTTS/IndicMioTTSModel.swift:58-74 | Sources/WhisperASR/WhisperASR.swift:67-84 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/WhisperASR/WhisperASR.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 73 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbba32015f60dd9c66738410eb1e109f65bb811111a6918f94640b31dd0ec188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201318 lines \u00D7 3): Sources/HibikiTranslate/HibikiTranslate.swift:225-242 | Sources/PersonaPlex/PersonaPlex.swift:860-866 | Sources/PersonaPlex/PersonaPlex.swift:1262-1270 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiTranslate.swift:225\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/PersonaPlex/PersonaPlex.swift:869\u0060 calls \u0060item\u0060 and \u0060Sources/HibikiTranslate/HibikiTranslate.swift:242\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTranslate.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3e6438d6070a25cc7c58aa2daf2dd367864e0efda7094b25491c8c34d3e6de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:644-660 | Sources/PersonaPlex/PersonaPlex.swift:1033-1050 | Sources/PersonaPlex/PersonaPlex.swift:1351-1364 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:644\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"44477b0c92b49517d9b6796494b246b95c934d3737e683aca207ca3b65d4ff6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/AudioCLILib/SpeakCommand.swift:1466-1483 | Sources/AudioCLILib/SpeakCommand.swift:1713-1730 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:1466\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"289c3f7c5756c82317ae4d16fc7f65c74946490228ccd4eeb0bfd0e06dd2a8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:235-252 | Sources/AudioServer/AudioServer.swift:322-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioServer/AudioServer.swift:235\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"db96b2c9b145fab316a6153a8f0c70bd5f91cb82ba47b87ece7a2f9ac37a90f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): Sources/CosyVoiceTTS/HiFiGAN.swift:509-526 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:594-609 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/HiFiGAN.swift:509\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/HiFiGAN.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed65ca5f82c8d5ad55879aa477868b6298d754f81b8a0c6900d115969e0f42f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/MossTranscribe/MossWhisperFeatureExtractor.swift:168-185 | Sources/SpeechLanguageID/SpeechBrainFbank.swift:136-153 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MossTranscribe/MossWhisperFeatureExtractor.swift:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossWhisperFeatureExtractor.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5eb4b6832f191039860e1ac83670a452d5550aaeac2468dea0475bae7143a1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201318 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronMLXNetwork.swift:184-201 | Sources/VoiceChat/VoiceChatEncoder.swift:196-206 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXNetwork.swift"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"213c25288e002094f4acaedb594b6afc7e1c9927084578909a2e56fb31c7b8c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:169-186 | Sources/SourceSeparation/SourceSeparation.swift:205-222 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:169\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modelId\u0060 to \u0060String? = nil\u0060 in one and \u0060String = defaultModelId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8100e62acae45ad4fa88afce8b949a92321cbafea773ca1c45c41dd9ba5f8d8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Sources/Qwen3ASR/CoreMLEncoder.swift:158-175 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:466-482 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLEncoder.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"188aed9b9f812fc7362ef23b576cf5d06860052eb22ca0305ecdb49190882d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Sources/Qwen3ASR/CoreMLForcedAligner.swift:71-84 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:133-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:71\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLForcedAligner.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8cd4cc843c4d68a97c436bfdaa72bdbc3f276ae89b4c0195e6063f72faf9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/SpeechEnhancement/SpeechEnhancement.swift:71-88 | Sources/SpeechEnhancement/SpeechEnhancement.swift:100-117 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechEnhancement/SpeechEnhancement.swift:71\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/SpeechEnhancement.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38f2fb64c09f3c726d41830f788ea0ec23986b127c8d70d2ff8314987c4a67a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift:334-351 | Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift:364-381 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7321469c6ed8034b2c6ec63f0de37477a573b6541bf5fa4eea6d14a4b682042"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 6): Sources/CanaryASR/CanaryASR\u002BLoading.swift:23-35 | Sources/MossTranscribe/MossMLXRuntime.swift:114-130 | Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:101-117 | Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:78-90 | Sources/OmnilingualASR/OmnilingualASR.swift:72-84 | Sources/ParakeetASR/ParakeetASR.swift:361-374 \u2014 before extracting anything, compare \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift\u0060 and \u0060Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:21\u0060 calls \u0060info\u0060 and \u0060Sources/MossTranscribe/MossMLXRuntime.swift:113\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a9ae0e10bfbba59d678edecd8967b84892b03c97482d802e15d4ab515a31a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 3): Sources/CanaryASR/CanaryASR\u002BLoading.swift:42-58 | Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:92-103 | Sources/OmnilingualASR/OmnilingualASR.swift:91-104 \u2014 before extracting anything, compare \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift\u0060 and \u0060Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7590798ed14a810c21568f34388b1dad6629247da8a39c50c096de25d1cd11ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/AudioCLILib/VoiceChatCommand.swift:388-404 | Sources/AudioCLILib/VoiceChatCommand.swift:410-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/VoiceChatCommand.swift:388\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfeb669ea2061b4671e03d397788afeb4ebde36d760ebbcb2c74c17b9dd9d373"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:494-510 | Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:577-593 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b96a2324e44bf61d09c684b3aedcf6b2b626883b5bde0c9daf8a9be2c68358"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxTTSModel.swift:283-298 | Sources/OmniVoiceTTS/OmniVoiceTTSModel.swift:82-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxTTSModel.swift:283\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxTTSModel.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c77f0b60ec3315893d4db8c3d0258a83e8033132c581c4c574b53d9af4fa35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:206-220 | Sources/PersonaPlex/TemporalTransformer.swift:210-226 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift:206\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060HibikiTemporalConfig\u0060 in one and \u0060TemporalTransformerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace88f734868ed481e89d2f3a70d49d02a65d3694f05e9de6390831e78a07a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/MossTranscribe/MossCoreMLRuntime.swift:579-595 | Sources/MossTranscribe/MossMLXRuntime.swift:333-349 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fc77a6173b6d5db6ec6e442593889768acf2809c62580c02f59e025174dd80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:38-54 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:40-56 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:38\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060NemotronStreamingConfig\u0060 in one and \u0060ParakeetEOUConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1934c485e06746fbd4c8dc71df8ff2928231283541c052cab7faf3ef15bca574"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:161-175 | Sources/OmnilingualASR/OmnilingualASR.swift:184-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:161\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"745c19b0136594e2930d509a2886da34e6feacce731a5c8a1812fd67cd848fba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/Qwen3ASR/AudioEncoder.swift:313-329 | Sources/Qwen3ASR/AudioEncoder.swift:409-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/AudioEncoder.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1186893c797cf4512b408101885ca59eb84725e6ea36497cb21e1bd5c617d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): Sources/Qwen3ASR/Qwen3ASR.swift:799-815 | Sources/Qwen3ASR/Qwen3ASR.swift:934-949 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/Qwen3ASR.swift:799\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f25d12ef1f69d5389b03871f857fb36140ad780185e2af736153ed0f77c55ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:449-465 | Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:560-576 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:449\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:579\u0060 calls \u0060eval\u0060 and \u0060Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift:466\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoiceStreamModel.swift"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"101ce100217703e1ceaf507df94d1589636ef67468b284876d1354959ae3f200"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:154-170 | Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:338-350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f60f47f922d6d610f11b886d6eae89f71769caa719f7ee17a90514a2ec71d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201316 lines \u00D7 5): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:42-57 | Sources/IndicMioTTS/IndicMioTTSModel.swift:57-72 | Sources/MossTranscribe/MossCoreMLRuntime.swift:312-327 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:56-63 | Sources/WhisperASR/WhisperASR.swift:66-81 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/MossTranscribe/MossCoreMLRuntime.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"555f34acab2cb0f4d3299bdda40f64e44c96506e934b7bd312b75b9bde9ff877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201316 lines \u00D7 4): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:74-84 | Sources/Qwen3ASR/AudioPreprocessing.swift:113-128 | Sources/SpeechVAD/MelFeatureExtractor.swift:77-87 | Sources/SpeechVAD/SortformerMelExtractor.swift:93-103 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/Qwen3ASR/AudioPreprocessing.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:74\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc1f753b7b3065195083c5e918f74b20f3de5bd83149415b593ba5aa3c1cff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201316 lines \u00D7 3): Sources/KokoroTTS/KokoroTTS.swift:373-388 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:101-116 | Sources/Qwen3Chat/Qwen3DenseChat.swift:65-72 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KokoroTTS/KokoroTTS.swift:373\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/KokoroTTS/KokoroTTS.swift:367\u0060 calls \u0060info\u0060 and \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:97\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/KokoroTTS.swift"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"56add0b3343dfc8e23b767769e9c572a49e19243087a927be80ccc544325b154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Examples/PersonaPlexDemo/PersonaPlexDemo/SentencePieceDecoder.swift:109-124 | Sources/AudioCommon/SentencePieceModel.swift:152-167 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/PersonaPlexDemo/PersonaPlexDemo/SentencePieceDecoder.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7fc0ca9c15965d3d58425d68766aec30bbfbfd324943699cae467eaee17aed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift:17-32 | Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift:71-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060variant\u0060 to \u0060CohereTranscribeVariant\u0060 in one and \u0060VoxtralVariant\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc20abf8e91b71f39fa20dd211715b95865b5172bbff8cf3d818e7cf9fc832e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201316 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:51-66 | Sources/SupertonicTTS/SupertonicTTS.swift:61-69 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df6c94526642cc15de9a7e5db72ee13afacf5c22cc0d762cd1ac872ca314311"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxTTSModel.swift:58-71 | Sources/ChatterboxTTS/ChatterboxTTSModel.swift:435-450 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxTTSModel.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f29cb40f362c3eba718e544bb1f286ee7df59c88ba8e01e100c62f6306b464d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/CosyVoiceTTS/FlowMelExtractor.swift:103-118 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:93-108 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/WhisperMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/FlowMelExtractor.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"1685cf82b94ac9322e01bbf5c2eb09c060b3a8634aea0b2299549ec0cf14ea36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Sources/FlashSR/Mel.swift:142-157 | Sources/MLXCommon/SlaneyMel.swift:115-128 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/Mel.swift:142\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Mel.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d4ee5acbf42250243fc1b13c41d9c0879b4ba70be849fd10ad38b52b5e59bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201316 lines \u00D7 2): Sources/MADLADTranslation/MADLADModel.swift:48-63 | Sources/MADLADTranslation/MADLADModel.swift:167-176 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MADLADTranslation/MADLADModel.swift:48\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADModel.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"597076d8eb04347ceb749e53c090aae96b29564c65e6ef0f66e8e66504cea5fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/MLXCommon/WeightLoading.swift:284-299 | Sources/MLXCommon/WeightLoading.swift:306-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/WeightLoading.swift:284\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07beb7b7b083b2a5f38f5c672a108f13ac8b82738da72283178e721a09d8c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Sources/Qwen3TTS/LocalModelConfiguration.swift:178-193 | Sources/Qwen3TTS/LocalModelConfiguration.swift:247-262 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/LocalModelConfiguration.swift:178\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/LocalModelConfiguration.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0630a0f50115b82640bb08d7139ad995b25e801c6a1ff987d094ab2beaa87500"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Sources/VoiceChat/VoiceChatSession.swift:1353-1368 | Sources/VoiceChat/VoiceChatSession.swift:1454-1468 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1353}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3997b5e3aaf1ec3164a0ba31ba7a5d3f12a21f4d4b951f69c3f34046bc910d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 12): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:160-172 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:183-193 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:169-179 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:113-122 | Sources/ParakeetASR/MelPreprocessor.swift:107-121 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:117-130 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:241-250 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:330-339 | Sources/Qwen3ASR/AudioPreprocessing.swift:222-235 | Sources/Qwen3ASR/AudioPreprocessing.swift:392-404 | Sources/SpeechVAD/MelFeatureExtractor.swift:166-178 | Sources/SpeechVAD/SortformerMelExtractor.swift:174-186 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1b5e70a2be7bb43c64de562b3b992a4ad53b477a27d99d32a6b85f22fd67b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 6): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:94-108 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:123-136 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:114-127 | Sources/Qwen3ASR/AudioPreprocessing.swift:150-164 | Sources/SpeechVAD/MelFeatureExtractor.swift:97-111 | Sources/SpeechVAD/SortformerMelExtractor.swift:113-127 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:94\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"821b5b66f287e5cde24bc61fc792ca55340d183a4dbc9d5bc310f27b75256b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): Sources/CanaryASR/CanaryASR\u002BLoading.swift:28-41 | Sources/NemotronStreamingASR/NemotronStreamingASR.swift:233-246 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:166-179 | Sources/SourceSeparation/SourceSeparation.swift:201-215 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:28\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modelId\u0060 to \u0060String? = nil\u0060 in one and \u0060String = defaultModelId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2eeb9ba0f28e89995aead71c03b2e044ca366d9bf93adf7ba88f068ef977ec7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Sources/CosyVoiceTTS/CamPlusPlusSpeaker.swift:63-77 | Sources/SpeechVAD/SileroVAD.swift:302-316 | Sources/SpeechVAD/WeSpeaker.swift:152-166 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/SileroVAD.swift\u0060 and \u0060Sources/SpeechVAD/WeSpeaker.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusSpeaker.swift:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusSpeaker.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bd2d1b832d30dfe7bb07ef86c3fa9dbcb14c0e707a6025690ab4dda631855b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): Sources/CosyVoiceTTS/FlowMelExtractor.swift:40-50 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:31-41 | Sources/Qwen3ASR/AudioPreprocessing.swift:39-53 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/WhisperMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/FlowMelExtractor.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b42b9407a36b631c244bd6dccda04d7e6d167aba8875de6b939cfe2aba265c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 3): Sources/MagpieTTS/MagpieTTS.swift:166-177 | Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift:326-337 | Sources/Qwen3TTS/Qwen3TTS.swift:393-407 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/MagpieTTS.swift:166\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/MagpieTTS.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1250e7bdbae9654243f0872c5cd64dd28c142a2b86fbbf6d908952f7a3b1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201315 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:506-520 | Sources/PersonaPlex/PersonaPlex.swift:876-884 | Sources/PersonaPlex/PersonaPlex.swift:1545-1553 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:506\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f15bec01d09fb33ee0b789336765e82abec9ab0ee613e8bd75262444dc6af7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 3): Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift:144-154 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:223-237 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:415-429 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe3254b2986fb85a3c830c17228dbdd226175045773910dbae5157fe7fce5a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:520-534 | Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:598-612 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift:520\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"f270432d2aeb4ae13c2ca272096fd687095951791a759d9d66f4cc2997dc1480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:349-362 | Sources/CosyVoiceTTS/HiFiGAN.swift:435-449 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:349\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"3195b165d25831632b5a46044a7d0570dc0e24bdb4b8d983ca0236669feeb3c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201315 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:370-380 | Sources/CosyVoiceTTS/HiFiGAN.swift:458-472 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:370\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060hopLen\u0060 to \u0060Int) -\u003E (MLXArray\u0060 in one and \u0060Int ) -\u003E (MLXArray\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"420bce6c0e52a5e9334e560e7118974432c0ee80fe4eba4fbce69401d15c4ccf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:414-426 | Sources/CosyVoiceTTS/HiFiGAN.swift:533-547 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:414\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15560e5aec825298c9cf3f3b73adf2f4421331d312c29d0d177bd68d95e82d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/CosyVoiceTTS/DialogueParser.swift:84-98 | Sources/CosyVoiceTTS/DialogueParser.swift:133-146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/DialogueParser.swift:84\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/DialogueParser.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"163e513b943d15a4a8947f2aee99cbc34a7db16c8c38b527b176f7a1f9e0f144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/CosyVoiceTTS/LLM.swift:165-179 | Sources/Qwen3TTS/Talker.swift:61-75 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3TTS/Talker.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3TTS/Talker.swift:77\u0060 calls \u0060qNorm\u0060, \u0060kNorm\u0060 and \u0060Sources/CosyVoiceTTS/LLM.swift:182\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"04bcdfaf9c1c0fb080bec984b85fdf875b099c7bedd617f517a25573c5cccda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/FlashSR/UNet.swift:399-412 | Sources/FlashSR/UNet.swift:447-461 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/UNet.swift:399\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff3b607b449f0491486e26fad85eec2537699b425d96e19cede830c2ea3ad51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:244-256 | Sources/PersonaPlex/Depformer.swift:215-229 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:244\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060HibikiDepformerConfig\u0060 in one and \u0060DepformerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0829f27339f2adfcd7c41ea8299b88a10f82d9caaf6c5cb494e0a8c8ea1beafb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:109-123 | Sources/IndicMioTTS/MioCodecGlobalEncoder.swift:84-98 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"05fd800a052b1b1951f49fd142e41c558b30e032d5e6ee1a100fbc1adcecf5eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/MLXCommon/SlaneyMel.swift:30-41 | Sources/VoiceChat/VoiceChatTurnTaking.swift:42-56 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/SlaneyMel.swift:30\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/SlaneyMel.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"35376c2eafeeba7a96e3722d8ccee2b66db0ef3b86593509ea1b2e6ced1330a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/MagpieTTS/Downloader.swift:26-40 | Sources/MossTranscribe/MossCoreMLRuntime.swift:314-328 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/Downloader.swift:26\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Downloader.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a5dcb8facdac178235c6d8776c616d6b2c4e0b909ebf63940deffb1b8485c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/MagpieTTSCoreML/LocalTransformer.swift:28-42 | Sources/MagpieTTSCoreML/LocalTransformer.swift:170-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTSCoreML/LocalTransformer.swift:28\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/LocalTransformer.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ecee0cf4a58a6e1199338357371cd75d2bc99ef933dacf5f4c93ba9d341716a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:90-102 | Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift:103-117 \u2014 \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift\u0060 and \u0060Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bef298133e917ff6704bbfcb0ada0627ce3e3b7bc6ee6c58c11e405605e888e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:805-818 | Sources/PersonaPlex/PersonaPlex.swift:1212-1226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:805\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ed79d5f630cd02653a030d5d63a3447f3695e4a55bbf21e56e982c02d73f223"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): Sources/Qwen3Chat/MLXGenerator.swift:240-254 | Sources/Qwen3Chat/Qwen35CoreMLChat.swift:195-207 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/MLXGenerator.swift:240\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0468cd5395a971c0e8498702dec65d65700624788bd33f435d7833c92861b7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/Qwen3Chat/MLXGenerator.swift:347-361 | Sources/Qwen3Chat/Qwen35CoreMLChat.swift:250-261 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/MLXGenerator.swift:347\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8309eccda81b0b375e3a422d82dd03349363f8e3bf9e33fe7164159b88f0c142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/SpeechVAD/Community1DiarizationPipeline.swift:46-60 | Sources/SpeechVAD/Nemotron3CoreMLModel.swift:130-144 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1DiarizationPipeline.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"362939ebb6f53722d092d834e491bc07209bb602b951615b0b9651e06af4a5e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): Sources/SpeechVAD/Nemotron3MLXModel.swift:329-340 | Sources/SpeechVAD/ReDimNet2Speaker.swift:144-158 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:142\u0060 calls \u0060modelCacheDirectory\u0060 and \u0060Sources/SpeechVAD/Nemotron3MLXModel.swift:328\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3MLXModel.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4203ce3d6e502a737c42dc304bb2a45102a389c82f1d0fa043c0a8564b7bd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift:166-180 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:447-461 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e7125467b42fa2b381c670796370c88c913b2ac13707d2c0fd2801cb04bd49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 6): Sources/CanaryASR/CanaryASR\u002BLoading.swift:26-38 | Sources/NemotronStreamingASR/NemotronStreamingASR.swift:231-243 | Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:81-90 | Sources/OmnilingualASR/OmnilingualASR.swift:75-87 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:164-176 | Sources/SourceSeparation/SourceSeparation.swift:199-212 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modelId\u0060 to \u0060String? = nil\u0060 in one and \u0060String = defaultModelId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b9165a765e0494897401532c28f3e8224c211eb729ec677ee13e3a1b53330f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 4): Sources/PersonaPlex/PersonaPlex.swift:249-262 | Sources/PersonaPlex/PersonaPlex.swift:711-720 | Sources/PersonaPlex/PersonaPlex.swift:1107-1116 | Sources/PersonaPlex/PersonaPlex.swift:1410-1419 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:249\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecccfd85c65a98ae0d78022846dd5e2ceb8c27ebad66ff698cb5bffa1deb1be9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 4): Sources/SpeechVAD/Nemotron3MLXModel.swift:330-340 | Sources/SpeechVAD/ReDimNet2Speaker.swift:145-158 | Sources/SpeechVAD/SileroVAD.swift:288-299 | Sources/SpeechVAD/WeSpeaker.swift:138-149 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/SileroVAD.swift\u0060 and \u0060Sources/SpeechVAD/WeSpeaker.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:142\u0060 calls \u0060modelCacheDirectory\u0060 and \u0060Sources/SpeechVAD/Nemotron3MLXModel.swift:328\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3MLXModel.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"a222cb5049893325b447d84bf3c6480369d30eee7602ce3ee9d74bcf055edca2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 3): Sources/AsrBenchmark/EngineNemotron.swift:18-27 | Sources/AsrBenchmark/EngineOmnilingual.swift:18-27 | Sources/AsrBenchmark/EngineParakeet.swift:18-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineNemotron.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d99bee82769764f41c46775db2bdd6278650dc7bfa8d8f0f887e44afb1911b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/AudioCLILib/VoiceChatCommand.swift:390-403 | Sources/AudioCLILib/VoiceChatCommand.swift:412-425 | Sources/AudioCLILib/VoiceChatCommand.swift:439-452 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatCommand.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"725a3d26b40cf504517655e7c79c321d14965c7c73e0cd04d431c26591d342c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): Sources/HiggsTTS/HiggsTTSBackbone.swift:57-68 | Sources/IndicMioTTS/IndicMioQwen3.swift:52-63 | Sources/Qwen3Chat/Qwen35Model.swift:390-403 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060(MLXArray, MLXArray)?\u0060 in one and \u0060(MLXArray, MLXArray)? = nil\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSBackbone.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1cad2319c606f58732bbba7af398b8682b46f968978a3b784ffdde79271f47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 3): Sources/IndicMioTTS/IndicMioTTSModel.swift:53-66 | Sources/Qwen3Chat/Gemma4Chat.swift:84-93 | Sources/Qwen3Chat/Qwen3DenseChat.swift:61-68 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndicMioTTS/IndicMioTTSModel.swift:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioTTSModel.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4821b0e86c704e8d712b661a9b4450b9fbb6fda1ae6c0e3f3a49823bb566c81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/NemotronStreamingASR/NemotronStreamingASR.swift:247-260 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:175-188 | Sources/SourceSeparation/SourceSeparation.swift:211-224 \u2014 \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift\u0060 and \u0060Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 118 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift:247\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modelId\u0060 to \u0060String? = nil\u0060 in one and \u0060String = defaultModelId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a30efc510c5c10a1b6a8b009327d91d4bcfb842c995d605d3123363bfef1ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): Sources/NemotronStreamingASR/NemotronStreamingASR.swift:381-392 | Sources/ParakeetASR/ParakeetASR.swift:538-551 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:223-234 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift:381\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e6c6469da80c6f1f9b239b56c4811c8428147741e2d2c31fc0599ba97549bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/AudioCLILib/SpeakCommand.swift:477-490 | Sources/AudioCLILib/SpeakCommand.swift:536-549 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:477\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/AudioCLILib/SpeakCommand.swift:535\u0060 calls \u0060parseHiggsSynthesisOptions\u0060 and \u0060Sources/AudioCLILib/SpeakCommand.swift:476\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89c4cadc7f0a2dcead486df46356959993ed1f0dc7a1603795f9c41383df9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/AudioCLILib/TranscribeCommand.swift:217-230 | Sources/AudioCLILib/TranscribeCommand.swift:243-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/TranscribeCommand.swift:217\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb6493540576ca64a30c70b7745f8e930a1cbbc1790923c3ef8ab3aaea47539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201314 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:1643-1651 | Sources/AudioServer/AudioServer.swift:1652-1665 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1643}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda30398c2f4eb22a39b8bf6f3618c0856498581058d65d8b13ccb38aee5bd6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/CosyVoiceTTS/WeightLoading.swift:74-87 | Sources/CosyVoiceTTS/WeightLoading.swift:184-197 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/WeightLoading.swift:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/WeightLoading.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ee5345fb929b6b8e118666352cc1279b8863064f321b5f5b25bc04f2dc53d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/HibikiTranslate/Configuration.swift:231-243 | Sources/PersonaPlex/Configuration.swift:146-159 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/Configuration.swift:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/Configuration.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"69930331f671c8b78bfd573681d0213cfab04c85ef0c4c600f7c91e823d7c3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:300-311 | Sources/PersonaPlex/Depformer.swift:264-277 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"517767fac8f2e7e6572d37e2efca336093e2be54df1c47e98443d38c4e5a1f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/HibikiTranslate/HibikiTranslateModel.swift:79-91 | Sources/PersonaPlex/PersonaPlex.swift:1583-1596 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiTranslateModel.swift:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTranslateModel.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0590cd3c1d2eed0480f15b617808fff6c7fcd74c04e19335d9cdfb2335f60f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2TTSModel.swift:264-277 | Sources/IndexTTS2TTS/IndexTTS2TTSModel.swift:283-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2TTSModel.swift:264\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2TTSModel.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"23b2f452f9f51eceae65af9e6ce3c79b11dfacfe629a08c4f906b8cbab84e934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/MagpieTTSCoreML/Decoder.swift:287-300 | Sources/MagpieTTSCoreML/StatefulDecoder.swift:88-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTSCoreML/Decoder.swift:287\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3adf081c3008650acbdf792eb43c166d0564582e0e4546dacdf80a294ba744a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronStreamingASR.swift:138-151 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:78-91 \u2014 \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift\u0060 and \u0060Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 8 separate duplicated blocks between them, totalling at least 118 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"284ec073ceedac6968d3dec55ce844103f5b4fd65825fe15fdbca4af89a9f88a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:667-680 | Sources/PersonaPlex/PersonaPlex.swift:1063-1075 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:667\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":667}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f39b422e2c2c8c041df69e2ba4bdd770577f3b03de621cb0e0e38f4299854b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:929-942 | Sources/PersonaPlex/PersonaPlex.swift:959-971 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:929\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"821b3d109616a55fe57fd8d5253956a2399466b3e68b4dc3cb2e4e29bc551684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/Qwen3ASR/CoreMLTextDecoder.swift:146-159 | Sources/SpeechVAD/Nemotron3CoreMLModel.swift:127-139 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLTextDecoder.swift:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLTextDecoder.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"30abcba39e2d013941b9a146776ff752b184f3d29b09970681627b40ced2b836"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Sources/Qwen3ASR/StreamingASR.swift:187-200 | Sources/Qwen3ASR/StreamingASR.swift:217-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/StreamingASR.swift:187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/StreamingASR.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d0b6492fbe7da3ac5daf5bc238f66d291184a62d5af03beeaf08bfa576eb05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/Qwen3TTS/Qwen3TTS.swift:610-622 | Sources/Qwen3TTS/Qwen3TTS.swift:1708-1721 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/Qwen3TTS.swift:610\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09c8096936a71496bd7488c975f9804cf86c8a136f5992eea416bd2ab0be0d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): Sources/Qwen3TTS/Sampling.swift:114-127 | Sources/Qwen3TTS/Sampling.swift:245-256 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Sampling.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"99782a8e7f5c1f2349f6527a935c448c8b274e6056701238dd7c7ce2a865be91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/VoiceChat/VoiceChatSession.swift:1389-1401 | Sources/VoiceChat/VoiceChatSession.swift:1497-1510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7746829d11f5da40f2ad193a195208f8b79e219643f975e2b1b09dbe12dcac2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 7): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:66-76 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:182-191 | Sources/ParakeetASR/MelPreprocessor.swift:225-234 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:440-449 | Sources/Qwen3ASR/AudioPreprocessing.swift:103-115 | Sources/SpeechVAD/MelFeatureExtractor.swift:69-79 | Sources/SpeechVAD/SortformerMelExtractor.swift:85-95 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7910658779af5d0e13947fd13dff0c27bfa4c2de694c2f3f84abfb2134ff108e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201313 lines \u00D7 5): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:41-52 | Sources/KokoroTTS/KokoroTTS.swift:372-383 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:100-111 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:55-61 | Sources/SpeechWakeWord/SpeechWakeWord.swift:178-190 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/KokoroTTS/KokoroTTS.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/KokoroTTS/KokoroTTS.swift:367\u0060 calls \u0060info\u0060 and \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:97\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c421df3dd49551cf79f4010116d2bc0d0448829ad0728fa5d5197ab9c5d1ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): Sources/AudioCLILib/SpeakCommand.swift:2062-2073 | Sources/AudioCLILib/SpeakCommand.swift:2085-2096 | Sources/AudioCLILib/SpeakCommand.swift:2131-2143 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:2131\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":2062}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0f3ba0c9769b107dbc27626ba9dd4b72b86ad9e663a167e18b3db618834fb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/AudioCommon/AudioIO.swift:264-276 | Sources/AudioCommon/FullDuplexAudioIO.swift:383-395 | Sources/AudioCommon/SystemAudioTap.swift:443-455 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCommon/AudioIO.swift:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioIO.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ef279b3f528eb13541e8c580b6cf2171a1f8b3cd321c851ec5bee74bb3c982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 3): Sources/AudioServer/AudioServer.swift:152-161 | Sources/AudioServer/AudioServer.swift:241-253 | Sources/AudioServer/AudioServer.swift:328-336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioServer/AudioServer.swift:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc6bed3022f2e34dc2bccfb289eee9c2aba99f3de62edd304092fe4a13eb0c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201313 lines \u00D7 3): Sources/BreezeTTS/BreezeTTSModel.swift:57-64 | Sources/F5TTS/F5TTSModel.swift:47-59 | Sources/HiggsTTS/HiggsTTSModel.swift:98-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/BreezeTTSModel.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7b61f7450c27e5340a73da57ce295c7f7be7097e56f6cdd584f1415899615b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): Sources/PersonaPlex/Configuration.swift:107-119 | Sources/PersonaPlex/Configuration.swift:159-171 | Sources/VibeVoiceTTS/Models/Qwen2Configuration.swift:41-53 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/Configuration.swift:107\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Configuration.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"01907c90d2847f7c062320116afa7c199ef2c0a4b5656ae5a9d98b4d5c869d3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Examples/PersonaPlexDemo/PersonaPlexDemo/SentencePieceDecoder.swift:90-102 | Sources/AudioCommon/SentencePieceModel.swift:133-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/PersonaPlexDemo/PersonaPlexDemo/SentencePieceDecoder.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6001527b6116aee28b049201899d3fec2d0540d795c74dd440ce35ea6f262f05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/AudioCLILib/SpeakCommand.swift:747-759 | Sources/AudioCLILib/SpeakCommand.swift:850-862 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:747\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8c404254e398cb737e5a0a42c9e94a70a25b329b8c2f226f5eb6b608cb0254"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/AudioCommon/AudioFileLoader.swift:33-44 | Sources/AudioCommon/AudioFileLoader.swift:91-103 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioFileLoader.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3bfb237ea6b5d7ed2fd2ed6540cd0cabac50e18e2d724c2c7dfd24d3512aac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:1341-1353 | Sources/AudioServer/AudioServer.swift:1357-1369 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b74901dad8ea450cd0e2514b1173e731638df4d3edda4b184c331020246cf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): Sources/ChatterboxTTS/MTLTokenizer.swift:262-271 | Sources/MagpieTTS/JapaneseG2P.swift:84-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/MTLTokenizer.swift:262\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/MTLTokenizer.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b61c9676084c51a6bce98d45aa43b904abd1e8015a5c3249a8a436221b8b2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CohereTranscribeASR/CohereTranscribe.swift:277-289 | Sources/VoxtralASR/VoxtralASR.swift:193-205 \u2014 before extracting anything, compare \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift:277\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralASR.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2d3d166a2b131620e2decc007b14de7234d10d913bf679fd0caede9058a2843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CohereTranscribeASR/CohereTranscribe.swift:298-310 | Sources/VoxtralASR/VoxtralASR.swift:214-226 \u2014 before extracting anything, compare \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralASR.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e51fa213cc6e38e91f7f709bf12ddd85ea89782d4b52059ff4375171c48867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): Sources/CosyVoiceTTS/LLM.swift:66-78 | Sources/Qwen3TTS/Sampling.swift:42-50 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3539742cb5b7204b42fc4cb18a7e70a85eb9c865729a1d999e78e7c4e2c431"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/CosyVoiceTTS/VoiceCloning.swift:317-329 | Sources/CosyVoiceTTS/VoiceCloning.swift:339-351 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/VoiceCloning.swift"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acbc698428230d88a03b59341027c4dc92e683ab6cb1a0d2d7574ac4f678e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/FishAudioTTS/FishAudioGeneration.swift:13-25 | Sources/HibikiTranslate/Configuration.swift:288-300 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioGeneration.swift:13\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioGeneration.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"abc9c86bdcfb11efa4a75a0cabcbf5034fae4cbe406eeb2628ea0ee9a30ea5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:131-142 | Sources/PersonaPlex/Depformer.swift:106-118 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a186fa4bb4480a241438702c5833d8733e7b13a7c1e3dbdf75fad61e60e78d7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:108-118 | Sources/PersonaPlex/TemporalTransformer.swift:104-116 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift:108\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c4c6cff0e59e4a7b949b45fb15eebae6ba0a959dc1094386eede30fd0b5e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201313 lines \u00D7 2): Sources/MADLADTranslation/MADLADModel.swift:32-44 | Sources/MAGNeTMusicGen/T5Encoder.swift:16-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MADLADTranslation/MADLADModel.swift:32\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADModel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea4c08b951c69a0993703088f807c4789e5cd44a0fad691f641c3c27ef7fc91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/MagpieTTS/MagpieTTS.swift:215-227 | Sources/MagpieTTS/MagpieTTS.swift:305-315 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/MagpieTTS.swift:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/MagpieTTS.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3804e29f973dac1be3abf5e6e0de82aaf8f25cd30a308a2cad094785f15d6d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/MagpieTTSCoreML/NanoCodec.swift:86-98 | Sources/MagpieTTSCoreML/TextEncoder.swift:48-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTSCoreML/NanoCodec.swift:86\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/MagpieTTSCoreML/TextEncoder.swift:47\u0060 calls \u0060MLFeatureValue\u0060 and \u0060Sources/MagpieTTSCoreML/NanoCodec.swift:85\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/NanoCodec.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f34f06ab2a8031380f5bab19db3c52bc7ac13551dbe827d508cee6444f2fd2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/MossTranscribe/MossCoreMLRuntime.swift:799-811 | Sources/MossTranscribe/MossMLXRuntime.swift:636-649 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MossTranscribe/MossCoreMLRuntime.swift:799\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/MossTranscribe/MossMLXRuntime.swift:635\u0060 calls \u0060CFAbsoluteTimeGetCurrent\u0060 and \u0060Sources/MossTranscribe/MossCoreMLRuntime.swift:798\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"83cb91bcc8ec2459b5a0fd8bc945fd027985f9df61bab0e5b601ac000816f2e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:119-127 | Sources/ParakeetStreamingASR/StreamingSession.swift:86-98 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bb0561bcf1a12e52aa2dd4a414e2bffa4a56976385e35ee6c74673ad8f89f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:245-256 | Sources/ParakeetStreamingASR/StreamingSession.swift:263-275 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b721f61ae1b18937388300781b1939c3732e373b3759293261674cc2a8fbc58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:359-371 | Sources/ParakeetStreamingASR/StreamingSession.swift:439-451 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingSession.swift:359\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9fe473e81a2087bcbe09f7d987e64aad57b930ba3f28580211e82a1ffeec84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift:63-75 | Sources/VibeVoiceTTS/Models/AcousticTokenizerConfiguration.swift:89-101 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift:63\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea3573735fa42ab033e4cc6b4ed6307e10c238d10c9d46393501593de5ebaad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/Qwen3ASR/FloatTextDecoder.swift:215-225 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:239-251 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:215\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"802953c67ba80df26b08521d4aee704906d16c21c2cc2494cc070af65c9341cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift:172-184 | Sources/Qwen3TTS/Qwen3TTS.swift:328-340 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52de39fe78250b0a4c53556062ea22206ef2ceeef0231da44bbdc425983fedd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/Qwen3TTS/Sampling.swift:49-60 | Sources/Qwen3TTS/Sampling.swift:194-206 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/Sampling.swift:49\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Sampling.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"db92a6b166ccdf3b13a79b51f3883dc53190be9c7eced8e2d7d80796d7996841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): Sources/SpeechVAD/DiarizationHelpers.swift:114-126 | Sources/SpeechVAD/DiarizationHelpers.swift:224-234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/DiarizationHelpers.swift:114\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationHelpers.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05048724487a4eddf1385ff9956abec39c2e6bafb36b5e1189673a74f8fa80f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Sources/SpeechVAD/SortformerDiarizer.swift:296-308 | Sources/SpeechVAD/SortformerStreamingSession.swift:252-263 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerDiarizer.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"3896dfb8d25394590e97b2bd090e1d919ee623d5052e63a5ae476141fbebe3c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift:32-44 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:37-49 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45d7701a7afbcda5aad178a70a9cf05de6ba5f397f21bea7d53798d16cf7195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/VoxCPM2TTS/AudioVAE.swift:85-97 | Sources/VoxCPM2TTS/AudioVAE.swift:133-145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxCPM2TTS/AudioVAE.swift:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/AudioVAE.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a43c3a8ee7ab5c4524e881b3d3add82f04bcbd755f56b92b18fae648b81664"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): scripts/profiling/RuntimeOwnershipProfile.swift:142-154 | scripts/profiling/RuntimeOwnershipProfile.swift:159-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/RuntimeOwnershipProfile.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"9296e63bdb70ec5cb8e6c38be1398aedf310fee050a525819b1fa7fb5f659a2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 15): Sources/AudioCommon/HindiEmotionTTSCatalog.swift:83-94 | Sources/CanaryASR/Configuration.swift:118-129 | Sources/HibikiTranslate/Configuration.swift:133-144 | Sources/HibikiTranslate/Configuration.swift:247-258 | Sources/IndexTTS2TTS/IndexTTS2NativeRuntime.swift:112-123 | Sources/MADLADTranslation/MADLADConfig.swift:66-77 | Sources/MLXCommon/SlaneyMel.swift:31-42 | Sources/NemotronStreamingASR/Configuration.swift:83-94 | Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift:64-75 | Sources/ParakeetASR/Configuration.swift:52-63 | Sources/PersonaPlex/Configuration.swift:108-119 | Sources/PersonaPlex/Configuration.swift:160-171 | Sources/Qwen3Chat/Qwen3ChatConfig.swift:104-115 | Sources/SpeechVAD/SortformerConfig.swift:303-314 | Sources/VibeVoiceTTS/Models/AcousticTokenizerConfiguration.swift:90-101 \u2014 \u0060Sources/CanaryASR/Configuration.swift\u0060 and \u0060Sources/ParakeetASR/Configuration.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCommon/HindiEmotionTTSCatalog.swift:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HindiEmotionTTSCatalog.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7858dd42cdaef91e71d4336a88cc1ea868aadfe4eb30d069bc4132182f7ba5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 15): Sources/AudioCommon/HindiEmotionTTSCatalog.swift:86-97 | Sources/CanaryASR/Configuration.swift:124-135 | Sources/HibikiTranslate/Configuration.swift:137-148 | Sources/HibikiTranslate/Configuration.swift:252-263 | Sources/IndexTTS2TTS/IndexTTS2NativeRuntime.swift:122-133 | Sources/MADLADTranslation/MADLADConfig.swift:71-82 | Sources/MLXCommon/SlaneyMel.swift:33-44 | Sources/NemotronStreamingASR/Configuration.swift:90-101 | Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift:69-80 | Sources/ParakeetASR/Configuration.swift:57-68 | Sources/PersonaPlex/Configuration.swift:110-121 | Sources/PersonaPlex/Configuration.swift:163-174 | Sources/Qwen3Chat/Qwen3ChatConfig.swift:119-130 | Sources/SpeechVAD/SortformerConfig.swift:320-331 | Sources/VibeVoiceTTS/Models/AcousticTokenizerConfiguration.swift:99-110 \u2014 \u0060Sources/CanaryASR/Configuration.swift\u0060 and \u0060Sources/ParakeetASR/Configuration.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCommon/HindiEmotionTTSCatalog.swift:86\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HindiEmotionTTSCatalog.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a711eed81f8c1ebb9b720019970581b73d4ade180dccc2ebd6c5b3748b11cba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 13): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:160-169 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:183-189 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:169-175 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:113-119 | Sources/ParakeetASR/MelPreprocessor.swift:107-118 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:117-127 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:241-247 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:330-336 | Sources/Qwen3ASR/AudioPreprocessing.swift:222-232 | Sources/Qwen3ASR/AudioPreprocessing.swift:392-401 | Sources/SpeechVAD/MelFeatureExtractor.swift:166-175 | Sources/SpeechVAD/SortformerMelExtractor.swift:174-183 | Sources/SpeechWakeWord/KaldiFbank.swift:228-234 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c9bb7088201ac8a03ffe3363a45c9fea4b53077345f834f88fc4efc7f421cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201312 lines \u00D7 5): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:40-51 | Sources/KokoroTTS/KokoroTTS.swift:372-382 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:100-110 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:54-61 | Sources/SupertonicTTS/SupertonicTTS.swift:56-62 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/KokoroTTS/KokoroTTS.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/KokoroTTS/KokoroTTS.swift:367\u0060 calls \u0060info\u0060 and \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:97\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec9d951b8053cb4f91cb34182008c9a10d6a6cc280767237e2af7a06cda4e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 5): Sources/FishAudioTTS/FishAudioDualAR.swift:125-135 | Sources/HiggsTTS/HiggsTTSBackbone.swift:63-73 | Sources/IndicMioTTS/IndicMioQwen3.swift:58-68 | Sources/Qwen3Chat/Qwen35Model.swift:397-408 | Sources/Qwen3Chat/Qwen3DenseModel.swift:112-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioDualAR.swift:125\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060(MLXArray, MLXArray)?\u0060 in one and \u0060(MLXArray, MLXArray)? = nil\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDualAR.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"093111a3f99055e99d9be337ee675ab470a98ac8ac9cec994fe7a3c92253cb7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): Sources/ChatterboxTTS/S3GenVocoder.swift:418-428 | Sources/CosyVoiceTTS/HiFiGAN.swift:538-549 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:614-623 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:418\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"f742a604ac5f79d8634d20f5073942615c6ee1d7a02416be9231b118d3828af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): Sources/HibikiTranslate/HibikiWeightLoading.swift:95-105 | Sources/PersonaPlex/MimiCodec.swift:254-265 | Sources/PersonaPlex/WeightLoading.swift:78-89 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"052cc0e1d358d3ed9d0314d3f091065385c1c54179dcd2f5b80a7ffefc6683d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 3): Sources/MLXCommon/WeightLoading.swift:73-81 | Sources/Qwen3Chat/Qwen35WeightLoading.swift:174-182 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:723-734 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"90a7b0daea742ef8ef5c564517b9634cde0b73a5a3c88cbfa2ef89bf3f11b7e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 3): Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:129-136 | Sources/ParakeetASR/TDTGreedyDecoder.swift:175-186 | Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift:145-154 \u2014 \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift\u0060 and \u0060Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ParakeetASR/TDTGreedyDecoder.swift:187\u0060 calls \u0060Float\u0060 and \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:137\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"3259801b565baf1ee92d94a052b7379b1b444d8c46bb865a66244cff1533f391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Sources/PersonaPlex/Configuration.swift:107-118 | Sources/PersonaPlex/Configuration.swift:159-170 | Sources/PersonaPlex/Configuration.swift:298-309 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/Configuration.swift:107\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Configuration.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ed21401d1730f04a455f9ec9ee4123bd5c8535745d49a15995140c2b17ef37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:277-288 | Sources/PersonaPlex/PersonaPlex.swift:733-740 | Sources/PersonaPlex/PersonaPlex.swift:1432-1439 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:277\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad0947ecb4eaf5d75298ab1a61ec275af85080d2bec505d764f07daa722be2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 3): Sources/Qwen3ASR/CoreMLASRModel.swift:234-243 | Sources/Qwen3ASR/CoreMLASRModel.swift:354-363 | Sources/Qwen3ASR/Qwen3ASR.swift:552-563 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLASRModel.swift:234\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLASRModel.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eaa10590c0f2ccee23e141255d4d5c4889020a4dc5b31c2712755431db4ddaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:617-628 | Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:661-672 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:617\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfce78267d1f8172cb88105f711efbbaf82dc5fa9ed0fcef09fcbc64efe48e33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/AudioCLILib/TranscribeCommand.swift:623-634 | Sources/AudioCLILib/TranscribeCommand.swift:653-664 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f494bcf1a6f82cf7cf0fccdb309e9bf1c5fb4e9c3ca923aa947ca19e52756c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/F5TTS/F5TTSPrimitives.swift:168-177 | Sources/IndexTTS2TTS/IndexTTS2ReferenceConditioning.swift:263-274 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/F5TTS/F5TTSPrimitives.swift:168\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSPrimitives.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ebeb22cdfe7c3362aed899e2123b30172b9f65f519e2318260a54693edc7dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/FishAudioTTS/FishAudioDualAR.swift:35-46 | Sources/FishAudioTTS/FishAudioDualAR.swift:49-60 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDualAR.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"999293e4fa575f6984d9396565f3c2256bc6324e92dc7852443d49f42184d7c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/FishAudioTTS/FishAudioWeightLoading.swift:121-132 | Sources/IndicMioTTS/IndicMioQwen3.swift:239-250 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioWeightLoading.swift:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioWeightLoading.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"178cb24f97aa27eb4d1e7ff647b0780a3306b32979782b8f39e7af0ef384c690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:36-47 | Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift:62-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1873e6d3f5d98718f1b7a13bcf4d2ce697703de265d6f581ff751ce66942a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/IndicMioTTS/IndicMioQwen3.swift:212-221 | Sources/Qwen3Chat/Qwen35WeightLoading.swift:107-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioQwen3.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d476ffaf3fc1dc103db8c37217b33f9e11e91cb1ef264c1a55915e7ab9d482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/KokoroTTS/HindiPhonemizer.swift:94-103 | Sources/KokoroTTS/JapanesePhonemizer.swift:134-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KokoroTTS/HindiPhonemizer.swift:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/HindiPhonemizer.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0c497d696aaabad8a2693c1fb851b215c67950c352faf7c0bbf27bcb78e0c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/KokoroTTS/JapanesePhonemizer.swift:198-208 | Sources/KokoroTTS/Phonemizer.swift:666-677 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/JapanesePhonemizer.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ec7aed491dc763bc442e1e3190737b6186249839a1ea6652371e5ea12cd160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/MADLADTranslation/MADLADTranslationError.swift:12-23 | Sources/Qwen3Chat/Qwen3ChatError.swift:11-22 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MADLADTranslation/MADLADTranslationError.swift:12\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTranslationError.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d82c0287ef17f8db2bb1314be12e6c2fbe697eaead98aa27c78bfdb5753d587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Sources/MLXCommon/WeightLoading.swift:199-210 | Sources/Qwen3ASR/WeightLoading.swift:290-300 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/WeightLoading.swift:199\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b48d9f650414c133ad816ece599d6910609461142bb076134ae2779624fc1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/MLXCommon/WeightLoading.swift:215-226 | Sources/MLXCommon/WeightLoading.swift:269-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/WeightLoading.swift:215\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dca56049cad22e68aca161256e399383013bb3de6a2c8ba5f15b662ac1f395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/MagpieTTS/SubVocab.swift:30-41 | Sources/MagpieTTS/SubVocab.swift:44-55 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/SubVocab.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bc8e136f2b94a2070846c18f4bfcbab0a6f637f4ec67b8ac209d8a44fe86f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:129-138 | Sources/ParakeetStreamingASR/StreamingSession.swift:100-111 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26e25beb55147631e7da2a4122e26b64d92c4c2dd9df17013a5be38bbd81e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:343-354 | Sources/ParakeetStreamingASR/StreamingSession.swift:422-433 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingSession.swift:343\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab5ba9f826ad00ff8121cf09f21289034373d638b2f4e8cbe5da4408478b9c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/PersonaPlex/Conv.swift:19-30 | Sources/PersonaPlex/Conv.swift:60-71 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/Conv.swift:19\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Conv.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8275e76b696d839ae2aa49533a2233029eedc02c7c92e71225f10f7c74699a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/Qwen3Chat/Gemma4WeightLoading.swift:29-40 | Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:20-29 \u2014 before extracting anything, compare \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:29\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:42\u0060 calls \u0060hasPrefix\u0060, \u0060String\u0060, \u0060dropFirst\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:31\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4WeightLoading.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c3039b7d959712bd9ee269b0ed5ed5e8733bc62cf39ffd8dbeffc187403cbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): Sources/Qwen3Chat/MLXGenerator.swift:384-395 | Sources/Qwen3Chat/Qwen35CoreMLChat.swift:278-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/MLXGenerator.swift:384\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e88cbbde7e2822e0f2519bea82e807b2f59edc86a5882f6533173b99a35cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): Sources/Qwen3Chat/MLXGenerator.swift:397-408 | Sources/Qwen3Chat/Qwen3DenseChat.swift:157-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/MLXGenerator.swift:397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fb6c73e8df949879dc7c876f4956d94d45a895a213dddad95a84743045a9c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SpeechVAD/BiLSTM.swift:42-53 | Sources/SpeechVAD/SileroModel.swift:131-142 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/BiLSTM.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5ae6a9b40a169d3070d63d9a81ff8d96290b4a2312d85d04d86dc780707a270"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/SpeechVAD/ReDimNet2Speaker.swift:165-176 | Sources/SpeechVAD/SmartTurn.swift:77-88 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift\u0060 and \u0060Sources/SpeechVAD/SmartTurn.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:165\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:163\u0060 calls \u0060validateDefaultArtifact\u0060 and \u0060Sources/SpeechVAD/SmartTurn.swift:76\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/ReDimNet2Speaker.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d18daf8361eeae0a71bfcb55817a686e722a950b2fd055dbe0786726d89c64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:331-342 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:346-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/Inference/WeightLoader.swift:331\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c30a6786570dbcb1cee74a343281ab732b6fd26ba2da2066cf5810a0e3fdc51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/VibeVoiceTTS/Models/AcousticTokenizerDecoder.swift:161-172 | Sources/VibeVoiceTTS/Models/AcousticTokenizerEncoder.swift:65-76 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/AcousticTokenizerDecoder.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d4f22af5d426683e610a53075f00855b5c6b3a3dd342a540479bad1a0f3c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/VoxtralASR/VoxtralLanguageModel.swift:128-139 | Sources/VoxtralTTS/LanguageModel.swift:128-139 \u2014 before extracting anything, compare \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift\u0060 and \u0060Sources/VoxtralTTS/LanguageModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralLanguageModel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6658b888ec312ac3d7f179a0f7e37caa556f3d260460e2eca5138b4582447727"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Sources/VoxtralASR/VoxtralLanguageModel.swift:167-178 | Sources/VoxtralTTS/LanguageModel.swift:167-178 \u2014 before extracting anything, compare \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift\u0060 and \u0060Sources/VoxtralTTS/LanguageModel.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 66 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxtralASR/VoxtralLanguageModel.swift:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060state\u0060 to \u0060VoxtralLanguageModelState ) -\u003E (MLXArray\u0060 in one and \u0060VoxtralTTSLanguageState ) -\u003E (MLXArray\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralLanguageModel.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5863ee431653651d3919cde80d2d190c2a2520adacdc4023adccac17ec09bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): scripts/profiling/BreezeTTSBenchmark.swift:32-43 | scripts/profiling/FishDrama3Benchmark.swift:44-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/profiling/BreezeTTSBenchmark.swift:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/profiling/BreezeTTSBenchmark.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9bfd5cd87dcb78be5cfbb61c377b373c3ea28311a7ada265f45b6c30c44a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 9): Sources/CosyVoiceTTS/LLM.swift:187-197 | Sources/HiggsTTS/HiggsTTSBackbone.swift:58-66 | Sources/IndicMioTTS/IndicMioQwen3.swift:53-61 | Sources/Qwen3ASR/FloatTextDecoder.swift:93-102 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:86-96 | Sources/Qwen3Chat/Qwen35Model.swift:391-400 | Sources/Qwen3TTS/CodePredictor.swift:76-85 | Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:274-282 | Sources/Qwen3TTS/Talker.swift:86-96 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060(MLXArray, MLXArray)?\u0060 in one and \u0060(MLXArray, MLXArray)? = nil ) -\u003E (MLXArray\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/HiggsTTS/HiggsTTSBackbone.swift:57\u0060 calls \u0060dim\u0060 and \u0060Sources/CosyVoiceTTS/LLM.swift:184\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"6217209e8bc1deffec3a1b3841cebddf0ec5a8017e7085b9d3e3df0f9035370a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 7): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:146-153 | Sources/CosyVoiceTTS/FlowMelExtractor.swift:168-178 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:158-164 | Sources/Qwen3ASR/AudioPreprocessing.swift:204-213 | Sources/Qwen3ASR/AudioPreprocessing.swift:377-385 | Sources/SpeechVAD/MelFeatureExtractor.swift:152-159 | Sources/SpeechVAD/SortformerMelExtractor.swift:160-167 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CosyVoiceTTS/WhisperMelExtractor.swift:155\u0060 calls \u0060max\u0060 and \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:143\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a185829cf41d3c8e57fffa2f7f0265d40246da0fa9d3bd979cf1351476bca622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201311 lines \u00D7 6): Sources/CosyVoiceTTS/LLM.swift:436-446 | Sources/Qwen3ASR/FloatTextDecoder.swift:210-217 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:233-241 | Sources/Qwen3TTS/CodePredictor.swift:204-211 | Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:376-378 | Sources/Qwen3TTS/Talker.swift:257-267 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:436\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e268891c0193a3c6559c7b6b7ffec4ffb4ef565416748c30716e7b7a89d0559"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): Sources/Qwen3ASR/FloatTextDecoder.swift:82-90 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:70-80 | Sources/Qwen3Chat/Qwen35Model.swift:377-387 | Sources/Qwen3TTS/CodePredictor.swift:65-73 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:81\u0060 calls \u0060reshaped\u0060 and \u0060Sources/Qwen3Chat/Qwen35Model.swift:374\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"3629a8f02e9c6c44c9a25a923c1b25254f0d6ab42f06df572ec18eab54a7772d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 4): Sources/Qwen3ASR/StreamingASR.swift:124-134 | Sources/Qwen3ASR/StreamingASR.swift:183-193 | Sources/Qwen3ASR/StreamingASR.swift:213-223 | Sources/Qwen3ASR/StreamingASR.swift:243-251 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/StreamingASR.swift:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/StreamingASR.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"e022b107958d3917a11e8782e8039ceadefbf52f9415ebb1179b0c1e8aaad047"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Sources/AudioCLILib/SpeakCommand.swift:1532-1542 | Sources/AudioCLILib/SpeakCommand.swift:1587-1597 | Sources/AudioCLILib/SpeakCommand.swift:1646-1656 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:1532\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24b4b2dddc4b59530df4b232892df2c66590f13c275f0c58523365810241729"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 3): Sources/HiggsTTS/HiggsTTSBackbone.swift:53-61 | Sources/Qwen3Chat/Qwen35Model.swift:385-395 | Sources/Qwen3Chat/Qwen3DenseModel.swift:103-109 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cache\u0060 to \u0060(MLXArray, MLXArray)?\u0060 in one and \u0060(MLXArray, MLXArray)? = nil\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSBackbone.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4037c8802a23a73002d6fbf7aac41aa93164f6b67eea94a237e0a3ce2b2f9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:387-397 | Sources/PersonaPlex/PersonaPlex.swift:812-821 | Sources/PersonaPlex/PersonaPlex.swift:1219-1229 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:387\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b09012d19b04829ecc256aed653bee4cd8fbb0029c46fdca0e5bd79bdaa4ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/AudioCLILib/SpeakCommand.swift:1505-1515 | Sources/AudioCLILib/SpeakCommand.swift:1560-1570 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:1505\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1505}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5514bceca0fc991e856d830967ca913a5904aa3b05e64666ec97d5d2b046b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 5): Sources/AudioCLILib/TranscribeCommand.swift:209-212 | Sources/AudioCLILib/TranscribeCommand.swift:235-238 | Sources/AudioCLILib/TranscribeCommand.swift:394-403 | Sources/AudioCLILib/TranscribeCommand.swift:429-439 | Sources/AudioCLILib/TranscribeCommand.swift:579-582 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/TranscribeCommand.swift:394\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/AudioCLILib/TranscribeCommand.swift:582\u0060 calls \u0060Float\u0060 and \u0060Sources/AudioCLILib/TranscribeCommand.swift:403\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df33355f3325108787158f0a3fa5cba890561702469567af8683a68dd3c2063"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CanaryASR/Configuration.swift:101-111 | Sources/ParakeetASR/Configuration.swift:36-46 \u2014 \u0060Sources/CanaryASR/Configuration.swift\u0060 and \u0060Sources/ParakeetASR/Configuration.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 35 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/Configuration.swift:101\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/Configuration.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"0631543f4bba1e8e122712f2292935e8c8618445257068166c8172af15d960c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:197-207 | Sources/CosyVoiceTTS/HiFiGAN.swift:212-221 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e26d4f9815a89ec06c7c1d72b8dbe62f297531238c4b1dfb0687c3e4008507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/CohereTranscribeASR/CohereTranscribe.swift:251-261 | Sources/VoxtralASR/VoxtralASR.swift:167-177 \u2014 before extracting anything, compare \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift:250\u0060 calls \u0060normalizeCohereWeightKeys\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift:166\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralASR.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf36a84235ecc5efed5ffc73891f077dfec5d5abfeb40394dd336db04908ad49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/FunctionGemma/FunctionGemma.swift:242-252 | Sources/FunctionGemma/FunctionGemma.swift:283-293 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FunctionGemma/FunctionGemma.swift:242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FunctionGemma/FunctionGemma.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"7117a993e714585fde0380106f038d39effd6e3397b4bd84adf9db2384812e66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Sources/HiggsTTS/HiggsTTSTokenizer.swift:64-74 | Sources/OmniVoiceTTS/OmniVoiceTokenizer.swift:37-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSTokenizer.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd103751df66b70a17f30fd969d4cb2372823fa83d6ba67b4da61f5ba4b2e11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Sources/KokoroTTS/HindiPhonemizer.swift:73-81 | Sources/KokoroTTS/JapanesePhonemizer.swift:109-119 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KokoroTTS/HindiPhonemizer.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/HindiPhonemizer.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"542d8462a3d6475e3deb95babc1a771f838cd4a5a59bc39b6151bb0ececd0153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Sources/MagpieTTS/Decoder.swift:42-52 | Sources/MagpieTTS/TextEncoder.swift:19-26 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/Decoder.swift:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060MagpieDecoderConfig\u0060 in one and \u0060MagpieTextEncoderConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Decoder.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12bd6900bf9bd1821b221e24fa63dbf509262aa5b0cfc686c019fb37199a964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/ParakeetASR/MelPreprocessor.swift:170-180 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:169-179 \u2014 before extracting anything, compare \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetASR/MelPreprocessor.swift:170\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/MelPreprocessor.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2efe6fc18c056fd73010784107abb44a813a6e53cd94d1f52ff49f24ecf7878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:293-303 | Sources/PersonaPlex/PersonaPlex.swift:744-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/PersonaPlex/PersonaPlex.swift:312\u0060 calls \u0060Array\u0060, \u0060CFAbsoluteTimeGetCurrent\u0060 and \u0060Sources/PersonaPlex/PersonaPlex.swift:756\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"5171230ebc3e9fbe290fd32444e23cba6b87a8bda88331483c85c763b1c6241d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:460-474 | Sources/PersonaPlex/PersonaPlex.swift:849-859 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:460\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed796d779820586541ebd29fdf0ae15c1c71379f74018015ee6e96ea27a9083b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:632-642 | Sources/PersonaPlex/PersonaPlex.swift:1340-1349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:632\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"70249b9850a41d878fe09370fb4e7217a736cc26130e52599281f56b5741108f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/Qwen3ASR/CoreMLEncoder.swift:76-86 | Sources/Qwen3ASR/CoreMLTextDecoder.swift:157-168 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLEncoder.swift:76\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060computeUnits\u0060 to \u0060MLComputeUnits = CoreMLComputeUnitsResolver.resolved(default: .all)\u0060 in one and \u0060MLComputeUnits = CoreMLComputeUnitsResolver.resolved(default: .cpuAndNeuralEngine)\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLEncoder.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f8315ed6932b38ab50fd0180ba106024569db81b1983ab6f715e472491398a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 3): Sources/CosyVoiceTTS/CosyVoiceTTS.swift:103-106 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:59-69 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:122-131 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CosyVoiceTTS.swift:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CosyVoiceTTS.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d3001d419990f47463a4991797cd73800d80b3e4342a3f40edd1155251ee529"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Sources/Qwen3ASR/CoreMLTextDecoder.swift:197-206 | Sources/Qwen3ASR/CoreMLTextDecoder.swift:437-447 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLTextDecoder.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"669a740c3155371cdf58b9d870b5f32e0aeaecbd5ca4b1d4c4b70961c8351488"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201311 lines \u00D7 2): Sources/Qwen3Chat/Gemma4WeightLoading.swift:56-60 | Sources/Qwen3Chat/Qwen35WeightLoading.swift:102-112 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4WeightLoading.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4b7120bb72753c19f25d8119ade9ba4705fe55e3031f8b7f1223e8c100f9ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201311 lines \u00D7 3): Sources/Qwen3TTSCoreML/SpeechDecoderCoreML.swift:38-41 | Sources/SpeechEnhancement/SpeechEnhancement.swift:501-511 | Sources/SpeechRestoration/SpeechRestoration.swift:280-288 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/SpeechDecoderCoreML.swift:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/SpeechDecoderCoreML.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"e988230b72abafc7f6b44e8178a491ea6a872147c1a0bbe109aa42cc03b6d32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Sources/SpeechVAD/Nemotron3CoreMLModel.swift:124-134 | Sources/SpeechVAD/Nemotron3MLXModel.swift:324-332 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/Nemotron3CoreMLModel.swift:124\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3CoreMLModel.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0829a3f82af1223f0662d3fc15c69dd4fd9325943922d125d01262858555dc40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SpeechVAD/ReDimNet2Speaker.swift:149-161 | Sources/SpeechVAD/SmartTurn.swift:66-76 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift\u0060 and \u0060Sources/SpeechVAD/SmartTurn.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:149\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:163\u0060 calls \u0060validateDefaultArtifact\u0060 and \u0060Sources/SpeechVAD/SmartTurn.swift:77\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/ReDimNet2Speaker.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab98308cc15d5705d811c015f15c1bc61d02d7d86e5299f33ae8ea46aef2160"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/SpeechVAD/SortformerStateUpdater.swift:494-504 | Sources/SpeechVAD/SortformerStateUpdater.swift:511-521 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerStateUpdater.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a344d5c9d594d60006a4d5eaf9e080a9bd422b340a3ad3e312cf330222acb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/VibeVoiceTTS/Models/Qwen2Model.swift:38-48 | Sources/VibeVoiceTTS/Models/Qwen2Model.swift:60-70 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/Qwen2Model.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff712c6eef46e7df877d4956d7a77f1e3900b97692a8a2d7384e5eb31e676607"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): Sources/CanaryASR/CanaryASR\u002BLoading.swift:26-36 | Sources/NemotronStreamingASR/NemotronStreamingASR.swift:231-241 | Sources/OmnilingualASR/MLX/OmnilingualMLXModel.swift:81-90 | Sources/OmnilingualASR/OmnilingualASR.swift:75-85 | Sources/ParakeetASR/ParakeetASR.swift:364-375 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:164-174 | Sources/SourceSeparation/SourceSeparation.swift:199-210 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 7 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 7 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/CanaryASR\u002BLoading.swift:26\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060modelId\u0060 to \u0060String? = nil\u0060 in one and \u0060String = defaultModelId\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/CanaryASR\u002BLoading.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92d6c0ccb3ff6d284db1acdd1d430770fc47a7ff1c4b4873c04dfb355679050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:187-194 | Sources/Qwen3ASR/AudioPreprocessing.swift:267-276 | Sources/Qwen3ASR/AudioPreprocessing.swift:424-432 | Sources/SpeechVAD/MelFeatureExtractor.swift:193-201 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/Qwen3ASR/AudioPreprocessing.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"efce2652fa7ed07bc645049f83da51de7efe74444eb152f6167a7084b41ce2a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Sources/HibikiTranslate/HibikiDepformer.swift:136-145 | Sources/HibikiTranslate/HibikiTemporalTransformer.swift:68-77 | Sources/PersonaPlex/Depformer.swift:112-121 | Sources/PersonaPlex/TemporalTransformer.swift:70-79 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:136\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1aac8c11d6e88534c67878e6279310ae2570baeaacf915ccd85b9514461812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 4): Sources/HibikiTranslate/HibikiWeightLoading.swift:117-123 | Sources/HibikiTranslate/HibikiWeightLoading.swift:155-161 | Sources/PersonaPlex/WeightLoading.swift:123-132 | Sources/PersonaPlex/WeightLoading.swift:167-176 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b057a9554de03d78f6e01a90865b36ae079e99f1e4c21f9ed3273f2d8a1e917d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): Sources/NemotronStreamingASR/NemotronStreamingASR.swift:382-390 | Sources/ParakeetASR/ParakeetASR.swift:539-548 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:224-232 | Sources/SpeechWakeWord/SpeechWakeWord.swift:327-334 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronStreamingASR.swift:382\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR.swift"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe58d282b5594acb2846282ac66281987ead58aee410a5aade1cd130d77ffd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/AudioCLILib/SpeakCommand.swift:1464-1473 | Sources/AudioCLILib/SpeakCommand.swift:1711-1720 | Sources/AudioCLILib/SpeakCommand.swift:1821-1830 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1464}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbaa73fd36619b01ef8b12ca43f6ca5d1b25dba2ad68179124819dd7abb99c87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): Sources/AudioCLILib/TranscribeCommand.swift:564-572 | Sources/AudioCLILib/TranscribeCommand.swift:628-637 | Sources/AudioCLILib/TranscribeCommand.swift:658-667 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/TranscribeCommand.swift:564\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a10cd0255c7584859467b9fededf33bdd4e9a9abe7e144a4bc83aa4a7e16e60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/FlashSR/UNet.swift:61-70 | Sources/FlashSR/VAE.swift:137-146 | Sources/FlashSR/VAE.swift:164-173 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/UNet.swift:61\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e61b835ce705c61e9576255678ba2228b7bf461fd4b7ba0ce0887a80ca00b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/FlashSR/UNet.swift:402-411 | Sources/FlashSR/UNet.swift:427-436 | Sources/FlashSR/UNet.swift:451-460 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d99f444f3a4d37d2c78f7dc91eb033b38622f624d8b44dac10db59aec3eca6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:64-73 | Sources/PersonaPlex/MimiTransformer.swift:66-75 | Sources/PersonaPlex/TemporalTransformer.swift:66-75 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"502d2363752a1dbd7f69efbfc6d7238969addf0c48f52fba42bda885e32281f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 3): Sources/MagpieTTSCoreML/LocalTransformer.swift:218-223 | Sources/ParakeetASR/MelPreprocessor.swift:159-168 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:160-167 \u2014 before extracting anything, compare \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/LocalTransformer.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f308141a1bdf9e5124361a190d5d69f297abda16e5631bc59ed4633e901520c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:859-866 | Sources/PersonaPlex/PersonaPlex.swift:1261-1270 | Sources/PersonaPlex/PersonaPlex.swift:1530-1536 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:859\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/PersonaPlex/PersonaPlex.swift:869\u0060 calls \u0060item\u0060 and \u0060Sources/PersonaPlex/PersonaPlex.swift:1540\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"3001a7785983b930e2d25ed0538cab137cde9291919f2b6c2f1467f05313c05d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift:45-54 | Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift:99-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c203bffe9e575f955ebf03ce50e20f06ddcf870120d145002870a8b04d6cc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/AudioCLILib/SpeakCommand.swift:1517-1526 | Sources/AudioCLILib/SpeakCommand.swift:1572-1581 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:1517\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e75812e1077925da36a66a25e1de02790df83cdd6253afaf952a3545b61fe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/AudioCLILib/VoiceChatMCP.swift:765-774 | Sources/AudioCLILib/VoiceChatMCP.swift:796-804 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/VoiceChatMCP.swift:765\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"29112c7c244dc490ce46916836d7131f1ab7c1798669bb27b6a83f343ec684e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/BenchmarkSupport/BenchmarkSupport.swift:91-100 | Sources/BenchmarkSupport/BenchmarkSupport.swift:117-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BenchmarkSupport/BenchmarkSupport.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5aba9d86396c9a1fc36493986763504bca89998f2984bfa73c40f04047a5c8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/CosyVoiceTTS/FlowMelExtractor.swift:212-221 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:197-206 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/WhisperMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/FlowMelExtractor.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be701b5a922f0a065ccb73a4ceab34622f2570e4b88ece25b3331ca17b58ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:190-198 | Sources/VadBenchmark/VadBench.swift:192-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a02e51d66ffb823952a8bb95506634f7ae47d9a32e4f63887709b024ccec239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/F5TTS/F5TTSFlow.swift:256-264 | Sources/F5TTS/F5TTSFlow.swift:482-491 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSFlow.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"068447d2ae822b048cffd901fd963008116db2520424e3469e88e9a8acc1b1ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): Sources/FlashSR/Downloader.swift:13-20 | Sources/MagpieTTS/Downloader.swift:19-28 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/Downloader.swift:13\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060variant\u0060 to \u0060FlashSRVariant\u0060 in one and \u0060MagpieTTSVariant = .int8\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Downloader.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d385a5b3db47204cb6262930376261bb373495462862b2efd03bd52613ba1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:175-184 | Sources/PersonaPlex/Depformer.swift:150-159 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:175\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83ccb5a0826917ce31b9f41f65912d94cfd867bd20cba61d569ac9b546b2b58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:169-178 | Sources/PersonaPlex/TemporalTransformer.swift:171-180 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"df071d211dc65a61fd6f7e3a58d60aebee8b7794b962047086cdc57bdde5f0af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/MagpieTTS/MagpieTTS.swift:188-197 | Sources/MagpieTTS/MagpieTTS.swift:250-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/MagpieTTS.swift:188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/MagpieTTS.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a11f87b26b08087d680d51eba300e43bf55bc1ba64fac45e814b0a806cb0eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:149-158 | Sources/PersonaPlex/PersonaPlex.swift:1345-1354 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"660042aabe07867d3f5e8fd77d0a11030ee2519c8dd1ec349ddf3be27a789f4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Qwen3ASR/CoreMLASRModel.swift:85-94 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:143-154 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLASRModel.swift:85\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3ASR/CoreMLASRModel.swift:83\u0060 calls \u0060CoreMLASRModel\u0060, \u0060appendingPathComponent\u0060 and \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:143\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLASRModel.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ead5e33c4203570c9cf8e8437b26e49a9fa5c19f7abc6bb27ee039f079d62c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Qwen3ASR/CoreMLASRModel.swift:141-150 | Sources/Qwen3ASR/CoreMLASRModel.swift:295-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLASRModel.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fc7e17e5be9e1740289481fa40be004d497a5202dd1aedce7c21dc27a801d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Qwen3TTS/CodePredictor.swift:104-113 | Sources/Qwen3TTS/Talker.swift:115-124 \u2014 before extracting anything, compare \u0060Sources/Qwen3TTS/CodePredictor.swift\u0060 and \u0060Sources/Qwen3TTS/Talker.swift\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/CodePredictor.swift:104\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060CodePredictorConfig\u0060 in one and \u0060TalkerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/CodePredictor.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7795892960e9927f7b77b1b8f0eb80323d603da0978ee0a0448f8f1ab53b72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/Qwen3TTS/Qwen3TTS.swift:228-237 | Sources/Qwen3TTS/Qwen3TTS.swift:335-344 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/Qwen3TTS.swift:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76e88371578d288ba51a8ed8b557760006136435fe9018217cf2bef27173cb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift:129-138 | Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift:220-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c089013dd48490965761a696416bd8e697434197f30fb09ecc100c915a0f45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SpeechEnhancement/AudioProcessing.swift:326-335 | Sources/SpeechEnhancement/AudioProcessing.swift:355-364 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechEnhancement/AudioProcessing.swift:326\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/AudioProcessing.swift"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49193a15a8ba652fd0ec7b64d4b128ea874a6d9405d9a2999c6c10def115ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/SpeechEnhancement/MLXDeepFilterNet3Network.swift:386-395 | Sources/SpeechEnhancement/WeightLoading.swift:25-34 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/MLXDeepFilterNet3Network.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef78c805c0a97ae3d1e150480d32c1b0682cbe6c4f6517c3e4c6142e5922787"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Sources/SpeechWakeWord/StreamingSession.swift:344-353 | Sources/SpeechWakeWord/StreamingSession.swift:365-373 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechWakeWord/StreamingSession.swift:344\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechWakeWord/StreamingSession.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31dbca44ed89ffa199286a42c5723068e885d11e8d0f10db0755ec8548baf54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift:216-225 | Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift:245-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift:216\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"93faa5925ab594edbc557fca45804f46473ec9296e53596db0c56f490e31283c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 15): Sources/PersonaPlex/PersonaPlex.swift:205-213 | Sources/PersonaPlex/PersonaPlex.swift:245-252 | Sources/PersonaPlex/PersonaPlex.swift:261-268 | Sources/PersonaPlex/PersonaPlex.swift:275-282 | Sources/PersonaPlex/PersonaPlex.swift:681-688 | Sources/PersonaPlex/PersonaPlex.swift:707-714 | Sources/PersonaPlex/PersonaPlex.swift:719-726 | Sources/PersonaPlex/PersonaPlex.swift:731-738 | Sources/PersonaPlex/PersonaPlex.swift:1076-1083 | Sources/PersonaPlex/PersonaPlex.swift:1103-1110 | Sources/PersonaPlex/PersonaPlex.swift:1115-1122 | Sources/PersonaPlex/PersonaPlex.swift:1127-1134 | Sources/PersonaPlex/PersonaPlex.swift:1406-1413 | Sources/PersonaPlex/PersonaPlex.swift:1418-1425 | Sources/PersonaPlex/PersonaPlex.swift:1430-1437 \u2014 all 15 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/PersonaPlex/PersonaPlex.swift:741\u0060 calls \u0060asType\u0060, \u0060eval\u0060 and \u0060Sources/PersonaPlex/PersonaPlex.swift:273\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a74e2f82521ebbbe6df26b086e8e0eab79d753a303a04d1eb8bcd402300c391"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): Sources/CanaryASR/MelPreprocessor.swift:68-76 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:67-75 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:71-79 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:201-209 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:293-301 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/MelPreprocessor.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f5e2038cbdeb01cec5672d1779912b8b6fec82bab6b35fa4c90622096e1c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 4): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:93-99 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:95-103 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:217-223 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:312-319 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"b592a55e29db35245a99cb9aeefa7cb90625b6d6751eb194393208bbb6cafd69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/AudioCLILib/DiarizeCommand.swift:137-145 | Sources/AudioCLILib/DiarizeCommand.swift:202-210 | Sources/AudioCLILib/DiarizeCommand.swift:280-288 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/DiarizeCommand.swift:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86ba7a03af2c84fd80533a35c36d065871f2c7dd2b4ec5c5801ac74baac64bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/KokoroTTS/KokoroModel.swift:59-67 | Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:156-164 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:144-152 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/KokoroModel.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65c1bcd418c0d3648e5333477ecd06668933a3cee47f904d47d39249d121179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 3): Sources/PersonaPlex/PersonaPlex.swift:291-299 | Sources/PersonaPlex/PersonaPlex.swift:743-749 | Sources/PersonaPlex/PersonaPlex.swift:1442-1447 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:291\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"770a1351406264552f964c74038656c1e30331af6c1dea4b6bd7c4280d7d10d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/Qwen3ASR/FloatTextDecoder.swift:198-207 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:218-230 | Sources/Qwen3TTS/Talker.swift:246-254 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:198\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2469f163f5e82c4acdd7d4a5a8e20416dfd706c19df1e9451312ccf925b002"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1208-1216 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1273-1281 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1316-1324 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3b0f0314c4f0b7ef64ee62bfc400ecf5041e405ed7788bd9348c80a1949677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/CohereTranscribeASR/CohereAudioFrontend.swift:115-123 | Sources/VoxtralASR/VoxtralAudioFrontend.swift:104-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CohereTranscribeASR/CohereAudioFrontend.swift:115\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralAudioFrontend.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeb4e34893fc2915270b2a1842f33eb2c1a343d38a650286a7c4c220b4fab291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/FishAudioTTS/FishAudioCodec.swift:100-108 | Sources/FishAudioTTS/FishAudioCodec.swift:118-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioCodec.swift:100\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb440b345fa5a2c934efc0f54cc29088d18804def1b93139c17f34e1bc54e08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/FishAudioTTS/FishAudioCodec.swift:1036-1044 | Sources/FishAudioTTS/FishAudioWeightLoading.swift:103-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb420474f461bfdb133df9e26ec7941619b1419289028a94f327063a6249f0a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/FlashSR/VAE.swift:203-211 | Sources/FlashSR/VAE.swift:230-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/VAE.swift:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/VAE.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd56359130aa8d787f1f3f30b0ec7f17284d402028e6829450d918e1e36e800"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:289-297 | Sources/PersonaPlex/Depformer.swift:253-262 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:289\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HibikiTranslate/HibikiDepformer.swift:299\u0060 calls \u0060sliceIndex\u0060 and \u0060Sources/PersonaPlex/Depformer.swift:264\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fd536948b1822f20bd52f3c2ce865cbd45c49a77a32c1b1d5e4833537f8eb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:28-36 | Sources/HibikiTranslate/HibikiWeightLoading.swift:58-66 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:28\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1215eea8942bc9cff4ed8d973c8eaaab80c43d061cf6d1a514f50cc217a69a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift:191-199 | Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift:353-361 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"6065f022a3d5b10accfe7718df5c83cb7e16e3185ee813cc867b4dcd8060ab62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/MagpieTTSCoreML/NanoCodec.swift:31-39 | Sources/MagpieTTSCoreML/NanoCodec.swift:79-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/NanoCodec.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e08e4e42528d83e3177b6decc1c695d0189e8cf67dbf1b417555008bfd229b28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/NemotronStreamingASR/Vocabulary.swift:239-247 | Sources/ParakeetStreamingASR/Vocabulary.swift:39-47 \u2014 \u0060Sources/NemotronStreamingASR/Vocabulary.swift\u0060 and \u0060Sources/ParakeetStreamingASR/Vocabulary.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/Vocabulary.swift:239\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/NemotronStreamingASR/Vocabulary.swift:248\u0060 calls \u0060isSpecialToken\u0060 and \u0060Sources/ParakeetStreamingASR/Vocabulary.swift:48\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d553d9a17262683385f98d4e760e1d17c5c798bce53759890a31e0ed918a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/OmniVoiceTTS/OmniVoiceCodec.swift:280-288 | Sources/ParakeetASR/Configuration.swift:45-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OmniVoiceTTS/OmniVoiceCodec.swift:280\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmniVoiceTTS/OmniVoiceCodec.swift"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7c7b5e6dc8c7e37439365d582401fd8d20ecad70d7ac33f7a22a43547f2d7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Qwen3ASR/CoreMLForcedAligner.swift:479-486 | Sources/SpeechEnhancement/DeepFilterNet3Model.swift:34-42 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:479\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLForcedAligner.swift"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d79168ba6f663ffa1609c140eaa4a1b59f0ad252a49f450ddd66fc39949b9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Qwen3ASR/Qwen3ASR.swift:730-738 | Sources/Qwen3ASR/Qwen3ASR.swift:826-834 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/Qwen3ASR.swift:730\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b520febf41cb6989be429d82ed46454650b5b3d6d938b0296366b78b03ffda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Qwen3ASR/StreamingASR.swift:155-163 | Sources/Qwen3ASR/StreamingASR.swift:182-190 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/StreamingASR.swift:155\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/StreamingASR.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8bf42f46de96894c6975f50166221b9e15dfdfcd4bcbe65bc40d1ca84ecd9ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Qwen3Chat/Gemma4WeightLoading.swift:43-50 | Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:29-37 \u2014 before extracting anything, compare \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:43\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:41\u0060 calls \u0060String\u0060, \u0060dropFirst\u0060, \u0060hasPrefix\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:29\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4WeightLoading.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2497cab5e3d738ac3760d43ddf5de294db69d8d59c3e7103280f86260eecc56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Qwen3Chat/Qwen35CoreMLChat.swift:136-144 | Sources/Qwen3Chat/Qwen35CoreMLChat.swift:146-154 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Qwen35CoreMLChat.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df1e6e13e2f7c65e7f1efbdd5b128cb1d9e358cdde3bd74c4ac0250afa45e88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20139 lines \u00D7 6): Sources/Qwen3ASR/WeightLoading.swift:244-245 | Sources/Qwen3ASR/WeightLoading.swift:248-249 | Sources/Qwen3ASR/WeightLoading.swift:266-267 | Sources/Qwen3ASR/WeightLoading.swift:268-269 | Sources/Qwen3TTS/TTSWeightLoading.swift:125-133 | Sources/Qwen3TTS/TTSWeightLoading.swift:200-207 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/TTSWeightLoading.swift:125\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/WeightLoading.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8cf20b5418611a6a8c22de7c70aedd4ccf0317a13ec535f9edbbc15e7553dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:153-161 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:173-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd30b30d47fdf0549b8fbbcb816e2b6e3c69ab7bf3ef53fe7d45ff09d9c4857"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:295-302 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:369-377 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:295\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c147f3c046b8efb91cb904c3ee8eafe73ba5fa1dd12fc915ea23d4973eb3f16d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/Qwen3TTSCoreML/TalkerGenerator.swift:126-134 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:113-120 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/TalkerGenerator.swift:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/TalkerGenerator.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a91dbbdb6951a885ce18119ed5fae31c71adf95e9fff25db35bde9f0ef94f95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/SourceSeparation/WienerFilter.swift:13-21 | Sources/SourceSeparation/WienerFilterMLX.swift:88-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SourceSeparation/WienerFilter.swift:13\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/WienerFilter.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f743437c2d1a0ce8c9bfb707819a762b2864a10efba1bea046732cc801c90589"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Sources/SpeechVAD/Community1DiarizationPipeline.swift:136-144 | Sources/SpeechVAD/Community1DiarizationPipeline.swift:152-159 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/Community1DiarizationPipeline.swift:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1DiarizationPipeline.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8758858c564213bee46b2cf6c8f593c12fbdfcb3797b86275459e09ebf7d7496"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:50-58 | Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:107-115 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:50\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f878c64e292a88f7a09d67032c8f8ac52d2ad14beaf270349aa5876bea73e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 6): Sources/PersonaPlex/PersonaPlex.swift:201-208 | Sources/PersonaPlex/PersonaPlex.swift:290-296 | Sources/PersonaPlex/PersonaPlex.swift:679-684 | Sources/PersonaPlex/PersonaPlex.swift:742-747 | Sources/PersonaPlex/PersonaPlex.swift:1074-1079 | Sources/PersonaPlex/PersonaPlex.swift:1441-1446 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd8d17e0624cbbc94647ee3dd59fd57f126858df546ac6240f829a0ee303b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): Sources/NemotronStreamingASR/NemotronStreamingASR\u002BProtocols.swift:7-14 | Sources/OmnilingualASR/MLX/OmnilingualASRMLXModel\u002BProtocols.swift:8-15 | Sources/OmnilingualASR/OmnilingualASR\u002BProtocols.swift:9-16 | Sources/ParakeetASR/ParakeetASR\u002BProtocols.swift:7-14 | Sources/ParakeetStreamingASR/ParakeetStreamingASR\u002BProtocols.swift:8-15 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR\u002BProtocols.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c93ee2d3a2bd818ad55184e6d2aa5ed7b9d7e108299f5b2b79f5d8e4da4c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Sources/CosyVoiceTTS/CamPlusPlusSpeaker.swift:63-70 | Sources/SpeechVAD/FireRedVAD.swift:83-90 | Sources/SpeechVAD/SileroVAD.swift:302-309 | Sources/SpeechVAD/WeSpeaker.swift:152-159 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/SileroVAD.swift\u0060 and \u0060Sources/SpeechVAD/WeSpeaker.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusSpeaker.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fcc442c6d7cdcd7409d690d11c0416b8029768c27d6dab9509729d73daa70d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:134-140 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:145-152 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:263-269 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:351-358 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:362\u0060 calls \u0060min\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:156\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"8703047f9acafb080c3240c4d51d6886b9c8074ea02ae4ea66619d17d59b1eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): Sources/Qwen3ASR/FloatTextDecoder.swift:77-83 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:64-71 | Sources/Qwen3TTS/CodePredictor.swift:60-66 | Sources/VoxCPM2TTS/MiniCPM4.swift:268-274 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89cd0cdc479c9b8fb8484e13616cff55438c32435f24399584e2e2589a5bb7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 4): Sources/AudioCLILib/DiarizeCommand.swift:423-424 | Sources/AudioCLILib/DiarizeCommand.swift:444-451 | Sources/AudioCLILib/VadCommand.swift:130-137 | Sources/AudioCLILib/VadStreamCommand.swift:168-175 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/DiarizeCommand.swift:423\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ebcd2c6e74ee4ca77e3d7405385a60192e3ec293b51bf61d80a4a3febd70b7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/AudioCLILib/SpeakCommand.swift:1245-1252 | Sources/AudioCLILib/SpeakCommand.swift:1517-1524 | Sources/AudioCLILib/SpeakCommand.swift:1572-1579 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/SpeakCommand.swift:1245\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a287c0443a91915d488b1764387ca1d21dda27f22164db6ce67e490b09dfc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/ChatterboxTTS/MatchaCFM.swift:288-295 | Sources/ChatterboxTTS/MatchaCFM.swift:313-319 | Sources/ChatterboxTTS/MatchaCFM.swift:338-345 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/MatchaCFM.swift:288\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ChatterboxTTS/MatchaCFM.swift:296\u0060 calls \u0060CFMCausalConv1d\u0060 and \u0060Sources/ChatterboxTTS/MatchaCFM.swift:320\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/MatchaCFM.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0556d2126c32ceeb49fb55194ea78497339eef57223f5646bcad36bf030805f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/CohereTranscribeASR/CohereTranscribe.swift:276-283 | Sources/KyutaiSTT/KyutaiSTTModel.swift:61-67 | Sources/VoxtralASR/VoxtralASR.swift:192-199 \u2014 before extracting anything, compare \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KyutaiSTT/KyutaiSTTModel.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f7ef3abb14ad5f6b4b3b1015514fc70fdb500d6ba003708fe678b668c72f93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/FishAudioTTS/FishAudioTokenizer.swift:42-49 | Sources/HiggsTTS/HiggsTTSTokenizer.swift:63-70 | Sources/IndicMioTTS/IndicMioTokenizer.swift:25-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioTokenizer.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"42aec8db419cbc698c6245a81c1b61a761dc2bac0b408590765ee3c77ff38bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Sources/FlashSR/Mel.swift:160-166 | Sources/MLXCommon/SlaneyMel.swift:130-136 | Sources/Qwen3TTS/SpeakerEncoder.swift:376-383 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/Mel.swift:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Mel.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fe6052175f5f658d5a6ee804d04e03bbf47b9854fa394c6650cc6e7ae7410c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/MagpieTTSCoreML/Decoder.swift:236-243 | Sources/MagpieTTSCoreML/NanoCodec.swift:91-98 | Sources/MagpieTTSCoreML/TextEncoder.swift:53-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTSCoreML/Decoder.swift:236\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adb5194dbd2672bcd0d48a47497521ff70e8acf22ab56657893de90bdd47178"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Sources/SourceSeparation/WienerFilter.swift:14-21 | Sources/SourceSeparation/WienerFilterMLX.swift:27-34 | Sources/SourceSeparation/WienerFilterMLX.swift:89-96 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/WienerFilter.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"66abd1d7372e1d131f436afffb2688930a8e9864f128c44a96fd16e738dce965"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:532-539 | Sources/AudioCommon/AudioIO.swift:156-163 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e803050b161a7fcd5457335a39846d896f6514dd5752eb4cfc2dc335275aec8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/AsrBenchmark/AsrBench.swift:312-319 | Sources/BenchmarkSupport/BenchmarkSupport.swift:225-232 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/AsrBench.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adb47d453076db4b82a2bc2082db6937398242ee4d2114ec9935a4b1a929966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/AudioServer/OpenAISpeech.swift:177-184 | Sources/AudioServer/OpenAISpeech.swift:202-209 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioServer/OpenAISpeech.swift:177\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAISpeech.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dd679e56a1894c8de9e6d1d97fa1ef523071544f96c6be8cb9179f0c06fccb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:103-110 | Sources/ChatterboxTTS/S3GenVocoder.swift:140-147 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:103\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b71c255187d1897a4096bca326d48ae36f00ac4bb68c00bbb254bc5dd35d961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CosyVoiceTTS/LLM.swift:321-328 | Sources/Qwen3TTS/Qwen3TTS.swift:1219-1226 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:321\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"25061b321b4e1af65033ab5d10eeebe093719bc26de06ad246508ce497bc3c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/F5TTS/F5TTSConfig.swift:147-154 | Sources/HiggsTTS/HiggsTTSConfig.swift:92-99 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/F5TTS/F5TTSConfig.swift:147\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSConfig.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b426ffb85593c864255d90fcf098f8341fb9701e609dacb8cc85a3eaf5e239bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:117-124 | Sources/PersonaPlex/Depformer.swift:92-99 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:117\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d3d6994eb78e9fc737a02e8200c79426d7408d50c915625d4c9b3743a19bce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:21-27 | Sources/PersonaPlex/WeightLoading.swift:20-27 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060model\u0060 to \u0060HibikiTranslateModel\u0060 in one and \u0060PersonaPlexModel\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:27\u0060 calls \u0060update\u0060, \u0060missingWeightFile\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift:27\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb1fcd767f26821bbcc7e3043a7c571ba139b42d8932b3ddba94dc5c92258ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:79-86 | Sources/PersonaPlex/WeightLoading.swift:58-65 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:79\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7592c1f0d75443394bf708ff9ae6b879ca7f8597278f4e9244a11c77e25ea7fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:213-220 | Sources/PersonaPlex/WeightLoading.swift:228-235 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:213\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"66192705e7b542a292b44f373a82d29a4d6ce19b1420220bf60475057e480bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift:187-194 | Sources/NemotronStreamingASR/SentencePieceUnigramTokenizer.swift:133-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift:187\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eaaaf2a5112db31f6abe72902e61c9197213ce8eb0fbb2b0de7f29d0e03bbb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Sources/MAGNeTMusicGen/MAGNeTLM.swift:48-55 | Sources/Qwen3ASR/AudioEncoder.swift:117-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MAGNeTMusicGen/MAGNeTLM.swift:48\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MAGNeTMusicGen/MAGNeTLM.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6726e4364cd6d399474af02a5d1901697273aa87d57f743f99862b2f1b224ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/MLXCommon/SDPA.swift:30-37 | Sources/MLXCommon/SDPA.swift:52-59 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/SDPA.swift:30\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/SDPA.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb01b92e0ce56608a69ff0e1cdf92c0660d2bc79e97901dc958ddfaac015418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/MagpieTTS/WeightLoader.swift:165-172 | Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:27-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/WeightLoader.swift"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"859dd7bdfc03a30ab6cef6e66f17d02c5b63ca0f196c16e769aaf302b7106872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/MossTranscribe/MossMLXTextModel.swift:114-130 | Sources/VoxtralASR/VoxtralLanguageModel.swift:98-105 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXTextModel.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c8298c821606980c1a3a42925ff523cea712603b3be857f28e6d5b219be6eca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:66-72 | Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift:79-86 \u2014 \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift\u0060 and \u0060Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0f5bec85e008a50b2fc4868b2746f17a3986513d14e247913af10c02c0f032"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/ParakeetASR/MelPreprocessor.swift:34-41 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:38-45 \u2014 before extracting anything, compare \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetASR/MelPreprocessor.swift:34\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060ParakeetConfig\u0060 in one and \u0060ParakeetEOUConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/MelPreprocessor.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea5160ce6df3df73a02c1fe2d3cf3fa3a5f3354c7da9a47c8e9608560f2bd282"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/ParakeetASR/ParakeetASR.swift:93-100 | Sources/ParakeetStreamingASR/ParakeetStreamingASR.swift:123-129 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetASR/ParakeetASR.swift:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/ParakeetASR.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"866690b6c602e3da534a7cbb75a4e4ff2682c27d4c420b9d65b57dfcde143257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:135-142 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:343-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"72685bb6178fb48cc027f7e56e682ae4322b1ac946d1cfdcc7bb9e6a903cfd17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Qwen3ASR/CoreMLEncoder.swift:173-180 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:654-661 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/CoreMLEncoder.swift:173\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLEncoder.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"7979b1cdac822d6a362a648adc8327a8c6feb85143bd3c86a8204f7a48f801b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 2): Sources/Qwen3Chat/Gemma4WeightLoading.swift:56-63 | Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:43-48 \u2014 before extracting anything, compare \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:65\u0060 calls \u0060applyRMSNormWeights\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:51\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4WeightLoading.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9eb1545b41eaab856829d06eaa39342f272eae0ea20885821888ebe13147ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SpeechVAD/DERScoring.swift:106-113 | Sources/SpeechVAD/DERScoring.swift:290-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/DERScoring.swift:106\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DERScoring.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb92f54f4c42a166b6473ac7d1560f397683dc7d1acee5e1fcaa6ca79a5be96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:97-104 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:107-114 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5ed666b0527a38163e13282b94d9a16e32d2cd66a572d5852007c1a7cedcb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1264-1271 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1341-1348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:1264\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":1264}}}],"partialFingerprints":{"codehealthFindingId/v1":"88901fb98f6da9e7b2589d86364030a17d48e31b3dbfbc27b1dc202a4a559919"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:41-52 | Sources/KokoroTTS/KokoroTTS.swift:372-383 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:100-111 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:55-61 | Sources/SpeechWakeWord/SpeechWakeWord.swift:178-189 | Sources/SupertonicTTS/SupertonicTTS.swift:57-63 \u2014 before extracting anything, compare \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift\u0060 and \u0060Sources/KokoroTTS/KokoroTTS.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/KokoroTTS/KokoroTTS.swift:367\u0060 calls \u0060info\u0060 and \u0060Sources/Qwen3ASR/CoreMLForcedAligner.swift:97\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLModel.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a93d4641ae88723bac63b1680cbe566ae2a5b82232914c7f5a0119672d70f4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:187-193 | Sources/Qwen3ASR/AudioPreprocessing.swift:267-275 | Sources/Qwen3ASR/AudioPreprocessing.swift:424-431 | Sources/SpeechVAD/MelFeatureExtractor.swift:193-200 | Sources/SpeechVAD/SortformerMelExtractor.swift:202-211 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/Qwen3ASR/AudioPreprocessing.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f31a71d010d62561800bda16914edfb661f8f6c00ec75b1f1b87b067ac01ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:66-72 | Sources/ParakeetASR/MelPreprocessor.swift:59-66 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:70-76 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:200-206 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:292-298 \u2014 before extracting anything, compare \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7073e84cdd596937ed8890e87c26778472e6b54da995844ab935b09df6e0294c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift:256-261 | Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:534-540 | Sources/AudioCommon/AudioIO.swift:158-164 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f1c42290289ec9a778eab0703943dbb6f2b8c7ec05af46c894988864301119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/ChatterboxTTS/S3GenVocoder.swift:469-475 | Sources/CosyVoiceTTS/HiFiGAN.swift:608-616 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:659-667 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fcd16a49231c07875388b271c8266af2608873bb1ea5f56a3226803eb991cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:177-183 | Sources/SpeechVAD/MelFeatureExtractor.swift:183-189 | Sources/SpeechVAD/SortformerMelExtractor.swift:192-198 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift\u0060 and \u0060Sources/SpeechVAD/MelFeatureExtractor.swift\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 267 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:177\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b00589ab132f8b8f0e83e01ecedc24b3baa9299be80f4713f39bc29ac946c93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/MagpieTTS/Downloader.swift:26-40 | Sources/MossTranscribe/MossCoreMLRuntime.swift:314-328 | Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift:58-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/Downloader.swift:26\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Downloader.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafef61c55c09d2d1d6084072521a8b8d2a65cf9f14861f43df0b1fb2abea1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 3): Sources/MagpieTTSCoreML/Decoder.swift:177-183 | Sources/MagpieTTSCoreML/Decoder.swift:293-298 | Sources/MagpieTTSCoreML/StatefulDecoder.swift:94-99 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTSCoreML/Decoder.swift:177\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce6f4f158017d8d019d13ece11f3b57886d161534c0b6d8d89339c7caff666b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Sources/ParakeetASR/ParakeetASR.swift:312-318 | Sources/Qwen3ASR/CoreMLEncoder.swift:168-174 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:475-481 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/ParakeetASR.swift"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc36d6a79f1eb873cd413a1e2e9d1db97c46df590669c27cb8e5cbe49f1299c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/AudioCLILib/DiarizeCommand.swift:351-357 | Sources/AudioCLILib/VadCommand.swift:105-111 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/DiarizeCommand.swift:351\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59371755fb8231a9dd8e7847b1de5daf35bc14c73d6f5789f0d9bcfc8dd4882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/AudioCLILib/VoiceChatDemoSupport.swift:804-810 | Sources/AudioCLILib/VoiceChatDemoSupport.swift:1042-1048 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/VoiceChatDemoSupport.swift:1042\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatDemoSupport.swift"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ccedf870cdf3ef0cddae8d24f3fef91617af2b23c05cc8d95f04ca5f400343"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CohereTranscribeASR/CohereAudioFrontend.swift:131-137 | Sources/VoxtralASR/VoxtralAudioFrontend.swift:120-126 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralAudioFrontend.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb8be4295663ecb40356c9686b33a999bc1cacb302ca903a7232d2c6ec261a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CohereTranscribeASR/CohereAudioFrontend.swift:139-145 | Sources/VoxtralASR/VoxtralAudioFrontend.swift:128-134 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralAudioFrontend.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8bdc7187cd48181eeac1b0a2b47c0d630d552889decf6ef6514319ab6d44c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CosyVoiceTTS/LLM.swift:426-433 | Sources/Qwen3TTS/CodePredictor.swift:195-201 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:426\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3TTS/CodePredictor.swift:192\u0060 calls \u0060proj\u0060 and \u0060Sources/CosyVoiceTTS/LLM.swift:423\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a271a25defe91b3b2ee763181819a18db15de2330404e22720cd8cdfeeb90f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:160-166 | Sources/VadBenchmark/VadBench.swift:155-161 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/DiarizationBenchmark/DiarizationBench.swift:160\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5271f7f6135ea61d19881bd0d85b5f135e0ff00e59742f87bdc8dcdf62d76df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:902-909 | Sources/SpeechVAD/DERScoring.swift:347-353 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/DiarizationBenchmark/DiarizationBench.swift:902\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":902}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb966440988995fee113eabcad764a774a3040adbea5ec6f54b6750c658173a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HibikiTranslate/HibikiWeightLoading.swift:229-235 | Sources/PersonaPlex/WeightLoading.swift:244-250 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1044b5134aec67b1be2bf4190fc69ab98986e54a01e4e6a7e96685ae998fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:64-70 | Sources/IndicMioTTS/MioCodecGlobalEncoder.swift:39-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"632a695c73d96d871f86d2d897042db6519104ec421bb57fa9adeb1ad6e11dc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/IndicMioTTS/IndicMioConfig.swift:43-49 | Sources/Qwen3Chat/Qwen3DenseModel.swift:46-52 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioConfig.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7c56a4f103e6a7ddeb28853666b42ac0197456ccef183c67bd902ed60ed14c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/IndicMioTTS/IndicMioQwen3.swift:171-181 | Sources/Qwen3Chat/Qwen3DenseModel.swift:217-223 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndicMioTTS/IndicMioQwen3.swift:171\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioQwen3.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"668b940bb4a327400cdf94a79113acca1bc9e6c864fcdeea97670adc650ad5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/MADLADTranslation/MADLADTranslator.swift:185-192 | Sources/MADLADTranslation/MADLADTranslator.swift:245-251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MADLADTranslation/MADLADTranslator.swift:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTranslator.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"973c44206955e875dc426195b47216607aa358ca8351a6b6d31ab17b111fffdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/MAGNeTMusicGen/MAGNeTLM.swift:183-189 | Sources/OmnilingualASR/MLX/OmnilingualMLXWeightLoader.swift:108-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MAGNeTMusicGen/MAGNeTLM.swift:183\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/OmnilingualASR/MLX/OmnilingualMLXWeightLoader.swift:116\u0060 calls \u0060applyLayerNormWeights\u0060 and \u0060Sources/MAGNeTMusicGen/MAGNeTLM.swift:191\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MAGNeTMusicGen/MAGNeTLM.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c08fc10ba16f694988545f7ea8b787d3b28facd1615ced1f2a8b193dc14437a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/MLXCommon/WeightLoading.swift:185-191 | Sources/MLXCommon/WeightLoading.swift:229-235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/WeightLoading.swift:185\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/WeightLoading.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a6556cf7d714389579672646572ef7666b78037b0c88f6801b46c402f5b896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:67-73 | Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:93-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:67\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXRuntime.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"22871dc3c811a3589f62db50484fa21764b15782572ed53cfaa5eb1dc636661a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:147-153 | Sources/ParakeetStreamingASR/StreamingSession.swift:121-128 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingSession.swift:147\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7c90d92076874565478f7e9d9fd836a1aececac8e616fc0fb1304e8f7f43ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/NemotronStreamingASR/Vocabulary.swift:65-74 | Sources/ParakeetStreamingASR/Vocabulary.swift:17-23 \u2014 \u0060Sources/NemotronStreamingASR/Vocabulary.swift\u0060 and \u0060Sources/ParakeetStreamingASR/Vocabulary.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 49 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bdd1b62a88e4265c01383bebdf0c4167b729fa06cecd9a9942ab31d854ed7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:430-436 | Sources/PersonaPlex/PersonaPlex.swift:909-915 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:430\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b9e4deebef814a388ab4c6f6b6251d8e96d8fe8ea640ed2de0bab969387bd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:524-530 | Sources/PersonaPlex/PersonaPlex.swift:893-899 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:524\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1d6a684e886dee7e61bdff8d3c56d3ba625d084ea23b5b3f8aef445fff34e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): Sources/FishAudioTTS/FishAudioTokenizer.swift:88-90 | Sources/Qwen3Chat/ChatTokenizer.swift:49-55 | Sources/Qwen3Chat/Gemma4Tokenizer.swift:43-48 | Sources/VoiceChat/VoiceChatTokenizer.swift:89-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioTokenizer.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"34efa2ce5f6bdb6386ca353bedc680c3f5199876029b88a31feaadd51312b8e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Sources/Qwen3Chat/Qwen35CoreMLChat.swift:45-50 | Sources/SpeechCore/MemoryTier.swift:77-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechCore/MemoryTier.swift:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Qwen35CoreMLChat.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2088d05bd5452035c949c0e5fdab08ce0dabc2aa6a68ace4ed1fd62870e4394"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift:361-367 | Sources/Qwen3TTS/Qwen3TTS.swift:1521-1530 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fe44cb5f898fab5c7f969695da1737eee38e87084b3d6455b97558d979c0f37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Qwen3TTS/Qwen3TTS.swift:2044-2050 | Sources/Qwen3TTS/Qwen3TTS.swift:2063-2069 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":2044}}}],"partialFingerprints":{"codehealthFindingId/v1":"72eb5ed1e689d665a4a423b7a44e1a9aa0431d50db58e6da4ebcfb8dd08ac3ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Qwen3TTSCoreML/TalkerGenerator.swift:143-149 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:128-134 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/TalkerGenerator.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d429687e5d1a457cec12a06ca39cbafafab4a00aa24b1ef94a98475261bab6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SpeechRestoration/SidonModels.swift:27-33 | Sources/SpeechRestoration/SidonModels.swift:64-70 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechRestoration/SidonModels.swift:27\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechRestoration/SidonModels.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a0174ad7fcb8dc2a925b2186dbb035063e4cec7e93628ca6454ffe8bd5cf37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/SpeechVAD/SortformerDiarizer.swift:76-82 | Sources/SpeechVAD/SortformerDiarizer.swift:154-160 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SortformerDiarizer.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8dece5535d1effb15071e631b61132f6b81e39799dbc0ad3d5604e0efe155d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift:267-273 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:576-582 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoice15BTTSModel.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cacbe86b0b9d152caee91fdc41f9d8d81b3d9eca807840e39bd602982b48a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/CSM/CSMModel.swift:92-97 | Sources/HibikiTranslate/HibikiDepformer.swift:140-145 | Sources/HibikiTranslate/HibikiTemporalTransformer.swift:72-77 | Sources/PersonaPlex/Depformer.swift:116-121 | Sources/PersonaPlex/TemporalTransformer.swift:74-79 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CSM/CSMModel.swift:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CSM/CSMModel.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a266b1787d074e036da142e1662659377602d2a9c135fd5fa18994b1e01f47f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Sources/Qwen3ASR/FloatTextDecoder.swift:85-90 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:74-80 | Sources/Qwen3Chat/Qwen35Model.swift:381-387 | Sources/Qwen3TTS/CodePredictor.swift:68-73 | Sources/Qwen3TTS/Talker.swift:77-83 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:81\u0060 calls \u0060reshaped\u0060 and \u0060Sources/Qwen3Chat/Qwen35Model.swift:374\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"6526e1f5ebd8bba54e59e9a1a68a52bc824ca1168a3feb398039b649de8222c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/AsrBenchmark/EngineNemotron.swift:19-24 | Sources/AsrBenchmark/EngineNemotron.swift:70-78 | Sources/AsrBenchmark/EngineOmnilingual.swift:19-24 | Sources/AsrBenchmark/EngineParakeet.swift:23-28 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060language\u0060 to \u0060String?) async throws -\u003E (text: String\u0060 in one and \u0060String? ) async throws -\u003E (text: String\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineNemotron.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1737e486b48ded32d7e6961b24536ebe3e9a2894d85c6b9f4ee02f10b7b8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Sources/AudioCLILib/DiarizeCommand.swift:83-88 | Sources/AudioCLILib/EmbedSpeakerCommand.swift:24-29 | Sources/AudioCLILib/VadCommand.swift:44-49 | Sources/AudioCLILib/VadStreamCommand.swift:47-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/DiarizeCommand.swift:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/DiarizeCommand.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b16c5a6fd7d3fc480dd86930fcfe295ed4938ecdbe76694d790da84a1cd2113c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/ChatterboxTTS/S3GenVocoder.swift:430-435 | Sources/CosyVoiceTTS/HiFiGAN.swift:551-556 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:625-630 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f4e961f2018cb980ee24dde7040ccda7a97e7c33ba1a22450e2cb9ae9fbe67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/CohereTranscribeASR/CohereTranscribe.swift:253-262 | Sources/VoxtralASR/VoxtralASR.swift:169-178 | Sources/VoxtralTTS/VoxtralTTSModel.swift:89-94 \u2014 before extracting anything, compare \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift:253\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift:250\u0060 calls \u0060normalizeCohereWeightKeys\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralASR.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"961cec85dacaa7be91843cd6f3f157a82af7dc6d5cc8016b7908292e1d273b3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/CosyVoiceTTS/LLM.swift:68-78 | Sources/Qwen3TTS/Sampling.swift:45-50 | Sources/Qwen3TTS/Sampling.swift:190-195 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:68\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c72814ab1cf4741c1f6a1ebfab29c2fc43ecba73ed1e9c73d2d44f8c83ee0778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/HibikiTranslate/HibikiDepformer.swift:177-182 | Sources/PersonaPlex/Depformer.swift:152-157 | Sources/PersonaPlex/MimiTransformer.swift:108-113 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c1c9ac48ce18715a1a544121d6eed208cdbf4c493dfee1ce68e763b7d497280"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 5): Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift:94-99 | Sources/IndicMioTTS/IndicMioWavLM.swift:430-435 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:550-555 | Sources/MLXCommon/WeightLoading.swift:250-256 | Sources/Qwen3TTS/TTSWeightLoading\u002BEncoder.swift:87-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift:94\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift:100\u0060 calls \u0060value\u0060, \u0060asType\u0060 and \u0060Sources/MLXCommon/WeightLoading.swift:256\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a40629974c53f835b113279cd5e8e8dac52775ad65910dd0aaa02f55f7daf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/MADLADTranslation/MADLADWeightLoading.swift:36-41 | Sources/Qwen3Chat/Gemma4WeightLoading.swift:29-34 | Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:20-25 \u2014 before extracting anything, compare \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MADLADTranslation/MADLADWeightLoading.swift:36\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADWeightLoading.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36044430509814ec019a9c4402a081377bdb9dacd9ab5a960fe21e325bd7a63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:405-410 | Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:1270-1275 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"470d540a233704f8fc4554c9b83f34a34b4e23f2eee66fc2878b06753e1f2990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/AudioCLILib/VibeVoiceCommand.swift:93-99 | Sources/AudioCLILib/VibeVoiceCommand.swift:117-122 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VibeVoiceCommand.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b244426e6ab297fd7c52697912a5aea6b024e6ee56dc011801a3de0b9470cc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:1396-1401 | Sources/AudioServer/AudioServer.swift:1407-1413 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2751964c148bf03c41b85e73e1168a13dbe1d0078c44a23747d5f1b74eb909e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:1919-1924 | Sources/AudioServer/AudioServer.swift:1940-1945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioServer/AudioServer.swift:1919\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62af562e2fb7eafaa9529ddbbd3887e243e0404085d9762aa52a6261f94edae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CosyVoiceTTS/DialogueParser.swift:70-75 | Sources/CosyVoiceTTS/DialogueParser.swift:119-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/DialogueParser.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/DialogueParser.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86ac72edc9df27386482dcb4ee59efd9d38944b10592ad7df418d753c4cc4ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:96-101 | Sources/VadBenchmark/VadBench.swift:105-110 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b50ce307dfc5dbd873c83f7bf97601208b9b4d4e40f4ba8f2429df165976f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/F5TTS/F5TTSFlow.swift:514-519 | Sources/IndexTTS2TTS/IndexTTS2S2MelFlow.swift:192-197 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSFlow.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d4949ab7ecd78c0c1a80a57d5b8ec52304f26df0e50a455c692a052a3ca243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/FishAudioTTS/FishAudioCodec.swift:62-67 | Sources/FishAudioTTS/FishAudioCodec.swift:78-83 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioCodec.swift:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83ae406dfed63e290ea81b8758707a9ec409636588a00bf911acbf6c86e95fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/FlashSR/Vocoder.swift:83-88 | Sources/IndexTTS2TTS/IndexTTS2BigVGAN.swift:305-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060factor\u0060 to \u0060Int = 2\u0060 in one and \u0060Int\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Vocoder.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c578f4b8a7baeab78a55c6571d28c99c8a3bb4150ed73bb4e487b1f0286fc9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/IndicMioTTS/IndicMioSampler.swift:13-18 | Sources/Qwen3Chat/ChatSampler.swift:42-47 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060IndicMioSamplingConfig\u0060 in one and \u0060ChatSamplingConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioSampler.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a9854f93b12033bf2cb89a55dab794708f10ce22bd6e91c225afed47e7e156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/MLXCommon/SDPA.swift:21-28 | Sources/MLXCommon/SDPA.swift:45-50 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MLXCommon/SDPA.swift:21\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/SDPA.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce222e960016ae7e524b813220d0e296fc460af16859f0144d1887377a64237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift:141-146 | Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift:159-164 \u2014 \u0060Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift\u0060 and \u0060Sources/ParakeetStreamingASR/RNNTGreedyDecoder.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 5 separate duplicated blocks between them, totalling at least 62 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/RNNTGreedyDecoder.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"177a476417208777d4db117db809eb049e215f438531072f466f295defd62257"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:870-875 | Sources/PersonaPlex/PersonaPlex.swift:1540-1545 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:870\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15966ae02cb95c15a338a281a021a222e57cd7e9a424a00ac1da8753e6317e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3ASR/CoreMLASRModel.swift:128-133 | Sources/Qwen3ASR/CoreMLASRModel.swift:281-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLASRModel.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b30a76b0f4108b1c618bc4991139ed19dfd3c53e7a6ad08dfa15a034a3ba236"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3ASR/Qwen3ASR.swift:494-499 | Sources/Qwen3ASR/Qwen3ASR.swift:983-988 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efff0f38aa5f6b1af921b1371278558e568794207d85f9f38a070037009e943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3Chat/Gemma4Chat.swift:404-409 | Sources/Qwen3Chat/Gemma4Chat.swift:421-426 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Chat.swift"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8f00f5408d78313b4af7dd754ef39d6e5914abd073ba0374b3e07426c09237"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20136 lines \u00D7 3): Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift:216-218 | Sources/Qwen3TTS/Qwen3TTS.swift:241-246 | Sources/Qwen3TTS/Qwen3TTS.swift:347-352 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/Qwen3TTS.swift:241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/Qwen3TTS/Qwen3TTS.swift:240\u0060 calls \u0060checkCancellation\u0060 and \u0060Sources/Qwen3TTS/Qwen3TTS.swift:346\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS\u002BICL.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e6d1a511d5b8455db121700520f896a1d793a1963f3e5fc00412ea42817867f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3TTS/SpeakerEncoder.swift:385-390 | Sources/SpeechVAD/FireRedVAD.swift:498-503 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTS/SpeakerEncoder.swift:385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/SpeakerEncoder.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"318afce1f537d7a5d4a68750e8661038dbb07c0fcf7d26d7705a4f8b4b8ff1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:218-223 | Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift:134-139 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"56406b58d7dfc1181f36bdb7e34bca2c9e4cc86563e0f7e56a34032d636eace1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift:102-107 | Sources/Qwen3TTSCoreML/TalkerGenerator.swift:84-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f918e9dc893ac85aa6fe0a2a109fba2a21a6927c4aeb6dd1e9368f491b6de80b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift:118-123 | Sources/Qwen3TTSCoreML/TalkerGenerator.swift:101-106 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85aaefbb2618df4b6b1bf3bead2be2d67acf8063f92f8fc00d7cbde7916f89e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift:181-186 | Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift:272-277 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift:181\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucsLayers.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"1751d37c839a0d32566cf769f5a2d3bd71918d65e4d8503eaef081d5ba2741b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/VibeVoiceTTS/Models/DiffusionHead.swift:69-74 | Sources/VibeVoiceTTS/Models/Qwen2MLP.swift:10-15 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/DiffusionHead.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0a7689b33ead71519b64efecf2f259647c598d3a0f697e24d9d6d7c53afe1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:168-174 | Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift:676-681 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/VibeVoiceTTSModel.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbd84100ceaa8f7292d9eacb610bf6d80f6ba44591594fa00c36de2163c8b1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:790-795 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:869-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:790\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"e180528e4d13611c34d0a33db9c474978aaa626791d7582dce358912c2d9abe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): Sources/PersonaPlex/PersonaPlex.swift:203-208 | Sources/PersonaPlex/PersonaPlex.swift:244-248 | Sources/PersonaPlex/PersonaPlex.swift:274-278 | Sources/PersonaPlex/PersonaPlex.swift:291-296 | Sources/PersonaPlex/PersonaPlex.swift:680-684 | Sources/PersonaPlex/PersonaPlex.swift:706-710 | Sources/PersonaPlex/PersonaPlex.swift:730-734 | Sources/PersonaPlex/PersonaPlex.swift:743-747 | Sources/PersonaPlex/PersonaPlex.swift:1075-1079 | Sources/PersonaPlex/PersonaPlex.swift:1102-1106 | Sources/PersonaPlex/PersonaPlex.swift:1126-1130 | Sources/PersonaPlex/PersonaPlex.swift:1405-1409 | Sources/PersonaPlex/PersonaPlex.swift:1429-1433 | Sources/PersonaPlex/PersonaPlex.swift:1442-1446 \u2014 all 14 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/PersonaPlex/PersonaPlex.swift:288\u0060 calls \u0060asType\u0060, \u0060eval\u0060 and \u0060Sources/PersonaPlex/PersonaPlex.swift:270\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be2a3ab351842497e19f60984b78c4fdb7f2694ad537d1a414589f24b71e00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:176-180 | Sources/ParakeetASR/MelPreprocessor.swift:128-133 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:134-138 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:342-346 | Sources/Qwen3ASR/AudioPreprocessing.swift:244-250 | Sources/Qwen3ASR/AudioPreprocessing.swift:408-412 | Sources/SpeechVAD/MelFeatureExtractor.swift:182-186 | Sources/SpeechVAD/SortformerMelExtractor.swift:191-195 \u2014 there are 8 copies across 6 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:176\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3ASR/AudioPreprocessing.swift:254\u0060 calls \u0060fatalError\u0060 and \u0060Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift:183\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CamPlusPlusMelExtractor.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"676e2a5ce3dc354bbae08e1a273ae9698bb9d6dd41e1bdc6b693a416d8ac0a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): Sources/IndicMioTTS/IndicMioWavLM.swift:438-444 | Sources/IndicMioTTS/MioCodecWaveDecoder.swift:558-564 | Sources/MLXCommon/WeightLoading.swift:79-86 | Sources/MLXCommon/WeightLoading.swift:238-245 | Sources/MLXCommon/WeightLoading.swift:257-264 | Sources/MLXCommon/WeightLoading.swift:295-302 | Sources/MLXCommon/WeightLoading.swift:317-324 | Sources/Qwen3TTS/TTSWeightLoading\u002BEncoder.swift:89-93 \u2014 there are 8 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndicMioTTS/IndicMioWavLM.swift:438\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/MLXCommon/WeightLoading.swift:292\u0060 calls \u0060transposed\u0060 and \u0060Sources/IndicMioTTS/IndicMioWavLM.swift:435\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioWavLM.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"1177f9d4d178bd43f10acd48e8420bc085f49fcc358440f58d79189c9a5e9789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 8): Sources/AudioCLILib/TranscribeCommand.swift:211-213 | Sources/AudioCLILib/TranscribeCommand.swift:237-239 | Sources/AudioCLILib/TranscribeCommand.swift:469-473 | Sources/AudioCLILib/TranscribeCommand.swift:507-511 | Sources/AudioCLILib/TranscribeCommand.swift:535-539 | Sources/AudioCLILib/TranscribeCommand.swift:581-583 | Sources/AudioCLILib/TranscribeCommand.swift:609-613 | Sources/AudioCLILib/TranscribeCommand.swift:640-644 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/TranscribeCommand.swift:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/AudioCLILib/TranscribeCommand.swift:511\u0060 calls \u0060Float\u0060 and \u0060Sources/AudioCLILib/TranscribeCommand.swift:213\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranscribeCommand.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d61e99d071eba4bbc9cc04143e534286ee07a5f6065070afa7c88b7b5779e230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/CosyVoiceTTS/LLM.swift:232-239 | Sources/Qwen3ASR/FloatTextDecoder.swift:151-155 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:158-163 | Sources/Qwen3TTS/CodePredictor.swift:117-121 | Sources/Qwen3TTS/Talker.swift:128-135 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:232\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"660b77f7ec692f1400bec4253d8a43ae611df84dff2a7a9ff3f8b091f5cf41c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/CosyVoiceTTS/LLM.swift:428-434 | Sources/Qwen3ASR/FloatTextDecoder.swift:204-208 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:226-231 | Sources/Qwen3TTS/CodePredictor.swift:197-202 | Sources/Qwen3TTS/Talker.swift:251-255 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/LLM.swift\u0060 and \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CosyVoiceTTS/LLM.swift:428\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/LLM.swift"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"077fe63e6cf8445a50b66dc746ea63d8e8a6336ccf603ea3b563aa32856348c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): Sources/HibikiTranslate/HibikiDepformer.swift:146-150 | Sources/HibikiTranslate/HibikiTemporalTransformer.swift:78-84 | Sources/PersonaPlex/Depformer.swift:122-126 | Sources/PersonaPlex/MimiTransformer.swift:80-84 | Sources/PersonaPlex/TemporalTransformer.swift:80-84 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiDepformer.swift:146\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"79aacedeb3b73125b4ef10f936543296582f1f1eaf028bc1a27cf8f0553ac1b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/CanaryASR/MelPreprocessor.swift:32-36 | Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:29-35 | Sources/ParakeetASR/MelPreprocessor.swift:27-33 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:32-37 \u2014 before extracting anything, compare \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetASR/MelPreprocessor.swift\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CanaryASR/MelPreprocessor.swift:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060CanaryConfig\u0060 in one and \u0060NemotronStreamingConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:26\u0060 calls \u0060private\u0060 and \u0060Sources/CanaryASR/MelPreprocessor.swift:29\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CanaryASR/MelPreprocessor.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b55e332a0504bec85041044365482b34a0dc7920db3b79cf5539ec8fed79751"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/PersonaPlex/PersonaPlex.swift:197-203 | Sources/PersonaPlex/PersonaPlex.swift:675-680 | Sources/PersonaPlex/PersonaPlex.swift:1071-1075 | Sources/PersonaPlex/PersonaPlex.swift:1376-1380 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/PersonaPlex.swift:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07da3d59dd46e51eb552fd4fecf1faf23948a2b950da8460c3e069af4ff6d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Qwen3ASR/FloatTextDecoder.swift:64-68 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:48-54 | Sources/Qwen3TTS/CodePredictor.swift:46-51 | Sources/Qwen3TTS/Talker.swift:51-56 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:64\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060config\u0060 to \u0060TextDecoderConfig\u0060 in one and \u0060CodePredictorConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58f1293e9e2895bb4286ea5a568eae0c41a7f7547b1516be6aa14fbb8d9f544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/Qwen3ASR/FloatTextDecoder.swift:70-74 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:56-60 | Sources/Qwen3TTS/CodePredictor.swift:53-57 | Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:262-266 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/FloatTextDecoder.swift:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/FloatTextDecoder.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"758fc433d052b222dcb02d20a80a425d2ff05f640c1956abda0fab1284110148"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/ChatterboxTTS/ChatterboxS3Gen.swift:100-104 | Sources/FlashSR/Mel.swift:100-104 | Sources/MLXCommon/SlaneyMel.swift:108-112 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxS3Gen.swift:100\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxS3Gen.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29bc5694465a1e276d991ff63990f1926f0b8a8cb2bfd0be899c2269578888c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:144-148 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:273-277 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:400-405 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:144\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04e336b868527a2f873255e375b2a61e9b3228457ddd03bbbb1ff89c210c59b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Qwen3ASR/CoreMLEncoder.swift:171-175 | Sources/Qwen3ASR/CoreMLForcedAligner.swift:478-482 | Sources/SpeechEnhancement/DeepFilterNet3Model.swift:33-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLEncoder.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b83c21fba82aa292eda987fd441aff4ccb382139ce47e8e6b7f2ba5776f83dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 4): Sources/Qwen3ASR/WeightLoading.swift:234-238 | Sources/Qwen3ASR/WeightLoading.swift:239-240 | Sources/Qwen3TTS/TTSWeightLoading.swift:105-111 | Sources/Qwen3TTS/TTSWeightLoading.swift:183-188 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/WeightLoading.swift:234\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3ASR/WeightLoading.swift:240\u0060 calls \u0060applyQuantizedLinearWeights\u0060 and \u0060Sources/Qwen3ASR/WeightLoading.swift:244\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/WeightLoading.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e6b2e245c45d90853374f64deafde73eae65c97a36bfc6639de779cbf2d7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): Sources/ChatterboxTTS/ChatterboxTTSModel.swift:192-194 | Sources/FlashSR/FlashSR.swift:109-111 | Sources/Qwen3Chat/Gemma4WeightLoading.swift:34-40 | Sources/Qwen3Chat/Qwen35WeightLoading.swift:71-78 | Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift:25-29 \u2014 before extracting anything, compare \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift\u0060 and \u0060Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/ChatterboxTTSModel.swift:192\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3Chat/Gemma4WeightLoading.swift:40\u0060 calls \u0060hasPrefix\u0060 and \u0060Sources/ChatterboxTTS/ChatterboxTTSModel.swift:194\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxTTSModel.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"52fec768d9f6fa3eada084082400f84b6fae3c1053a6b3138c98a4aa1e4f8622"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Qwen3TTSCoreML/EmbedderModels.swift:14-18 | Sources/Qwen3TTSCoreML/EmbedderModels.swift:30-34 | Sources/Qwen3TTSCoreML/EmbedderModels.swift:49-53 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/EmbedderModels.swift:14\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/EmbedderModels.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5ffbd0f0d5c66bd650bd669115a37a60a4111b7c2b06c6c08f11a7cb86236b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/AsrBenchmark/Memory.swift:38-42 | Sources/BenchmarkSupport/BenchmarkSupport.swift:242-246 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/Memory.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b00cdac3990cd42650379b591a448710ef4f333dea664019fb0b075ed5316494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/AudioCLILib/ClefCommand.swift:58-62 | Sources/ClefCLI/main.swift:21-25 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCLILib/ClefCommand.swift:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/ClefCommand.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"107f54ce4a46a306892d6706acbaddb70c7adef7f71e6a618f82cc7f6aa1fc16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/AudioCommon/Tokenizer.swift:73-78 | Sources/Qwen3Chat/ChatTokenizer.swift:110-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioCommon/Tokenizer.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/Tokenizer.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3ab0f9d9156f77e89b831f7ca5cfcd05d896eb56faa39791cc82f5d87457fe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/AudioServer/AudioServer.swift:1920-1924 | Sources/KokoroTTS/Phonemizer.swift:347-351 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/AudioServer/AudioServer.swift:1920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":1920}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacdd2ca822b982188ee0160627963455fc54aa4fb73152bd96bf50b3d5aa4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:344-348 | Sources/CosyVoiceTTS/HiFiGAN.swift:430-434 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea80a95fedacf52fa350076a8f888d97452a0a1f2fd0cef70b6a8403c8b02c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ChatterboxTTS/S3GenVocoder.swift:365-369 | Sources/CosyVoiceTTS/HiFiGAN.swift:453-457 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/ChatterboxTTS/S3GenVocoder.swift:365\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/S3GenVocoder.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"da316c6b203eb59530344d1ce88b4c199232e15c55abc9e651c2f97df5b0250a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CosyVoiceTTS/FlowMelExtractor.swift:90-94 | Sources/CosyVoiceTTS/WhisperMelExtractor.swift:86-90 \u2014 before extracting anything, compare \u0060Sources/CosyVoiceTTS/FlowMelExtractor.swift\u0060 and \u0060Sources/CosyVoiceTTS/WhisperMelExtractor.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/FlowMelExtractor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b88d362b0934268b86a6f398ea7f383254659ebc95001ad52763f1a04dc55a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:850-854 | Sources/SpeechVAD/DERScoring.swift:286-292 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/DiarizationBenchmark/DiarizationBench.swift:850\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b5c085bd69fe3e394af9512fd85eb7f03426456fd1c6683f313023180983ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FishAudioTTS/FishAudioCodec.swift:70-74 | Sources/FishAudioTTS/FishAudioCodec.swift:86-90 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioCodec.swift:70\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"890f0def3e41f4b216474d48189a6e73d6168bed3b5da833ef2c426c28d1952b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FishAudioTTS/FishAudioCodec.swift:94-98 | Sources/FishAudioTTS/FishAudioCodec.swift:112-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FishAudioTTS/FishAudioCodec.swift:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioCodec.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5667fedb741b5cde9b261cba22c8cb2c60db1cd447490071d31a29d0428ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FlashSR/Vocoder.swift:299-303 | Sources/IndexTTS2TTS/IndexTTS2BigVGAN.swift:166-170 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/Vocoder.swift:299\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Vocoder.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48e91245ddb7a1a2c89b8942586f102f938ae3ea72c42e401abc6b69f1fc112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HibikiTranslate/HibikiDepformer.swift:203-207 | Sources/PersonaPlex/Depformer.swift:178-182 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiDepformer.swift\u0060 and \u0060Sources/PersonaPlex/Depformer.swift\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 125 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiDepformer.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02fa1ec2c965f78a6cd481b764a0f399db1ef80c81fed545ad38b4ef59f9cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:129-133 | Sources/PersonaPlex/TemporalTransformer.swift:127-131 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift:129\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060cfg\u0060 to \u0060HibikiTemporalConfig\u0060 in one and \u0060TemporalTransformerConfig\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f751a23ecd7aa450d42b05e6ecdf2c93c4025e7750ee36ae533d4a1fd5acae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:140-144 | Sources/PersonaPlex/TemporalTransformer.swift:141-145 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift:140\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0e0d078d52b4fab279c3bccda55733b47125b8bbac0fe359f7c40f6c9ce848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): Sources/HibikiTranslate/HibikiWeightLoading.swift:206-210 | Sources/MagpieTTS/WeightLoader.swift:181-184 | Sources/PersonaPlex/WeightLoading.swift:220-224 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift\u0060 and \u0060Sources/PersonaPlex/WeightLoading.swift\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 164 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HibikiTranslate/HibikiWeightLoading.swift:206\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a539330a362bf6caa4558e86428ab6816f8ea16f50f4d4601e1026b69d75514b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HiggsTTS/HiggsTTSBackbone.swift:45-49 | Sources/IndicMioTTS/IndicMioQwen3.swift:40-46 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HiggsTTS/HiggsTTSBackbone.swift:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSBackbone.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"866945e7c31c2818ad594c51f976af3eca04f5c0f963941fdbad05d3cc465ad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HiggsTTS/HiggsTTSBackbone.swift:117-121 | Sources/Qwen3Chat/Qwen3DenseModel.swift:171-175 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HiggsTTS/HiggsTTSBackbone.swift:117\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSBackbone.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c42d917750bb48e23a5d6341e0e17393c890ef4ed8a0094302df222ac2a331e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:188-193 | Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:195-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:188\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0957b2290e9d20112cab5c2372dc7a98178bb3a5482da25fe9533a7d4f3a7da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/IndicMioTTS/IndicMioQwen3.swift:250-259 | Sources/Qwen3TTS/TTSWeightLoading.swift:350-354 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndicMioTTS/IndicMioQwen3.swift:250\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioQwen3.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"36be0124bada8715e0088b79e318f2e809350aca8f7be5bd0079c2a9e8ca94e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/KokoroTTS/Phonemizer.swift:467-471 | Sources/KokoroTTS/Phonemizer.swift:493-497 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/KokoroTTS/Phonemizer.swift:467\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeed60076dfa6e7f54de130b02d99190c4549f70bf51235b43c9d79c1b98152d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MLXCommon/SlaneyMel.swift:124-128 | Sources/SpeechRestoration/SeamlessM4TFrontEnd.swift:306-310 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/SlaneyMel.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5167d46347fe57861d9e1132221d6594f6b227c713a87dc946d28f83701316a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MagpieTTS/Transformer.swift:140-147 | Sources/MagpieTTS/Transformer.swift:219-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTS/Transformer.swift:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Transformer.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"72db48e9a9da556e41ae18d213bf38add46b58f055840b2692f61548daa02da8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MagpieTTS/Transformer.swift:150-155 | Sources/MagpieTTS/Transformer.swift:226-230 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Transformer.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d3a83329ea069f817fa91e8c10535bc68d6c2a04d156f704e8554b6690a7ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MagpieTTSCoreML/CoreMLHelpers.swift:111-115 | Sources/SupertonicTTS/SupertonicGraphs.swift:28-32 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MagpieTTSCoreML/CoreMLHelpers.swift:111\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/CoreMLHelpers.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd8de5c2fe2b8e6a4960b7515176f37c8bbb32495a1f7a998477e348571fdd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MossTranscribe/MossMLXAudioModel.swift:25-41 | Sources/VoxtralASR/VoxtralAudioEncoder.swift:21-25 \u2014 before extracting anything, compare \u0060Sources/MossTranscribe/MossMLXAudioModel.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralAudioEncoder.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/MossTranscribe/MossMLXAudioModel.swift:25\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXAudioModel.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"920f2558941397fce895c4b84be94cf7d299859153909bc3da0d07fdc1624c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:217-221 | Sources/ParakeetStreamingASR/StreamingSession.swift:218-222 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingSession.swift:217\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ParakeetStreamingASR/StreamingSession.swift:226\u0060 calls \u0060Array\u0060 and \u0060Sources/NemotronStreamingASR/StreamingSession.swift:223\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f80eb4c4e07c5f8ab2ccb27c1a81a4be50bbafb2184c14e586b86ae376c37d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:334-338 | Sources/ParakeetStreamingASR/StreamingSession.swift:412-416 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6d7ba8a8fd6f1663411fd29b60c40f16cc7d2629727c64027a07ce0d9add0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift:345-349 | Sources/Qwen3ASR/AudioEncoder.swift:109-114 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift:345\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"7916e01c1cdb0c80b3abdfd6972e7cfe07a393be5dfcd3f7443d6dbbe1265b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ParakeetASR/ParakeetASR.swift:271-276 | Sources/ParakeetASR/ParakeetASR.swift:297-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetASR/ParakeetASR.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f444996dd1ebc4be4f7e2707d44196a6e28d25d354ce669a3004f1beb13ce6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/PersonaPlex/MimiCodec.swift:145-149 | Sources/PersonaPlex/MimiCodec.swift:152-156 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/PersonaPlex/MimiCodec.swift:145\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/MimiCodec.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d10c2e7dbaf9cdc9e2246540f93007c019e242398e2d801bbc07c9cc327fa468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/PersonaPlex/PersonaPlex.swift:557-564 | Sources/PersonaPlex/PersonaPlex.swift:1563-1567 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/PersonaPlex.swift"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"8629d32e94590bb28e56cb2278b12002844cdf8c55bd428c7d47080a11073113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3ASR/CoreMLForcedAligner.swift:484-490 | Sources/WhisperASR/WhisperCoreMLRuntime.swift:140-144 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLForcedAligner.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"be74ca6d23f043b92807cb56ffa0ce480f9c45bdae2b1cf2312128255dafb843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3ASR/Qwen3ASR.swift:760-764 | Sources/Qwen3ASR/Qwen3ASR.swift:875-879 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/Qwen3ASR.swift:760\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":760}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a998489d6f12091742cdcddfa605214616f61c3ac9f9011656ccc9154360b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3ASR/Qwen3ASR.swift:1241-1245 | Sources/Qwen3TTS/Configuration.swift:20-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3ASR/Qwen3ASR.swift:1241\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c68d8d6dd27f0ad82433e8f2afb7ad49fef4dd9abeff07c5773675d168a51b9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift:195-199 | Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift:234-238 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/JSONSchema/JSONSchemaGrammar.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4157fee6e7790081c6d1ac0a5b04e588b6c48f500fe63b5ba98da905c9acb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:225-229 | Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift:141-145 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:225\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d371f7fb0d750f3d4f56ae41f668acc15bd1906a3a255aa861a6943af49712e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3TTSCoreML/TalkerGenerator.swift:135-140 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:121-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/TalkerGenerator.swift:135\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/TalkerGenerator.swift"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"594eab894b35853a0151862f0cf060e662cd6cfb4d4ab74b01af9dd5d4923322"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SourceSeparation/STFT.swift:66-70 | Sources/SourceSeparation/STFT.swift:131-135 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SourceSeparation/STFT.swift:66\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/STFT.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb875477ca4d610b466c3cb197469e38d4dc218bf5aeff27a489ef6b0aff33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SpeechEnhancement/AudioProcessing.swift:167-171 | Sources/SpeechEnhancement/AudioProcessing.swift:222-226 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechEnhancement/AudioProcessing.swift:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/AudioProcessing.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaac9e9008984ed3b2e82d3a7aa7e9bfcb261f1a335ab6784e989047692d8443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/SpeechVAD/ReDimNet2Speaker.swift:363-367 | Sources/SpeechVAD/WeSpeaker.swift:225-229 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift:363\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/ReDimNet2Speaker.swift"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe9a6b663ad3d11362bb62b7b6bd4f1b59bc58d94e05cc95e2468c1dc6da18ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/StableAudio3MusicGen/DiTMedium.swift:27-31 | Sources/StableAudio3MusicGen/DiTMedium.swift:84-88 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/StableAudio3MusicGen/DiTMedium.swift:27\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/StableAudio3MusicGen/DiTMedium.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8012812da3e2f60a292d765dcd563506665d3261210225a3713be74f6118339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:82-86 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:120-124 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/Inference/WeightLoader.swift:82\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1f0f7da7e1b0271b15b7e5776b27d941e42bb9d8300dc78c99a2bc8503d2b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:275-279 | Sources/VoiceChatBenchmark/FullDuplexToolBench.swift:353-357 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChatBenchmark/FullDuplexToolBench.swift"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1931ad4cec86acb8fcdf9d2bbe4cf095050cc715ea4fafacc274ee61d8dc25a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20135 lines \u00D7 12): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:612-614 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:615-619 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:621-625 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:626-629 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:644-645 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:650-651 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:656-657 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:662-663 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:668-669 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:674-675 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:680-681 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:687-688 \u2014 all 12 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:612\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:625\u0060 calls \u0060loadWithDiagnostics\u0060 and \u0060Sources/VoxCPM2TTS/VoxCPM2TTS.swift:614\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"e852383c227440e226af7e48ebeef3fe2950d66a46aec66f1cf4c9e36b5d991b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/WhisperASR/WhisperCoreMLRuntime.swift:84-88 | Sources/WhisperASR/WhisperCoreMLRuntime.swift:91-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/WhisperASR/WhisperCoreMLRuntime.swift:84\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperASR/WhisperCoreMLRuntime.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a228b5fad18100701f88a08b35df9d17c6555b225102d059c0ee0ca2c1198af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/MossTranscribe/MossMLXMemory.swift:7-16 | Sources/VoxCPM2TTS/VoxCPM2Memory.swift:8-17 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXMemory.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b564cbb64a1d303a436eacb5228c552a6b4071f0094b47917009a107926eb03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): Sources/NemotronStreamingASR/NemotronStreamingASR\u002BMemory.swift:4-19 | Sources/ParakeetASR/ParakeetASR\u002BMemory.swift:4-18 | Sources/ParakeetStreamingASR/ParakeetStreamingASR\u002BMemory.swift:4-17 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronStreamingASR\u002BMemory.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"971e682e0b01ba71b10da87d6c8523ec78c4ffc8100e80f66a311e00a7db81d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Sources/SpeechVAD/SileroVAD\u002BMemory.swift:4-20 | Sources/SpeechVAD/WeSpeaker\u002BMemory.swift:4-20 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/SileroVAD\u002BMemory.swift\u0060 and \u0060Sources/SpeechVAD/WeSpeaker\u002BMemory.swift\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SileroVAD\u002BMemory.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a50a326bd643e686d5ecbde393b1799b32825f063d5d204030b418b339758a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CohereTranscribeASR/Configuration.swift:14-18 | Sources/VoxtralASR/Configuration.swift:14-18 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/Configuration.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"7563a8aba40ac68443b9c795da678af340b3459dc17ec05448b2caf581ea1f0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/CohereTranscribeASR/Configuration.swift:128-134 | Sources/VoxtralASR/Configuration.swift:154-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/Configuration.swift"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"68137878d288ab909324a8f4d17359433982a08155c91954937fae9ecade81f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:162-167 | Sources/PersonaPlex/TemporalTransformer.swift:163-168 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2a0427ef145a758d2b1eccf2b545b9c740c32424acbf4b24037db1f51998144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:261-267 | Sources/PersonaPlex/TemporalTransformer.swift:234-240 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab653e20454d3c0489a25db4910b123f01a7bb354edf2828ac5682d0eee04677"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/HibikiTranslate/HibikiTemporalTransformer.swift:270-276 | Sources/PersonaPlex/TemporalTransformer.swift:247-253 \u2014 before extracting anything, compare \u0060Sources/HibikiTranslate/HibikiTemporalTransformer.swift\u0060 and \u0060Sources/PersonaPlex/TemporalTransformer.swift\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cd315a095b9894846e0617563ec715649ac2b2e2ba9d75393049aac26318cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:1340-1346 | Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift:589-595 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d67304cecdba52874feb9c968aec884b46877587bb96737a7dd9bd6ed154463"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/MLXCommon/QuantizedMLP.swift:26-31 | Sources/MLXCommon/QuantizedMLP.swift:51-55 | Sources/Qwen3ASR/FloatTextDecoder.swift:128-132 | Sources/Qwen3ASR/QuantizedTextDecoder.swift:132-137 \u2014 before extracting anything, compare \u0060Sources/Qwen3ASR/FloatTextDecoder.swift\u0060 and \u0060Sources/Qwen3ASR/QuantizedTextDecoder.swift\u0060 as WHOLE FILES: this scan already matched 16 separate duplicated blocks between them, totalling at least 206 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/QuantizedMLP.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6425626d7c1bca9da62bd2b38cc4eb34e9fb6e900c3d5127d3a0cf7d0617a140"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/MossTranscribe/MossCoreMLRuntime.swift:597-603 | Sources/MossTranscribe/MossMLXRuntime.swift:351-357 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossCoreMLRuntime.swift"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb294da17ba94ec63e8015efd32980b9b637e9ec647914d987ad8097d2575b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/MossTranscribe/MossMLXAudioModel.swift:97-104 | Sources/VoxtralASR/VoxtralAudioEncoder.swift:64-68 \u2014 before extracting anything, compare \u0060Sources/MossTranscribe/MossMLXAudioModel.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralAudioEncoder.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXAudioModel.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3829d1048b7278fdd6a678777c2f06dac2934334388ee676d8181517b63427d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/MossTranscribe/MossWhisperFeatureExtractor.swift:10-14 | Sources/Qwen3ASR/AudioPreprocessing.swift:13-17 | Sources/SpeechLanguageID/SpeechBrainFbank.swift:10-14 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossWhisperFeatureExtractor.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"48994b006a1219ddd3796f3e2537656251c38e224f9a8167dd3ccd6a2c829b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:626-632 | Sources/NemotronStreamingASR/StreamingSession.swift:375-381 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXRuntime.swift"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"b888937265124976ab730e1aba1ab6f31a0ae26c394a4e039db770e0cb88ebe9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Sources/NemotronStreamingASR/NemotronMLXRuntime.swift:638-648 | Sources/NemotronStreamingASR/StreamingSession.swift:387-397 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXRuntime.swift"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"429b98291d895d303027b358564d70f0a8d9c80ae7dc306d041073db77046ce3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:150-154 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:408-412 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb925307e87738655a7e27941594da4623f75859a430d74887e07c0edf5b45ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingSession.swift:327-331 | Sources/ParakeetStreamingASR/StreamingSession.swift:404-408 \u2014 \u0060Sources/NemotronStreamingASR/StreamingSession.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingSession.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 9 separate duplicated blocks between them, totalling at least 86 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingSession.swift"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"482b7a2c7d7634efe01d46237bb1cc6155bced37a3a7aec2c6330374971407c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Sources/OmniVoiceTTS/OmniVoiceCodec.swift:181-189 | Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift:157-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmniVoiceTTS/OmniVoiceCodec.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e401a8aa93e0570cce8ab2544eb3cc1f7bdd77a4413bc46646fc9b72b4fcae61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Sources/OmnilingualASR/MLX/Wav2Vec2Frontend.swift:38-44 | Sources/VoxCPM2TTS/AudioVAE.swift:168-174 | Sources/VoxCPM2TTS/AudioVAE.swift:185-191 | Sources/VoxCPM2TTS/AudioVAE.swift:202-208 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/MLX/Wav2Vec2Frontend.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c887f7b3ced6d2820ccd0d0cb01c95f11bf73568c03cbdf7f674179d5961f139"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/PersonaPlex/Seanet.swift:141-145 | Sources/Qwen3TTS/SpeechTokenizerEncoder.swift:134-138 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Seanet.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff9091e114ee536578c65c89690b8135122041087b77868373bff5e44120cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3TTS/SpeakerEncoder.swift:24-29 | Sources/SpeechLanguageID/SpeechBrainECAPA.swift:115-119 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/SpeakerEncoder.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"94a9c5c8bec84c8215f3a644766abcc258937acbf7052c013f2eeeeda6a956b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/Qwen3TTS/SpeechTokenizerDecoder.swift:190-197 | Sources/VoxCPM2TTS/AudioVAE.swift:266-273 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/SpeechTokenizerDecoder.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abe691fc14ac042c3019d0390c4e12a7cc468a33fd7a4156c95845b57d407eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/AudioCommon/AudioIO.swift:66-73 | Sources/AudioCommon/SystemAudioTap.swift:176-183 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioIO.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"baf6971601aab5c7af63c594b9f8c909e4bd0115db4637e1309f8060cf89d07b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): Sources/AudioCommon/Protocols.swift:117-121 | Sources/AudioCommon/Protocols.swift:195-199 | Sources/BenchmarkSupport/BenchmarkSupport.swift:11-15 | Sources/NemotronStreamingASR/Vocabulary.swift:16-20 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060endTime\u0060 to \u0060Float\u0060 in one and \u0060Double\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/Protocols.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c037945f01274e78e0db7f1a7baeedc07787a7c34d94630d11486cba174c57b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/BenchmarkSupport/BenchmarkSupport.swift:164-169 | Sources/VoiceChat/VoiceChatSession.swift:12-22 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BenchmarkSupport/BenchmarkSupport.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a87c4d8ee8fc1ecda944b4fa7a7b3b5d431c4912d1410bc2856eff96d64dfca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/CohereTranscribeASR/CohereTranscribe.swift:221-228 | Sources/VoxtralASR/VoxtralASR.swift:137-144 \u2014 before extracting anything, compare \u0060Sources/CohereTranscribeASR/CohereTranscribe.swift\u0060 and \u0060Sources/VoxtralASR/VoxtralASR.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralASR.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f92a147a5b215ae69cb67f37bf94297b26cbb1152a0680adf1ae0f17a3c1e34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/CosyVoiceTTS/DiT.swift:208-213 | Sources/VibeVoiceTTS/Models/AcousticTokenizerDecoder.swift:15-20 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/DiT.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af02b1ea2b2f5391194b667a973428f392dd6bef493375ad7d24be843fe5b29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:805-809 | Sources/VadBenchmark/VadBench.swift:376-380 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"2696a22cc4828ef9e204606d65e63f3714f7476f1d732bab3398232946de7af2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FlashSR/UNet.swift:11-15 | Sources/FlashSR/VAE.swift:10-17 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060eps\u0060 to \u0060Float = 1e-5\u0060 in one and \u0060Float = 1e-6\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"32a6b9c0185a9c3cc036e92a6340462078f430425751264d5a0dc694772509a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift:40-45 | Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift:136-141 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"786570a53df4e93afc06b9ecfb98aed60862c7530317a8f11e9b296e280397b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/IndicMioTTS/MioCodecWaveDecoder.swift:417-423 | Sources/SourceSeparation/OpenUnmixModel.swift:149-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/MioCodecWaveDecoder.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"586ce48ef0034a4633942744420b48544df6d5c3b7057ad5cd1f93b09ca2c733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Sources/PersonaPlex/Seanet.swift:190-195 | Sources/PersonaPlex/Seanet.swift:286-291 | Sources/Qwen3TTS/SpeechTokenizerEncoder.swift:162-167 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Seanet.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"08beacd3fba89201caf3443cea5bb3cbafc8f8c2542db7c51d0af2236ff0dfe5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3ASR/Qwen3ASR.swift:1232-1237 | Sources/Qwen3TTS/Configuration.swift:11-16 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"2679a91a99e94111c3fe05e0eef103d7c769d77ed340bc3aef5f832692b4432b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3TTS/Configuration.swift:255-259 | Sources/SpeechVAD/Configuration.swift:109-113 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Configuration.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"475f790d45445622db47c4ccaacfae8a2bb24965d885db3a8c3637901ffd46f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/SpeechVAD/Nemotron3Diarizer.swift:375-382 | Sources/SpeechVAD/SortformerStreamingSession.swift:107-114 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/SpeechVAD/SortformerStreamingSession.swift:98\u0060 calls \u0060removeAll\u0060 and \u0060Sources/SpeechVAD/Nemotron3Diarizer.swift:371\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Nemotron3Diarizer.swift"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d7428ac9d689e2ce10c362e508543d13cb73ba461c8390e0c7a214da8de530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Sources/SpeechVAD/ReDimNet2Speaker.swift:208-220 | Sources/SpeechVAD/SmartTurn.swift:119-131 \u2014 before extracting anything, compare \u0060Sources/SpeechVAD/ReDimNet2Speaker.swift\u0060 and \u0060Sources/SpeechVAD/SmartTurn.swift\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 58 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/ReDimNet2Speaker.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00884ba2634285256620f2c70f94b3f1c5d240510f05933649a34361c468306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:167-173 | Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift:176-182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e994d97897732878d003109477aeb412c2320c2a1c651e16062ee9af161a4f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/BreezeTTS/Configuration.swift:38-44 | Sources/BreezeTTS/Configuration.swift:144-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Sources/BreezeTTS/Configuration.swift:37\u0060 calls \u0060decodeIfPresent\u0060 and \u0060Sources/BreezeTTS/Configuration.swift:143\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/Configuration.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"77458ed3ad4e11c011fbf355c220de0871306f7446b234510288a4cbb9dd1816"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/BreezeTTS/Configuration.swift:92-96 | Sources/VoxtralASR/Configuration.swift:50-54 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/BreezeTTS/Configuration.swift:97\u0060 calls \u0060decodeIfPresent\u0060 and \u0060Sources/VoxtralASR/Configuration.swift:55\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BreezeTTS/Configuration.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"41571946f59286ba97ba251829d06daeddb0702b941a4c7e3c2cbea5ca6124b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/CohereTranscribeASR/CohereAudioFrontend.swift:107-111 | Sources/VoxtralASR/VoxtralAudioFrontend.swift:97-101 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/CohereTranscribeASR/CohereAudioFrontend.swift:107\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralAudioFrontend.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1b22d392d3c9b2e01b4199ea6bfab5fa83120c87e81956a24069ff0d7d1914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/DiarizationBenchmark/DiarizationBench.swift:757-761 | Sources/VadBenchmark/VadBench.swift:354-358 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":757}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b8f7d3c792961e8568a3af133a963f6379d43b6064dc5bf2d3431ee3f2460d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/F5TTS/F5TTSConfig.swift:158-162 | Sources/IndexTTS2TTS/IndexTTS2NativeRuntime.swift:42-46 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSConfig.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9cbfb1a343af7b0cd0f1ff5a72d958282b118d93adb829fa4da9c57ba44d7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Sources/F5TTS/F5TTSFlow.swift:266-273 | Sources/F5TTS/F5TTSFlow.swift:504-511 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSFlow.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4b9a6c11616cb91f6306983e76ce4d154ffef3ad99ed49f87f957605f005ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FishAudioTTS/FishAudioConfig.swift:79-83 | Sources/FishAudioTTS/FishAudioConfig.swift:96-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioConfig.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7004f491e067ef351b817e85fac406144e8a43a93279ef532c71092665a6f823"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/FlashSR/UNet.swift:74-79 | Sources/FlashSR/VAE.swift:151-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/FlashSR/UNet.swift:74\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ad70fe81506f349a48474f0f16db69fa8db7a9a7005514ec6607ccab43a58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/FlashSR/Vocoder.swift:62-66 | Sources/FlashSR/Vocoder.swift:106-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Vocoder.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fe65ce720293871e814573702273f6fefb0507e70a62301be802802fa50651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/HiggsTTS/HiggsTTSBackbone.swift:39-43 | Sources/Qwen3Chat/Qwen3DenseModel.swift:88-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/HiggsTTS/HiggsTTSBackbone.swift:39\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSBackbone.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e5b3efb890a0d0e66704c846d03fd46d085439c81dee1c2781f178b0666676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:933-937 | Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift:970-974 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf3e0f7c2a87c79b518551ffd409c9a2d3db8a331d6a64a9e8ace4a7211c1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift:103-107 | Sources/NemotronStreamingASR/SentencePieceUnigramTokenizer.swift:76-80 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift:103\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a2bec94427a64d3daf607d6d2ef6b4db65e9c79697fcb79a4e530858f8c7ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/KokoroTTS/GermanPhonemizer.swift:344-350 | Sources/KokoroTTS/GermanPhonemizer.swift:353-359 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/GermanPhonemizer.swift"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99b0a930f887749494319350f937f67a4a25eb5ad0de70ddb55e8cf002743f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/KokoroTTS/Phonemizer.swift:439-443 | Sources/KokoroTTS/Phonemizer.swift:462-466 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4179fb7922006a9799954bed23637733148c7524dbce2a489837bcf58c7bc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:124-130 | Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift:253-259 \u2014 \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift\u0060 and \u0060Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 16 separate duplicated blocks between them, totalling at least 216 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift:124\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/StreamingMelPreprocessor.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa6c91663d353d303a434f48dbc4f08c86307befe9458bd635a86aa5e43bf93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3Chat/Gemma4Model.swift:570-574 | Sources/Qwen3Chat/Qwen3DenseModel.swift:142-146 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/Gemma4Model.swift:570\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Model.swift"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4500838db765e62b0d6307d59a545c36b0dda80ac768d6780064a405d79e80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/Qwen3Chat/Gemma4Model.swift:623-628 | Sources/Qwen3Chat/Gemma4Model.swift:633-638 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3Chat/Gemma4Model.swift:623\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Model.swift"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"157f1f53ded2074d9e28453f3aa14cc30c26ae88aed393dc64b7e107ddd2811c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:195-199 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:170-174 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:195\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:206\u0060 calls \u0060precondition\u0060 and \u0060Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:178\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb66e2bffa20c4a047fd83a3d5acb8c64954d4013a4d34e1e226ae353c62d76f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift:231-235 | Sources/Qwen3TTSCoreML/MultiCodeDecoderCoreML.swift:147-151 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:185-189 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/MultiCodeDecoderChunked.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2888d9c87474b9fbe88a3b54efa1d6080123598423b5d4923362f34b7448414"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/Qwen3TTSCoreML/TalkerGenerator.swift:60-66 | Sources/Qwen3TTSCoreML/TalkerGeneratorChunked.swift:77-83 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/TalkerGenerator.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8372a439ae0695439fb08f8edf739c9ba99e4966c833e9a80f792c9ae5a7cf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift:136-141 | Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift:168-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift:174\u0060 calls \u0060LayerNorm\u0060 and \u0060Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift:142\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/HTDemucs/HTDemucsTransformer.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c402a94967336858a4141b7adae8b7b955dcc6526b5a95cf761063993a3b330"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/StableAudio3MusicGen/DiTMedium.swift:58-64 | Sources/StableAudio3MusicGen/DiTMedium.swift:112-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/StableAudio3MusicGen/DiTMedium.swift:58\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/StableAudio3MusicGen/DiTMedium.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9723efe3ccfe7850ab24a9731bf47e5483a3c3c50afcbfa7f041fcd1e4fab0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/StableAudio3MusicGen/SAMELDecoder.swift:104-108 | Sources/StableAudio3MusicGen/SAMELDecoder.swift:167-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/StableAudio3MusicGen/SAMELDecoder.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"f796c7ce4f6272b567e21a32cb819195cbc0efbbf185a959d5731a38b68aefe1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:60-66 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:99-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"65124bd24787a2627d14d40e50feffd993cc5541cca9540b76568a1f8d90040c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Sources/VibeVoiceTTS/Inference/WeightLoader.swift:234-238 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:280-284 | Sources/VibeVoiceTTS/Inference/WeightLoader.swift:294-298 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Sources/VibeVoiceTTS/Inference/WeightLoader.swift:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/WeightLoader.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f973dcb17e4a925d697f6cf4d06e4431ee46b2de754b9805a5b34fa44320f60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/VoxCPM2TTS/VoxCPM2TTS.swift:249-253 | Sources/VoxCPM2TTS/VoxCPM2TTS.swift:266-270 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1a259f41bad3e566448203cdc7aa951f9fef8e3f2d7b5892885af820c821b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/WhisperASR/WhisperCoreMLRuntime.swift:372-376 | Sources/WhisperASR/WhisperCoreMLRuntime.swift:389-393 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperASR/WhisperCoreMLRuntime.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdd45e6c70b40b90d4cffd46133d679f4dcd3252300144412d53dfc3616a201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): scripts/qwen3_tts_coreml/convert_coreml.py:702-724 | scripts/qwen3_tts_coreml/convert_coreml.py:737-759 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64299b78a5450f6eba57b6e8a03877e917960a141f74abce77f37b7616f026c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201315 lines \u00D7 4): scripts/render_benchmark_dashboard.py:212-214 | scripts/render_benchmark_dashboard.py:252-266 | scripts/render_benchmark_dashboard.py:286-300 | scripts/render_benchmark_dashboard.py:500-502 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/render_benchmark_dashboard.py:252\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/render_benchmark_dashboard.py"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c759f3a77d83fa641133d2ee02ab9c65c3bac18f07e7f8210077b0c0aff4b50e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): scripts/qwen3_tts_coreml/convert_coreml.py:286-297 | scripts/qwen3_tts_coreml/convert_coreml.py:380-391 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"7517cdb8dc8f3efd992eaa7f38f4d2889e2d4e897486e0a5aceae2dd4e9db2b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/qwen3_tts_coreml/convert_coreml.py:625-633 | scripts/qwen3_tts_coreml/convert_coreml.py:793-801 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/qwen3_tts_coreml/convert_coreml.py:625\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd11bc862800c1aff199f27e585f841f1374260b72982d02087576ce5078f6e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): scripts/qwen3_tts_coreml/convert_coreml.py:639-647 | scripts/qwen3_tts_coreml/convert_coreml.py:653-661 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/qwen3_tts_coreml/convert_coreml.py:639\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cf331bb682c18cea3a89c7eb5f4a52ac9083e9603e1b10670759aef3a7e644"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): scripts/qwen3_tts_coreml/convert_coreml.py:324-331 | scripts/qwen3_tts_coreml/convert_coreml.py:417-424 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"938026e3ca1b20af5e7e8dec61ca1566066b547a43df48acaf6a37b80209f5be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/render_benchmark_dashboard.py:242-246 | scripts/render_benchmark_dashboard.py:276-280 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060scripts/render_benchmark_dashboard.py:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/render_benchmark_dashboard.py"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23b4604bf59530a33ddb62f72b55aaa6f4246d67c77548cea8f66906925dfc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/export_breeze_mlx.py:40-44 | scripts/export_moss_mlx.py:129-133 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/export_breeze_mlx.py"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13658e8ed846bc8c44bfd49078b03feff93754cd59e2bdb9979c416d2edf95f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): scripts/qwen3_tts_coreml/convert_coreml.py:334-338 | scripts/qwen3_tts_coreml/convert_coreml.py:426-430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/qwen3_tts_coreml/convert_coreml.py"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85cb2f1adbe510ec6d5118c28333955c5d0b4f5e01535fef48edbc7f6c448f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:55-77 | Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:79-100 | Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:102-125 | Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:127-150 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a51f06d10ba570fef084af02897b886802ead8b94ac99fe8c0cbcaea4fb0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34\u201336 lines \u00D7 2): Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:19-52 | Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift:29-64 \u2014 before extracting anything, compare \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift\u0060 and \u0060Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/StreamingRecorder.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"885267c4d982a8919cdf42f2362f55c60210cbdf3200faa4138924a30689fd4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:65-80 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:168-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:65\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e28321ac7a329ddc1dff7760de5a03402344c33f7353d8e27e5cdf66e5fd57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:39-51 | Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift:51-63 | Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:545-555 \u2014 before extracting anything, compare \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift\u0060 and \u0060Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/StreamingRecorder.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"837495a097c1cdfe9e1aae503fd1bcdf66c4aeccde2bd65954191673f6613d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:73-84 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:107-118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:73\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9871d15077bd0375a94d1937f3ac9a0fce37ebbc392bc0c74b5b9224f4e90a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:71-81 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:105-115 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:173-182 | Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:543-552 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:71\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e015e505db0c4c63d42ebc1d414ba24627d94bd9d85dab9cfc6762a6236c602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:39-48 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:174-182 | Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift:51-60 | Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:544-552 \u2014 before extracting anything, compare \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift\u0060 and \u0060Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:39\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/StreamingRecorder.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c417439b0f4bbdcd8c53a6d8c46fdb33551c1523da156c350bab30014a827006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 3): Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:26-33 | Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift:37-45 | Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:526-532 \u2014 before extracting anything, compare \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift\u0060 and \u0060Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:26\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/StreamingRecorder.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1ac801f1e2b861584c20506fb7119e776b8a3b8f7f03173972744fbe533a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Examples/DictateDemo/DictateDemo/DictateViewModel.swift:246-252 | Examples/SpeechDemo/SpeechDemo/DictateViewModel.swift:59-67 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/DictateViewModel.swift:246\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/DictateViewModel.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2008630f70700a59539987128e63e14d7c2e71c94faa86714473d0005a105d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:70-77 | Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:93-100 | Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:118-125 | Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:143-150 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift:70\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOSBenchmark/iOSBenchmark/BenchmarkCore.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"82059cb7157806e0453205bcd8a0bf5ad5455d0423347b3281234bc81e4a5e39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:84-91 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:185-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab940651a7cf9ec7e8f191774b62372954703242f4335a960a0ab438ecbfd038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:28-35 | Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:63-69 | Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift:39-47 \u2014 before extracting anything, compare \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift\u0060 and \u0060Examples/SpeechDemo/SpeechDemo/AudioRecorder.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 77 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:28\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Examples/PersonaPlexDemo/PersonaPlexDemo/AudioRecorder.swift:62\u0060 calls \u0060AVAudioConverter\u0060 and \u0060Examples/DictateDemo/DictateDemo/StreamingRecorder.swift:28\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/StreamingRecorder.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3f97c8616070ab513c7186ac11f9103f2dccfdbe6bff3ab8060c0dd671d2e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift:100-106 | Examples/SpeechDemo/SpeechDemo/SpeakViewModel.swift:59-65 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift:100\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcd4d4137182934d29b61dc8499cd3e83a25c64b88ea73cb6a8b29b1efb7cf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Examples/iOSBenchmark/iOSBenchmark/MemoryMonitor.swift:22-27 | Examples/iOSEchoDemo/iOSEchoDemo/DiagnosticsView.swift:87-92 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/iOSBenchmark/iOSBenchmark/MemoryMonitor.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f84f539e9243e7faacbd9e5991e044d453bee1a7882c8a930c045855e3d14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Examples/DictateDemo/DictateDemo/DictateViewModel.swift:246-250 | Examples/SpeechDemo/SpeechDemo/DictateViewModel.swift:59-65 | Examples/SpeechDemo/SpeechDemo/DictateViewModel.swift:75-81 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Examples/DictateDemo/DictateDemo/DictateViewModel.swift:246\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Examples/SpeechDemo/SpeechDemo/DictateViewModel.swift:67\u0060 calls \u0060warmUp\u0060 and \u0060Examples/SpeechDemo/SpeechDemo/DictateViewModel.swift:82\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/DictateDemo/DictateViewModel.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"1092ead02fb632309ac7031c8edeef9ffcc0c46f6c3555681f39e59d9e5f5c9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift:303-310 | Examples/iOSEchoDemo/iOSEchoDemo/CompanionChatViewModel.swift:653-660 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/SpeechDemo/SpeechDemo/EchoViewModel.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc44afa324e1c755c45c25fd54cc46caea943f25e1c19d0d703784a4a277861"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SpeechRuntime: SpeechRuntime: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"522af79438982c2e12b2ee0c75bb494cfcc82fcc0958abf74825d15f275d92e4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: KokoroTTS: KokoroTTS: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fc76786866712868fda6881e207cbe0b0f364762e3d5fbb1c5867921e9aeccdc"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ParakeetASR: ParakeetASR: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3c32fd9b3a18d59f2a49d83490b9ae58221ecebd81ae114fdc5b97dbbb0db3e4"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: WhisperASR: WhisperASR: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4b6203d830c0b1744feb19d7e4575a493aa54422eb127aadb818149af456166f"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SpeechVAD: SpeechVAD: abstractness 0.01, instability 0.25, distance 0.74 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8682b5d92a6bdbfcd81b6ea6b7a9b48e747845b0186f244ac2369dde37c982f4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CoreMLTextDecoder (LCOM4 5): CoreMLTextDecoder\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLTextDecoder.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45ca49b8cf6aeb910f02dfb348310efcd630b92c1b8eb8fdf6b33af8b6cdd47"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AudioVAE (LCOM4 4): AudioVAE\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/AudioVAE.swift"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc14034710bbb01809031098ddc2a29378e745687efcf8c1923a51f11360b2c4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMLXForwardMatchesONNXFixtureWhenAvailable: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Audio2Face3DTests/Audio2Face3DParityTests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7b16b71c777e53c6f93804459720473310ed242322e4f4f4d4cf8e204b46b6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testJamesMLXRuntimeLoadsWhenBundleIsAvailable: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Audio2Face3DTests/Audio2Face3DTests.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"e17c1a5b2d6bb7869345dd0fd733d829385d8abc3058a3f12587594a8a97eda5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingCLIProducesCompleteWAV: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/E2EBreezeCLITests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"33dbdc86e755eda33fdcb9a868a25130dbdf717db55d651f336fa911fa5de332"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNativeCLIStreamingProducesCompleteWAV: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/E2EPocketCLITests.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e2cd3bbbb1bac6a8998306046823ae48b238839fa4865b21a0622448236855"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCommandsRunExportedCheckpoint: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/GLiNERCommandTests.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"38880598a7f8285025f73e4d7ac582e19115864460114a2729a15811998660fa"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPublishedMLXModelRunsThroughCLICommand: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/LanguageIDCommandTests.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e54675cf850ab73158e3145abdc8ab0952547244c2dd3c3a0efcb3bdc3af7b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAppleRemindersMCPServerExposesPinnedTools: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/VoiceChatCommandTests.swift"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11a1d0e843d17a5a343ac0b9b1b20c4ee058794a7c6a502448de587baefe924"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFileModeRunsCompleteINT5PipelineAndWritesAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/VoiceChatCommandTests.swift"},"region":{"startLine":2238}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cdf80bf1b4acec6501367f0d90c5fb84d36f3048945ea834fb17f529c9ccc1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStartsVoiceProcessingGraphOnCurrentAudioDevices: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/FullDuplexAudioIOTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"882fdac1c7813c6e63cb3382db271ce9b134dcc49532554638f2f4faef2683a1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testValidatedLocalPathAcceptsMissingFileUnderPrivatePrefixedDirectory: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/HuggingFaceDownloaderTests.swift"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e563ccce0a2106b657bf0b83c59fe92fad410384398ba32832e15fb118d848d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStallTimeoutDefaultIsEndUserTuned: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/HuggingFaceDownloaderTests.swift"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad512e6fff37d4c45f23870a52dc2ee72d466574784e4be5afd667c88f440aa"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRealNativeSpeechAndFullWhisperRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioServerTests/E2ENativeInferenceTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daadb9a5372cca823f7fd3ca1a2fd19626f9e6c436906cda2540fe123258a51"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAudioData: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioServerTests/E2EOpenAITranscriptionsTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1946e5b239271c7e578a2f07619efa822c1110967986c913ce827313069e50a8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSDKHTTPAndWebSocketReturnTheSamePresetAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioServerTests/E2EPocketTransportTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6f2b1a168af7a7108063ea2db79157dbe75d58978e928c65d0848852a73a8b4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAudioPCM16At24kHz: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioServerTests/E2ERealtimeAPIEnginesTests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"b072162181d891228332d338a1623658ed1b3c0f72e68209069dd584fac51cac"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testS2SHibikiTranslatesAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioServerTests/E2ERealtimeAPIEnginesTests.swift"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"1672632ab8e582b06eba2fd37a773398559f35c514b5eb5ec20b8977168e8717"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReferenceCloneAndDirection: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/BreezeTTSTests/E2EBreezeTTSTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"294dfabdddc0fdd177d881f1e17c2564a65ff86d5dc9629b705dd14120d05791"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLoadOurExport: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CSMTests/CSMLoadTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a1949e121aa49a110fc4de11cce028059c5bc0a4dc116ccf06a0e29b72217c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerateFrameRuns: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CSMTests/CSMLoadTests.swift"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba2b9fa1ac818ce02d769df28f919ef0d378de785c74f095d91cc112372199"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerateFrameLoop: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CSMTests/CSMLoadTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4fe977478aded47a1034074215fb8f531ab930d43d109adc7487823763efcd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerateAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CSMTests/CSMLoadTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7cdcc628e286b329f0cd80573994d5b3d9b6d3562110e0076b910622dd7d016"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTextToAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CSMTests/CSMPipelineTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"772c2713d9bc0a5e29c1f21e9093663c6c3a26fee0266341899044c5452a4512"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFromPretrainedE2E: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CSMTests/CSMPipelineTests.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d4545a7df0cf1a40511fdea33237656ed09bccb6538b44dd301428faed5bb5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTranscribesRealSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CanaryASRTests/E2ECanaryTests.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da5174399a4768063ee1493e8e5d539cabc56bdd3427fe112f6de1817880a52"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMelMatchesTheTrainingPreprocessor: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CanaryASRTests/MelContractTests.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"844a38dc064b64ed8ca46c39903dfc534dc86feb30f7edc14c33674841bc6501"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testToFloat32ReadsInt8MultiArrayWithoutSDKCaseReference: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/ChatterboxFlashCoreMLTests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb5d7fd305f26c6bed4114a52fd6852a98d5f6b04714311123e716d4dfe7a6d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testT3SpeechTokenSmokeWithCFGWhenNullPrefillExists: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/E2EChatterboxFlashCoreMLTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b198cee367e262b59b7d441935769708a96a6cf155bf1f1e8d4f585f072d7b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReferenceCloneThroughFlashCoreML: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/E2EChatterboxFlashCoreMLTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"75382beef53b7870d574f0b97d83087370849261d7cf25847578c6dee7462600"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMelMatchesOracle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/MelFrontEndTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55f8b35fef31500f359f9f5a8942887a7d9fabce41f082d9b4e5b03a411a52b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCloneConditioningPipeline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/RoundtripE2ETests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3784b758eee9eaf2df3dadfc0392fed85c86f1b4f6e9fac01ce0f2ea269a0cea"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFullSynthesisRoundtrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/RoundtripE2ETests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c995f80d7082f4998b2d2514bcb3377d54074faee6221edc37c0d8ae92bac1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMultilingualSynthesis: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/RoundtripE2ETests.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d85c561e6391ab066166705f563c60c731f07d9f1bff6fed9e779d80e15d84"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testT3MatchesOracle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/T3Tests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f1e424f2fa07282c932513bb907d32960fb9d97b21dc7b0d6a220b3f359a98"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEmbeddingMatchesOracle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ChatterboxTTSTests/VoiceEncoderTests.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a314c8645a12d0ceef9d3837244d3dde59dc08a47e72f76bff5de7e7fc75fa3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalDecision: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ClefTests/ClefTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80d0854a476c104562e1acf7f9f83a772c1a1c1278556a73858363be1c5adcb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalExportTranscribesKnownSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CohereTranscribeASRTests/E2ECohereTranscribeASRTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"653b9c9b6310f8d7bdb34ae599b732b6586c64a7b06d2f1d3aa1d0fa33aa1630"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ECloneProducesAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CosyVoiceTTSTests/VoiceCloningTests.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbc502340851ce5433e16656846d6054d54507e3265b909f97bef692a8485977"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ESeededLongFormCloneIsReproducibleAndFadesTail: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CosyVoiceTTSTests/VoiceCloningTests.swift"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45ab787f66b5f699462a6d8786337bb9bbef9e9df763b2f1f8e60d95124097b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSamplesMelAndOptionalDump: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/F5TTSTests/E2EF5TTSFlowParityTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"790f0790ac5e64ef8cdf4519b55ff2bdbb9d4db706b633eddef971d84ddd96b1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleSynthesizesEnglishCloneAndOptionalASRRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/F5TTSTests/E2EF5TTSTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0349d50c93a49fa925940f0efe9f5f03eb6185131a9f1178ae9691d97ebeccd2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleSynthesizesMandarinCloneAndOptionalASRRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/F5TTSTests/E2EF5TTSTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"966d2f20caffc15c51b925b8955338d64c1504c54199467d6396f1299547c729"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFixedInputVelocityDump: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/F5TTSTests/E2EF5TTSTransformerParityTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba321981f572ee1a754f628fdf1e7533902faaf8aef602d1ae583382185ff65d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDecodesUpstreamMelAndOptionalASRRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/F5TTSTests/E2EF5TTSVocosParityTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91bd7d8a88d7e2bbce5555832e314c7f033bbebbd77f43a711f905226d3320b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLazyEncoderMatchesEagerReferenceCodesAndDecoder: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioCodecStreamingTests.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb162439b75963c3d02b80106d51ebd4846d244c548fe0fb46cff4afd871b81"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFullTowerVocabularyMatchesBufferedResidualClamping: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioCodecStreamingTests.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce3c34ba44767d036a057d4848aef57ff9ab48a8f9f0e01b1ad066ca48465bc"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReleasedCodecFullAndStreamingParityIncludingWindowRollover: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioCodecStreamingTests.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"b80fd088aac3b68d19b7f22d79480c046bf6f48c6d5eb0363f0a5f4d5451f7d2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReleasedTokenizerMatchesUpstreamUnicodeAndSpecialTokens: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad3b4c613db44f8f248219156259142537da1e8f82630c790ba1c8ea951d32b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReferenceCloningASRRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ae46a6a363e772aa9624105585a9ae473535b72e1a3f600da741fa0a91fd61"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingReferenceCloningASRRoundTripAndBufferedParity: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6338a9c33acb918fbd8681d1dbb62d6442381ff393dd7ff689a5451dd19998"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleLoadsAndGeneratesCodebooks: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4996a3a5f75dee97d345fd6f711d0bd6870bf160a4686440d51039ed0ae14e6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleTokenizerKeepsFishSpecialTokensAtomic: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7bd7688fa50ee2b6a19cfee011cc6b3d47cad37872ce655f1f109943d62322"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundlePrefillTopSemanticMatchesPyTorchReference: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"db201910aa17587d6344f34f540905801e1939115c2d90623119881b7ece3a1b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleLoadsCodecAndDecodesOneFrame: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e156e50d23a55ec2aac6b8457154677d03e3a25228777fb44a5684a4d4ea8c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleModelGeneratesAndDecodesWaveformSmoke: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"098334a5ceb902c823ddd7ff767d8676bcabef7551bc1c39508d72e51e62bb6e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleCodecEncodesHindiReferenceAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"045e3b2aa33f4c5baca6c687a52cebc4d015e8168de5140f2baa27a4f9d808ee"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalBundleVoiceCloningFromHindiReferenceSmoke: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e50a730a530bb78fd6241c0613712423cddc3f2da83f14b58bd9f4d4a662841"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testVoiceCloningHindiRoundTripWithASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe03c6f7a08b4b2a2b7bded2aae978e82312e746ae4fcbd89b55d310e0b5008"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTextOnlyHindiRoundTripWithASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64264a028e371f2b754bb08e7963d6d08f14e87292f993fd2a8f3e92823f66e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCodecHindiReferenceRoundTripWithASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioTTSTests.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c99b6dee86bd5656aef7bd7dd0e4f63c4fc1a792e44997438bf8b3adf256528"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTinyDualARForwardShapes: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/FishAudioRuntimeTests.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6513f2190dd8cf58278c00cd688e4f0fb80e01d806f8f7ce2b68788ad5037338"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRealCheckpoint: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/GLiNERTests/GLiNERTests.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4973f7c6f408560f6600ec1291ebf3f64c54f3d37c2113d0f0c1b0db8ff845bd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testZero3BLoadAndForward: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8956c3ced741496166e18d620274c740ef14fa122febf87fc59bb54ac4e3fa"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testZero3BDepformerGenerateOnRealWeights: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3f8b19d58eeffb26897cbb77996b808d3cfbaf69166f8115e939543341a40c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testClosedLoopTTSToHibikiToASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1814fa5e4e613b7bcafb531364c79e3f24dfc050a29d446580f63968ec3c956d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEnglishLoopThroughFrench: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9460a7c755396de030e6b7081276194ce7db1d8b40d51d4c4cad1159af0f0f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCloneFromPrecomputedReferenceCodes: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HiggsTTSTests/E2EHiggsTTSTests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8094043ef265522506055301398da31cc3504e48aa27e9a8214b3ac56c9e2bde"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCloneFromReferenceWav: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HiggsTTSTests/E2EHiggsTTSTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e83eb126c71c7afa0acdb2b3b5d433c879538121a152ff16a2be04b87af27a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNativeCloneRoundtripsEnglishAndMandarin: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HiggsTTSTests/E2EHiggsTTSTests.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0539ac1666a7f93da6fe211c983387d2a17c3475c70da5327d9efb7d8a36886c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGreedyParityAgainstReferenceImplementation: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HiggsTTSTests/E2EHiggsTTSTests.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcec87744e423326d9bb80cf00b29cf7011b1fac9c6f66626f6166670ef1d340"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testParityWithSpeechCore: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KokoroTTSTests/GermanPhonemizerTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"74963389a1e38178d7755c9f53ac931a2a7042c62f30fe72ecbc90125182e413"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDecoderWithReferenceAudioCodes: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTDecoderReferenceTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca36e81275e292c4e1949a41f2545a843b108ebce614e6f6a020b6c292c2160e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLongStreamRollsContextAndRetainsFinalWord: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTLongStreamTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffefc6500295d904fd6c411efe9a1b67f4c595b8cb0f683d67dccd4c6bd762a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testKokoroEnglishRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTRoundTripTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"64f9e1673c5a039e96fdcd72d7d996cfbeda08d91260133b38d3caff83d24cb4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFrenchRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTRoundTripTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3881a6a498ddceedf532912e421f09903984de02a915950b1f137abb574535a9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSharedStreamingRecognitionProtocol: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6472f81609604778a25467dfa5add8e24993d02c40853c9fdc8b898467c9a48"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMimiReferenceStages: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"72665bb162b5bc1404ce634ab79bac6e890a5e6b5bedb80056b678a90910a08b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testKnownSpeechStreamingAndSessionReset: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/KyutaiSTTTests/E2EKyutaiSTTTests.swift"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a428341596190981a9fffa5c3fbd22841c26ec283b5300a4762db985d56c8f1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDefaultBudgetGenerationProducesAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MAGNeTMusicGenTests/E2EMAGNeTPipelineTests.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"f754e08837dedb9522721541afddec74663b0415e1d5ae56e1ce71b60b264d2a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLoadAndSynthesizeEnglish: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MagpieTTSCoreMLTests/E2EMagpieCoreMLTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fa1941448c0af1e705f92973ee371040a18e9f61855c52f5dff8a601c01230"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAsrTranscribeCapturedMagpieAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MagpieTTSCoreMLTests/E2EMagpieCoreMLTests.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"8181608f4f01194ee7510d65ed6d8d8ee3fdef35ebef809c45c36a7443db5364"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSynthesizedAudioTranscribesToInput: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MagpieTTSTests/E2EMagpieTests.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ff0f26763c3f70d1dd9c01c59250d4b05f14067e30dc2664b6efa2f160097e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMultilingualRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MagpieTTSTests/E2EMagpieTests.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e377c146fc657369d6b42cccf1d8b207cc8b779f7d881f4a591a102b6817fff9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPythonCPUCodeParity: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTTSNanoTests/E2EMossTTSNanoTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c30e6affcb6fc4e573210807facb937df056bed0d02d08cb38bad1b7f314060"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGPUCloningCodeParityAndASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTTSNanoTests/E2EMossTTSNanoTests.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ca87773524ea7d4e1d0ce106775958b21db16124cf8f34bfe84031236fe1e8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSwiftTokenizerPromptMatchesPinnedReference: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56015d451e5c47b13c3eed34be55e9ea90cc6409896fb59822e21f48699bce9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGuidedAndAutomaticSessionsOwnIndependentState: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/E2ENemotronLanguageGuideTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e83942a747a4d4c8699e63993c3c2bd37b1998ea3c03327fe355ea16c6cc050"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDumpHindiAudioAndMel: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/HiBisectTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0988e5039401cab4b430da770fd0bbcdb3632166d5a29a4f5b4be0ca556ffef"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBenchAllLanguages: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/MultilingualBenchTests.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf27337e09b41849c7a95f9e1ab19da044a8effc2b7da6da48a471ff8294e3d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWordBoostingActuallyEngagesDecoder: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronStreamingASRTests.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da2550303f4689713b081577796fb39d854515f7ad1505928a72062610f16a2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEnglishOnlyBundleTranscription: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronStreamingASRTests.swift"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"15266d69379a5cf37f13ce64b5a91295eee383e44a756450451273db1d933b68"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEnglishOnlyBundleTTSRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronStreamingASRTests.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b5dba813f063b61b372a06a0e38cec91539def32dc934c3d3f85cedd8d456b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCPUAndNeuralEngineMatchesAllStreamingOutput: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronStreamingASRTests.swift"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"610f0d28985cc49a7a8a83e96162565982db6eaa69294e4b7f930157382f7a8e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSentencePieceTokenizerMatchesCachedNemotronModelWhenAvailable: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/WordBoostingTests.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"998e600af59a2d46d2c6198af36b81da099c83829bd37f48af4516710b012c01"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLoadAndForwardShape: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/BackboneLoadTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd0317ae038cacd1730f50e9ebf8bb9c99832e129e9c7276b02b15df6c4361f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFirstLogitsMatchesOracle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/BackboneLoadTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f32bf93d6927d221951709423323ed5e43dc31d6a8e77b74d24d6fb4e6034a9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDiffusionMatchesOracle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/BackboneLoadTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"209a40e238325d915b3d26eba1aa36aa27c89dc684dfb0fff6bc2154899f1d07"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDecodeMatchesOracle: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/CodecDecodeTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3357364dc87078cbda3e89b805715030bc50b3e27c22dc69a670a0235e60eeb2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGenerateThenDecodeProducesAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/EndToEndRoundtripTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7185b340a05cb96f1541c868436adf2f290c148beb8115a75d74e4e59b89c4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSpecialTokenIds: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/InputConstructionTests.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6191d285a53467afb29f55d6c210b4d45c0babfb256ad760b55b46820860155"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBuildInputsMatchesGolden: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/InputConstructionTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b793ddd9da5f24cf392ea192735bbd099d7f1400cf4bde975de4d8a71083135"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTextToSpeechEndToEnd: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/OmniVoiceFullPipelineTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"349c9feb5ff2e369128c738b02a93a77fddfb2b134bd1e2855d01c8f29101ffc"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testQuantizeSaveReload: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/OmniVoiceInt8BundleTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b117ba105a26388d1a8c677eaace188f7f7f351d8dcd97f753e9ca77eda6a6b5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFromBundleAndGenerate: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/OmniVoiceModelFacadeTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"033df2804eef18aab3e57dc60c00015146d2173920d447f8a141848da132afee"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testInt8RTFAndQuality: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/OmniVoiceQuantTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f9c197e849e1c8217076b02bb03bd971297fae9f8ad8f63e597e01d808a95d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testResidentSet: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/OmniVoiceRSSTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d9de2c9792035dc7b11eab8ae5674ee17b5047eea29e83016929e1aabef5b3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStepCountSweep: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/OmniVoiceStepSweepTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"650e935ae444f0ff7048c005b76a8dd522e1f8d1466f6747c4ca7616a59f03ea"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBackboneCondRowFp32Exact: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/PrecisionGateTests.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eaadf832e5dd336563bf71f56ad9c6fbea8e82a65db83085a1123e3408c69a6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDiffusionFp32Exact: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/PrecisionGateTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"412feada65c70050cb9777d72af18995f26925df14ceff686569b88606f95293"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCodecDecodeFp32Exact: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmniVoiceTTSTests/PrecisionGateTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d61a3dc1ec9a9484f57409c34636689829d0742fc1622bb04cd47e61750488"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEncoderLoadsAndPredictsOnANE: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/E2EParakeetANETests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"7faa830f3c9a50e41dd0e942a9e75cbb0edcbdf7b03d01e7b4165a3d3dfb3f1f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: test5sVariantTranscribesShortClip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/E2EParakeetMultiEncoderTests.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3061750c3847d025d8a6bb540546ca9580d83a49ecc5039d25a6c82fa69e231"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testIOSModelTranscribesShortClip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/E2EParakeetShapeAdaptationTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"965e5c5e6b601950cb123ce7626fdd28aba983a076c3df12942a93f417afadfe"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTranscription: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c618e0c2ddab1f9a112a2b93efcb7613163a75d96a14ca8beff3a0c8d9ae088"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWordConfidenceFromRealAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"be4f13c518b7dce686cd64e9c1cfc24fdb1b038a2fe6f8125b7b68aa06d67e90"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWordTimesStayAbsoluteAcrossWindows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dac8ddad07893006e35567eda3ef64132d4f2cf24b8a448162b19fed0aff46"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGermanTranscription: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f4ad8c8e657c2f4780127fd0ec8c29b47c79d5360ba5324352e2904834ccca"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLanguageSteeringPreservesEnglishAndGermanTranscription: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"277527ea2c094cb0cc74aa616c75f080dd097d927a3e21c068ef2f7c47010a19"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWarmup: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3db8789182c318dbfb64d4aca41c0748ed1ade5f97a5ca7a4ac2a89171ca09"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTranscriptionLatency: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetASRTests/ParakeetASRTests.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"709cd330b30f959c7c93ab55875abb525adb100782801080ba5ec5ab6523e76b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSentencePieceDecoderLoad: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55100bf80152dbfecf6c75a2f5ae411666f1bba51c8cf8cd8aea9e81e5679ea"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSentencePieceEncoderRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c04cd39f8e767fc44bbda783ad08c1bdd34b5bf04161820874aafa1ff14512"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSentencePieceEncodeSystemPrompt: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea8f3d246895754e778c25785876a8f5066ad86cfb425926cb8945dc41e5bbb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSentencePieceEncodeMatchesPreset: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"c296f77e6897ba9b220ead3e1aafb6a268fe0f2d1decaaa2b28002185812e40b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testVoiceFilesExist: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"194be697c6807cb1f5213ed34b1efde79816d8768084586208ea890dbf10b3f7"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testVoicePresetLoading: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be3080145a2f2b0fb12a6fcf509d36b81a56595a9174061c07a9bad83778aae"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRespondWithRealAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"d063944d20d23231642dd8e79585869d730cd9c2b157d2f7199431533418a209"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingRelevance: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e6892ecb02490cbdc3dcd4536cb49eaf84ae7c5b462e34c2985a6a09848bf8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testResponseRelevance: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"387aab3bb070031ec382b3c19be2677ced4578e5f52606de0d74f0317d43bb48"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testResponseCoherence: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfb78d9df97a879ef3b6a1b28bbf59c3c9a5b04e8b34ff1dec3d85ad2b83f51"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRoundTripASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f4b24223f94f6565add1e304a89c0359c11891d9cb636eb55bf88296ded1b9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRepeatedRequestsReleaseConditioningTemporaries: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PocketTTSTests/E2EPocketMemoryTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc099f75f9bb28228382b10b5e9b7544c27ba6618690aa50e52e1bc3786f9a63"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCoreMLTranscriptionEnglish: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2ECoreMLASRTests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a97136016704f4dc074dc670c8fa754448db49a93f7b1d458d42ad4c2391d808"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBenchmarkLocalAligner: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2ECoreMLForcedAlignerBenchTests.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb733456cb2491aa666097a94c0ed484c1b5de50347bdca9be372c795ec8f0c1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalAlignerProducesFiniteMonotonicWords: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2ECoreMLForcedAlignerLocalSmokeTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8eca7d2f68131cddbb3606db2bb75c324f6dbf5a3e2a8d972cdf34685fbad8"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCachedLoadWithObserverPreservesTranscription: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EDownloadOptionsLoadingTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa64b38e60ec9b4f9ea4c07a1e886246719eb3d33998da9e1c54a1626b485bf"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testExperimentalBatchTruncatesRow1ForRepeatedChunkAtBatchSize2: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRExperimentalBatchedDecodeTests.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bc6eefa0f6e7ca5ca8d30ab8b80c0f03c0c07f1f9b2b1c148331bd5e9de25c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGreedyDecodeMatchesSnapshot: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRGreedyDeterminismTests.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3390d5b48918ae9ef67a1ed9dd3ddb6f22f4c774d64981eff04e68307168067"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoLoopOnContinuousStitchedSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRHarshAudioTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cece2559e52ac0c8cec65e324589e25f04288615612f3746f1a41bc6a3828b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoLoopOnNoisyContinuousSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRHarshAudioTests.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cea17c13d80fed75feae2eaf4173a5be0ee5486727fde863dc42e3b1dd359e0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoRepeatNgramHandlesNoisyContinuousSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRHarshAudioTests.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddfca8644ff5351a2ccb13f39861bf60a8c1e0cc737cf146b376d40312f148a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLargeModelDoesNotHangOnFirstToken: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRLargeHangTests.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"1513175af6c7465eacd472c46fa39cece44d8b18d51194226715d6e41a6e666d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLargeModelDoesNotHangOnShortAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRLargeHangTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"952d3de16c6a1e27ab84060a5c0844855c662efaa6af619adfe6c798453562ac"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoTrigramLoopOnLongAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRLongFormTests.swift"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f020ee7ef666537c3b6d11a553582a2190ab9d1156a395f2ece600ab007ca899"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoRepeatNgramOptionPreservesContent: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRLongFormTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"0270ff38c9a2f1ffa26da6ee9823c22b06acce6a50bef6d8a8b01b23c0104e49"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testForcedAlignerE2E: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/ForcedAlignerTests.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26bb440378979e4220a3e9944c037b7cd81ed28e7ddb421e86e04165a5ef2e5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testForcedAlignerE2EBf16Variant: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/ForcedAlignerTests.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"7380996ea585f669c4b500b85cf6488c29fcb7d02ffd6cf92fe01aff7871f6e6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testForcedAlignerLatency: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/ForcedAlignerTests.swift"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b7b91912b9eb8c72f5483e1d2547673b977951fdbf57c02828cf09a75c9c57"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFeatureExtractionFromRealAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRIntegrationTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af7741207bccf3ce7d0355eaae28dda3676d4c32fe9d42a533f4c0d426ca90a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFullPipeline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRIntegrationTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a5f69b2ecc099eb13faf75c2c13f24e343cd77ff5603c649812e1839ed42cd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSmall8bitFullPipeline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRIntegrationTests.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27522759e48bef0724625b46f423cb6d7de50cc14fc7f87b2288b7ad20078cf"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLargeModelFullPipeline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRIntegrationTests.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0ad31694aaed1efb471fb7c4056075610d1495f93d13ed025b8dc18b41fb29"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAudioEncoderCreation: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a04bad8dfb2bfad125aecaa1281655f395a307d8baeef4bd5125336e15bbffc"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testModelCreation: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38b7b0ce4627a7ad6327d216b34bd91da3064f1a2a1389667d532c3c5323d4b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAudioFileLoaderWAV: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cb62200ae74be579c2ae9bc6f5a405131b9180807eafd6770fb1e06d4690b1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTokenizerLoadsVocab: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"92acbdbd1f8624638b098d1c416a7554905cbd05e619b7145b08a6145013554f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTokenizerLoadsAddedTokens: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfa30d0243e51936d300945e1100261ca87f608b7da44da221be11c02e99b82"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTokenizerDecodeWithASRMarker: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4def18a2bdb049b00238f3784b0b090ab03282ab224fc441508730575a81a217"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTokenizerSkipsSpecialTokensWithPipes: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3ASRTests.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a3ad81beb43f117922819d9e641d25d6976049f0c5c4ec5f8872afd9f154086"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRepetitionPenaltyBoundsOutputOnSilence: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3DecodingOptionsTests.swift"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2ea66b0f835ebf4728eaf6027f039660e6876c5bdf4941fd45bc15d82aa869"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDefaultOptionsMatchLegacyOverload: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/Qwen3DecodingOptionsTests.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58fa1ae7ea6cf9076512b42c6474819020e9a49dae5aba9fe2bb1021481cf06"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingTranscription: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/StreamingASRTests.swift"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"4500a192c2b73201ffbc6749add75f76f3820bcab494156f8c4ccbc01a191eca"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testForceSplitDoesNotCrash: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/StreamingASRTests.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd01b3ca9ee1fdfa380791c5e1f63ec776f6c60fda99087d203339200141993e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingWithPartialResults: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/StreamingASRTests.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2ff481562bde88cd48f2b7a3890ea3b48ca5a4d0272b94388dfeb5b02c27a9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingReplyAboutParis: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4GenTests.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e93ac92ad63454bf54508cdecdf968e7e7e540976598cc0f2289e6ea27a99f6"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCooperativeCancellationStopsBeforeTheNextToken: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4GenTests.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b9cbdc9e75f73797b69001806082759e5a658c6436458eca1ff15c9bc26a650"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testAnswerFilterSuppressesThoughtChannel: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4GenTests.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d4690f488f31c13e1dbcd5b276f161b7463c231543b460376d5325f147b2b4a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCacheFirstTokenMatchesSingleForward: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4GenTests.swift"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"152ff8e4002e5cdba1ea1c88eca1ed41f69d8e28862e559c3802ccf154af53da"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSampledDecodeNeverOpensTheReasoningChannel: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4GenTests.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a725aaecacbea707b8eafe58401fd8d8fe91246b63e3068029dda5a2dffbb30f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testReplayRecordedPromptsForEmptyReplies: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4GenTests.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6549cff03b95ef9ce8460308bcdecf00dcfe3e2010df389b9f4d044d2bbfb32"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSchemaCorpusGateAndCompileCost: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4JSONSchemaTests.swift"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b465f80b8d0403608fd8bc2ca3669785c345f71a3859d6b563b3ff5821634e58"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGreedyParityAgainstBaseline: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4KVCacheTests.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a227aade2502296ab880228dd10acec0f9f3d8e9c796fe1dd655c1f30dbd9b58"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDecodeScaling: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4KVCacheTests.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ece20bafafcd317ff0864d884495e934654ccaccba3ca6fd70a0952cbad135a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNextTokenArgmaxMatchesReference: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4ParityTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d7e46c58d9069030b406a3eaa8965abedb9ef3c544c9420e48b53b645cca52"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDecodeThroughput: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4SamplingParityTests.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1fb069e8f306f8ef7f39fdf067ba241067d1382a45cdd96b38b6496792ec76"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPrefillScaling: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4SlidingWindowTests.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19bb2cae18fa8b18fab67967a941d11ec6d59e9360e4ee657ccd69a7a42213e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testToolResultSurvivesFollowingUserTurn: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4UnifiedTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2180f067000e30e4c86d2a63e96777a4e1edc59d764469ad9ceba6348f2db884"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLongPromptCacheOnlyPrefillMatchesReferenceGreedyTokens: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4UnifiedTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"656057cf25ea85c43daab642eafc5f73a87ae1ef4f589e27b7742d3972fcacf0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCompletionTraceSurvivesMalformedToolOutput: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4UnifiedTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"0943558db368390a3f89c57ddf677c1a893c91e24b73716c239c2b6a17a0a405"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNativeToolCallResultHistoryAndCancellation: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4UnifiedTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd7b8f048776bd970df1c7d89f2a1d6695645dc7d9e25b07562d82dbdbf6bb83"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGeneratesCoherentReply: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Qwen3DenseGenTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcef3e68965336527eb801e219a38cbf73b37a09a1c5a5b0a0c2d847618c896"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNextTokenArgmaxMatchesReference: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Qwen3DenseParityTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"028e391af0616775d988b00096176e5c8003f634bf8ad5bb6a496919c8e1d5b2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRoundtripIntelligibility: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSCoreMLTests/E2EQwen3TTSCoreMLBenchmarkTests.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde097c8392d9944e5a2ec22874632a362c51c70cde7d2b78b3bff7f7177e4b3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSaveBenchmarkAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSCoreMLTests/E2EQwen3TTSCoreMLBenchmarkTests.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca9d93833028718a501605df45ec564289cb83faadc469e3804b84e6a8e27b3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSynthesizeProducesAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSCoreMLTests/Qwen3TTSCoreMLTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d48dd9c984f594148ee944c02951e489a256b5bd07ace1c8fbe4a6daa1e63cd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSynthesizeMultipleLanguages: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSCoreMLTests/Qwen3TTSCoreMLTests.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"46faab5685010fce31741b2c2523ac8d01032e32c78d44f390ea294edda7bfb5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testProtocolConformance: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSCoreMLTests/Qwen3TTSCoreMLTests.swift"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"925aee1dc78bdf6176d62bc53683be82cc9f72bbc67549a9b1d297930e887568"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRoundTripSynthesizeTranscribe: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSCoreMLTests/Qwen3TTSCoreMLTests.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4853a49a5e11d100d6f238d78337cf7e9709a6306ac07d382eb707537a179695"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNumericalParityModel0: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SourceSeparationTests/E2EHTDemucsTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"764e761880bee11ccc5b48cc7196ac821206568f57297f476d22a035fc547969"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testInt8QuantizationParity: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SourceSeparationTests/E2EHTDemucsTests.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6286b340976a09b3602be74029f594d55e5ad1ae703752cd0e9d72e0456c87d0"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testInt8BundleRoundTrip: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SourceSeparationTests/E2EHTDemucsTests.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"66aaed126dcf75c852f4c3b6b2292009156e11f3f28de82df97535afd5e3e93b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testExportInt8Artifact: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SourceSeparationTests/E2EHTDemucsTests.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c21df3f13c5dec3933f48d7e9427f219eb02c4ed8c33419de3abe1cbbded202"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDetectOnMacOS: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechCoreTests/MemoryTierTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c9e101e693353794ca22ea723f107b9bfde9de24b8b4e2d014d4f8656965e1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EEnhancePreservesCleanSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechEnhancementTests/SpeechEnhancementTests.swift"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"049e2a317c7cf171f2de89629380065a77d8fa2d5023cf173ed79fcc968a75a2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EEnhanceReducesNoise: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechEnhancementTests/SpeechEnhancementTests.swift"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"83079794a902c6e97a75d2da2ae14f35d7a770c53bc80ed0660f34f5561a0dda"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testThaiUpstreamExampleMatchesOfficialClassifierIndex: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechLanguageIDTests/SpeechLanguageIDTests.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"27421224da95911fa853f9f77ddf25086d5912ed7273deb2b2468da995fd57cb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testThaiUpstreamExampleMatchesOfficialClassifierIndexCoreML: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechLanguageIDTests/SpeechLanguageIDTests.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"565eb7aa0d379e652c3b8a6c6d02e0d4204a01fda93175205ddd598273f0cb5b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLongRecordingUsesMultipleDurationWeightedWindows: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechLanguageIDTests/SpeechLanguageIDTests.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"7547af5490a6ff2153a08a98b6481c7345ce6e759792b3505bfcc42b64158b08"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testChunkedRestorePreservesLength: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechRestorationTests/E2ESpeechRestorationTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b428217847ba822ca5230786c0f88f903af17f2b7dca2927cd7ac13b6da7f9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPublishedBundleOnVoxConverseProbe: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/Community1DiarizationTests.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b46b3e7c97324b9fdb942787236ab0cda9fa97e532c9b0fd1b45440bd85f361"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testIncrementalCoreMLMatchesShortCadenceReplay: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/E2ENemotron3DiarizationTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9dafd0efe93017836ec0064c69df9581fda4fc894175b888527c4d4cbe6746e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalCoreMLAndMLXArtifactsAgree: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/E2ENemotron3DiarizationTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ad8496267095dd3ea2ea79d761e99c14bfe2ab74e4982bb4a47972180cd685"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ELocalNumericalRegressionAudioRemainsFinite: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/ReDimNet2SpeakerTests.swift"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f82a9c9eb51c1be07c4ee82bfafbfed5e15e20fa30b7ad0db3400ce09045783"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMLXvsCoreMLLatency: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SileroVADBenchmarkTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71d5e037b77e9c03880c7b8339c6e25ca4837cbe22ee4af024f8d1578de7946"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EWithRealWeights: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SileroVADTests.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"58287d764acc52b918fce5ab0677d237b82f9575244eb8b0ba240607072bb1db"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EStreamingWithRealWeights: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SileroVADTests.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bcf02af58c7f11ea13b5c037a7aa915d6c9b26d614635efe6bbcb7bd15727e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ECoreMLWithRealWeights: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SileroVADTests.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba0a20af1e85206389b0a825e189058d74561eb818e37cd27ce17cecfd1656a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ECoreMLStreamingWithRealWeights: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SileroVADTests.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3585c5fb659595f4d23173866985e2c12514bb7ce3a3be2552bb91170a09ebe"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EPerChunkProbabilities: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SileroVADTests.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d53877a5a6943538ea83a4d7546d836d069628f11b9d7cec01218673c23355"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testUltraEightSlotSessionStaysWithinItsWidth: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SortformerTests.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1241d63844516af82d0f5bf0ee66aab44821dee33ee46db1f42c2b8ff1f867d4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingSessionMatchesWholeBufferDiarization: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SortformerTests.swift"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4e7d189591239a178bc66d5ea84af710ab183b1c6aa5b38e8fb3fb445a7e7c2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EWithRealModel: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SortformerTests.swift"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"95a546148166912874b4ad01a9234794b009ab053bc154da49f97d109df90e96"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EWithRealWeights: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/SpeechVADTests.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a1dd1b03b5fc867705a86c7849f278f239362f35d87f15a4339bd4ab353fe5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMLXvsCoreMLLatency: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerBenchmarkTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f61c60d67e110e8e7653ade623fcabead9b162bc62acb3612c8dd3a7f4da48eb"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EEmbedding: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89aa015d41f7488cf1b0d7ec2f976026ed45c417308c27de18828efe582123d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EDiarization: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"501ced73a571c11f3c2a38f40af329c110a3ec98fc6bb8e2591832d94fac1c21"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ESingleSpeakerAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e0e037032203c0d695fd5eb7ed38a00a05f67c13364481bdb20030fbebe267"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ESpeakerExtraction: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"36693f94095be74d61efbbb11cb8cd7acde8a16681bdbbedf24daa9e0864d33b"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EEmbeddingSubsegments: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"730fcf979ae819b65bf9f57fe8fe98c9d77b2129a80a483fcd547011acc41c8d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EProtocolConformance: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a87ea96f7009c1590ec08aeb14fe96c397b70b940364ac0330002ff9550cea3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EVADCrossValidation: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf06d90956c4e6dc9f7d97e157de54fcb2c71f9d8074a8adf3b100dee2b0e43"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EMelFeatures: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"87cf15e0ff6a409bb06bf2653675c9e5238342d48d0fb147fb5c163930d09d31"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EDiarizationCustomConfig: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"14cbc7a964169b6b4ff01c7415e5cb290a8f797a11a69c4d0958ba15834a652d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ECoreMLEmbedding: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e3f1dce473ff14b7a344c3fe11831c8c3fa531d304bfd4d879f56e912560b5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ECoreMLEmbeddingConsistency: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf806ca4c9b292e0f4174004f63110a716c1e5966e54a731bded55eb06da50ee"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ECoreMLDiarization: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6caf631757afa2c37026bd0d954e37d079c64e12d210e9eb76195d67d68fda"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2EEmbeddingDifferentAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"e256b0de189298fb03b0722525414339057c6f48c54d08418cc48a5d161bd13c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testE2ESpeakerDiscrimination: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/WeSpeakerTests.swift"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8710654e127d93d742c60cde1fb9bc16e9c4e83155df18074e8e3cd7afe2869"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingRealTimeFactor: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechWakeWordTests/SpeechWakeWordTests.swift"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacd3cf491db6bce7901335fafbd7958d7fc2e1c64d57465e73db24b40dee2c2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGeneratesFromVoiceCacheProducesNonSilentAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VibeVoiceTTSTests/VibeVoiceTTSTests.swift"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5b6df4d8fedb4d5fac38d3428e71bc4c7dc76cda47657ff70b541e8d69fb9a"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testEnglishRoundTripASR: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VibeVoiceTTSTests/VibeVoiceTTSTests.swift"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd091d0009bf9f33c9eb87158e0448fd3de4cdcabce7869c54fbcf88df0929dc"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testRealSpeechProducesTextAndModelAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatConversationTests.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9201bda93759539bc87acbd2da586ffbb53dce93f2b12cf991683665aef7eee"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLongToolWaitCompactsSilenceAndPreservesLaterSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatDeferredInputTests.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"16210c7c14c00293e3ed00d6616107854406aaf846e536aa5e77eb751bfddbf9"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDeferredQueueOverflowIsExplicitlyAccounted: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatDeferredInputTests.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ce7e4637c2f540297855f4b745723906916f3727a13c1610aae6584b90ec94"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testBatchedToolResponsePreservesSequentialCacheState: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"576016fe949a0fd892f282c322c3cc3a2fa9424065c3c603d426a69cf7934a3d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testToolResponseWithoutForcedTextReauthorizesNativeContinuation: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a577405dcbc0b0a35402ae7e552d56d2f082d4fa3b0d323841b55c160d007f"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSpeechDuringToolWaitIsReplayedIntoTheModel: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"cde984a06bfcdebeffd3db1dbdcc0a8f441d16a21854378abeb0320bce9d5df4"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testGeneralConversationKeepsFunctionHeadRealtime: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"8516c806fb10cd0b684f251af937acdc51334ce322401f94702f7a432e3cf24c"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testWriteCallProducesModelGeneratedConfirmationBeforeExecution: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"934d0e6c374331d5dea5c7991592313206232f327840045001764678018f4dc1"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNaturalToolPhraseLatencyProfile: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e91c70d7c3af2930f126e2d745b8d6ccd3564660680e479c1814545ff3ed55"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testSequentialNativeToolCyclesKeepMakingProgress: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"0addd5043efc714756ebb21adbfe161ecdac6b271e2113171dadc0dd3af65386"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testFailedToolResultRecoversToAnAudibleFollowUpTurn: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatFunctionCallingTests.swift"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"178c6110ebc5a7ae194a9a2eb586749cb67402c780b96f2b4bb85f31c09c932d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testContentScaledTailPreservesLateSpeechBeforeCompaction: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatLiveTailTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"820494096a4902053f9ba89d3d296b10697836813c00859b586d33f69730908d"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testInitialSilenceAndSubsecondPauseStayInsideTheUserTurn: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatRNNTTurnTakingTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8ccfe5f35c4fcca0a91d65a842b12b15845c8588ff8219b524a0c66a698bb15"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNaturalRNNTEndOfUtteranceStartsResponse: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatRNNTTurnTakingTests.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"8754682b5ab9f346d240231b6d388c2207421f41b5f78734f6adc0cb0b946ac3"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingCaptionsPreserveRealtimeThroughput: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatRealtimeCaptionTests.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b918414de802fb80cc007640b562f7779268c4f4b26ad3d5ba0caaf2abb095"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testTextScheduleGeneratesVaryingFiniteAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatSpeechGenerationTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc955856e1f72ab9ccb7379b28113260622bf3e38056be9c9f4f99776e07f5a5"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testCanonicalSilenceDecodesBelowRegressionLimit: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatSpeechTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"60db60e77fcb5a3506111e56bd4a8655f767337d6877b48d1c96b67ef095a658"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLongContextToolSuccessStaysRealtime: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoiceChatTests/E2EVoiceChatToolResponsePerformanceTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d585f63dabb13a52603b3d32865cdbf7879978f93c3c22877c0dfde2d9d281f2"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testLocalExportTranscribesKnownSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoxtralASRTests/E2EVoxtralASRTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5c9c4c27f1bdb59dc368c04c4476a1e5f1588d93e6dd05cd65c7bb9107f151"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingProducesText: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f51222383a9766b4f9f62daf317b81dc2c321dee319e099110c26527a32277"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingWithRealAudio: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6ded7a825990f41e3d80561814066c35196a3a073f1d5b00d9e1dcad171dcd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testMultiUtteranceReset: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e2f86070e6ead1c0a6a0aa1eabeab3103e97f15dcc01b3e0ef93a1c02d7fbd"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testVADDetectsSpeech: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"91977d36a9d3bb9b50be980e4f141ec4bbf0623fcb39a60338b1802826b79bd7"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testVADSilence: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"642e8ee3fe7bdfb6ed1120845f1c8ae590a795f5d8be16496a57d00cb5862b08"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDebugAudioSmallChunks: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"a284227e27fd04b0987c6a94ed7d713ec69e4071d9e905c5a4f64e560e2ac400"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testDebugWavLoading: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"26645fb302ba7fc145bd78702468337fb8d852b77187df295adf9695ee785e04"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testPipelineDiagnostic: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"9694ffae634f2be04627293187353da109ba0c8799f81e4108d61a6e5cc9ae0e"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testNoiseInSilenceDoesNotBlockFinalize: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"98abb11e641863958c66237c37073b2d714478818b93eb4b39ff1d870389a3b7"}},{"ruleId":"D10","level":"warning","message":{"text":"Skipped test: testStreamingChunkLatency: Skipped \u2014 throws XCTSkip"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/DictateDemo/Tests/DictateDemoTests.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"434814fb23767858b47319c927672ae90b55ede6be6cbafb4fe4f52caca482f0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFromPretrainedMarkGeneratesFrames: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Audio2Face3DTests/E2EAudio2Face3DTests.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db62cf30a6b6cd8d0c36ad7b4071ae92865ed4f14edc42f3c29081e2b607cfc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFromPretrainedClaireGeneratesFrames: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Audio2Face3DTests/E2EAudio2Face3DTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf130fbe3df65c6db9ac0aedc6c6091a9569a0a35669e7cac6f274a9d56ed86"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFromPretrainedJamesGeneratesFrames: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Audio2Face3DTests/E2EAudio2Face3DTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa1a9d5d9fcb62b6ed76daf587234133430f99b9d4d7f81e3e6e0e9892f7050d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndexTTS2RejectsMissingVoiceSample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24b324adccce94148eb385933a35c2baef6629b085108412a3206be05d3d7c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndexTTS2RejectsUnsupportedControls: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"24626e25ff243f37cb908ace0ae31d871b1fbe107ef7e3d6b20ab072d485b79a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testF5RejectsMissingVoiceSample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1101}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a755829878d7c8aed78e8ef4c5191ac100936f9a49c2eed24c5ac1b3e3eed1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testF5RejectsMissingOrBlankReferenceText: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0bd113588426edf2012cf795c6293f1d8f05305df948290e240a9bea77c000"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testF5RejectsUnsupportedControls: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa537754b6c44af46c5c6e2f7ea2cdfeffdf721e352f24c3e2feca55cb52e97"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testF5RejectsInvalidSamplingValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee948ea91d11c7f36e91a7a9c7c99aead668646467f96b6054f0258b10cee73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHiggsRejectsRefTextWithoutVoiceSample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1213}}}],"partialFingerprints":{"codehealthFindingId/v1":"13673875e097839d52e0ee2c00cf87f64dda18bf70cfe65c30722db03dcbf2b1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHiggsRejectsUnsupportedControls: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0113e4945d8f9f900b77c0bc572a8908fc92bde815a0b3533d07d4b4f50c6622"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testHiggsRejectsInvalidSamplingValues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f83108fc4ccf794fe3f2c2b69fdcb04fe24dbe3bbff3cbc6c6e2e9faeae840"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndicMioRejectsVoiceSampleWithExplicitEmbedding: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1259}}}],"partialFingerprints":{"codehealthFindingId/v1":"598cde54144953be58095e4eea939a9f88b2c22a53f440ce89a06cdce40bfd8c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndicMioRejectsQwen3StyleControls: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1271}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0ccc942cdc29e007fca82a54780a9c06f06581fcc21b89f5080fb1d0f3bd9d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIndicMioRejectsStreamingAndBatch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca90fea745f6984512e6e43b1cd97b937ca4dccf539b8fc4bd92aeb4ac7652b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMagpieRejectsVoiceSample: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6aa36721f98ea0e7041302d8c3c0e89cf1b661af117db9ec1232b6c8fa91ce"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMagpieRejectsQwen3SpeakerFlag: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"c36f7f26417fbdde1d6170747dce3785290dad5a0b6292bf345c3050c69c6e8a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMagpieRejectsInstruct: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1301}}}],"partialFingerprints":{"codehealthFindingId/v1":"93249073ee7260daa34b5350b9c0fe8c7ea6a4f5c2b26722c30161dabca7a30d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMagpieRejectsUnknownSpeaker: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e68a4c218c5687faefab35f23be840d13689608f69aa789c73b6ff923269c52"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMagpieCoreMLRejectsVoiceCloningFlags: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/AudioCLITests.swift"},"region":{"startLine":1336}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd8f42f83066903c27a876f643893b571f04340715d1f253a325764f9991e4d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsInvalidLabels: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/GLiNERCommandTests.swift"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae0a9cd5487d9c984bca260cb5f5a080b213d8eecf7d385f77eda7e485377715"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsInvalidDescriptions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/GLiNERCommandTests.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92665a9c0d9420575d50b161104b9d9caa1915a1676da8fa4bdf9514aa8a441"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsInvalidThresholdAndTask: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/GLiNERCommandTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a160aee9f1c3ccff134a7a1e5ff85e6992dd09e638333dd299747cecdef91f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRejectsUnsafeBufferAndPromptCombinations: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCLITests/VoiceChatCommandTests.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f086c61092f6573ffc3ebf62e8eb2aec82049da1f0b4de19fd2f933fe313ef"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAnUnknownSessionIdentifierStillAnswersTheSystem: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/BackgroundTransferTests.swift"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc39dd3497ab4694cfcf54d8cd41e0f37ec52ece0f1a98fa22753e61838b13c7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAtomicFlagThreadSafety: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/ConcurrencyTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49fd83192da517bf21cbd16ac51c0f91b52e241a3ee11ea529744a1b12ab4e3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testResetWarningStateIsCallable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/CoreMLLoaderTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba44c8796043025f2a474d24784abdb2dfcf3f0b1623bf96a6b776095aab56a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStallGuardSurvivesSlowButTickingTransfer: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/DownloaderRobustnessTests.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1239460c6ecdc54d7778bc996b27aaeb72cf54267abed4e35f81fefc3270e198"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMultipleCycles: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/E2EStreamingPlaybackTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"980fd5f9ccd0692d68b31cc4b871afd689d14999442285b7ba7138b0bfa7706e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSinglePassNoPreBuffer: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/E2EStreamingPlaybackTests.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a4545ba4fd15ef887972ecf0501c1ebd3354a6ca902be77df66d30bb55c6d4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConfigurationRejectsInvalidRatesAndBufferSizes: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/FullDuplexAudioIOTests.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ca4f8a274a5ce37a61f69b30f56b266c629ad6265bebdb6aba6fa4d5192459a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testByteWeightedOfflineSucceedsWhenEveryFileIsCached: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/HuggingFaceDownloaderTests.swift"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2bf23bbc13456dfe6c4490d1a124f9011c87ba68f7f706cb20e63104277003"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStallGuardAllowsProgressingDownload: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/HuggingFaceDownloaderTests.swift"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"8235eedaf33967a51a7dd70c78d4ac53cc9383f32c48616855b10aa52eebedfa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDownloadFilesFallsBackWhenEveryPatternIsSatisfied: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/HuggingFaceDownloaderTests.swift"},"region":{"startLine":1236}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9a108899631384db801e149ad50697dbb0acb0e8f910f4fe502047fc6cd594"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testByteWeightedFallsBackWhenEveryFileIsCached: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/HuggingFaceDownloaderTests.swift"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e62f8018c91a20a5b8ece0e574b3e99ab5d77e9e2c2db9cd2c1d092ebda1edc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGroup0LoadsInParallel: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/ModelLoaderTests.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5607e8b37cfbeaee77bc5439da2f80a9c69e10e5536a3cbe1c5ba6d48366ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMarkGenerationCompleteWithoutEngine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc600fe5aadf74cc9a4f97aa5450c14f243f53121adb8a02ddf9d210942a4e7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPreBufferAccumulatesBeforePlayback: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1635ddf1570c89389dfed88dfd6d15c0197581d3fc9301e103ff551e10f3db52"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSilentChunkDropped: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0aae9588453ec21051d0ce48e96041519efe84723961338a200f146f107e7c2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEnsureStandaloneEngineIdempotent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7a64550e3f900b8a4156287ae48e67fa3cd98d658a95dad5796d787dbd2eab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStopReleasesEngine: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"16dedfbba7a4fd8a3ab2f8ea30baf6e6dfbe3a99a3e9bc92cd61db34c853382d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFullLifecycle: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae040776ce492b04ce1cf87d691979e5560e9240e39907be74ba37b4bd816277"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPreBufferFlushesOnMarkComplete: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5598f762e7cb322a5ecf9ac8ba250f6d5e74075aaf485378bdcca395098aa70"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMarkCompleteWithNoChunks: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3f26c9a5295bb49259080996ede8a5818a6ae0f9de2d00b25122ab610ad5a9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testScheduleAfterStop: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"230cc535d30f7e0dac5dca75155eb099fe22f1900f4f1bf7333891cd15116153"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPreBufferMultipleSmallChunks: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dcb1ea1f92070cfdb6273a8f9f8ba427f93d32edcbea57084d01e38369e2ae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConcurrentScheduleChunk: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioCommonTests/StreamingAudioPlayerTests.swift"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"031deb38a33a4533e8405d123b3dec4dfa5e096251d0c481f32ab17ec0defec1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testShutdownCompletesBeforePortIsReused: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/AudioServerTests/TestAudioServerTests.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f061ed8beae8524f65cb59e418c90f607b2cfda1fd4d0dd5aa47242f523dd5b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStreamingAndIndependentASRRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/BreezeTTSTests/E2EBreezeTTSTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ff1cefde67b1f5a3a73659dfcf0930ce983cdc289634b7273f81c0fef4ac700"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChineseStreamingAndIndependentASRRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/BreezeTTSTests/E2EBreezeTTSTests.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a688dc335a85a166b3c7f75e8449970a41b9c765bd45c7f7a3d3b384cd3cccb3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReferenceHeadCPU: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ClefTests/ClefTests.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"351f7cf9ade2e1ec11dcc4d92156bf127e061923e7e7b64a38f84a7d96f09eed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReferenceHeadMetal: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ClefTests/ClefTests.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f4dbffba3a83418953ac9357a66e3444dcbd8e69cbc9f1bd0081d639030344e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGroupedDeltaHeadsMatchIncrementalInference: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ClefTests/ClefTests.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"c690c74fb9e187760df9eb88c27ace27188f52969acc00a83727018630de0e81"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFusedDeltaMatchesReference: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ClefTests/ClefTests.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"43761a11eb654053b0ee87bb5ef77403bdc11fb78f06667615dfeab2d0a9b6b7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEqualDeltaHeadsMatchIncrementalInference: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ClefTests/ClefTests.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4dcc08708aa369fdbc5d4003ae96f98299d28a367d9b317d68067ba36f150a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLoadHiFiGAN: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CosyVoiceTTSTests/CosyVoiceTTSTests.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d456687feeeaa4d81d583b253d9e992586bc80e5c5635d5694e16c995c8c258"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLoadFlow: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CosyVoiceTTSTests/CosyVoiceTTSTests.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10803c31313edf03f9c676f4f7a2e3c8a903de2060fe86d2775bee5baebf287"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLoadLLM: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/CosyVoiceTTSTests/CosyVoiceTTSTests.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec351edc0d8fef0420b993c0e44126c3803115ba3d980b9ad9751481eeb59599"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTransposedConvolutionCarriesOverlapWithoutDuplicatingBias: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioCodecStreamingTests.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e05d99d0b5f421341ae9e85439228aec0fa1e61498cd615b5c762b280a7b2eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTextOnlyASRRoundTrip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"67eb2f71933e450bc81a958dff137fc1a7e3fd2856d4964f3134e0e0815cc8a1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCLIProducesWAVWithCorrectContent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae738e92fcaf480474e7fb13701ad82d14ae3fe5d05f0503223c29346235f61"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStreamingCLIProducesWAVWithCorrectContent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3cf861c623a71d6bbce07c3dd431a2c2ee61357969090546f6ecfde8c04caa4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStreamingTextOnlyASRRoundTripAndBufferedParity: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/FishAudioTTSTests/E2EFishAudioDrama3Tests.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8a1ed6435489770dd35c93e6d8eb6b62cfac5aff784bf6df1aaaacc7056168"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFrenchToEnglishTranslation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d60616d85d761c75d8cd12718ea4c5f2d1cdc0b219664f3f170656a4bd5a42f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSpanishToEnglishTranslation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"082e4f2ca439ee08c54ae191dba19d7e621169d343a601253b82e9415e417f29"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPortugueseToEnglishTranslation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"e825967dc9ff630c2999b6f5c1c3158fdf3d8db7708d67b7d86198cafd2270d4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGermanToEnglishTranslation: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/HibikiTranslateTests/E2EHibikiTranslateTests.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b0cf720c55463eccb82c2c37bbcafbdc66e96e6d4a1ef90d884117c1b8cf81"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBatchedCacheMatchesConcatReferenceAcrossChunkGrowth: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/IndexTTS2TTSTests/IndexTTS2KVCacheTests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"38267537829df00cc9a25fb1b06132e52bd58d8935a0f8f0ff4ee65c8391cae0"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testReorderRowsMatchesGatherAndIdentityIsNoOp: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/IndexTTS2TTSTests/IndexTTS2KVCacheTests.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfaf7b7c41502db7d98382d7f1eb20e92d3163ef42654d5939d14bbca52a4bcc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLMFirstForwardMatchesPython: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MAGNeTMusicGenTests/E2EDiagnosticsTests.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc42db518cfba53f181bcc968cfeacea6395f0982ec0e5821a89f45212807505"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLMFirstForwardMatchesPythonMediumInt8: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MAGNeTMusicGenTests/E2EDiagnosticsTests.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a216b9e91926e9a9f3e7b9cbdbadd03f787bbcbc0f6f80b6bff41172240525e4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testINT8RoundTripProducesStructuredTranscript: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"15bb9ac31294dc134a4b89ee3b129cd4a3469482547bdf228aa1660f146678e6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFP16RoundTripProducesStructuredTranscript: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"aee54a17d6fa58207ac1107d1bcbf673efa5f2f5ac47aa17657f0afd47dd3fe4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMLXINT5RoundTripProducesStructuredTranscript: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"88ab0b48484deba5fb08c1a40cdbbfe2fdd463ebbb55094b11fe1c7fdb4986c5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMLXINT8RoundTripProducesStructuredTranscript: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27d1a21e0e71c0234b68eed16927d14a1a9ced54702d0632fb06c9796a72e2d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMLXINT5WeightsWithINT8KVCacheProduceStructuredTranscript: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95002600b093d65acb3e175fed0a5aabaef8ab8827feadcbf37566fd8f7b876"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMLXINT8WeightsWithINT8KVCacheProduceStructuredTranscript: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/MossTranscribeTests/E2EMossTranscribeTests.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0877aec52a9d2038dba14c1cf0408110ce4e4bdc50d07b3103de852c04e5ab"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDefaultPretrainedLoaderIsUnambiguous: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronMLXTests.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ba3862fea7731521c143de67814ce136b4f60522d891c6c1c827da54536b73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPublishedInt5AndInt8ConfigurationsValidate: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronMLXTests.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1cc8b62aa01178c4d2b0c94f5231e28a61f2f4f60e6038e7426d2c8cda9a89"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLocalINT5BundleStreamsBundledSpeech: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronMLXTests.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02166569b176c1b4110ca9f198ab56abb8724fcdb798f12682368bda8197677"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLocalINT8BundleStreamsBundledSpeech: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronMLXTests.swift"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"3735ad109f075fb730344d593dcb02db36b62efb987a60697f46f33df9ecf4ec"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelsExposeUnifiedStreamingContract: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronStreamingASRTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a94f57ee8c78a1b268b0b80dddb5c0aa57ac7f806c9e0115a2eb778886030ed"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWarmup: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/NemotronStreamingASRTests/NemotronStreamingASRTests.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"b94f60ef24348cdd6e0cf1ae18fe3458c03dcaa5e2f1788a9c053a1920f245f8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWarmup: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmnilingualASRTests/E2EOmnilingualASRTests.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3047f14837029f2bf515c06264904f35160810ee0f7e02de2e732792982d2ee"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWarmup: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/OmnilingualASRTests/E2EOmnilingualMLXTests.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d13598e3687e8d1fca5321babf3473e5dc0cff2ceb64be344aa00419b56be38"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelExposesUnifiedStreamingContract: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetStreamingASRTests/ParakeetStreamingASRTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed7626b40cd8301aadd64a972e93543ba838a9b16356939dd4055ec0aacc482"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWarmup: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/ParakeetStreamingASRTests/ParakeetStreamingASRTests.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b8eb3951946428a13aa6b4d25fd754367555198b58d54833a8231235b87609"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPreAllocatedFasterThanConcat: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdcf952919f3662d393b05e717c5a08d4e60496abfc46adec11811e08f5c71b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLoadModel: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"e796908dc3330593a50f1417165095120c355600af308c92d52e3c656b6dfa2e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRespondDiagnostic: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"738baff9448a8e28fe206a77f1eb6664e9b61d0a68f6c8ab02a7f3fc4cd869a8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDeepDiagnostic: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/PersonaPlexTests/PersonaPlexTests.swift"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b81416c4dcdd492f0a730db029d4ed6246d7ab167a01ad61d99a5be23f0b3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFP16AlignerProducesMonotonicTimestamps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2ECoreMLForcedAlignerTests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"022fed4c3ffd338c99375736957723009c40e52e8b0d625e52d2aaecf9508707"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testINT8AlignerProducesMonotonicTimestamps: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2ECoreMLForcedAlignerTests.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8bbdbca77bd609bd2f1f2e4b03f9289c24c6dbbe6593b6ea40cefdc79c25cc4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCancellationCleanupUsesTheScopedStream: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ASRTests/E2EQwen3ASRGenerateTextMemoryTests.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d2207fece01f459e9f6eb2bc5efd7aa4bf8e87187af081fc3b32f1665a02f2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConstrainedFactExtractionParsesAndValidates: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4JSONSchemaTests.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f96e0a3d1269326fe82e3b0d53528242e358c98baf9cce2747b5853a3fbabb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConstrainedDecodingThroughput: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4JSONSchemaTests.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"326b6730b018449d158918b5fdfe5aea3f96fbe9db029c009edf20ef352e0043"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEngineComparison: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4JSONSchemaTests.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba96465c6ae86b6036099d6dd33aadfc970491e1aa8c5bb980e87a1a0042623"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWhereADecodeStepSpendsItsTime: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4PerfTests.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbbe884e6b98dc919196f828da92b5e37957de0916e43e042d36ec82ff69d7f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWhereARequestSpendsItsTime: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4PerfTests.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca6f83b240abcd0c9241ec8ed91acea8b1fdf55d543d197a2957111ea59c53a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTranscriptRowsTokenizeIdentically: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4TokenizerParityTests.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b19456dfbb1e65407f8bda156239f94b0cce724325421ddaeb3f9a1240e6c24"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testConcatenatedTranscriptAndItsPrefixesTokenizeIdentically: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4TokenizerParityTests.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9247f61ca4487cc399c637ae4a0831e42733028d20c6027a1e22ee83c2eb04"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChatTemplateShapedTextTokenizesIdentically: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4TokenizerParityTests.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"977cb2d96cfd122de6897be49a0a150e08b4dcafff2a2c844c9f7011c3aad565"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEdgeCasesTokenizeIdenticallyOnTheRealVocabulary: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/E2EGemma4TokenizerParityTests.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"1307e589adff449ca149c12727e94403eb29bbc6296f46cf2fba935525591ec1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSlidingPrefillLengths: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4AttentionBlockTests.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b827c4e64c310fa9971d3f816b4f4c99ba81f3db06cb53faecd91eccb00964"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testGlobalPrefillLengths: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4AttentionBlockTests.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cf4319c58880a3d6b7138059345ffebae2d7d7163c914b187a11803496c378"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testIncrementalDecodeAgainstLongCache: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4AttentionBlockTests.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"67665a9b5568e2e562fb9fbf94c2f3445f050af4c2c613786df3aec8fb192472"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testChunkedPrefillWithOffset: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4AttentionBlockTests.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3ebe7086bef2790f344695aebd0e0ef1285418c258b917f3b270c0e267e47c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWindowNarrowerThanQueryBlock: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4AttentionBlockTests.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5cf7d44d2d6530a22c53e5b2612326eace60c33161b840f43367062d5b20c9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testEmojiAndGraphemeClustersByteFallBack: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4TokenizerBPETests.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec4c693c523725fc7f86ca4813abc9c46873abc350bba6bc4858153643cc289"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTextThatLooksLikeASpecialTokenButIsNot: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4TokenizerBPETests.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed85b5f78a15767986f420cdd3cc7a4cd71911fcb4b100c960f4289010cacdf5"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMixedScriptSentences: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4TokenizerBPETests.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"f659bfa76738022fe342fe84ba09ec1e69e8ab78c3d057971a049b7d527e6cd9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLongInputMatchesReference: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Gemma4TokenizerBPETests.swift"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"75393eb328237f485e5469be7ce03da3b42ae2e96fa2cc13d738d07c0e4d75b6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFactDocumentIsAccepted: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3fa2cf595e1a6ce6f117f79eb016ea28848235467cc4db9c29d41b736f2c54"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testTheFailureShapesSeenUnconstrainedAreRefused: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"09d5a64ef37e5ca924f8429571f670f547b965ba9049a84af219b2e83a789183"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPropertiesFollowRequiredOrderAndAreAllPresent: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb90cf3b5f739f380c0e954a26030f5a84fa4cdf341cb80109630dbf96961c2"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testOptionalPropertiesMayBeSkippedInOrder: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7df98dd2cf1623d20f9a6464a7a643015e0614f7448f1a788d51e72e090dfc"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPropertyCountBounds: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe295723fb354a85f5b909678a7f70c72f4579af617595e18a401dc020d191d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFreeFormObjectAndValue: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"02dddfeb0d669af3e5e8eb9dc2b81a80c8ce0f0112f3ee7fc9196f638235d9ae"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testArrayBounds: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f6e93f1d8f119dce1c08839a4d503c4d5b87ca16c6c2c48c309b68f837b62e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testStringLengthCountsCharacters: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"957401855295e64468fd1cffc37d5361c40630aae9c1325098bd88443590d6cb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPatterns: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e19c51d0c309133fc030c92b0d5f6b79e2225c49ef0671fbd8483b67f4fe9c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testUnionsAndNullable: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"192ad00c3008f679df60771e49afee65b1212c32d8f932c94aed6af65e2d0cd6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWhitespaceIsBounded: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2cc744afb95069d4a5c910abcc06ea8e0d8cc02f3ca25cbcfbc773b39fcf86"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMasksMatchBruteForceAcrossADocument: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/JSONSchemaConstraintTests.swift"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb59e7f6b6b43b207b9ad001ff9d09257697f634f74e12dccd9a6433c46023a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testModelMemoryManageableConformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3ChatTests/Qwen3ChatTests.swift"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"8454966ea4cdf9e1a7089aa25482f389f0fdeaf773c7baf4fd66539297fa15fa"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompiledFrameMatchesStepwiseGreedyPrediction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSTests/CodePredictorFrameTests.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"362201217f21287271656e76a350a84dfe33de05b56fa200053a9a23c808d3a7"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testCompiledFrameMatchesProjectedStepwiseGreedyPrediction: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSTests/CodePredictorFrameTests.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb62c0ba3f42fdda9109fe7e71ddfb1f0af53108eb9dee1bcd59d9dbbf472a67"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testAppliesBoundAndRestoresPreviousLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSTests/MLXCacheLimitPolicyTests.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c405ea2c4e6b3c9a50aa949264f1d15c83e0b2eb081da8ea8c3be14b3ba80b1c"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPreservesStricterExistingLimit: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSTests/MLXCacheLimitPolicyTests.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5518868bb0172170c6b2c974ff699638525f56678c01e56b6be268aed688979"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPublicLocalAndPretrainedLoaderSignatures: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/Qwen3TTSTests/PublicLocalModelLoadingAPITests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d3bd7c351fab3f507ced0c2a2d5d80c2ea3593d9c9bfa27aca388c781ad8b4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBenchmark10sNoWiener: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SourceSeparationTests/E2EOpenUnmixBenchmarkTests.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"79431dda49a4a1de7212b7c4e7d9776a5c576977c83ba723d6cf3e815b7e4d08"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBenchmark30sWithWiener: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SourceSeparationTests/E2EOpenUnmixBenchmarkTests.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"394cdb6244783ea6cfed82f784dc5ccf9e613b95e90d459112b0709de81fe7da"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRestoreReferenceClip: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechRestorationTests/E2ESpeechRestorationTests.swift"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c8e34710b5198a1528e7b0102fbb0aac3dd2a41451e240b6016ac8898db6672"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testRestoreReferenceClipInt8: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechRestorationTests/E2ESpeechRestorationTests.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"7251056b7dccbfaefb55a890cb8de1220dd5741ea666d7d33303a212055d5ea6"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPyannoteDiarizationPipelineTypealias: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/DiarizationHelpersTests.swift"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f312003fd1fbff892ca9e5b577461af9755061787c483bdeffd07731c103190"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testDiarizeProgressHandlerOverloadExists: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/DiarizationPipelineTests.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"887188487d6ede33d62ecc003d44166c49533e9e29762b35c44801f381806514"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testSortformerDiarizeProgressHandlerOverloadExists: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/DiarizationPipelineTests.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f365719346ed825214696000cfa0d4b02bfccd739368f662d819ddee76da4b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testFbankVsKaldi: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechVADTests/FireRedVADTests.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e353d6df5b4c556dcd0311584955fb597e023fbfbf93dacc843aaa608261a8d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testWarmup: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/SpeechWakeWordTests/SpeechWakeWordTests.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"3679898f674c412afdc9689576962cbee423eaf769c0347c41dbde6f794f026d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBasicSynthesisBF16: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoxCPM2TTSTests/VoxCPM2TTSTests.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7f0974f9539c4d408e6d36499444c7b1ffc4e8a9ffd5e76169d8cc1a0d60bb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testBasicSynthesisInt8: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tests/VoxCPM2TTSTests/VoxCPM2TTSTests.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1da57415be20956ab7cfa87556056da5a4340e4aa747baa028c10ae91d31c4"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testMarkGenerationCompleteFiresWhenNoPendingBuffers: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure* \u2014 so verification routed through a helper of your own naming, through a base-class or callback object whose members hold the assertions, or through a harness that fails by throwing under some other name, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Examples/SpeechDemo/Tests/AudioPlayerTests.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"9071a20d1bba853a8f77154f794d3337b1bb8581d8b14942b1d23d6ee57e0434"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/AudioServer/AudioServer.swift: Sources/AudioServer/AudioServer.swift changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 105 in AudioServer.swift.handleRealtimeWS at line 968. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/AudioServer/AudioServer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdad2aa4d80258c9c61a283660381937495183bbc3646eb8e432dc6e40b8e07"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/AudioCLILib/SpeakCommand.swift: Sources/AudioCLILib/SpeakCommand.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 128 in SpeakCommand.validate at line 391. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/AudioCLILib/SpeakCommand.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/SpeakCommand.swift"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d57d2b1e8de7b92793b853119c5c1302bf3e3b9cd18c8a9ffe72e2411db886"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Qwen3Chat/Gemma4Chat.swift: Sources/Qwen3Chat/Gemma4Chat.swift changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Gemma4Chat.decode at line 253. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Qwen3Chat/Gemma4Chat.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Chat.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e3945d9e07ee400725957480140652cc933cb4227fe79851ea54ad863a6680"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/VoiceChat/VoiceChatSession.swift: Sources/VoiceChat/VoiceChatSession.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in VoiceChatSession.advance at line 946. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/VoiceChat/VoiceChatSession.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"5173f7d60d80d904d4d67af5aa6758951fcd9c7a4358294fb7b751b4300336aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Qwen3Chat/Gemma4Tools.swift: Sources/Qwen3Chat/Gemma4Tools.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in Gemma4ToolCodec.prompt at line 153. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Qwen3Chat/Gemma4Tools.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Tools.swift"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a801d53e81f507ea78261cc7994c19900f62e566798ab83013a4504c0526b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Qwen3TTS/Qwen3TTS.swift: Sources/Qwen3TTS/Qwen3TTS.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Qwen3TTSModel.runStreamingGeneration at line 411. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Qwen3TTS/Qwen3TTS.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/Qwen3TTS.swift"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d6c40b24acca03956b83173b5a589a2c1634fc46314d84050ccaf4430d80c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Qwen3Chat/Gemma4UnifiedChat.swift: Sources/Qwen3Chat/Gemma4UnifiedChat.swift changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in Gemma4UnifiedChat.generateResponse at line 149. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Qwen3Chat/Gemma4UnifiedChat.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4UnifiedChat.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"af49d9cdf8d9113782125875257bbc4b5cd8c9b212caa2b4cd9727ad84fccfa8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/KokoroTTS/KokoroTTS.swift: Sources/KokoroTTS/KokoroTTS.swift changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in KokoroTTSModel.runModel at line 203. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/KokoroTTS/KokoroTTS.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/KokoroTTS.swift"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"967100de434ce8b007ac2d95110762575a914308a13fe5b74a7d5f2fce02d8b9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Clef/Clef.swift: Sources/Clef/Clef.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Clef.load at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Clef/Clef.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Clef/Clef.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fe35204b4df0caba1e785ebf6f2cfce8081ff5d2796b51f959bbbdccea0167"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/VoxCPM2TTS/VoxCPM2TTS.swift: Sources/VoxCPM2TTS/VoxCPM2TTS.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in VoxCPM2TTSModel.fromPretrained at line 158. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/VoxCPM2TTS/VoxCPM2TTS.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxCPM2TTS/VoxCPM2TTS.swift"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c8768ac320f46642cf388929b99d32120d4e5b7d5bc2f7d47a6d9adf20e699"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift: Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Qwen3TTSCoreMLModel.fromPretrained at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTSCoreML/Qwen3TTSCoreML.swift"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f4fc115c93321bae9ee2dc85cc1d859aa3df4339586fd04d39e09f20b38118"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/AudioServer/OpenAISpeech.swift: Sources/AudioServer/OpenAISpeech.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in OpenAISpeech.swift.handleOpenAISpeech at line 133. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/AudioServer/OpenAISpeech.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/OpenAISpeech.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc3dd88f604fe66e70c2295f79a84b16d17b227df585dd9af37fcc0281a5a53"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/CosyVoiceTTS/CosyVoiceTTS.swift: Sources/CosyVoiceTTS/CosyVoiceTTS.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in CosyVoiceTTSModel.fromPretrained at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/CosyVoiceTTS/CosyVoiceTTS.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/CosyVoiceTTS.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5edd1efb89342ede13e0f9f99dddd7110f60b8bf65db3aaa293250d0228025cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift: Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in IndexTTS2Tokenizer.encode at line 94. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Tokenizer.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2c83e7a2979c0e44032fb52ab6703e650e04af4a5c040ef64cbbec1e548b096"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/DiarizationBenchmark/DiarizationBench.swift: Sources/DiarizationBenchmark/DiarizationBench.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DiarizationBench.swift.makeDiarizationEngine at line 268. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/DiarizationBenchmark/DiarizationBench.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/DiarizationBenchmark/DiarizationBench.swift"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab24f52f02dbbe91fd30cb6d35912f4d5ac869017bd22d2498507f1c45e0c533"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/Qwen3ASR/CoreMLEncoder.swift: Sources/Qwen3ASR/CoreMLEncoder.swift changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 7 (its worst body is CoreMLASREncoder.encodeRaw at line 148), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(qwen3-asr): make cooperative cancellation an explicit throwing API\u201D; \u201Cfix(qwen3-asr): stop dtype fallbacks reinterpreting CoreML buffers\u201D; \u201Ctest(qwen3-asr): pin the CoreML embedding fixes against regression\u201D; \u201Cfix(qwen3-asr): read CoreML audio embeddings as Float16\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-07-29..2026-10-27, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-29 10:39:33 \u002B01:00\u0027 --until=\u00272026-10-27 10:39:33 \u002B01:00\u0027 --full-history --no-merges -- Sources/Qwen3ASR/CoreMLEncoder.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/CoreMLEncoder.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8c7734fafa74d0ef70637675c589e3e70fef450ea22d4356fad7f160c078fa"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 49 significant file(s) lose their only recent owner: Sources/VoiceChat/VoiceChatSession.swift, Sources/AudioCLILib/VoiceChatMCP.swift, scripts/qwen3_tts_coreml/convert_coreml.py, Sources/AudioCommon/HuggingFaceBackgroundTransfer.swift, Sources/MagpieTTSCoreML/MagpieTTSCoreML.swift, Sources/SpeechVAD/Nemotron3Diarizer.swift, Sources/Qwen3Chat/Gemma4Chat.swift, Sources/AudioCommon/HuggingFaceTransfer.swift (\u002B41 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cd250fe3e8ce92fabaabca017b8e5f3d7ef350f0556393dc740a18101d8f359c"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 27 significant file(s) lose their only recent owner: Sources/IndexTTS2TTS/IndexTTS2SemanticGPT.swift, Sources/ChatterboxTTS/ChatterboxFlashCoreMLGraphs.swift, Sources/AudioCommon/SystemAudioTap.swift, Sources/F5TTS/F5TTSFlow.swift, scripts/render_benchmark_dashboard.py, Sources/HibikiTranslate/HibikiTranslate.swift, Sources/HibikiTranslate/Configuration.swift, Sources/IndexTTS2TTS/IndexTTS2BigVGAN.swift (\u002B19 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a779379d3bc23d15b152a87cb96508ab9e6c26e2c8540cbe4ac1f87b3d405448"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 19 significant file(s) lose their only recent owner: Sources/ParakeetStreamingASR/StreamingSession.swift, Sources/ParakeetStreamingASR/StreamingMelPreprocessor.swift, Sources/Qwen3ASR/AudioEncoder.swift, Sources/SpeechWakeWord/KaldiFbank.swift, Sources/KokoroTTS/LatinPhonemizer.swift, Sources/Qwen3ASR/TextPreprocessing.swift, Sources/KokoroTTS/ChinesePhonemizer.swift, Sources/PersonaPlex/Depformer.swift (\u002B11 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3b4dd220f6c47a1dea24169781cd77b73cd74280fc73eb4633ea5d0a7f928caf"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 1 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (96 single-owned of 558 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 558 of the 691 production source files in this repository met that bar). They are anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/Qwen3TTS/LocalModelConfiguration.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (149773 LoC, 2163 module-visible types across 80 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c92d0546fe36e0a577ad343da843b09b5a98bed864ead1b5d126c1bba44d7f9e"},"properties":{"commitSha":"7bb63fc7c9ac95aae036f765dcebba322aaaee33"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49c260461bdaeca42412933533b7c000885066f4d5e212506e0974657b375e7f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a4aece6737961d2e00f38eb139d579a2ced53369e872b5b4f24c037001332cf"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f1b01b514bc6b69efa5732e85ac39cb778d8accb702dcea682ac2d43e0881ee"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b63c93c76e40dda3d12442ae65377889e912bc68f6b1de302d22e4f7ba477bfc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cfcec46a767c9c18f45a360fa9228e615da7842913e5d6c7c4dfb925c363734f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6cadf962c8f9b170a6d35e425662dd4858193b3727d051fbb675b631cd52d672"},"properties":{"dependency":{"package":"pillow","version":"12.3.0","advisory":"[GHSA redacted]","aliases":["BIT-pillow-2026-112390","BIT-pillow-2026-112391","BIT-pillow-2026-112392","BIT-pillow-2026-112393","BIT-pillow-2026-112394","BIT-pillow-2026-112395","BIT-pillow-2026-112396","BIT-pillow-2026-112397","BIT-pillow-2026-112398","BIT-pillow-2026-112399","BIT-pillow-2026-112400","BIT-pillow-2026-112401","BIT-pillow-2026-112402","BIT-pillow-2026-112403","BIT-pillow-2026-112404","BIT-pillow-2026-112405","BIT-pillow-2026-112406","BIT-pillow-2026-112891","BIT-pillow-2026-112892","BIT-pillow-2026-112893","BIT-pillow-2026-112894","BIT-pillow-2026-112895","BIT-pillow-2026-112896","BIT-pillow-2026-112897","BIT-pillow-2026-112898","BIT-pillow-2026-112900","BIT-pillow-2026-112901","BIT-pillow-2026-114501","BIT-pillow-2026-96636","BIT-pillow-2026-96637","BIT-pillow-2026-96638","BIT-pillow-2026-96639","BIT-pillow-2026-96640","BIT-pillow-2026-96641","BIT-pillow-2026-96642","BIT-pillow-2026-96643","BIT-pillow-2026-96644","BIT-pillow-2026-96778","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2026-4326","PYSEC-2026-4327","PYSEC-2026-4328","PYSEC-2026-4329","PYSEC-2026-4330","PYSEC-2026-4331","PYSEC-2026-4332","PYSEC-2026-4333","PYSEC-2026-4334","PYSEC-2026-4335","PYSEC-2026-4336","PYSEC-2026-4337","PYSEC-2026-4338","PYSEC-2026-4339","PYSEC-2026-4340","PYSEC-2026-4341","PYSEC-2026-4342","PYSEC-2026-4343"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f2b29c3bc05b6f1351dcb37f5277e23087b41b9355eb6be6e468d1d2a2ad6b68"},"properties":{"dependency":{"package":"brotli","version":"1.2.0","advisory":"[GHSA redacted]","aliases":["BIT-brotli-2026-111497","BIT-dotnet-2026-111497","BIT-dotnet-sdk-2026-111497","BIT-node-2026-111497","BIT-node-min-2026-111497","BIT-powershell-2026-111497","[CVE redacted]","PYSEC-2026-4322","PYSEC-2026-4323"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8d39ab7ed8052168e23f945547d97eb4e9f820d910c0212120ffdde1563deba6"},"properties":{"dependency":{"package":"certifi","version":"2026.7.22","advisory":"[GHSA redacted]","aliases":["PYSEC-2026-4320"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"63ff9c382b048ac174e289801abba121a13ae41b8fbee938c2b6436fa1f60939"},"properties":{"dependency":{"package":"transformers","version":"4.57.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","PYSEC-2025-217","PYSEC-2026-2288","PYSEC-2026-2289","PYSEC-2026-2290","PYSEC-2026-3929","PYSEC-2026-4174"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe639e0e0a68b1185232467463d7405105d2bf556a3b4edbc2eb2c28463eff0f"},"properties":{"dependency":{"package":"msgpack","version":"1.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"68e6a6425284507df54fd0231a38a187a20dc4225376a176cb99eb47bfffbd32"},"properties":{"dependency":{"package":"filelock","version":"4.0.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"596a13c7c7245a924e148d50440f94d40cc34e8c8e7f0a748b9b268a1ff592ed"},"properties":{"dependency":{"package":"pytest","version":"8.4.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-1845"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cac891ef2cab5d9378ada68bbd4d40aa0e7fc9d555989b92f861241897247deb"},"properties":{"dependency":{"package":"torch","version":"2.10.0","advisory":"PYSEC-2026-139","aliases":["BIT-pytorch-2025-3000","BIT-pytorch-2026-4538","[CVE redacted]","[CVE redacted]","[GHSA redacted]","PYSEC-2025-194"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"56fec96687fb8d4f027b78b3da14103de8b553d0d501ce6a84820fd8ce8c63f6"},"properties":{"dependency":{"package":"accelerate","version":"1.12.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","PYSEC-2026-3804"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DMLXRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e0cb946ed02ecdd9519cfac2ecf89346f0d845422aa0a00926284de4afc0c7"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Clustering.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f563e8f99cb10c20652f5e6729fccae967098332e9340f1c42af34b777af00aa"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/MioCodecWaveDecoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c842d38e9b324528570aafae2daf9b9304be91bf64bd09d13088a6e21090e2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/export_moss_mlx.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"184556a432387cba9ffb81254b50c050d7af367a7cd583243e97034b23efce10"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/UNet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3505f93c438137c6e6cdd88c604ca4435a8925bcc2166f485d3b41e069c27e"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 126 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: Sources/SpeechEnhancement/MLXDeepFilterNet3Network.swift, Sources/FlashSR/VAE.swift, Sources/VadBenchmark/VadBench.swift, Sources/FlashSR/Vocoder.swift, Sources/SpeechVAD/Community1DiarizationPipeline.swift, Sources/ChatterboxTTS/ChatterboxFlashCoreMLConfig.swift, scripts/benchmark_qwen3_batch_decode.py, Sources/FishAudioTTS/FishAudioDualAR.swift (and 118 more) (131 orphaned of 558 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 558 of the 691 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/MLXDeepFilterNet3Network.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fd6c028383b0043e0b858cfbdfa31619b7469ed034516fb39dccce27e2de8e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/VAE.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"78bc694ce205aebbc64d3554c901857e32dfdeccad23793d8706fa9a50e4a82c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VadBenchmark/VadBench.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb081bc0b6641e699658c5896366ad2b3d9ef3c031d052d793a9eb55d52a8f58"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Vocoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db8f26bf7e28ed906917370dba8e0050f29aaf4567a8ac263c44801fb1c9ab9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1DiarizationPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b85755434bb017cbd0bb1bfc380f71a89d09267689e867671d096365cc8a7c9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashCoreMLConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0eb8a1dee93816d46b52b04b6ecdd4f2922fdb898623484b7ff4f2ab831133e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/benchmark_qwen3_batch_decode.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"251525c15d4cad4a7520c35d89e071ca0ae43604a829c72be014890e809b766a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioDualAR.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d32964f30d695012838a3fb6eaf67d1b024325f966d9b0fef8c38cd0dc93cf5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2NativeRuntime.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b56e3f75a873eda7e3eee6621a1e632b12bf5e694221f0c5139ec727ebaeff"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiTemporalTransformer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c1bf15e0509b3858aa7c81ab2ab92b594e63f8cbd671d31ea2e2a479db15cb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Quantization/VibeVoiceQuantization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff84c997480c303bb0a83db850d4d393b7e103a596c261ba01ad5dfe3fdf49bb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Inference/DPMSolver.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47fcecbd17d7f9ae9a1291274bd90717e80a22358de95163d4340b2a8869c72"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Transformer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87525d3bf108031a5962fc1b4a02e49e9382c8f7c9e60248cdff70270a04a412"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Layers/StreamingConv1d.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad86b47ec68cfad7a925ea1536494ecb4823c23965a834e0ceec791ff815687"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MAGNeTMusicGen/T5Encoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c2692eb6c1edd2b1eeaf77f6b12bd36b8b3948999638eb168d4425739d8c95"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/NanoCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45a20d5223a8ed226e3202223dba08bed75eea9b4321d8c747e946890b72c7b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSCodecEncoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb48645966c3dc34ec42417c45a0698a2a49c910ab45e5de7429dd4d8207340"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Conv.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68267dfc9ca5c10b0f6f0a4253cd996756a5cc9d30efc964b1b694bc8f735200"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2ReferenceConditioning.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bdbcac444771177bf578b3092aae219bb9675d4177bc359df8a3c5ebdd55e6d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MAGNeTMusicGen/EncodecDecoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a10b6a548fb0a369f515c1c142226765342f5e9bbf16829708ce2efd102c6d7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Wav2Vec2Bert.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f5fd7c47abeff903e98b834f6df7ada82b48988a3ff1be245ef440965de9d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/JapaneseG2P.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ce888eb67e4d3cbd2a054a1e64e86565fe6f220b43395c59f26b853de64084"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SourceSeparation/WienerFilter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14b4e65a0d32787ec48d05ad6891adb000b0239ea7847b5cb4baa197b3423aa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2RuntimeConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e40c64be453f4fc0ab51e63dd8100477f9d823774b2530750d10a99ad611f69"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossWhisperFeatureExtractor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46a7b70c8670c45b0899ba7eee87f1a53ca46d868cad0f1debebd170086c3a5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HindiEmotionTTSCatalog.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d033e3f64b4c7f8122a45355b0aaf33a3297a7007201d7e1eac2a3e6d59a86"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioQwen3.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9088e982f0b037ff64a2b4994fbac3fe09032296f3c4b35130a072815eae3565"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CSM/CSMModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fee16110f28c427488ed35df6914d5acfeeb87c03a1df23f3322e80ca9ad31"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSPrimitives.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"db708225a381155adb3f686a6c070e674ef6785377475e967887facb43a63d29"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BenchmarkSupport/BenchmarkSupport.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"75721d963e1e075b25ec9468c0439c05b8d9cd2d5bd47b52ac158546c5a7e126"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicTTS.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bcf487f1e4c39e5800ab747fdbfc416a6e9a7314a21b23ccec517c81cdcc44"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2SemanticCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ba61156ae9d0a29a300a9e1d874a7e3838a199a62949a85c7d6094bb87df91"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Seanet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db1af5222c1765a573eecfd26e567f1e61175f7ea565223f3177a095260719d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/WeightLoader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"032b854ea112ac43ae0c95f929c3f201913aa82657edb7f762c48350d57ae374"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1CoreML.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"304fe1de179df1889a5762edb3362322188b6cbf81e5e934d0ef0ebb48da2ebb"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/NemotronMLXConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1260ebda4912d1e8d2996552899a47c5b17aa7ba345c1c8a784f73f5048096"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde9605f5a31505da3ab97ccb8f91fd18418eb1e92e60832a3ad55e9ea9dd5d0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/AcousticTokenizerDecoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8ee61aee11a08e3faaace8666f56def289ccc330319fc5484a77aa8c2009ce"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXAudioModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b0f027ae5fe205226f4c33591202bdccdba956c8c9e09e1c53175cdc6e65be"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioGeneration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14dad343e5c96e90599a0b7e29f6d8579629bd0c91d207f88fed57a299d0be6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Mel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92198e4a5ba4a795e4c0d8ab6ccb09f9d6aa0065886a0cde5d79b7a280bc38ea"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/DiffusionHead.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"666db5c3ac844c40b639900d99378a6c6bdde3a81619feb253d6edc44e847752"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MAGNeTMusicGen/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c42f9111a96a365e64f395ce672a884a33d0b111064678f9b3bcae25aef11df"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/monitor_apple_gpu.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6077440e26304ac91b487e900f093d9ff35cd9666d8831796e2c74ebf6a85a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2965842711d827f04a641194ba2e9b62f0633d8beb75c8e5dae03a864e2fc73"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralLanguageModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80758610cc4c08eab67b50a80c44503714f137c6bf91da77e33502225aa58a3c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7bb94598081323ea7e33f11fabff1f17d92e0755baae8f7d8c6277da188e83"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXTextModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"17741f8f2df0ffed922dcbf3b5843bb44a0899f3bc1eb5e48a33527483d3a1c2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/PersonaPlex/Quantization.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a113fa719eec7e10129fc5fcf0e1c4e53460651f72ab62a16d770709d4d09966"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SupertonicTTS/SupertonicGraphs.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e6c5e934a87f1a71132b7c62171375ebab44b7b8faac049cafe85b9278ea69"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4491471bd63de93931d74bc5e8235ef1f3f93542e1f0583e488d9e9f446465d5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/Decoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e756c69c464f5a1ef4b9c5194ce41330a247e01c9744ccff984c2505e48bffc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossPromptProcessor.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eea2e49c746b79ebb0b54f6c68ed0688d6b335d7571917826d5c908d43d2765"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/DialogueParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2d4265c0ec3bb874a2a772603c8c47e0948e7f0b4c2731388b77a7ca7dc65e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADWeightLoading.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"898a9c6493528043c13ca0edce2d402e9bd78df326c65440f8a8f4603de03fb6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a419185aed6c7beeac35974486638b186cc34509412ed6e08f6ec5080cb2cfc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/MioCodecGlobalEncoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f421714ebb3d5e5e1319afaf7e75da9a5a51678082f505ab3a5e79945b88de9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSPinyin.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72017c7bc9179db528cefe18f1ceefc4ec58f1993b0d11f884058bcefc7f889"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSBackbone.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"598f1af0e46327c4052205223ffa01910ddd4fedd55943f0835091a37f577ea9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FunctionGemma/FunctionGemmaParser.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae333b8972194ca70cc30bccf0e081e1e5fbdcf54926987db7c7a1fc8fab4b5a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/VADPipeline.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7cbc7b8d24affb815e521eb059600b3b7a183e6bc77d8a5451d70dd8c1f6da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/VibeVoice15BModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"735198547cdfc1abbf42994df0a7f1a7edfff07de2a136b30ff4de6c0bd7a675"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4WeightLoading.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05837daffd8d2dacbe409dda0382f0a6c75aa0928737e63a718c0988d9b0b6d7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/SentencePieceModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7d4a1372bf0f4ca18b4cce19509055d6eee10d4dc43e6c8da98df8406259b9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedea329da71c29adcbcbfe5fdaf1a3a4018c8759fe50c1c1424567875f28fb1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CosyVoiceTTS/DialogueSynthesizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a1023a78e3d99d9ab069c27645ca07d790b31fc3fcfdaaabce433ef446a316"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MossTranscribe/MossMLXConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"721ec81e9bda1e6f2aad28b8399fad883d56a487ad6ec1145f43fd453e9f47be"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Community1Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d94db5b275498eff32a8dcb3d62e59b8b96ea1e8b0b389ea5073a71ab7a1640f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CohereTranscribeASR/CohereAudioFrontend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"028746db5fe8c1af6e4ee9e248a93ca89094bbd9ed745654bb6291db7a89aa63"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/MLX/OmnilingualMLXWeightLoader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d2224ea7f84eca0685798659ae129868f7be78de53875a478bf969fabffa78"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/MLX/Wav2Vec2Frontend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df30a24183b6e4917e1da248dae388cfe5ed933b388b737dd7d69987beecd82c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FishAudioTTS/FishAudioWeightLoading.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c9e52f43fd4c8c9de2f491d8a9764a1e5c021932d6e8ad6983367289a4cec53"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CSM/CSMGenerate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d98d4e5ea3211db017f2fa125125b3953cd5d680e070624cab93fc0a2c9eda4d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/AcousticTokenizerConfiguration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d81a6303e642aee2006940dea3f43afefd2c0702005da76fa3c8e42845ff3f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/WeSpeakerModel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e729374c612dea8bcae7c5ce2fb10dfefc68eac2e1b2813977b514f75931f9b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralAudioFrontend.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ea46dfe34e21f10028660906933a8b06454ef395f8bc6ae24426731b95444b6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralAudioEncoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"398e1f59ad804803c587fa457f01e82ab7c19d220b5b5112329ef16e192d1637"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17f211f66c663fbd31adfedcb387a684c92c2ab4f22cab55cc2eaa6ad853f75"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CohereTranscribeASR/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"26aafc0f7ceafe7826de73108df1d3a66e45110448ede96d450acbdeaaa66f0e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/TimestampCorrection.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe46dde1b36833bb693558ecc0c37aa4a9070c17085e0aaf855fcd73a01e3759"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Audio2Face3DDownloader.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5436c6254d48297338aa7cddbea5b83b2ba33d9a01a3052d3172d317c9e59ef5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/LocalVQEAECCodec.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb8a8086bd5ecb5560da7f214168a2211d096d29cc6eb17ab2830a75da5d4ee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechUI/TranscriptionView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d746acfe4785218c5da0042ec975a358f2890be9ff3a7439f0b34851ac050b6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b5f668e8f2888a46e9e235c8092bd0f83a4e542aee3eb9e9d32c16ef469bee"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"615d2e5bec0e1dc9ac9fa40500ae8514ef58b63ad39c555254e6c5482e8c1f56"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SincNet.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e583226103086bcb0c8d647fecd50ed67506286eac60d4c9069484d5c555ec6c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/TranslateCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbfbd396d7a68d777c5a4327e17f043e4a80f1b26d2afc797c142799577c815"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/LocalVQEAECWeights.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a980faa97a394ca45ff1c3f0616b45b8f63da75064efd5c1bcfcd29eae49adc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/EnglishG2P.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa2e3f06331a27a0a90ab080d4dcce4bd869b01a41cd61345942f68b7414cb5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MADLADTranslation/MADLADConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"947404e49e4e196c9a8856a1b1bbf9e13f4cff0b488b4c8c66891fb9b8f374a8"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/SDPA.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b505efbccb971ea6a59afae327dbc820e3668730514908ec3bfcf49b04bf675"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/AcousticTokenizerEncoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"540224a1df83098b7206882498465a35aa6559b541f969679292f03872f7dc54"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FlashSR/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67649dcefd27e1d2c8d28a91233499b4e96933677e7178841975a36ee83fa8c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/IndicMioSampler.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac6d5dd9f007317233d83479a02240c84300df99fde85c7f3eee9407a70b940"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSDelayPattern.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a2ee4a0186b9c12e6a40aa4af12fc6d82e2c92c9b141cdd8dc35c97d2232595"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"783c36c6ecad8499b533896417db142141e717e812fe45ce72950c789b2d3fbf"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2Emotion.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4266cc66639136f54f415263aa485f75cb6205ad02967271a6898c3da35245"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/MLX/OmnilingualMLXConfig.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa894ae122fa2e3148f2c1ff1428ca5a6bc9882f6a9cd1189bb9def2e6b73474"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2S2Mel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc14ae69174ddcb87fd98308131157a808a9c0e4e74c8be7ba99cdad8749a64"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/CohereTranscribeASR/CohereTranscribeTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15659a0542560c2f7a2ed7818f23d27c3e86e5da3638ed5ba251a8c6ef5aec0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ChatterboxTTS/ChatterboxFlashNumpy.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa227ba85a5ce87ad899280b2904327a580f84d0dd2db534a09ebdc3a506756"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/EngineCohereVoxtralMLX.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3134537560bd08cd285e90b1d6b5aa9071f3b09a73abed737ad5b8a9f5d544db"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Audio2Face3D/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3efd9dd1c3266509674719da7e448d1a1905e1522ab4234a8a1d6ef04ca8163c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Qwen3DenseWeightLoading.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7d5cb88cf0501131fe08787dbb3935f72764b88ec355ba972dbfef70921b38"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdbc5999891141e39e3f6cc9ac104cba6e9639ce10aa8553cc048895e2794ba5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/Segmentation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"804026404016388382b149fa377b866c493acd143fe2111dfe73728d955524e0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmnilingualASR/Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7ed342f6165ce5c94478090cfda638acfc98432d1a49cd586b36f7233d5032"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSWeightLoading.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97081f35216a164598ba959650634c2c239fec6d986d31e1010b781d418d3d35"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/BenchmarkSupport/DiarizationSpeakerCountAggregation.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4e9e93482835bb9fe2c85393a0b04067c195b5a5901975563806255d1fda8d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/BiLSTM.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa0554b71fbfdc0abfbdbc90323f453cf97eed5300d25f4fdbfb69dac3e0861"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/FunctionGemma/FunctionGemmaPipelineLLM.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7912710a88ece8bb341aed1d9255753c70359ee5395043c21ea1b9c1774a8c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndexTTS2TTS/IndexTTS2CAMPPlusAdapter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8401f4dfe53937076a0e98d5e4a4331b70b87145bdbab2de97d324753e40f09"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VibeVoiceTTS/Models/Qwen2Configuration.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5172ed85c5b597d345caa52c8b30a45b907e64335b34e4500d1f6131033aed2b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSVocos.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92996bbd960d3ad71a96ca6407fa36230ae61f73507a5f3815659b59b85e2e06"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/F5TTS/F5TTSTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbabf449e481a63f1a13d05a2c20e7d8f225f10b93461a2b80ae696485fa277f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MLXCommon/EncodecLSTM.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99c38932833a6f0b4a3f5bbb101d5b78b2f3c76a75cc16579f44a8c3e4cd173"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechEnhancement/LocalVQEAECAdaptiveFilter.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d71571821703aae2178e427ba1efa530969c42e42aec0862954832ceccac11a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3TTS/ReferenceAudioCache.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"586908fa1b6ebaaf815404ba74fcd2c3388f58c4cf0a6672b9b062e7c6f78f22"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ParakeetStreamingASR/Vocabulary.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff78aa546b9b011afff573a1627e092a63c7b7ae867f1ab5f181766f2dabaae5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/AvatarMotionCommand.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c262294b43728812d1b8d5f3906f6792ce1345111011f2afc01be287eccc1103"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/prepare_fleurs_asr_manifest.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f63c9066fdc99ea7cdeccaad0681695baaf6efe28a3fa91df233cd003126050"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/AudioRingBuffer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7171a4a4667785624cfb32d18d239a42b18d4dc850fc84c72c49356eb63ae2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperASR/WhisperByteLevelTokenizer.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b1aff4a82d4b4d52bde128a4afbbb1f992ed487a9dc3a5db693ee5b326aeba"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HiggsTTS/HiggsTTSPromptBuilder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e423bf9dacdb988162f7e1bc39a350e6f8b2fbe3aa9450feff3fed744aff5678"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/IndicMioTTS/MioCodecContentDecoder.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5c86f80a26d459b60e046407de64f7239decf4643258bde486f23284d6517d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/SubVocab.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8665b3bd88677bb36c104706d005b675d30ffc5f073bcae5c417572c8dc8572c"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ba599708d0fb475616cf2125e02363441c6e43bbf0bd946177fcc152992227d9"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4fc50f47bc5977d6571e15b6fb5974ce0c6d79e24149d8f6bb254276a6fd8d9e"},"taxa":[{"id":"CICD-SEC-4","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX2","level":"warning","message":{"text":"Stateful handler dependency: Gemma4Chat: \u0060Gemma4Chat\u0060 is written on every request (\u0060resetState\u0060 is reached per request from the Hummingbird route closure \u0060NativeInferenceService.registerRoutes\u0060, and every request shares the instance it runs on and every static it writes) but writes that shared state outside any lock (state; e.g. \u0060state\u0060 in \u0060resetState\u0060 at line 103). Handlers run concurrently \u2014 SwiftNIO serves one event loop per core and async handlers run on the cooperative thread pool \u2014 and unsynchronised concurrent writes are a data race in Swift: an update is lost, and a concurrent Array or Dictionary write corrupts its storage."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/Gemma4Chat.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c7d8610ec56e27b5b667fe6452da0f38ac04bc475dc05f80ee0a2b3c83e5c61"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 20017 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/tests.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 0 versioned entries, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060URLSession.shared\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HuggingFaceRepoManifest.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc3a177035011ed6c8096efc0ee5d0c02ce06a4a5678afae9509f7071b844b8"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060URLSession.shared\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/HuggingFaceRepoManifest.swift"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f6604854f9ea406356b0df78f981b71b56949cdbef79a284939d76c314125cc"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060URLSession.shared\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/WhisperASR/WhisperASR.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaf3a36b82eea819b8279f8f3c0ca184abcc0bf8991ef24eee36d8d2fc5a5729"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060runIsolated\u0060 is async and calls .waitUntilExit() \u2014 a blocking call inside async code stalls the cooperative pool\u0027s thread \u2014 one per core \u2014 and every task scheduled on it for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AsrBenchmark/AsrBench.swift"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"295cf12b77a9847beaebd8532731716f378865bd67385539cd5d178b9ba761fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!inThinking \u0026\u0026 responseCount \u003E= sampling.maxTokens\u0060 appears character-identically in 2 files \u2014 Sources/Qwen3Chat/MLXGenerator.swift, Sources/Qwen3Chat/Qwen35CoreMLChat.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c49a4d7d3fe5f0b78e2597a32959745b7f57cecac423fa39a02fc245b758a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inThinking \u0026\u0026 generatedTokens.count \u003E thinkBudget\u0060 appears character-identically in 2 files \u2014 Sources/Qwen3Chat/MLXGenerator.swift, Sources/Qwen3Chat/Qwen35CoreMLChat.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3Chat/MLXGenerator.swift"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e427155f815f8c9a7e66af77a2c71f24bac35412a38e73beeea39b83b96a9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060k.hasSuffix(\u0022.weight\u0022) || k.hasSuffix(\u0022.bias\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/OmniVoiceTTS/OmniVoiceCodec.swift, Sources/OmniVoiceTTS/OmniVoiceCodecEncoder.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/OmniVoiceTTS/OmniVoiceCodec.swift"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9d5b283819de9371b16c0bed92daf2d2371e0d11809692fe396eedde85a96f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.hasPrefix(\u0022depformer_emb.\u0022) || key.hasPrefix(\u0022depformer_text_emb.\u0022) || key.hasPrefix(\u0022linears.\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/HibikiTranslate/HibikiWeightLoading.swift, Sources/PersonaPlex/WeightLoading.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf45f908b96bb1db9a59d04c0e9c7e30ef13b6067a6a3f4136c7f6ed5cfbdc2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.hasPrefix(\u0022text_emb.\u0022) || key.hasPrefix(\u0022emb.\u0022) || key.hasPrefix(\u0022text_linear.\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/HibikiTranslate/HibikiWeightLoading.swift, Sources/PersonaPlex/WeightLoading.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"729cd7a3b3cd87cf1d29cbb55182b44e512a84b35bdd3dc679595f8676f1e12d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060length == 1 \u0026\u0026 (cache != nil || position \u003E 0)\u0060 appears character-identically in 2 files \u2014 Sources/VoxtralASR/VoxtralLanguageModel.swift, Sources/VoxtralTTS/LanguageModel.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoxtralASR/VoxtralLanguageModel.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"803a4470008cdc795aba04ad210cbc338cb435311d686cc410437625dc0cef0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lower.contains(\u00228bit\u0022) || lower.contains(\u00228-bit\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/Qwen3ASR/Qwen3ASR.swift, Sources/Qwen3TTS/Configuration.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6276babb1317becd55db8dc3121001ff52a06d545190e0c55f0d00a8e2e502"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060modelId.contains(\u00221.7B\u0022) || modelId.contains(\u00221.7b\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/Qwen3ASR/Qwen3ASR.swift, Sources/Qwen3TTS/Configuration.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/Qwen3ASR/Qwen3ASR.swift"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ff71272a313c96a6cc4b0955732d8f2eed73a29ce024224f4cc0be4a2f50ad0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parts[4] == \u0022linear_in\u0022 || parts[4] == \u0022linear_out\u0022\u0060 appears character-identically in 2 files \u2014 Sources/HibikiTranslate/HibikiWeightLoading.swift, Sources/PersonaPlex/WeightLoading.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0590e64afa090772f62a337989c3975d9bd53fb82d3b5458580d243b75ad293"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060parts[5] == \u0022weight\u0022 || parts[5] == \u0022scales\u0022 || parts[5] == \u0022biases\u0022\u0060 appears character-identically in 2 files \u2014 Sources/HibikiTranslate/HibikiWeightLoading.swift, Sources/PersonaPlex/WeightLoading.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/HibikiTranslate/HibikiWeightLoading.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f30de184ef234a97efd3987d5272246735da1a689ed3c2abaa7c90fc9ddfc4c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060positions.isEmpty || positions.last!.end \u003C numSamples\u0060 appears character-identically in 2 files \u2014 Sources/SpeechVAD/DiarizationPipeline.swift, Sources/SpeechVAD/VADPipeline.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/DiarizationPipeline.swift"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"c132458cc9d4a605b55a4ae1767f31775e010c73e99376b91f68dba716be1738"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token.hasPrefix(\u0022\u003C|\u0022) \u0026\u0026 token.hasSuffix(\u0022|\u003E\u0022)\u0060 appears character-identically in 2 files \u2014 Sources/AudioCommon/Tokenizer.swift, Sources/Qwen3Chat/ChatTokenizer.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/Tokenizer.swift"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e58f4de9fb6d575f045055c39d984acda884889cc913038e0f325c8b3dd6f46"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060token.hasPrefix(\u0022\u2581\u0022) \u0026\u0026 !currentWord.isEmpty\u0060 appears character-identically in 2 files \u2014 Sources/NemotronStreamingASR/Vocabulary.swift, Sources/ParakeetStreamingASR/Vocabulary.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/NemotronStreamingASR/Vocabulary.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fad6d07cf8f5f74ac46ce88f60f162b07806db3adcb0140d3f79f5dbf61f44"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060xaK.count == numLayers \u0026\u0026 xaV.count == numLayers\u0060 appears character-identically in 2 files \u2014 Sources/MagpieTTSCoreML/Decoder.swift, Sources/MagpieTTSCoreML/StatefulDecoder.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfde341359b95ce471b3c132667ed75b77a56b38c62474b9d45addbea0da4642"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060first_numeric\u0060 is public and takes \u0060value: object\u0060 from its caller, and it calls itself at line 196 (\u0060first_numeric\u0060) with a piece of \u0060value\u0060 (and at line 201) \u2014 and nowhere in \u0060first_numeric\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. Python\u0027s parsers accept far more nesting than its stack allows: \u0060json.loads\u0060 turns 3,000 bytes of brackets into 1,500 levels and \u0060xml.etree.ElementTree\u0060 parses tens of thousands, while a walk like this one raises \u0060RecursionError\u0060 once it passes the interpreter\u0027s default limit of 1,000 frames. Wherever that exception lands, the work fails: a request errors, and outside any \u0060try\u0060 the worker or the program exits with it. Raising \u0060sys.setrecursionlimit\u0060 only moves the number the document has to beat. Thread a depth argument through \u0060first_numeric\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/monitor_apple_gpu.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3453646339753af2351cd9a20f1e359b4c194679d35777f5eb28519406f2ba00"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/monitor_apple_gpu.py"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3779829bbcade4c8a855c517139e72faa0ee6f772442befa9df253028b8ac4c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"46285af045a63c1bb692437b7de783a50ffb9d8bb4d22b9e0fa977e360d6a1e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef8bc0556fea3fae42428ae6873c9eae496ba671ad41644f5b78da56ad85cb7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/VoiceChat/VoiceChatSession.swift"},"region":{"startLine":1673}}}],"partialFingerprints":{"codehealthFindingId/v1":"87e1996ff4d873fefc48c3bededb9d9db91a7114f3b886601d7f7aacd7a5b121"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/StreamingVADProcessor.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71a5f4452efa28809683074bdba28eff8479288a570dfda758a3f68c7badeeb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTSCoreML/Decoder.swift"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2fcc4a1068b025574fa8eb722a9459ebdad9995ebd66dfc5344af5b21724122"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/ChineseG2P.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd94f57c96c5fedb6750a80f108efd85c66d80a31153fe3f6bc05b103bda3328"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/EnglishG2P.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1b9be5b056cc139dc63dab3fdf18438c6fa794ea24e23a496be5fad999451e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KokoroTTS/Phonemizer.swift"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"e079e4fa001cc23d41e237550c30ae1695620b93bf3c33cd01718d22eeda862f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"92652f6dd7d3854024a1f661f3d4d7bc8104691567b4e65964e4ea01b89debc8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aebac311393485c9f10e247c1697807c8439534693000b49279ec6bbdd24ee1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCommon/StreamingAudioPlayer.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcc8ccde8ea0cbe003558ee1307a43a6f6022b7792920a8384506a5147979ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/Utilities.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0f239cf78557bf306a9b9e9f5056b92e5dfa17fdde2f7a1d540aa98f1824e7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060mb\u0060 returns \u0060\u0027-\u0027\u0060 when \u0060(TypeError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/render_benchmark_dashboard.py"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cd74092a30afd3f6cb58e8f5cdd868fcb4dee0fc9888f212d5d2b4e736febd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060delta\u0060 returns \u0060\u0027\u003Cspan class=\u0022muted\u0022\u003Enew\u003C/span\u003E\u0027\u0060 when \u0060(TypeError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/render_benchmark_dashboard.py"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5607e68131084e4993bc8ace8571d22287b43e6b80007d6b780242ca28da858"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060execute\u0060 turns every thrown error into \u0060#\u0022{\u0022ok\u0022:false,\u0022error\u0022:\u0022more information required\u0022}\u0022#\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioCLILib/VoiceChatMCP.swift"},"region":{"startLine":1498}}}],"partialFingerprints":{"codehealthFindingId/v1":"353b633a3f9c2782025ebe56870bc3eb844dd41fc571484f01b5f0150178937f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060formatJSON\u0060 turns every thrown error into \u0060\u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/AudioServer/AudioServer.swift"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea219e79611c73037e12a6880e927c8b8d53f7fdbd1ec32a1c9a4217cc379b7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060transcribe\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/KyutaiSTT/KyutaiSTTModel.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11cfeaaf06c5b22a784ca43794488c3c7546efd65f7a76985353427243a3416"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060phonemize\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/MagpieTTS/ChineseG2P.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e32098e65d06b94368c6682996af87650cbf24c0661584c1035206b7ea33cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060runCoreML\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/FireRedVAD.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d61389f9667bbef3530a8c1d414c7fe0516449fd29544411d710d79180af7a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060processChunk\u0060 turns every thrown error into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/SpeechVAD/SileroVAD.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fbc9b7f532a3044a8e7bf9737684c0f1a93cfc42e9599e4fa2f0f625d5a05d"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-4","guid":"c859d8ea-8b24-a157-9406-94929c10397a","name":"Poisoned Pipeline Execution (PPE)","shortDescription":{"text":"Poisoned Pipeline Execution (PPE)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-04-Poisoned-Pipeline-Execution"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":26,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}